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_PLANNEDORDER_CREATE Components are not getting updated after Planned order is created

siva_subramanian2
Participant
0 Likes
2,948

Hi Folks,

My requirement is to create planned order using BAPI_PLANNEDORDER_CREATE.I am able to do so as well.

My issue here is, with the help of material and plant provided in flat file i am fetching the components from STPO and passing it to

COMPONENTSDATA[].

But once the Planned order is getting created I am trying to view the same in MD13. I am able to view the planned order but the components are not getting displayed.When i clicked on components button in MD13 it is showing 'No Material components were determined'.If a material contains BOM i need to update the same in Planned Order while creating it.I am not sure whats wrong in this and why the components are not getting updated.

Any Clues!!!

Thanks

Siva

Hi Folks,

My requirement is to create planned order using BAPI_PLANNEDORDER_CREATE.I am able to do so as well.

My issue here is, with the help of material and plant provided in flat file i am fetching the components from STPO and passing it to

COMPONENTSDATA[].

But once the Planned order is getting created I am trying to view the same in MD13. I am able to view the planned order but the components are not getting displayed.When i clicked on components button in MD13 it is showing 'No Material components were determined'.If a material contains BOM i need to update the same in Planned Order while creating it.I am not sure whats wrong in this and why the components are not getting updated.

Any Clues!!!

Thanks

Siva

8 REPLIES 8
Read only

sivaprasad_paruchuri
Active Participant
0 Likes
2,265

Better to post UR program here for analysing..

Reagards,

Siva

Read only

former_member188827
Active Contributor
0 Likes
2,265

what are the values in internal table CREATEDCOMPONENTSDATA?

Regards

Read only

0 Likes
2,265

I am not passing any values to the table createdcomponentsdata.But i tried by passing in that too.Same problem persists.

Thanks

Siva

Read only

0 Likes
2,265

This should automatically be populated after bapi call? is it blank in your case? also do you get any message in return paramter?

Read only

0 Likes
2,265

You mean to say that for a material if BOM is maintained this will get updated automatically under the components in Planned order?

Dont we have to give the materials in components table of BAPI.?

In Return parameter i am getting the message 'No material components were determined' same as that which i am getting in MD13.

and the createdcomponentsdata[] is blank after the BAPI call.

Thanks

Siva

Read only

0 Likes
2,265

Have you tried creating Planned order through transaction code first and components are uploaded correctly with same data. There might be some issue with your data.

First create planned order using MD11 using same data which you are sending through file.

Read only

0 Likes
2,265

Hi

You are right.Issue is with my data.Actually the date provided in flat file is not a valid data.Means the start date is calculated using the finish date.In material it is maintained that for inhouse production it will take 21 days.So our finish date should be atleast after 21 days from today which will explode the BOM.If i gave todays date as finish date BOM is not exploding automatically.Now in BAPI it is not even required to give the components.Only header data is sufficient.I am closing the thread.

Thanks

Siva.

Read only

gurunathkumar_dadamu
Active Contributor
0 Likes
2,265

Hi Siva,

Go through the below link http://scn.sap.com/thread/932679.

Regards,

Gurunath