Bdc for invoice parking with reference(FB60)
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
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.