Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

user-exit for PGI

Former Member
0 Likes
1,543

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?

4 REPLIES 4
Read only

Former Member
0 Likes
973

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!

Read only

0 Likes
973

Hi Krishna Mohan,

Even i've tried the exit u mentioned and also changed the xlikp structure, but they don't work!

Read only

0 Likes
973

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.

Read only

0 Likes
973

closed