cancel
Showing results for 
Search instead for 
Did you mean: 

Entering an external batch number via BAPI_PRODORDCONF_CREATE_TT

former_member445197
Participant
0 Kudos
747

Hi,

Could I know if it's possible to use BAPI_PRODORDCONF_CREATE_TT to enter an external batch number for the goods receipt posting against a production order?

I've executed the BAPI using the values given below, but the system creates an internal batch number, and does not consider the external batch number entered into the BAPI.

Values passed to BAPI:

TIMETICKETS Table:

  • ORDERID = Production Order Number
  • OPER = Operation Number
  • YIELD = Goods Receipt/Confirmation Quantity

GOODSMOVEMENTS Table:

  • MATERIAL = Production Order Header Material
  • BATCH = External Batch Number
  • MOVE_TYPE = Movement Type 101 (Goods Receipt)

LINK_CONF_GOODSMOV Table:

  • INDEX_GOODSMOV = 1

Thanks in advance for your support.

View Entire Topic
DominikTylczyn
Active Contributor
0 Kudos

Hello anonymoussap

Your input to the BAPI_PRODORDCONF_CREATE_TT doesn't look right. You're providing way to few data e.g. GR quantity is missing or LINK_CONF_GOODSMOV doesn't properly link the goods movement to the confirmation.

Check out the documentation of BAPI_PRODORDCONF_CREATE_TT as well as the SAP wiki page: How to use BAPI_PRODORDCONF_CREATE_TT to make confirmation

You can also try the following approach:

  1. Call BAPI_PRODORDCONF_GET_TT_PROP to get the default values of production order confirmation.
  2. Change the values to your needs e.g. enter the batch number
  3. Call BAPI_PRODORDCONF_CREATE_TT with the changed data

This way you'll be sure you are provided all the necessary input to BAPI_PRODORDCONF_CREATE_TT.

Best regards

Dominik Tylczynski