BAPI to create network (T-code CJ21)

Hi all,
I was trying without success to implement the BAPI_NETWORK_MAINTAIN, to create a network. Is this the correct option, or is there a better one for this?
Best Regards,
Pedro

Use FM: BAPI_BUS2002_CREATE
And Read the Documentation FM carefully, below are the Few Imp lines which you have to keep in mind before using BAPI:
Internal number assignment of the network number
The network profile is the only required-entry field. The BAPI fails if an external network number is entered in the interface.
When the BAPI finishes successfully, the final network number has not been determined yet. Instead, the log of the return table ET_RETURN contains a temporary network number.

Similar Messages

  • BAPI to create network - CJ21

    Hi all,
    I was trying without success to implement the BAPI_NETWORK_MAINTAIN, to create a network. Is this the correct option, or is there a better one for this?
    Best Regards,
    Pedro

    Hi,
    You are using the corect option.
    Pls refer:
    SAP Project System - A ready Reference ( Part 2 )
    Regards,
    Amit

  • BAPI function create Customer master(T-code XD01)??

    Hi All,
    i want to create BDC program using BAPI function create Customer master(upload  customer master),but i do not know which BAPI function for create Customer master.
    Does anyone know,please tell me which BAPI function i can use?
    Thanks.
    Van Dung

    Hi Amit Gujargoud,
    I can use LSMW  upload the data from legacy system to sap system., but my manager he did not want to use LSMW.He wants to use BAPI function for upload customer master.
    I saw this BAPI function create customer master : BAPI_CUSTOMER_CREATEFROMDATA1,
    BAPI_CUSTOMER_CREATEFROMDATA,
    it is not enough field for input data.
    example : if i want input : customer code,company code, Sales organiration,Distribution channel,Division.
    So This BAPI function have not paramaters input this field.
    Thanks for your answer
    Van Dung.

  • BAPI to create variant configuration T-Code CU41

    Hi,
    I am looking for standard BAPI to create variant configuration T-Code CU41.
    Please let me know if anybody come across the same.
    Thanks,
    Bala Raja

    Hey,
    There are no full proof BAPIs delivered by SAP to create work orders.
    You might want to explore BAPI_ALM_ORDER_MAINTAIN but this BAPI has several limitations. Read the documentation of the BAPI for more information.
    The best option is to record IW36 and create the suborder using CALL TRANSACTION.
    -Kiran

  • BAPI to create an RFQ

    Hi everyone,
    Could anyone tell me if there is a BAPI for creating a Request For Quotation, please?
    I found several BAPIs that create a Quotation, such as BAPI_QUOTATION_CREATEFROMDATA, or BAPI_QUOTATION_CREATEFROMDATA2.
    If there are no BAPIs for RFQ, would it be possibile to use one of these 2, and modify the document in some way to get an RFQ? Has anyone tried something like this before?
    Thanks, and best regards
    Srdj

    Hi,
    You can use two BAPIs:
    BAPI_QUOTATION_CREATEFROMDATA
    BAPI_QUOTATION_CREATEFROMDATA2
    (1) BAPI_QUOTATION_CREATEFROMDATA ,this BAPI is released in 4.0A version .
    (2) BAPI_QUOTATION_CREATEFROMDATA2 this BAPI is released in latest version ,the kernal level patches provides more security when this BAPI is called from an external application across variuos networks.
    If ever using the BAPI internally with in sap or calling it from the application within the same network the only diff using the old BAPI wud be in the next future upgrades SAP wud not support the BAPI_QUOTATION_CREATEFROMDATA but the usage wise and functionality wise there is no diff.
    CODE
    Data: loc_bp type BAPIBUS1006_HEAD-BPARTNER.
    data: re_return like BAPIRET2 occurs 0.
    data: wa_return type BAPIRET2.
    data: re_order_header_in like BAPISDHD1.
    data: wa_BAPISDH1X type BAPISDH1X.
    data: order_partners like BAPIPARNR occurs 0 with header line.
    data: order_items_in like BAPISDITM occurs 0 with header line.
    data: order_items_sched LIKE bapischdl OCCURS 0 WITH HEADER LINE.
    data: g_vbeln like smovbak-vbeln,
    l_vbeln like smovbak-vbeln.
    move BUSINESSPARTNER to loc_bp.
    *delete line if middleware active.
    *loc_bp = '0030000309'.
    re_order_header_in-DOC_TYPE = 'TA'.
    re_order_header_in-SALES_ORG = 'NL01'.
    re_order_header_in-DISTR_CHAN = '02'.
    re_order_header_in-DIVISION = '01'.
    order_partners-partn_role = 'AG'.
    order_partners-partn_numb = loc_bp.
    append order_partners.
    order_partners-partn_role = 'WE'.
    order_partners-partn_numb = loc_bp.
    append order_partners.
    order_items_in-itm_number = '000010'.
    order_items_in-MATERIAL = MATERIAL.
    order_items_sched-itm_number = '00010'.
    order_items_sched-req_qty = '1'.
    append order_items_sched.
    append order_items_in.
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
    DESTINATION 'zorder'
    EXPORTING
    ORDER_HEADER_IN = re_order_header_in
    TESTRUN = ' '
    importing
    salesdocument = g_vbeln
    TABLES
    RETURN = re_return
    ORDER_ITEMS_IN = order_items_in
    ORDER_PARTNERS = order_partners
    order_schedules_in = order_items_sched.
    CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
    DESTINATION 'zorder'
    EXPORTING
    WAIT = 'X'
    IMPORTING
    RETURN = wa_return.
    Regards,
    Shiva Kumar

  • BAPI to create customer records (XD03)

    Hi
    I've seen some similar threads to this but I'm not sure the question is fully answered yet.
    Is there a single, or are there multiple BAPI's available that will fully create a customer master record, by which I mean all the company code data as well as te Sales area data?  I am aware of the BAPI_CUSTOMER_CREATEFROMDATA1, but this doesn't appear to meet the full requirement.  Also I'm slightly alarmed by the 'Only for ONLINE Store!!!' comment in the documentation.
    Previous posts on this forum and on others suggest that to fully create a customer record people have had to resort to writing their own BDC programs.  Is there anyone who can confirm that this is the case?
    Thanks for your help.
    Dominic

    Hi
    Thanks for the welcome and the advice.
    While researching this further I came across SAP note 390045 which is directing me away from using the BAPI route.  I realise now that I didn't mention in the original post that the idea we're investigating is having the data for the customer accounts created externally to SAP and then call a BAPI to create the account in SAP.
    I suspect we could achieve this but it's getting a bit messy so ALE might be the better option.
    Thanks,
    Dominic.

  • BAPI to create customer master record

    Hi ,
    I was looking for the BAPI to create the customer master record in R/3. we are using the ERP 2005 system .
    I did find the BAPI but it will only creat the personal information of the customer .
    I was looking for a BAPI that will create the whole record of customer including the company code . sales area record .
    Hope someone knows abt this.
    I have to use this in a sync interface with siebel system
    Thanks
    Nikhil

    Hi Michal ,
    I had a loojk at this BAPi but this will only populate the customer personal data. we will have to make a refe to a existing cust to extract the company code data and the sales area data
    Thanks
    Nikhil

  • BAPI to create Steel Surch Debit (From VA01 Transaction)

    Hi,
    I need a bapi to create steel surch debit,if we give order type zdr1 in va01 it will create a steel surch debit memo,I tried with BAPI
    1.BAPI_SALESDOCU_CREATEFROMDATA1
    2.BAPI_SALESDOCU_CREATEFROMDATA2
    3.BAPI_SALESDOCU_CREATEFROMDATA
    1st  and 2nd  bapi will not work for zdr1 order type (or document type L).
    3rd bapi i am using is generating error 'Enter sold to party' ,But i am not finding any field of kunnr or solod to party,Importing parameter it is there but nothing is work out

    Hi Thomas,
    The case which is missing for me is when I should update an account corresponding to an alternative chart of account (which is normally done via FSP0).
    I'm pretty sure that I could not call directly transaction FSP0 (as I did with FS00) according to documentation of rfbisa00. The response could be 'FSP0 not supported'.
    Do you think that we could deal with this issue also with RFBISA00 for Tx FSP0?
    Or is there another standard code for FSP0?
    Best Regards,
    Moez.

  • Bapi to create a condition record

    hi,
    is there any standard bapi for creating ,changing and deleting a pricing record using VK11,VK12.
    any other function module will solve the problem.

    Hi Ajith,
       You can use <b>IDOC approach</b> also for doing teh same solution. Yo get Create/Change/ Delete Option as per indicator passed:
    Refer Code below.
    *&      Form  map_idoc_structure
          Map E1KOMG, E1KONH, E1KONP segment fields
    FORM map_idoc_structure
                  USING fp_condition_table TYPE kotabnr
                        fp_rate            TYPE z_cs_cpp_rate
                        fp_condition_type  TYPE kschl
                        fp_rate_type       TYPE z_cs_file_type.
    *-- Local Data Declaration
      DATA: lw_e1komg TYPE e1komg, "Filter seg. with separated condition key
            lw_e1konh TYPE e1konh, "Data from condition header
            lw_e1konp TYPE e1konp, "Conditions Items
            lv_delete TYPE konp-loevm_ko. " Delete Indicator
    *-- IDoc data internal table
      DATA: i_idoc_data TYPE TABLE OF edidd
                        INITIAL SIZE 0
                        WITH HEADER LINE.
      CLEAR: lw_e1komg,
             lw_e1konh,
             lw_e1konp,
             lv_delete,
             v_segnum,
             w_e1komg,
             v_rate_type.
      REFRESH i_idoc_data.
      v_rate_type = fp_rate_type.
      PERFORM conversion_alpha_input
          USING w_crp_data-kunnr CHANGING w_crp_data-kunnr.
      PERFORM conversion_matn1_input
         USING w_crp_data-matnr CHANGING w_crp_data-matnr.
    E1KOMG: Filter segment with separated condition key
      i_idoc_data-segnam  = 'E1KOMG'.
      lw_e1komg-kvewe     =  c_usage_cond_tab.
      lw_e1komg-kotabnr   =  fp_condition_table.
      lw_e1komg-kappl     =  c_cond_type.
      lw_e1komg-kschl     =  fp_condition_type.
    CONCATENATE p_vkorg p_vtweg p_spart p_hienr p_matnr
      CONCATENATE w_crp_data-vkorg w_crp_data-vtweg
                  w_crp_data-kunnr w_crp_data-matnr
                  INTO lw_e1komg-vakey.
      lw_e1komg-vakey_long = lw_e1komg-vakey.
      lw_e1komg-vkorg      = w_crp_data-vkorg.
      lw_e1komg-vtweg      = w_crp_data-vtweg.
      lw_e1komg-spart      = w_crp_data-spart.
      lw_e1komg-kunnr      = w_crp_data-kunnr.
      lw_e1komg-matnr      = w_crp_data-matnr.
      i_idoc_data-sdata = lw_e1komg.
      APPEND i_idoc_data TO i_idoc_data.
    Segment E1KONH - condition header
      i_idoc_data-segnam  = 'E1KONH'.
      lw_e1konh-datab     = w_crp_data-datab.
      lw_e1konh-datbi     = w_crp_data-datbi.
      lw_e1konh-knuma_pi  = v_promotion.
      lw_e1konh-knuma_ag  = v_sales_deal.
      i_idoc_data-sdata = lw_e1konh.
      APPEND i_idoc_data TO i_idoc_data.
      IF fm_process_type EQ c_pt_dep.
        lv_delete = c_x.              " Deletion Indicator
      ENDIF.
    Segment E1KONP - condition items
      i_idoc_data-segnam = 'E1KONP'.
      lw_e1konp-kschl     = fp_condition_type.
      lw_e1konp-kbetr     = fp_rate.
      lw_e1konp-konwa     = w_crp_data-waers.
      lw_e1konp-kpein     = v_cond_pric.
      lw_e1konp-kmein     = v_cond_unit.
      lw_e1konp-knuma_pi  = v_promotion.
      lw_e1konp-knuma_ag  = v_sales_deal.
      lw_e1konp-loevm_ko  = lv_delete.
      i_idoc_data-sdata = lw_e1konp.
      APPEND i_idoc_data TO i_idoc_data.
    *-- Post Idoc for Creating Pricing Condition
      PERFORM post_idoc
             TABLES i_idoc_data.
    ENDFORM.                    " map_idoc_structure
    *&      Form  post_idoc TABLES i_idoc_data.
          Post Idoc for Creating Pricing Condition
    FORM post_idoc
              TABLES i_idoc_data STRUCTURE edidd.
    *-- Local data declaration
      DATA: lv_komg         LIKE komg,         " Condition Structures
            lv_subrc        LIKE sy-subrc,     " Sy-subrc
            lw_messages     TYPE rsuvm_msg,    " Message Description
            lw_idoc_status  TYPE bdidocstat.   " ALE IDoc status
      DATA: idoc_contrl                        " IDoc Control data
                LIKE edidc OCCURS 1 WITH HEADER LINE.
    *-- Initialize Internal Tables
      CLEAR:  t_konh,
              t_konp,
              t_konm,
              t_konw,
              i_idoc_status,
              t_kona.
      REFRESH: t_konh,
               t_konp,
               t_konm,
               t_konw,
               i_idoc_status,
               t_kona,
               i_messages.
    This code is taken from IDOC_INPUT_COND_A
      PERFORM fill_appl_structures(saplvkoi)
                      TABLES i_idoc_data
                             t_konh
                             t_konp
                             t_konm
                             t_konw
                             i_idoc_status
                             t_kona
                       USING lv_komg
                             lv_subrc
                             idoc_contrl-docnum
                             idoc_contrl-mestyp.
      IF lv_subrc = 0.
    This code is taken from IDOC_INPUT_COND_A
        PERFORM idoc_in_datenbank(saplvkoi)
                  TABLES idoc_contrl
                         t_konh
                         t_konp
                         t_konm
                         t_konw
                         i_idoc_status
                         t_kona
                  USING  lv_komg
                         lv_subrc
                         idoc_contrl-docnum.
        IF lv_subrc = 0.
          COMMIT WORK AND WAIT.
        Endif.
    Reward points if this Helps.
    Manish
    Message was edited by: Manish Kumar

  • ANy BAPI to create Purchase order

    Hi,gurus,
    Is there any BAPI to create PO.Pl send to me along with the sample code.
    Gratefull answeres will be awarded.
    Regards,
    Venkatesh
    9892 895847

    Hi
    Use the bapi: bapi_po_create1 for creating the purchase order.
    Pass the parameters like below:
    header-comp_code  = p_comp.
      header-doc_type   = p_dtype.
      header-creat_date = sy-datum.
      header-item_intvl = '10'.
      header-vendor     = p_lifnr.
      header-langu      = ws_langu   .
      header-pmnttrms   = p_pmnt.
      header-purch_org  = p_porg.
      header-pur_group  = p_pgroup.
      header-currency   = 'INR'.
      headerx-comp_code  = c_x.
      headerx-doc_type   = c_x.
      headerx-creat_date = c_x.
      headerx-item_intvl = c_x .
      headerx-vendor     = c_x.
      headerx-langu      = c_x.
      headerx-pmnttrms   = c_x   .
      headerx-purch_org  = c_x.
      headerx-pur_group  = c_x.
      LOOP AT it_final2 INTO wa_final2.
        p_int = p_int + 10.
        wa_item-po_item  = p_int.
        CALL FUNCTION 'CONVERSION_EXIT_MATN1_INPUT'
          EXPORTING
            input        = wa_final2-matnr
          IMPORTING
            output       = wa_final2-matnr
          EXCEPTIONS
            length_error = 1
            OTHERS       = 2.
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.
        wa_item-material = wa_final2-matnr.
        wa_item-plant    = p_werks.
        wa_item-quantity = wa_final2-kwmeng.
        wa_item-tax_code = 'V0'.
        APPEND wa_item TO it_item.
        wa_itemx-po_item    = p_int.
        wa_itemx-material   = c_x.
        wa_itemx-plant      = c_x .
        wa_itemx-stge_loc   = c_x .
        wa_itemx-quantity   = c_x .
        wa_itemx-tax_code   = c_x .
        wa_itemx-item_cat   = c_x .
        wa_itemx-acctasscat = c_x .
        wa_itemx-tax_code   = c_x .
        APPEND wa_itemx TO it_itemx.
      ENDLOOP.
      p_pono = ' '.
      CALL FUNCTION 'BAPI_PO_CREATE1'
        EXPORTING
          poheader         = header
          poheaderx        = headerx
        IMPORTING
          exppurchaseorder = p_pono
        TABLES
          return           = return
          poitem           = it_item
          poitemx          = it_itemx.
    For better understanding see the function module documentation of the bapi: bapi_po_create1.
    If it is helpful rewards points
    Regards
    Pratap.M

  • Need Standard BAPI To Create Opportunity in SAP Using Java Connector.

    Hi All,
         What is the standard BAPI to create an opportunity in SAP CRM through Java Connector.
    Please share code if available for doing same. I have found BAPI_OPPORTUNITY_CREATE_MULTI .
    How to create opportunity in SAP through java connector using BAPI_OPPORTUNITY_CREATE_MULTI .

    Hi,
    I think you can search for it or you can create a thread at ABAP section.

  • BAPI to create Billing DOC for deliveries

    Hi All,
    I am looking for a BAPI to create a billing document based on the Shipment number.
    I found Bapi_BILLINGDOC_CREATEMULTIPLE,  but not working as expected.
    If anyone has used above or another bapi, please inform.
    Thx-Praveen

    Hi Praveen,
        i'm using same bapi and i'm able to create the invoice for the del.doc.
    for your ref. , here i'm attaching the code , please go through once.
              LS_BAPIVBRK-REF_DOC = DELIVERY_NO.
               CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
                 EXPORTING
                   INPUT  = LS_BAPIVBRK-REF_DOC
                 IMPORTING
                   OUTPUT = LS_BAPIVBRK-REF_DOC.
               LS_BAPIVBRK-REF_DOC_CA = '8'.  Shipment
               APPEND LS_BAPIVBRK TO LT_BAPIVBRK.
               CALL FUNCTION 'BAPI_BILLINGDOC_CREATEMULTIPLE'
                 TABLES
                   BILLINGDATAIN = LT_BAPIVBRK
                   ERRORS        = LT_BAPIVBRKERRORS
                   RETURN        = LT_BAPIRET1
                   SUCCESS       = LT_BAPIVBRKSUCCESS.
    after this do commit.
    you might miss the document category .
    Regards,
    Krishna

  • Problem of BOM components uploading through BAPI,for  the Network(CN01)

    Hello,Friends,
    Iam PP consultant and facing a problem of BOM components uploading through BAPI,for creating of the Network (CN21)
    we have 300 components in the network activity and while uploading the BOM through BAPI , only 295 components has been uploaded.Others components has not uploaded.
    Please suggest me what will be the Problem? and
    What is the solution for the same?
    Regards,
    MYS

    in customizing availability checked has been applied ,for this reason one additional screen is appearing in BAPI for all these components
    How this screen could be by passed

  • How to create network activity

    how to create network activity using bapi_network_maintain bapi
    i am getting the error as incorrect object key for activity
    reagrds

    ok

  • FM /BAPI for applicant actions Tx code PB40 in sap hr

    Hello all..
       Could you pls let me know the FM/BAPI for applicant actions (Transaction Code PB40) in  SAP HR ABAP
    Thanks in advance..
    Cheers,
    sami.
    Moderator message: if it exists, you can find it yourself by doing some research.
    Edited by: Thomas Zloch on Mar 15, 2011 2:02 PM

    Hi,
    There are no BAPIs/RFCs to create Infotypes directly. You have to create a custom wrapper RFC around the std function module HR_INFOTYPE_OPERATION to meet your requirements. This function module enables you to maintain master data for employees and applicants. You can transfer one data record ie one infotype record per employee at a time. In your case it would be 3 function calls per each employee. All validation checks take place that would take place in the individual maintenance screens in the dialog. If necessary, the module returns an error message. The error messages are the same as the error messages in the dialog, that is, the individual maintenance screen error messages are transferred rather than interpreted by this module.
    Regards,
    Suresh Datti

Maybe you are looking for