Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Process Order Creation - 'BAPI_PROCORD_CREATE'

Former Member
0 Likes
4,035

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.

8 REPLIES 8
Read only

former_member188827
Active Contributor
0 Likes
2,683

are you passing material number in parameter "ORDER_DATA "?Its required.

Read only

0 Likes
2,683

Yes I am

Read only

0 Likes
2,683

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

Read only

0 Likes
2,683

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

Read only

0 Likes
2,683

material field is 18 char long.try giving leading '0'.also do the same for plant field

Read only

Former Member
0 Likes
2,683

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

Read only

0 Likes
2,683

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.

Read only

carlos_mayka
Explorer
0 Likes
2,683

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?