Application Development 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: 

BAPI_NETWORK_COMP_ADD

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Seba,

Check the Domain TYPE_OF_PUR_RESV for values , If there are no value then check the value table at Domain.

Rs.

7 REPLIES 7

Former Member
0 Kudos

Seba,

Check the Domain TYPE_OF_PUR_RESV for values , If there are no value then check the value table at Domain.

Rs.

0 Kudos

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.

Former Member
0 Kudos

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

0 Kudos

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?

Former Member
0 Kudos

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

0 Kudos

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

0 Kudos

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?