2006 Nov 22 1:40 PM
Hi,
my requirement is to change the field LIKP-WADAT_IST(Actual Goods Movement Date) during PGI for that i'm using the user-exit "USEREXIT_SAVE_DOCUMENT_PREPARE" and "USEREXIT_SAVE_DOCUMENT" in the include MV50AFZ1.
Here is the code
IF fcode = 'WABU_T' AND
sy-uzeit GE '200000'.
LIKP-WADAT_IST = LIKP-WADAT_IST + 1.
ENDIF.
The problem is that the value changed in the user-exit is not reflected in the transaction .
Can we change delivery header fields using this user-exits? if no, what are the alternate solutions available for me to change the delivery header fields during PGI?
Hi,
my requirement is to change the field LIKP-WADAT_IST(Actual Goods Movement Date) during PGI for that i'm using the user-exit "USEREXIT_SAVE_DOCUMENT_PREPARE" and "USEREXIT_SAVE_DOCUMENT" in the include MV50AFZ1.
Here is the code
IF fcode = 'WABU_T' AND
sy-uzeit GE '200000'.
LIKP-WADAT_IST = LIKP-WADAT_IST + 1.
ENDIF.
The problem is that the value changed in the user-exit is not reflected in the transaction .
Can we change delivery header fields using this user-exits? if no, what are the alternate solutions available for me to change the delivery header fields during PGI?
2006 Nov 22 1:49 PM
hi, Try in the exit FORM USEREXIT_MOVE_FIELD_TO_LIKP . Or, if that doesn't work, i think you need to change the values in XLIKP structure which will be moved to LIKP before saving inthe program. Try changing in XLIKP. Hope it works!
2006 Nov 22 1:51 PM
Hi Krishna Mohan,
Even i've tried the exit u mentioned and also changed the xlikp structure, but they don't work!
2006 Nov 23 7:54 AM
Hi,
Committed a silly mistake, previously i'm only modifying the header of the xlikp structure, now that i've updated the table also, the required functionality is acheived. The userexit "USEREXIT_SAVE_DOCUMENT_PREPARE" does the work for me.
2006 Nov 23 9:00 AM
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |