cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Confirm production order in MII12.2

Former Member
0 Likes
1,329

HI, I am trying to confirm a production order by MII, the way that I'm doing is running a BAPI, when I do it in the ERP alone I put three fields and those are ORDERID, POSTG_DATE, YIELD. These are the values ​​I'm passing it on MII and is not working. Anyone know how to confirm an order for production by MII?

Regards,

Victor

View Entire Topic
Former Member
0 Likes

I use the BAPI 'BAPI_PRODORDCONF_CREATE_TT' and fill in

TABLES/TIMETICKETS/item/ORDERID with production order

TABLES/TIMETICKETS/item/OPERATION with operation number

TABLES/TIMETICKETS/item/YIELD with 1

TABLES/TIMETICKETS/item/FIN_CONF with 'X'

I also use the start session and end session instead of the jco interface so I have to do a commit/rollback.

The message 'TRANSACTION EXECUTED OK' only pertains to the MII transaction executing without errors NOT the BAPI.

After BAPI execution check 'TABLES/DETAIL_RETURN/item/TYPE' for the character 'E' and the error message from SAP will be in 'TABLES/DETAIL_RETURN/item/MESSAGE'. Pipe that message field into a terminate transaction action block with the error flag set and you will start getting the confirmation error messages.

Former Member
0 Likes

Hi Jasper,

I did the transaction almost like you siad because i do not know how to do commi/rollback so i did an autocommit.

The error message that tells me is that no such order of production but this orden exist.

Former Member
0 Likes

Try zero padding the production order to 12 characters and zero padding the operation to 4 characters. I know some BAPIs are weird like that.

Eg:

Order 000001001234

Operation 0100

Former Member
0 Likes

What do you mean operation numbre? 

I did not define operation number because i do not know what is the number

The message is:

There have been notifications for order header 60003606

But the quantity to confirm has not been afected.

Former Member
0 Likes

The operation number refers to the routing number on the production order.

I'm guessing but the SAP transaction CO12 might confirm all operations if you don't specify one.

Go to CO03 in SAP and hit F5 (Alternatively the button beside the hat at the top), that will show you all the operations for the production order.

I'm not a PP expert and I don't know how your system is configured so you may need to get help from your resident PP expert on how your production orders are configured.