Hi Jyothi,
SAVE_DOCUMENT_PREPARE it's ok too
Some notes and remarks
- Suggestion, instead of TCODE, you can test variable t180-trtyp = 'H', it means i'm in creation mode (so you intercept both VA01 and VA21 for example)
- Remarks: you debugged your code? i doubt it could works. Try to apply mine and let me know if ok,
FIELD-SYMBOLS: <f_vbep> LIKE LINE OF xvbep.
if SY-TCODE = 'VA01'.
LOOP AT xvbep ASSIGNING <f_vbep>.
<f_vbep>-lifsp = 'Y2'.
ENDLOOP:
ENDIF.