2013 Jun 07 10:31 AM
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
2013 Jun 07 10:35 AM
2013 Jun 07 10:39 AM
what are the values in internal table CREATEDCOMPONENTSDATA?
Regards
2013 Jun 07 10:46 AM
I am not passing any values to the table createdcomponentsdata.But i tried by passing in that too.Same problem persists.
Thanks
Siva
2013 Jun 07 10:47 AM
This should automatically be populated after bapi call? is it blank in your case? also do you get any message in return paramter?
2013 Jun 07 10:52 AM
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
2013 Jun 07 11:19 AM
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.
2013 Jun 07 11:50 AM
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.
2013 Jun 07 10:58 AM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |