Skip to Content

Issue with BAPI_PRODORDCONF_CREATE_TT after confirmation

Dear Folks,

AM using this BAPI_PRODORDCONF_CREATE_TT Function module for Bulk Confirmation of Production orders.

While Performing Confirmations some times records going into COGI and in AFFW table i see the message as Enter Batch.

Can anybody Suggest me how to Overcome this error.

Regards,

Shekar.

Add comment
10|10000 characters needed characters exceeded

  • Did you check if you have enough available stock in batches for the material goods movement?

  • Hi Simone,

    Yes Stock is available.

    See actually in my Program Before arriving at the BAPi Function Call am checking stock for all corresponding Materials wrt that Production Order If Stock i available then only in will go into BAPI Call other wise throws error.

    Regards,

    Shekar.

  • But the available stock is in Batches or without it?

  • Get RSS Feed

4 Answers

  • May 06 at 08:18 AM

    Hi Shekar, I assume you have a problem with batches of components being consumed with production order confirmation. If so and if the problems occurs for some components not all of them it looks like an issue with batch determination settings.

    It may hard to check the details of batch determination run once you have an error in COGI - see note 1868084 - FAQ: Transaction COGI:

    4. Question: No automatic batch determination is called in transaction COGI or when using the report CORUPROC for incorrect goods movements. Why?

    Answer: This behavior corresponds to the SAP standard system. Transaction COGI does not call an automatic batch determination; this can also not be set using Customizing. If you require a (new) batch determination, you must do this manually in transaction COGI. Therefore, there is no automatic batch determination if incorrect goods movements are posted using the report CORUPROC.

    Therefore I'd suggest to replicate the issue with online production confirmation in CO11N. There you will be able to see the detailed analysis of batch determination procedure.

    Best regards

    Dominik Tylczyński

    Add comment
    10|10000 characters needed characters exceeded

  • May 06 at 09:23 AM

    Hi Dominik,

    See Lets assume i have a Production order

    9000123 X Material 20 Confirmation Quantity

    For Confirming above Production order we need B (Raw Material).

    In this case no record is going to COGI.

    Now the next Case

    900123 X Material 1 Confirmation Quantity

    900123 X Material 1 Confirmation Quantity

    900123 X Material 1 Confirmation Quantity

    900123 X Material 1 Confirmation Quantity

    900123 X Material 1 Confirmation Quantity

    900123 X Material 1 Confirmation Quantity

    900123 X Material 1 Confirmation Quantity

    900123 X Material 1 Confirmation Quantity

    900123 X Material 1 Confirmation Quantity

    900123 X Material 1 Confirmation Quantity

    900123 X Material 1 Confirmation Quantity

    900123 X Material 1 Confirmation Quantity

    900123 X Material 1 Confirmation Quantity

    900123 X Material 1 Confirmation Quantity

    900123 X Material 1 Confirmation Quantity

    900123 X Material 1 Confirmation Quantity

    900123 X Material 1 Confirmation Quantity

    900123 X Material 1 Confirmation Quantity

    900123 X Material 1 Confirmation Quantity

    900123 X Material 1 Confirmation Quantity

    Now like this i will get 20 Records from some third Party System in a File.

    Now in this Case my Program will run BAPI 20 Times to Confirm this Partial Quantity.

    In this case we are getting Enter Batch Error for that raw Material in COGI.

    How can i over come this situation.

    Regards,

    Shekar.

    Add comment
    10|10000 characters needed characters exceeded

    • Are you able to post the confirmation of 1 pcs as in your example but with standard CO11N transaction? Do you get similar COGI error in CO11N?

      Have you checked your batch determination settings?

  • May 11 at 11:30 AM

    Hi Dominik,

    Am able to Post 1 quantity 10 times in CO11N.

    But with BAPI some are confirming and some are going to COGI.

    Add comment
    10|10000 characters needed characters exceeded

  • May 11 at 11:31 AM

    Hi Simone,

    Stock is available in Batches.

    Add comment
    10|10000 characters needed characters exceeded