‎2006 Aug 18 2:51 PM
Hi All,
I am trying to use the BAPI PlannedIndepReqmt.Change to delete/create schedule lines for a planning horizon. But i cannot find parameter to pass the "planning horizon"(Available on MD61 initial screen) into the BAPI. We basically want to delete the schedule lines for a particular planning horizon and put in new data from a file.Have anyone used this before?
Regards,
Hari.
‎2006 Aug 20 7:24 AM
Hello Harikrishnan
I am not an expert on demand management yet I do understand BAPIs quite well.
In order to understand BAPI_REQUIREMENTS_CHANGE call BAPI BAPI_REQUIREMENTS_GETDETAIL with an existing planned requirement. The planning data are return in parameter REQUIREMENTS_OUT. There you can see how the BAPI interprets planning data.
I assume that in planning a demand you only set the "from"-date and that the "to"-date is either taken from the next planning period or it is until ultimo.
To change the planning data you have to fill parameter REQUIREMENTS_SCHEDULE_IN (of BAPI_REQUIREMENTS_CHANGE). As you can see the underlying structure BAPISSHDIN has fields DATE_TYPE and REQ_DATE which should correspond to the "planning horizon" on the selection screen of MD61.
Hope I could give you at least some input.
Regards
Uwe
‎2006 Aug 20 7:24 AM
Hello Harikrishnan
I am not an expert on demand management yet I do understand BAPIs quite well.
In order to understand BAPI_REQUIREMENTS_CHANGE call BAPI BAPI_REQUIREMENTS_GETDETAIL with an existing planned requirement. The planning data are return in parameter REQUIREMENTS_OUT. There you can see how the BAPI interprets planning data.
I assume that in planning a demand you only set the "from"-date and that the "to"-date is either taken from the next planning period or it is until ultimo.
To change the planning data you have to fill parameter REQUIREMENTS_SCHEDULE_IN (of BAPI_REQUIREMENTS_CHANGE). As you can see the underlying structure BAPISSHDIN has fields DATE_TYPE and REQ_DATE which should correspond to the "planning horizon" on the selection screen of MD61.
Hope I could give you at least some input.
Regards
Uwe