2008 Jan 02 3:37 PM
hi,
i have a document no from one comp.code 0600
and i have another doc from another cocd 0500.
i need to check the amount for these doc's and if the amount is zero then i need to use tcode F-04 and run the bdc call transaction to clear these doc's.
when we manually use tcode F-04 and clear these 2 doc's ,
Two new documents will be genetraed on both comp.codes 0600 and 0500.
but when the Call Trasaction is finished I got a single doc
on 0600 comp.code. I checked itab (of type BDCMSGCOLL)
with message no :312..but there is only one doc .
how to get the other document on comp.code 0500??
in summary, after call transaction i want two new doc no's to be genetrated ...how to get this ??????
when we are getting 2 new doc's manullay using tocd f-04
why not using call transaction?
regrds
VAJA
hi,
i have a document no from one comp.code 0600
and i have another doc from another cocd 0500.
i need to check the amount for these doc's and if the amount is zero then i need to use tcode F-04 and run the bdc call transaction to clear these doc's.
when we manually use tcode F-04 and clear these 2 doc's ,
Two new documents will be genetraed on both comp.codes 0600 and 0500.
but when the Call Trasaction is finished I got a single doc
on 0600 comp.code. I checked itab (of type BDCMSGCOLL)
with message no :312..but there is only one doc .
how to get the other document on comp.code 0500??
in summary, after call transaction i want two new doc no's to be genetrated ...how to get this ??????
when we are getting 2 new doc's manullay using tocd f-04
why not using call transaction?
regrds
VAJA
2008 Jan 02 4:12 PM
for getting two documents, u need to handle messages imm. after call transaction.
loop at data. (first time 500 data, and iteration 600 data)
for 500 com.code data..
call tran....' ' using 500_data MESSAGES INTO itab .
from itab u can see the doc. details of 500_data
(again inside loop for 600 comp. data
call tran....' ' using 600_data MESSAGES INTO itab .
from itab u can see the doc. details of 600_data )
endloop.