Skip to Content
avatar image
Former Member

BAPI_NETWORK_COMP_ADD

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 16, 2010 at 06: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.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 17, 2010 at 02: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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      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?

  • avatar image
    Former Member
    Sep 17, 2010 at 06: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

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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?