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

Transaction CO13

Former Member
0 Likes
1,261

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.

4 REPLIES 4
Read only

Former Member
0 Likes
883

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.

Read only

0 Likes
883

If I run the interface in All screen mode then it works fine. I mean it creates the material document for all the entries.

Read only

Former Member
0 Likes
883

Can you use BAPI FM : BAPI_PRODORDCONF_CANCEL

Read only

Former Member
0 Likes
883

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