Hi Experts,
I created accounting documents in FV50 and used the option in the menu bar - DOCUMENT -> SAVE AS COMPLETED.
While debugging i checked, there is an FM - PP_COMPLETE_DOCUMENT_ENJ, in which at the below commit statements, the workflow gets deactivated.
if workf eq 'X'.
commit work and wait.
else.
commit work.
endif.
if g_imess = 'X'. "Note 574238
CALL FUNCTION 'CUSTOMIZED_MESSAGE' "Note 574238
EXPORTING "Note 574238
I_ARBGB = 'FP' "Note 574238
I_DTYPE = 'I' "Note 574238
I_MSGNR = '001' "Note 574238
I_VAR01 = bkpf-belnr "Note 574238
I_VAR02 = bkpf-bukrs. "Note 574238
endif.
i tried using both the commit statements, but it workflow gets deactiavted even if I use any of these commit statements.
i dont understand what can be the issue here. Has anyone faced the similar issue before ?
Thanks
Meenakshi