cancel
Showing results for 
Search instead for 
Did you mean: 

Planned Order Create BAPI

02-13-2015 2:01 PM
7097 views 9 comments Go to solution
0 Likes
SAP Managed Tags
Subscribe

When we use BAPI_PLANNEDORDER_CREATE and send material, location, quantity and dates information through the BAPI, in some situations SAP creates a planned order with a different date (+/- 2 days). Firstly what might be causing SAP to change the dates and secondly what can we do to have SAP create planned orders on the same days as mentioned in the BAPI?

0 Likes

Accepted Solutions (1)

Accepted Solutions (1)

former_member215526
Active Participant
0 Likes

Hello Manoj,

Please verify if this start date modification was done because the planned order changes based on the factory calendar. I mean I thing maybe there is some control with the Factory calendar with all working days and assign it to the Work center in Capacity header.

Seeing very quickly the BAPI, please verify if you can change the scheduling parameters.

I hope this can address you.

Best Regards,

Xavier

Former Member
0 Likes

Xavier,

So what you mean to say is that we cannot firm the dates through BAPI so change the factory calendar to make it available all days of the week and then SAP will not change the planned order startdate?

Thanks

former_member215526
Active Participant
0 Likes

I think that even you propose a start date in the BAPI, the system determines a new date (of course as close to the start date applied by you) to respect the scheduling parameters selected by default in your customizing.

Please check this link I just found with similar FM.

milton_gallegos
Active Participant
0 Likes

Hello Manoj,

Try to create planned order in tx MD11 using the same data (material, plant, quantity and dates) . ¿Does the system change dates?.

Moreover, Scheduling is based in :

  • Factory calendar (Plant level),
  • Intervals and Shifts (work center/resource)  (Lead times scheduling and capacity planning)

I hope this help you.

Former Member
0 Likes

That makes sense. Thank you so much. I am still testing the next stage where I converted the planned order to production order and even if calendar is closed for weekend I can see the Production order scheduled in the weekend (CM21 transaction).

Effectively while creating Planned order through BAPI it is checking Factory calendar but when converting planned order to production order it is not checking Calendar?

milton_gallegos
Active Participant
0 Likes

In Gantt diagram you see the operation's duration. 

For instance:

Standar values 2 days

Start        : Friday               (1 day)

                 Saturday : Non-work day   (0 days)

                  Sunday   :Non-work day   (0 day)

Finish      : Monday        (1 day)

In adition, in CM21, check  the Strategy profile . There is an option  called "Planning in non-work periods" in the Scheduling control section.

Former Member
0 Likes

Gantt diagram shows it is open on weekend and even when I check Planning in non-work periods I see production order running on weekend.

milton_gallegos
Active Participant
0 Likes

You should check Intervarls and Shift of the Workcenters(PP) / Resources (PP-PI) involved in the order.

To do this, go to modify Work center (CR02) / Resource(CRC2), then go to Capacity tab, select the capacity category and click Capacity Header data. In the screen Change Capacity, click Intervals and Shift and the system shows data about shifts

Look workdays indicator. The posible values are:

   Working days according to the factory calendar

0 Non-working days (overrides factory calendar)

1 Working days (overrides factory calendar)

It's posible weekends are non-work days in Factory calendar , however the workcenter (Intervals and Shitft) is available on weekends.

Former Member
0 Likes

Thank you so much. We figured that Intervals and Shifts is over-writing factory calendar.

Answers (0)