2010 Sep 16 3:21 PM
Hello
I am working on a migration project and i have to recreate some old material components in a new project.
At the moment I am creating some material components using the BAPI_NETWORK_COMP_ADD and i have to provide the procurement type .
Since i am reproducing them,i have to create them with the same data as in the old structure and i am using BAPI_NETWORK_GETDETAIL to read information on the old material components.
My problem is that this bapi used for reading does not return the procurement field and i do not know what procurement value to provide to the bapi for creating material components.
Does anybody know where to find this procurement value stored? and how i can read it
Thank you
2010 Sep 16 7:37 PM
Seba,
Check the Domain TYPE_OF_PUR_RESV for values , If there are no value then check the value table at Domain.
Rs.
Hello
Yes,this is the problem,i did not find any field in any table or structure that would return this value.I tried to create the material components with type 2 but I had problems with the material components with material code.Then i tried with value 8 which also cause problems,now i do not know how to exactly take over the value from the old material component.
Does anybody have a list of all this values that can be assigned to this procurement type field and what each means?
2010 Sep 16 7:37 PM
Seba,
Check the Domain TYPE_OF_PUR_RESV for values , If there are no value then check the value table at Domain.
Rs.
2010 Sep 16 10:39 PM
This TYPE_OF_PUR_RESV field is only in the structure for adding components.In the bapi for reading components i do not have this field. I need to read that value somehow.
2010 Sep 17 3:17 AM
Hi,
It's really interesting. The field you are referring to has a unique data element and domain. They are not being used anywhere else. Also, Field is not getting validated again in this FM. What I would suggest is
If the networks earlier created were created using a BAPI in a program, you could use the field in this also.
Else, based on your requirement you have to choose the value. For ex, If thro' WBS use '08'.
Sujay
2010 Sep 17 7:17 AM
Hello
Yes,this is the problem,i did not find any field in any table or structure that would return this value.I tried to create the material components with type 2 but I had problems with the material components with material code.Then i tried with value 8 which also cause problems,now i do not know how to exactly take over the value from the old material component.
Does anybody have a list of all this values that can be assigned to this procurement type field and what each means?
2010 Sep 17 7:58 AM
Hi,
The domain TYPE_OF_PUR_RESV for the field data element has all th relevant values that this field could have.
Hope it helps.
Sujay
2010 Sep 17 8:11 AM
Hello
Thank you very much,i have found the possible entries.
What i have done,i have cleared this type_of_pur_resv field for each material component to be added.Apparently it works ok for all the stock/non-stock items and also for text material components.I think this has solved my problem
2010 Sep 21 10:03 AM
Hello
Apparently i cannot leave this field empty,since the new material components will be created with some other type of procurement and this is wrong because i cannot migrate the planned costs on them afterwards.
Does anybody have a clue on where to get this field from?
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |