I enhanced 0Customer_attr with 2 different fields from a customised table in ECC. I have appended the extractor and unhide the fields in RSA6 and have also confirm that the fields are available in RSA3.
I wrote the following code EXIT_SAPLRSAP_002...
DATA: l_s_custattr like BIW_KNA1_S,
DATA:ZZZFCUST like ZKUNNR_LAS-ZFCUST.
DATA: ZZREMARK like l_s_custattr-ADdnr
Table: ZKUNNR_LAS , ADRCT.
case i_datasource.
WHEN '0customer_attr'.
LOOP AT c_t_data into l_s_custattr.
l_tabix = sy-tabix.
SELECT SINGLE ZFCUST FROM ZKUNNR_LAS into l_s_custattr-ZZZFCUST
WHERE ZTCUST = l_s_custattr-KUNNR
IF SY-SUBRC = 0.
l_s_custattr-ZZZFCUST = ZKUNNR_LAS-ZFCUST.
ENDIF.
MODIFY C_T_DATA FROM L_S_CUSTATTR INDEX L_TABIX
SELECT SINGLE REMARK FROM ADRCT INTO l_s_custattr-ZZREMARK
WHERE ADDRNUMBER= l_s_custattr-ZZREMARK
IF SY-SUBRC= 0.
l_s_custattr-ZZREMARK = ADRCT-REMARK
ENDIF.
MODIFY C_T_DATA FROM L_S_CUSTATTR INDEX L_TABIX
endloop.
But, when i checked in RSA3, the 2 fields are not getting populated during runtime.
When i debug the code, i can see I_T_data do not have the 2 fields that i selected but I_T_fields have those 2 fields. But, the 2 appended fields are not getting data during run time
(please, note that i check the box for fields populated during exit in RSA6 for these fields)
What am i doing wrong? Should i replicate the datasource in BW and try and pull data via IP?
Please, help