on 2015 Mar 12 2:20 PM
Hi All,
I am working on the 0MAT_PLANT_ATTR datasource enhancement wherein I am extracting data for fields like
--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.
Thanks for the help, issue has been resolved.
I had to change the code and change the append structure. I found a field AUSME (Quantity field) in the BIW_MARC_S structure which has the domain MEINS and used this as a reference field for all the newly added fields mentioned in the first post.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
79 | |
10 | |
10 | |
10 | |
10 | |
9 | |
8 | |
7 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.