Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 7999

0MAT_PLANT_ATTR enhancement issue

$
0
0

Hi All,

 

I am working on the 0MAT_PLANT_ATTR  datasource enhancement wherein I am extracting data for fields like

  1. Reorder Levels – MINBE – (BIW_MARC_S)
  2. Safety Stock  - EISBE - (BIW_MARC_S)
  3. Min. Lot Size – BSTMI – (BIW_MARC_S)
  4. Rounding Value - BSTRF–(BIW_MARC_S)
  5. Lot Size Key - DISLS  - (BIW_MARC_S)
  6. Plant Mat Status – MMSTA - 0MAT_PLANT_ATTR - - present in the DS
  7. Cross Plant Mat Status – MSTAE- 0MATERIAL_ATTR (ES - BIW_MARA_S)

 

--The issue is I have written a code in cmod -EXIT_SAPLRSAP_002 - to fetch data for field no. 1-7 as they are hidden in the datasource and also use MEINS (Base unit of measure) field of table MARA as reference.

In RSA3, when i execute I am unable to see the data for MEINS and MSTAE - Cross Plant Mat Status fields. both the fields are part of MARA table and not MARC which is the base for 0MAT_PLANT_ATTR datasource.

 

--Also could you please tell me about the delta functionality of this? I went through some posts which tell me to add field entries to BD52. In ROOSGEN table the message no. is RS0127. I am unable to understand the relevance.

 

Code:

 

DATA : wa_mara type mara,

         C_T_DATA_TAB TYPE TABLE OF BIW_MARC_S,

         C_T_DATA_WA TYPE BIW_MARC_S.


WHEN '0MAT_PLANT_ATTR'.

LOOP AT C_T_DATA_TAB INTO C_T_DATA_WA.

 

        L_TABIX = SY-TABIX.

 

        select single * from mara into wa_mara

          where matnr = C_T_DATA_WA-matnr.

 

        IF SY-SUBRC = 0.

          C_T_DATA_WA-zzmeins  = wa_mara-meins.

          C_T_DATA_WA-zzeisbe = C_T_DATA_WA-eisbe.

          C_T_DATA_WA-ZZMINBE = C_T_DATA_WA-MINBE.

          C_T_DATA_WA-zzBSTMI  = C_T_DATA_WA-BSTMI.

          C_T_DATA_WA-zzBSTRF  = C_T_DATA_WA-BSTRF.

          C_T_DATA_WA-zzMMSTA  = C_T_DATA_WA-MMSTA.

          C_T_DATA_WA-zzMSTAE  = wa_mara-MSTAE.

 

          MODIFY C_T_DATA_TAB FROM C_T_DATA_WA INDEX L_TABIX .

        ENDIF.

      ENDLOOP.

 

Thanks.


Viewing all articles
Browse latest Browse all 7999

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>