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

BAPI - bapi_requirements_change-PlannedIndepReqmt.Change

Former Member
0 Likes
983

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.

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
592

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

1 REPLY 1
Read only

uwe_schieferstein
Active Contributor
0 Likes
593

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