BAPI_NETWORK_COMP_ADD in 4.6c

Dear Experts,
I need to add component to network activity through BAPI. Unfortunately, my client uses 4.6c and it doesn't have BAPI_NETWORK_COMP_ADD. Does anyone know any other BAPI / function module in 4.6c to do this?
I have done my research but to no avail. Hopefully somebody has the answer.
Thanks in advance,
Sam

Hi Sam,
I don't think ther is another way or fm to do that.
But there must be a way to downgrade this BAPIs to 4.6C!
We have one 4.6C system with that BAPI, and there are some SAP notes (as 718843) with a 4.6C Correction Instruction (here: 614749) on the new Function Group CNIF-MAT.
You may contact SAP how to downgrade the BAPIs to 4.6c, but it is possible! They are running very fine there for years!
Regards,
Klaus

Similar Messages

  • Update terminate on commit Bapi_network_comp_add

    Hi experts
       I write a form to add comp to Network.If the networks are not released the form can add components for these network and once commit and wait. if the network is released the form can add components one network and once commit and wait, If do that for more than two network and one network by one commit and wait the update terminat will appear.I read the system log ,It told me insert duplicate.the form code is follow, Anybody can give me a solution to solve this issue.Thanks
    FORM FRM_TREAT_COMPANT TABLES PT_ITAB TYPE TY_T_ITAB  USING P_PSPID P_PLANT.
      DATA: WI_LINES TYPE I,
                  WS_LINES TYPE STRING,
                  WS_CURRLINE TYPE STRING,
                   WI_PERCENT TYPE I.
      DATA: WS_MSG TYPE STRING.
      DATA: WA_ITAB_WORK TYPE TY_ITAB,
                  WA_ITAB_MAT TYPE TY_ITAB.
      DATA WT_ITAB TYPE STANDARD TABLE OF TY_ITAB.
      DATA WT_MATNR TYPE STANDARD TABLE OF TY_ITAB.
      DATA W_ERROR TYPE C VALUE SPACE.
      DATA WT_MESSAGE TYPE STANDARD TABLE OF TY_MESSAGE.
      DATA W_EQUNR(24) TYPE C.
      DATA WA_MESSAGE TYPE TY_MESSAGE.
      CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
      LOOP AT PT_ITAB INTO WA_ITAB_WORK WHERE EQUNR NA '-F' AND AUFNR IS NOT INITIAL.
        APPEND WA_ITAB_WORK TO WT_ITAB.
      ENDLOOP.
      CHECK WT_ITAB[] IS NOT INITIAL.
      DESCRIBE TABLE WT_ITAB LINES WI_LINES.
      WS_LINES = WI_LINES.
      LOOP AT WT_ITAB INTO WA_ITAB_WORK.
        WS_CURRLINE = SY-TABIX.
        CONCATENATE '?y?úu2032|àíu03BCú' WS_CURRLINE 'ì?£?12' WS_LINES 'ì?' INTO WS_CURRLINE.
        WI_PERCENT = SY-TABIX * 100 / WI_LINES.
        PERFORM FRM_DISPLAY_PROCESS USING WI_PERCENT WS_CURRLINE .
    *--Begin Create Matnr
        REFRESH WT_MATNR.
        LOOP AT PT_ITAB INTO WA_ITAB_MAT
             WHERE ( PARENT EQ WA_ITAB_WORK-EQUNR
                   AND UPMAT EQ CNS_X
                   AND CSTYP NE 'A'  AND FLCOM NE CNS_X ) OR ( EQUNR EQ WA_ITAB_WORK-EQUNR AND UPMAT EQ CNS_X AND FLCOM NE CNS_X ).
          APPEND WA_ITAB_MAT TO WT_MATNR.
        ENDLOOP.
        CHECK WT_MATNR[] IS NOT INITIAL.
        PERFORM FRM_CREATE_MAT TABLES PT_ITAB
                                                             WT_MATNR
                                                             WT_MESSAGE
                                                USING P_PLANT
                                                           WA_ITAB_WORK.
      ENDLOOP.
      LOOP AT WT_MESSAGE INTO WA_MESSAGE WHERE TYPE CA 'EA'.
        W_ERROR = CNS_X.
        EXIT.
      ENDLOOP.
        PERFORM FRM_UPDATE_ZTPS014 TABLES PT_ITAB.
        MESSAGE I000 WITH '×é?té?1ò3é1|'.
      ENDIF.
    ENDFORM.                    "FRM_CREATE_COMPANT
    FORM FRM_CREATE_MAT TABLES PT_ITAB TYPE TY_T_ITAB
                                                             PT_MATNR TYPE TY_T_ITAB
                                                             PT_MESSAGE TYPE TY_T_MESSAGE
                                                USING P_PLANT
                                                            P_ITAB TYPE TY_ITAB.
      DATA:
                  WA_ITAB_TMP TYPE TY_ITAB,
                  WA_ITAB_MAT TYPE TY_ITAB,
                  WA_MESSAGE TYPE TY_MESSAGE.
      DATA WT_COMPONENTS_ADD TYPE STANDARD TABLE OF BAPI_NETWORK_COMP_ADD WITH HEADER LINE.
      DATA WT_MESSAGE_TABLE TYPE STANDARD TABLE OF BAPI_METH_MESSAGE WITH HEADER LINE.
      DATA W_RETURN LIKE BAPIRET2.
      REFRESH WT_COMPONENTS_ADD.
      LOOP AT PT_MATNR INTO WA_ITAB_MAT .
        WT_COMPONENTS_ADD-ACTIVITY = '0010'.                                                             " ???ˉ
        PERFORM FRM_CONV_VALUE USING WA_ITAB_MAT-MATNR CHANGING WT_COMPONENTS_ADD-MATERIAL.
        WT_COMPONENTS_ADD-PLANT = P_PLANT.
        WT_COMPONENTS_ADD-ITEM_CAT = CNS_ITEMCAT.                                                           " ????àà±e
        WT_COMPONENTS_ADD-ENTRY_QUANTITY = WA_ITAB_MAT-BDMNG.                                            " êyá?
        WT_COMPONENTS_ADD-PUR_GROUP = WA_ITAB_MAT-EKGRP.
        WT_COMPONENTS_ADD-PURCH_ORG = WA_ITAB_MAT-EKORG.
        WT_COMPONENTS_ADD-PRICE = WA_ITAB_MAT-PRICE.
        WT_COMPONENTS_ADD-MRP_RELEVANT = '2'.                                                                      " 2é1oéê??éú3é·?ê?                   1 u2032ó2?     2??u2032?oó       3á¢?u2032
        WT_COMPONENTS_ADD-TYPE_OF_PUR_RESV = '5'.                                                               " 2é1oDè?ó + WBS ?a??u03BC?±£á?
        WT_COMPONENTS_ADD-TRACKINGNO = WA_ITAB_MAT-XQGZH.                                                                            " Dè?ó?ú×ùo?
        APPEND WT_COMPONENTS_ADD.
      ENDLOOP.
      CHECK WT_COMPONENTS_ADD[] IS NOT INITIAL.
      CALL FUNCTION 'BAPI_NETWORK_COMP_ADD'
        EXPORTING
          NUMBER           = P_ITAB-AUFNR
        IMPORTING
          RETURN           = W_RETURN
        TABLES
          I_COMPONENTS_ADD = WT_COMPONENTS_ADD
          E_MESSAGE_TABLE  = WT_MESSAGE_TABLE.
    *--Du2032è??????t
      LOOP AT WT_MESSAGE_TABLE.
        MOVE P_ITAB-EQUNR TO WA_MESSAGE-EQUNR.
        MOVE WT_MESSAGE_TABLE-MESSAGE_TYPE TO WA_MESSAGE-TYPE.
        MOVE WT_MESSAGE_TABLE-MESSAGE_TEXT TO WA_MESSAGE-MESSAGE.
        APPEND WA_MESSAGE TO PT_MESSAGE.
        CLEAR WA_MESSAGE.
      ENDLOOP.
    ENDFORM.                    "FRM_CREATE_MAT
    FORM FRM_UPDATE_ZTPS014 TABLES PT_ITAB TYPE TY_T_ITAB.
      MODIFY ZTPS_014 FROM TABLE PT_ITAB.
      COMMIT WORK AND WAIT.
    ENDFORM.

    Hi Amit,
    ME_UPDATE_REQUISITION is giving the dump as it is tryingto  insert a PR that is already there in EBAN..
    But i dont know why this is happening as a COMMIT WORK is also there after the first execution
    of BAPI_NETWRK_COMP_ADD that too with a WAIT statement
    It should insert a new PR .It should not take the previous one.
    The problem is coming only if the activity is released...if the activity is not released everything is fine
    Regards,
    Nishant Rana

  • Field in BAPI_NETWORK_COMP_ADD

    Hi Gurus,
    I'm using BAPI_NETWORK_COMP_ADD to add components and create a purchase requisition. From standard tcode CN22, when I'm adding the components, there is a field called the Procurement Indicator (RESBD-MFLIC). I am unable to find or map to this field with this BAPI.

    Hi Gurus,
    I'm using BAPI_NETWORK_COMP_ADD to add components and create a purchase requisition. From standard tcode CN22, when I'm adding the components, there is a field called the Procurement Indicator (RESBD-MFLIC). I am unable to find or map to this field with this BAPI.

  • BAPI_NETWORK_COMP_ADD problem in quanity update

    Hi,
    I am using this BAPI - BAPI_NETWORK_COMP_ADD
    to add material and quantity to network  (Similar to t-code CN22).
    This program is sheduled to execute at night
    Everything works fine but sometime when no of materials are more (above 20) it
    does not update the quantity (Material no is perfectly updated in all the cases).
    However it is not always sometime it update sometime not, I checked with the data
    but the data get populated perfectly infect for same set of data it did not updated at night
    I execute in morning to debug and identify the problem it get updated perfectly.
    Any suggestion will be helpful.
    Regards
    Bikas

    Hey its weird but I have experiance the same once. Reason might be something to do with connectivity or server down instances for fraction of nano seconds..
    Raghav

  • Bapi BAPI_NETWORK_COMP_ADD

    Hi,
    I am using bapi BAPI_NETWORK_COMP_ADD to post(Confirm) the network activity data. For the multiple records the very first record is being posted by the bapi and for the rest records error message is being shown as  ' Order (network no.) is already being processed by USERNAME'.
    To rectify the error  'wait up to sec seconds' in CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' is being used.
    After this the result is getting absolutely fine.
    but i dont want to use the WAIT statement as the data volume is large.
    Kindly reply for the same.
    I have already tried with the bapi  CALL FUNCTION 'BAPI_PS_INITIALIZATION'  and CO_ZF_DATA_RESET_COMPLETE  writng in begining, But diidnt get the expected result.
    Thanks in advance.

    Hi Prasanjeet,
    Thanks for your prompt response.
    In the starting phase of the developemenmt i was not using 'wait up to sec seconds'. I was calling 'BAPI_NETWORK_COMP_ADD' and after this  'BAPI_TRANSACTION_COMMIT'(In this commit bapi i was not passing any parameter). Everything was fine but the result i was getting was the error message from  the second record onwards.
    For the first record bapi is posting data successfully, but for the second record onwards it was showing error message
    '' Order (network no.value) is already being processed by USERNAME'.
    To rectify this error i am using 'wait up to sec seconds'  afted calling bapi BAPI_TRANSACTION_COMMIT. Now the result is what i
    wanted. But the SEC value is 1 sec. As my data volume is huge, i am bound to use some other alternative.
    Kindly reply for the same with your valuable suggesion.
    Thanks.

  • BAPI_NETWORK_COMP_ADD: add a material with purchase type

    Hi folks,
    Please, how can I add a material for a network activity with Purchase Type = "Purchase requisition for network"?
    When I add a material only Purchase Type = "Reservation for network" is possible. On solution can be fill out the fields Account Assignment Category and Consumption Posting, but I don't know what fields in the table BAPI_NETWORK_COMP_ADD (I_COMPONENTS_ADD) I must to use.
    Thanks for any help.

    Hi,
    Once the activity is released the customer requirement is to add the components in the same activity at regular intervals.I can not help it.
    But some way has to be there
    Regards,
    Nishant

  • Parameter Effectivity and BAPI_NETWORK_COMP_ADD

    Any suggestions on how to set/pass parameter effectivity data when adding a component using BAPI_NETWORK_COMP_ADD?

    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

  • Material Component to Network - BAPI_NETWORK_COMP_ADD

    hi,
    has anyone come across this SAP problem?
    I use BAPI_NETWORK_COMP_ADD to add a material to a Network.
    It adds fine, and shows up in CJ20N.
    However, if you go to the Plan/Actual Cost (CN41), there is no cost associated.
    Okay. I used BAPI_NETWORK_COMP_CHANGE and it finally added the Cost to the Material Component.
    HOWEVER, it doesn't have the Cost on Network/WBS element level.
    Therefore, the plan/actual Cost for Project Definition is wrong.
    Can anyone help?
    If you add a material component manually in CJ20N and then change quantity, it works fine.
    The thing is, CJ20N uses so many memory objects, it's hard to copy what it does. 
    Thank you
    Bill

    Hi,
    after the transfer,
    go to CJ20N and check the network control parameter, where the cost calculation parametrs are maintained.
    1- cost to be calculated
    2- cost to be calculated aftr release
    3-donn plan cost
    select the correct one
    again check the costing variant and check the material valuation
    rgds
    ashis

  • 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

    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

  • BAPI_NETWORK_COMP_ADD error

    Hi
    I am assigning a variable size material component with item category R to a network activity using BAPI_NETWORK_COMP_ADD.
    However, the BAPI is calculating incorrect variable size item Qty (ROMEN) even though the correct formula key, units and sizes are paased. The material master conversion factor is also maintained correctly for the material component.
    Any possible suggestions or applicable notes for correcting the error is welcome.
    Regards
    Srikrishna.
    Edited by: Srikrishna D on Jul 27, 2009 1:51 PM

    Hi ,
    Check this.
    DE ROMEN
    Short Text
    Quantity of variable-size item
    Definition
    Quantity of variable-size item, which the system calculates from the sizes entered. If you wish you can enter a variable-size item formula for the. calculation.
    The quantity of the variable-size item shown is per piece (PC)
    Procedure
    If you change a field that affects the calculation of the variable-size item quantity (for example, size or formula), the system only recalculates the quantity if you delete the existing quantity first.
    To do this, delete the contents of the Qty Var-sz item field.
    Examples
    Size 1:      200
    Size 2:      300
    Size unit of measure:      MM
    Variable size item unit: SQM
    Calculation of variable-size item quantity:
    A = Size 1  *  Size 2
    A = 200 MM  *  300 MM
    A = 0,06 SQM
    --> The variable-size item quantity for each piece is: 0.06 SQM
    Dependencies
    The value calculated is required in MRP, in order to calculate the total quantity of the raw material requirement for the component.
    If 10 pieces are required for the component, the variable-size item quantity is: 10 * 0.06 SQM = 0.6 SQM.

  • Adding Material Components in PS through BAPI_NETWORK_COMP_ADD

    Dear Experts,
    I am trying to create material components in a project through BAPI_NETWORK_COMP_ADD but it doesn't work. It gives the following error message: "Network operation 0010 does not exist". However it does create the network and its operation.
    Can anyone help me?
    Thank you,
    Claudinei Melo.

    Hi,
    Please add your Network and operation using BAPI_PROJECT_MAINTAIN and then try BAPI_NETWORK_COMP_ADD to add Material component.
    Regards,

  • Error in BAPI BAPI_NETWORK_COMP_ADD

    Hi all,
    I'm trying to use the BAPI BAPI_NETWORK_COMP_ADD to create material components, soon after to create the network and activities.
    I am filling the NUMBER with the value of temporary network created by bapi BAPI_BUS2002_CREATE.
    When I run the bapi BAPI BAPI_NETWORK_COMP_ADD, I get  the message 00 058 saying that this network does not exist in table AUFK.
    Someone had this problem and know what is the solution?
    Thank's very much,

    Hi,
    If you solve your problem, please let me know.
    Here we have the same problem, we did like the expert said, executing the bapi after the commit but when we tried to execute the BAPI BAPI_NETWORK_COMP_ADD, is showing error Activity not exist...
    Thanks
    RP

  • BAPI_NETWORK_COMP_ADD     Component assignment not intended for sales order

    Dear,
    I have problem when I use the function:
      CALL FUNCTION 'BAPI_NETWORK_COMP_ADD'
        EXPORTING
          number           = number
        IMPORTING
          return           = return
        TABLES
          i_components_add = i_components_add
          e_message_table  = e_message_table.
    I have inserted only these values  in the structure i_components_add:
    ACTIVITY_TYPE_PUR_RESV__ITEM_NR____MATERIAL_________PLANT___ENTRY_QTY___ITEM_CAT
    108--8101TAH052000110025.460--
    L
    108--8204RAVBLA098SL0111002.000--
    L
    108--83034R000000011004.160--
    L
    but the result is wrong
    e_message_table:
    METHOD--C--
    32                                                                               
    OBJECT_TYPE--C--
    32                                                                               
    INTERNAL_OBJECT_ID---C--
    90                                                                               
    EXTERNAL_OBJECT_ID--C90-----0108 0010 1TAH052000 1100
    MESSAGE_ID--C20-----CNIF_MAT
    MESSAGE_NUMBER--C3--
    1
    MESSAGE_TYPE--C1--
    E
    MESSAGE_TEXT--C72--
    Component assignment not intended for sales order or project stock
    Very kind for one answer of yours to this problem...
    Thanks & Regards,
    Marco Echino.
    Edited by: Marco Echino on Sep 8, 2011 12:16 PM

    Hi Marco,
    I believe this is a Functional Issue rather than a Technical one. If you could speak to the Functional Concultant or pass this data via manual transaction, you will get the error details.
    It's just that the data passed to the BAPI is either incorrect or incomplete. You can also refer the Function Module Documentation for tips.
    Regards,
    Pranav.

  • Bapi to add componentes in Project

    Hello All,
    I have to add compoments in project can anyone suggest me BAPI for that ?
    Edited by: yogesh Kothavade on Apr 8, 2009 12:02 PM

    Hi,
    Check this BAPI 'BAPI_NETWORK_COMP_ADD '
    Regards,
    Jyothi CH.

  • PS module: Add values to the  characteristic of Network component.

    Hi Experts,
         We have a requirment where we need to first add components to the network activity and then update characteristics of each added components.
           We are using BAPI_NETWORK_COMP_ADD function module to add components to the network activity. But we need logic / FM/BAPI to update its characteristics.
    Thanks in advance.
    Regards,
    Shweta

    Key words:
    Build Array function
    shift registers
    I would recommend looking at the online LabVIEW tutorials
    LabVIEW Introduction Course - Three Hours
    LabVIEW Introduction Course - Six Hours

Maybe you are looking for

  • Displaying data in a tree from database table

    Hi, I want to display data from a database table (mara-matnr) in a tree structure. I went through the coding of SBSPEXT_HTMLB. There static data was taken in to wa_tab. But there I want to bring data from a database table into wa_tab. For this I crea

  • Customer statement smartform

    Can you  please let me the smartform name for customer statement. Thanks, Pedda

  • How do I delete pages based on logical page number?

    I have a large combined PDF document and am using logical page numbers. I only want to see the first page of each document in the combined file. How do I delete all of the page 2, 3... at once rather than deleting them from the thumbnail section or g

  • Do not retire a specific depreciation area

    Hello All, I have a requirement not to post any retirement on a specific depreciation area. I know that we can limit transaction on specific depreciation areas. But I wonder if there is some configuration other thatn limiting transaction type to post

  • Update hangs - 10g 10.2.0.2.0

    Hi, I have a simple script that updates a BLOB column for all rows in a table, and commits at the end. The table has over one million rows. The script has been hanging for more than one day. I've checked session long ops, and it shows the update fini