Hi guys,
i have a problem with BAPI_PLANNEDORDER_CREATE. Its the same result if a create a planned order with or without planing scenario but in my special case i create a planned order for a planning scenario.
I pass all required data to header data and set det_schedule = 'X'.
After commit work, the order was created and scheduled without problems.
BUT
in table createdcomponentsdata there are the components of the planned order and their requirement dates(BDTER) for example:
Material 4711 - BDTER 18.03.2013
In table capacitydata1 i can see the scheduled capacity and the activity(VORNR) where the materials are assigned. example:
VORNR 0010 - Date 21.03.2013 (the components are assigned to this activity)
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
When i go to MS13(equal to MD13 for planing scenario), the components are scheduled correct to 21.03.2013.
When i have a look to the table MDSM where the requirements for planing situations are saved, i can see the requirement date for this component is on 21.03.2013.
I made another try:
When i create the planned order manuel via MD11 or MS11 without scheduling in the first step, the component requirement date is set to 18.03.2013 like its shown in table createdcomponentsdata which i get back from bapi.
When i schedule the order in a second step, the requirement date is set to 21.03.2013.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
It seems to me, that in the BAPI, the components will be created in a first step, and the scheduling is processed in a further step, but the components in table createdcomponentsdata is not updated correctly.
Does anyone recognized the same problem???
Is it in every case the requirement date before scheduling which is given in createdcomponentsdata?????
thanks in advance
best regards,
Dennis