cancel
Showing results for 
Search instead for 
Did you mean: 

Confirmation in PP orders

Former Member
0 Kudos

Hi all,

When you confirm an operation in CO11N, the system warns you, if the quantity you confirm is bigger then the required quantity.

I'm trying to use Bapi_prodordconf_create_tt in order to create confirmation via portal. The problem is that it does not perform any check against the total quantity.

Any Ideas? Maybe, there is another Bapi to do this?

Thanks, Shim

Accepted Solutions (0)

Answers (1)

Answers (1)

michael_franz
Explorer
0 Kudos

Hi Shim,

did you try out the input parameter TESTRUN? You can set the value "X" to activate the Testrun mode. Maybe you get an error message back, if the quantity is too high. In this case you can display the error. If no error occurs, you can run the BAPI again, without test flag.

If this does not work, you can try a more complex approach:

1) Call BAPI_PRODORD_GET_DETAIL

return parameter (table) OPERATION, field QUANTITY

in order to determine the total operation quantity

2) Call BAPI_PRODORDCONF_GETLIST

with the relevant order number and operation.

return parameters:

CONFIRMATION

CONFIRMATIONCOUNTER

3) Call BAPI_PRODORDCONF_GETDETAIL

with CONFIRMATION

CONFIRMATIONCOUNTER

Result:

CONF_DETAIL-Yield

CONF_DETAIL-Scrap

CONF_DETAIL-Rework

Now you can sum up these values and check, if the currrent confirmation quantity, you want to use in your BAPI fits. If it fits, you can call your BAPI, if not, you can display an error.

Hope that helps.

Kind Regards

Michael