Question:
I´m trying to populate the field XAUTO from table MSEG in the 2LIS_03_BF.
I created an append structure with the field XAUTO and the flag set to only exit client on.
The field is now in bw but it is not being populated.
I added the code detailed below and I´m not getting any values.
Is there a way of debugging just to see if it´s going to the code or not?
Is there something that I´m missing? I already did the append structure, replicated in BW, added to the communication, transfer... and I´m seeing the field in bw without any problem.
DATA: l_tabix LIKE sy-tabix.
CASE I_DATASOURCE.
WHEN '2LIS_03_BF'.
break-point.
DATA: ITAB LIKE MC03BF0,
Z_XAUTO LIKE MSEG-XAUTO.
LOOP AT C_T_data INTO ITAB.
l_tabix = sy-tabix.
SELECT SINGLE XAUTO
INTO (Z_XAUTO)
FROM MSEG
WHERE MBLNR = ITAB-MBLNR AND
MJAHR = ITAB-MJAHR AND
WERKS = ITAB-WERKS AND
LGORT = ITAB-LGORT AND
MATNR = ITAB-MATNR.
IF SY-SUBRC = 0.
ITAB-XAUTO = Z_XAUTO.
MODIFY C_T_DATA FROM ITAB INDEX l_tabix.
ENDIF.
CLEAR itab.
ENDLOOP.
WHEN OTHERS.
EXIT.
ENDCASE.
Thanks,
Theresa.
Answer:
make sure u'r project is active.
What about debug mode ??? rsa3
Are you getting values for xauto ??
Also make sure you unhide the field.
Answer:
...and the flag set to only exit client on.
Theresa,
Is that the RSA6-flag "Field only known in Customer Exit"?
If yes, you might try to uncheck this field.
Cheers
Frank
Answer:
If I uncheck the field 'only known in Customer Exit' then it won´t take the code applied. Isn´t it?
Answer:
No. The field will still be known in the user exit. But it will also be known _outside_ the user exit (ie your extraction structure).
Try it
Cheers
Frank