Application Development 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: 

Bdc for invoice parking with reference(FB60)

Former Member
0 Kudos

Hi all,

I am Developing a <b>RFC</b> within that i have written <b>bdc</b> code for <b>invoice parking with refernce</b> on <b>fb60 tcode</b> as there is no standard function module for this . But i am stuck in one place after parking the document it gives one<b> document number</b> in the message bar which will be further useful for posting .

how to catch that document number in the bdc and return it in the export parameter of trhe RFC.

Maximum points will be allocted for any useful answer..

thanks in advance

1 ACCEPTED SOLUTION

Former Member
0 Kudos

You can do something like below after your call transaction to get the document number.

do 10 times.

wait up to 5 seconds.

select single * from bkpf

where belnr = belnr

and bukrs = bukrs

and gjahr = gjahr.

subrc = sy-subrc.

if subrc = 0.

exit.

endif.

enddo.

1 REPLY 1

Former Member
0 Kudos

You can do something like below after your call transaction to get the document number.

do 10 times.

wait up to 5 seconds.

select single * from bkpf

where belnr = belnr

and bukrs = bukrs

and gjahr = gjahr.

subrc = sy-subrc.

if subrc = 0.

exit.

endif.

enddo.