ā2013 Feb 21 11:06 AM
Hi All,
We are using FM 'PRELIMINARY_POSTING_FB01' for parking the invoice document.
Create test data and able to see the parked document in the pop-up message and even in the respective table, the requirement is we want the details of parked
doc number once it is created from the FM, as the FM doesn't contain any return parameter.
We need parked document number generated after the FM is called.
Regards,
Mohammed
ā2013 Feb 21 11:17 AM
Try the options below:
After the function commit work and wait , code it as below
lv_fs_name = '(SAPLF040)XVBKPF[]'.
ASSIGN (lv_fs_name) TO <fs>.
IF <fs> IS ASSIGNED.
READ TABLE <fs> INTO ls_vbkpf INDEX 1.
ENDIF.
write ls_vbkpf-belnr.
or you can also try with the below after the function call.
DATA lt_xbltab TYPE re_t_ex_blntab.
DATA ls_xbltab TYPE blntab.
IMPORT xbltab TO lt_xbltab FROM MEMORY ID 'FI_XBLTAB'.
READ TABLE lt_xbltab INTO ls_xbltab INDEX 1.