‎2009 Oct 15 11:55 AM
HI All,
I am trying to create a process order using BAPI 'BAPI_PROCORD_CREATE '.
I have entered all the required data and I get an error '012Enter material no. or reference'.
I donot want to use BAPI 'BAPI_PROCORD_CREATE_FROM_REF' as it only copies the Process ORder and I need to make changes to the fields like 'QTY' at component level and header level and 'BAPI_PROCORD_CREATE_FROM_REF' does not allow me to enter the new qty .
Please let me know what could be an issue with 'BAPI_PROCORD_CREATE '. Is there any other BAPI which creates a Process Order
Regards,
Shital.
‎2009 Oct 15 11:57 AM
are you passing material number in parameter "ORDER_DATA "?Its required.
‎2009 Oct 15 12:00 PM
‎2009 Oct 15 12:01 PM
the sap documentation says:
The following fields in the structure must be filled as a minimum:
MATERIAL: Header material
PLANT: Production plant
ORDER_TYPE: Order type
QUANTITY: Quantity to be produced
At least one of the following basic dates must be entered (unless you schedule from the current date):
BASIC_START_DATE (possibly also the BASIC_START_TIME): Basic start date (Date and time)
BASIC_END_DATE (possibly also the BASIC_END_TIME): Basic end date (Date and time)
are you passing all this info?
Edited by: abapuser on Oct 15, 2009 1:02 PM
‎2009 Oct 15 12:08 PM
Yes I am filling the following fields.
ORDER_NUMBER 00000039426A
MATERIAL 3FR3
PLANT EAG
BASIC_START_DATE 16.10.2009
BASIC_END_DATE 31.10.2009
QUANTITY 1,000.000
SCRAP_QUANTITY 43.000
STORAGE_LOCATION EFAC
‎2009 Oct 16 5:30 AM
material field is 18 char long.try giving leading '0'.also do the same for plant field
‎2009 Oct 22 12:30 PM
Hi Shital,
Can you please confirm if your issue was resolved.
I too am getting the same error.
Your reply would be highly appreciated.
Cheers,
Ravi Kiran
‎2009 Oct 22 1:07 PM
Yes...Its resolved.
You need to enter the reference process order number in 'REFNR' field .This is the field name on cor1 screen.Try and pass the value to the corresponding field in the bapi and you dont need to pass any material info.
Thanks.
‎2011 May 10 3:30 PM
Hi to All,
Could you please help me? I am trying to use the BAPI BAPI_PRODORD_CREATE in order to create a Production Order but I am getting the following error message :
E CO028 Backward scheduling (enter finish date)
I am passing the following parameters to the BAPI:
-MATERIAL
-PLANT
-ORDER TYPE
-BASIC_END_DATE
-BASIC_END_TIME
-QUANTITY
-QUANTITY_UOM
-ROUTING_TYPE
-ROUTING_GROUP
-ROUTING_COUNTER
-PROD_VERSION
Does anyone know how I can to do to solve that?