cancel
Showing results for 
Search instead for 
Did you mean: 

FM to create production order using Scheduled Date

Former Member
0 Kudos

Hi,

We are trying to create a custom program to upload production orders.

We used BAPI_PRODORD_CREATE but users want to enter Schedule Date and Time.

Are there any FM that is available for us to use? I tried CO_XT_ORDER_CREATE but it always result to error (CO028 Backward scheduling (enter finish date) even if I key in the dates already (both in  IS_MI_SCHEDULED_DATES and IS_BASIC_DATES.)

Thanks guys in advance.

Thanks and regards,

John

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi All,

This issue is solved. We changed the Scheduling Type to Backwards in Time.

That way, Basic Time field was opened up for entry.

Thanks and regards,

John

Former Member
0 Kudos

This message was moderated.

Answers (4)

Answers (4)

Former Member
0 Kudos

This message was moderated.

Former Member
0 Kudos

What are the approximate changes in the dates.

If that date is in past then you can manage by allowing back date scheduling in scheduling paratmeters setting of order type..

If that dates are in future or current date then i think this must not be a problem.

You can give logic this way.

1. If order start date is current date then pass scheduling type as 4 while creating order.

2. If order start date is in future then pass scheduling type as 1 while creating order.

you can develop this logic in z program through which you are going to transfer data to BAPI.

Jigar

dejoy
Active Contributor
0 Kudos

Hello John,

Check in OPU3 order type profiles>adjust scheduling and scheduling control for detailed scheduling.

do you get same error through CO01  also?are you able to get order no successfully through BAPI?Normally the process would be as below.

BAPI_PRODORD_CREATE

check this if you have not used   BAPI_ALM_ORDER_MAINTAIN
BAPI_PRODORD_SETUSERSTATUS  """if any
BAPI_PRODORD_RELEASE
BAPI_GOODSMVT_CREATE
BAPI_PRODORD_COMPLETE_TECH

Regards,

gurunathkumar_dadamu
Active Contributor
0 Kudos

Hi John,

Check this link http://scn.sap.com/thread/3263778 amy help you.

Regards,

Guru