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

'PRELIMINARY_POSTING_FB01'

Former Member
0 Likes
1,113

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

1 REPLY 1
Read only

kesavadas_thekkillath
Active Contributor
0 Likes
732

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.