‎2007 May 17 10:46 PM
Hi,
I am using BDC on Transaction CO13 in the interface for the reverse /cancel confirmation. When only one entry is coming for the Order in the file then it works fine i.e material document is created, but when multiple entries comes in the file then only for the last entry it creates the Material document. For the others it either show Incorrect GM or Int. Goods Mvts, But call transaction(No screen / Synchronous mode) gives success message for all the line item. In AFRU Table also the revarsal flags get cheked for all.
Please tell me what could be the reason.
Thanks and Regards,
Shweta.
‎2007 May 17 10:49 PM
Why don't you go in all screen mode to check and see what actually is the error? and then post the error, i can help you.
‎2007 May 17 11:21 PM
If I run the interface in All screen mode then it works fine. I mean it creates the material document for all the entries.
‎2007 May 17 10:52 PM
‎2007 May 17 11:22 PM
First see Production order status :
CALL FUNCTION 'STATUS_READ'
EXPORTING
client = sy-mandt
objnr = i_porders-objnr
only_active = 'X'
TABLES
status = t_jstat
EXCEPTIONS
object_not_found = 1
OTHERS = 2.
everything is okay then proceed with Co13 Transaction otherwise do the other validation