Hi BAPI & MM experts

hi
when i m creating po using bapi_po_create1 ,i am giving item category as 'B' in input, but when the BAPI is saved  it is getting saved as 'D' in ekpo table.
i am facing this problem in  version 5.0,
but when i am doing the same in ecc 6.0, i am getting the correct output.
plz suggest me any solution,
urgent,.,

Hi,
I think it is one and the same. You can check in Table T163. For ex., in table level the normal position type in transaction is blank ( EPSTP ) whereas in table it is stored as 0 (PSTYP)
Hope the helps you.
Best Regards, Murugesh AS

Similar Messages

  • Hi experts using bapi what we do on abap.

    hi experts using bapi what we do on abap how it is whats the use , normally how we work on bapis in realtime.

    Hi Sri,
    1.BAPI is nothing but the RFC enabled function module.
    2.You can use BAPI to collect the data from database as well
       as insert & update the database.
       E.g. BAPI_BUPA_ADDRESS_GETDETAIL for collecting info regarding Business partner.
             BAPI_BUPA_CENTRAL_CHANGE to modify the database against business partner
             BAPI_BUPA_ADDRESS_ADD to insert the data.
    3. You can also use BAPI as RFC Funcrion module.
    Please reward points if finds useful.
    Regard,
    Swarup
    Edited by: swarup basagare on May 30, 2008 10:37 AM

  • I Experts, I would like to update the field BANPR with 08 with a BAPI

    Hi experts,
    I would like to Update the field EBAN-BANPR with 08 (Release Refused). Is there any BAPI through which i can update this field and also it should raise the satandard events : REJECTED / REJECTION_STOP. I did check the BAPI : BAPI_PR_CHANGE, but this will not update that field.Please let me know if you have anything. Please help me.
    Appreciate your help in this regards.
    Many Thanks,
    Prasad NN:

    I think you'll get a much better deal at the Apple online certified refurbished store. An ipad 2 64gb with cellular is there right now and costs $499.00 vs a new ipad 2 16gb with cellular which is $529.00. They also sell a 32 gb with cellular for $399.00 but only the 64gb is available now. With a refurb from anywhere else, you will not get what you will from the Apple refurb store.
    Each Apple refurbished ipad (any version) comes with a new front and back cover, a brand new battery and a full one year warranty with 90 days of phone support. Each comes in a white box like a new ipad with the wall charger and usb cable. The only difference is that it says in small print on the bottom of the box that it is Apple certified refurbished. Also, if you buy refurb, be sure to check the store many times a day. They can come and go quickly, so when you see what you want, buy it right away. Shipping is free and pretty fast. (We bought two a year and a half ago and they have been great!)
    This way you'll have cellular, all the room you need and then some and you'll save $30.00.
    Let us know what you do and enjoy your new ipad!
    Hope this helps.

  • Hi experts, Upload purchase order using BAPI

    hi
    Could you please help me how to do PURCHASE ORDER CREATION using BAPI.
                         Thank you.

    Satyendra,
    The forum that you have posted your question in is for questions related to the SAP Business One Integration for SAP NetWeaver.  Your question is or seems to be related to R/3 and should be posted in that forum.
    Eddy

  • Hi Experts..i have a problem regarding BAPI at the time of creating the structure.

    When i create the structure for particular field it will display the message "Field name VBELN does not agree with proposed name SD_DOC for BAPI table".
    Kindly help me.
    Regards,
    Abhishek K.

    Hello Raymond,
    I had problem of creating structure for BAPI Now it is Solved .
    And Yes i have created RFC Function Module.
    But i get some problem during Activation.
    Could you help me on this?
    Code:->
    FUNCTION ZBAPI_DEMO_SD.
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(FM_VBELN) TYPE  VBAP-VBELN
    *"  EXPORTING
    *"     VALUE(RETURN) TYPE  BAPIRETURN
    *"  TABLES
    *"      ZITEMDATA STRUCTURE ZBAPI_TABLE OPTIONAL
      SELECT POSNR
             MATNR
             MATKL
             PSTYV
             MEINS FROM VBAP INTO TABLE ZITEMDATA
        WHERE VBELN = FM_VBELN.
    ENDFUNCTION.
    Error: ->"Report/Program statement Missing or Program type is I (Include)".
    Regards,
    Abhishek K.

  • Hi experts i need bapi related to promotion

    i need a bapi to upload promotion and change promotion please help

    Hi,
    Please go throgh the BAPI below:-
    BAPI_PROMO_CHANGE    -->  You use this method to change the detailed data of a promotion.
    BAPI_PROMO_CREATE     --> Create from Data
    Regards
    Sandipan

  • Hi experts reg BAPI

    HI
    while posting new BAPI for creating BAPI_PO_CREATE1,
    is is saying that, my 1...PURCHASE ORDER STILL CONTAIN faulty items,
    2.....please maintain services or limits...
    i am new to BAPI. PLZ SUGGEST ME SUITABLE SOLUTION

    Check OSS notes 373989 BAPI_PO_CREATE1: Service item -> SE029
    and Note 634395 - FAQ: Purchase orders in the service
    rgds,
    raj

  • URGENT: Function modules or BAPIs

    Hi Experts,
    I need function modules or BAPI to get the open items and cleared items G/L Account wise.
    Useful replies will be surely awarded.

    Hi Chakradhar,
    Check tcode : BAPI
    u will get all bapis there.
    Regards,
    Hemant

  • How to change pricing Conditions in Sales order in change sales order bapi

    Hi Experts,
    How to change pricing Conditions in Sales order in change sales order bapi.
    I have used the 2 function modules bapi-changesalesorder and sd salesdocument change, But it is creating the new record , instead of changing the existing one, Could please assist regarding the same
    Thanks in Advance .
    NLN

    HI NLN
      I have just tried on my system and managed to overwrite the existing price by passing the following parameters.
      <b>Import Paramters:</b>
         SALESDOCUMENT - Sales Document Number
         ORDER_HEADER_INX - UPDATEFLAG as <b>'U'</b>.
         LOGIC_SWITCH - Import Structure - Pass 'X' to LOGIC_SWITCH-COND_HANDL.
      <b>Tables:</b>
         CONDITIONS_IN - ITM_NUMBER,
                         COND_COUNT, -> Condition counter same as KONV-ZAEHK generally it is <b>'01'</b>
                         COND_TYPE,
                         COND_VALUE,
                         CURRENCY.
         CONDITIONS_INX - ITM_NUMBER,
                          COND_COUNT,
                          COND_TYPE,
                          UPDATEFLAG as <b>'U'</b>,
                          CURRENCY.
       Hope i have clarified your query.
    Kind Regards
    Eswar

  • How to populate a custom field of a Std. SAP Tx with BAPI usage 2 Load data

    Hi Experts,
    For instance, I created a custom field (say, custom_field_1) on a screen of standard SAP tx(say, ME21N) by using screen exit. And in order to populate the data into it (custom_field_1), will use the Function user exits of this Tx(ME23N).
    1) In next step, Where Where I have to add this field, apart from appending the same custom field in EKKO/EKPO table or any other related table; Extending the corresponding IDOC or creating a new Custom ÍDOC type? like What about BAPI?
    2) If I got a text file with the data (including the data for this custom_field_1 too) and I have been asked to load it into SAP, then, I decided to use BAPI (say, BAPI_PO_CREATE or CREATE1) to create the data, So, How to handle this custom field, I mean, In which BAPI structure I have to pass this custom_field_1 data? ( Iguess, for some BAPIs EXTENSIONIN structures are provided, sorry if am wrong!)
    Thank you.
    Edited by: SAP ABAPer on Feb 21, 2009 7:40 PM

    for example if you added field in the  VBAP table  then you can pass the custome field values like below
         move 'BAPE_VBAP' to lwa_extension-structure.
          lwa_bape_vbap-vbeln = lwa_final-vbeln.
          lwa_bape_vbap-posnr = lv_posnr.
          move lwa_final-yyslotid to  lwa_bape_vbap-new custome field.
          move lwa_bape_vbap to lwa_extension-valuepart1.
          append  lwa_extension to  lt_extension.
          clear  lwa_extension.
          move 'BAPE_VBAPX' to lwa_extension-structure.
          lwa_bape_vbapx-vbeln = lwa_final-vbeln.
          lwa_bape_vbapx-posnr = lv_posnr.
          move 'X' to lwa_bape_vbapx--new custome field.
          move lwa_bape_vbapx to lwa_extension-valuepart1.
          append  lwa_extension to  lt_extension.
          clear  lwa_extension.
    call function 'BAPI_SALESORDER_CHANGE'
            exporting
              salesdocument    = strcture
              order_header_inx = strcture
            tables
              order_item_in    =strcture
              order_item_inx   = strcture
              schedule_lines   = strcture
              schedule_linesx  = strcture
              extensionin      = lt_extension.

  • Which BAPI meets my req. for creation of Pur Order - PO??

    Hi Experts,
    User enters a Sales Order on the selection screen, say Order_1.
    So, my requirement is to create the Purchase Order - PO, by pulling the data of Order_1.
    1 - I need to focus the to populate the Order Customer # into PO's HEADER TEXT
    2 - After pulling the Order line items, I need to do small manipulation to them & then, I need to create them as line items of creating PO.
    So, pls. let me know that, Which BAPI is good/correct for me to create a PO.
    I did F4 in SE37 for PO , but found amny!!
    thanq

    Hi,
    You can take help of this code.
    DATA : po_header LIKE bapiekkoc,
           po_items LIKE bapiekpoc OCCURS 0 WITH HEADER LINE,
           po_item_schedules like bapieket occurs 0 with header line,
           wa_po_add_header TYPE bapiekkoa,
           return LIKE bapireturn OCCURS 0 WITH HEADER LINE,
           pno like bapiekko-po_number.
    *POPULATE ITEM DATA.
    CLEAR po_items.
    REFRESH po_items.
    po_items-po_item = '00010'.
    po_items-material = '0000000000000G0001'.
    po_items-pur_mat = 'G0001'.
    po_items-short_text = 'PO created by HIRAL'.
    po_items-net_price = '10'.
    po_items-plant = '0001'.
    *po_items-ACCTASSCAT = ' '.
    po_items-unit = 'EA'.
    APPEND po_items.
    *POPULATE SCHEDULES DATA
    clear po_item_schedules.
    refresh po_item_schedules.
    po_item_schedules-po_item = '00010'.
    po_item_schedules-deliv_date = sy-datum.
    po_item_schedules-quantity = '100'.
    append po_item_schedules.
    *POPULATE HEADER DATA
    po_header-DOC_DATE = SY-DATUM .
    po_header-purch_org = '0001' .
    po_header-pur_group = '001' .
    po_header-vendor = 'ABCD' .
    po_header-doc_type = 'NB'.
    po_header-co_code = '0001'.
    po_header-doc_cat = 'F'.
    po_header-created_by = sy-uname.
    po_header-langu = 'E'.
    po_header-langu_iso = 'EN'.
    CALL FUNCTION 'BAPI_PO_CREATE'
      EXPORTING
        po_header                        = po_header
        PO_HEADER_ADD_DATA               = wa_po_add_header
    *   HEADER_ADD_DATA_RELEVANT         = '1'
    *   PO_ADDRESS                       =
    *   SKIP_ITEMS_WITH_ERROR            = 'X'
    *   ITEM_ADD_DATA_RELEVANT           = '1'
    *   HEADER_TECH_FIELDS               =
    IMPORTING
       PURCHASEORDER                     = pno
       tables
        po_items                         = po_items
    *   PO_ITEM_ADD_DATA                 =
        po_item_schedules                = po_item_schedules
    *    PO_ITEM_ACCOUNT_ASSIGNMENT       =
    *   PO_ITEM_TEXT                     =
       RETURN                            = return
    *   PO_LIMITS                        =
    *   PO_CONTRACT_LIMITS               =                                                                                "
    *   PO_SERVICES                      =                                                                                !                               !
    *   PO_SRV_ACCASS_VALUES             =
    *   PO_SERVICES_TEXT                 =
    *   PO_BUSINESS_PARTNER              =
    *   EXTENSIONIN                      =
    *   POADDRDELIVERY                   =
    LOOP AT return.
        WRITE:/ pno, return-message.
    ENDLOOP.
    Hope this helps to solve your problem.
    Plz reward if useful.
    Thanks,
    Dhanashri.

  • Service order creation using bapi with repair order number

    Hi experts,
    Pls suggest me a BAPI to create a service order for those repair orders where a PGR has been done(for return delivery type : LR).
    The plant should be 0260 with storage location wh01 and item category ZRRE
    Creation of a service order with repair order type SM03 is not allowed in iw31.
    thanks and regards,
    Vijayb.

    Hi prakash,
    Thank u for the BAPI
    But an error is being displayed saying that the REFURBISHMENT ORDERS CANNOT BE PROCESSED USING BAPI.
    ERROR DURING PROCESSING OF BAPI METHODS.
    This is while u pass the order type as either ZM03 or SM01or SM02 or SM03.
    pls help me on that.
    thanks and regards,
    Vijayb.

  • What is the diffrence between BAPI and RFC and business object

    Hi Experts,
    Can anybody tel me what is the diffrence between RFC and BAPI , and also what is ther relation with business object?
    Thanx in advance.
    Nilesh Hiwale

    Hi,
    BAPI's are associated with Business Objects and also they are RFC enabled.
    But RFC's are the FM's which can be called from external systems, those FM's can be used in many places based on the applications..
    Check these Links
    whats the difference between BAPI and RFC??
    Diff. Between BAPI and RFC
    Regards
    Kiran

  • Fields not getting updated in the database through BAPI enhancement

    Hi Experts,
    I have added 4 custom fields in the transaction FB60. The fields are getting displayed in vendor line item.
    I have to fill these fields from an inbound idoc which uses the BAPI_ACC_DOCUMENT_POST bapi. I have implemented the BADI BADI_ACC_DOCUMENT to pass my custom fields to the bapi and it is processing correctly by adding the custom field values to the extension table that is getting passed to the standard program of the BAPI from the BADI.
    But I think, I have missed to append my fields in one of the standard structures. I have added the fields in BSEG, CI_COBL( which is getting called in BAPICOBL_CI, ACCIT).
    Can anybody tell me which other standard structure I should add my custom fields so that it functions properly and gets added to the BSEG table.
    Regards,
    Sangeeta.

    Solved on own.

  • BAPI Table Input not passing to R/3 Backend

    Hello Experts,
    I am having trouble populating a Table input in my Web Dynpro Java application.  I have tried researching this issue on SDN and have attemped many of the solutions with no luck.  Here is my code:
              Bapi_Order_Input NewOrder = new Bapi_Order_Input();
              wdContext.nodeBapi_Order_Input().bind(NewOrder);
              Bapisdhd1 OrderHead = new Bapisdhd1(); - <i>(This is part of the Input Paramter, values are successfully passed)</i>
              OrderHead.setDoc_Type("ZOR");
              OrderHead.setSales_Org("2000");
              OrderHead.setDistr_Chan("40");
              NewOrder.setOrder_Header_In(OrderHead);                    
              Bapiparnr Partner = new Bapiparnr(); - <i>(This is a table parameter, values are not being passed to the backend)</i>
              Partner.setPartn_Role("SP");
              Partner.setPartn_Numb("20010");
              Partner.setItm_Number("000000");     
              NewOrder.addOrder_Partners(Partner);
              wdContext.currentBapi_Salesorder_Createfromdat2_InputElement().modelObject().execute();
    I cannot use "NewOrder.setOrder_Partners(Partner)" because Order_Partners is an AbstactList.  I have attempted to create this abstract list below but it will not syntactically check:  
    AbstractList PartnerList = new Bapiparnr.Bapiparnr_List();
    If I test these same input values above in R/3, the BAPI executes fine.  When I test the BAPI from WD, I get the return message " Please enter a Sold-To or ShipTo Party".  I can replicate this same message in R/3 if I do not populate the Partner table.
    I am also able to see the Partner values I enter when I create a Table is display them in Web Dynpro.
    This is frusterating me a great deal and I would greatly appreciate, and rewards, any suggestions or recomendations.
    Thank you for your help,
    Matt

    Hi Everyone,
    Well, I was finally able to resolve my issue.  After debugging the Web Dynpro Application from the ECC BAPI side, I was able to see that the Partner values were failing to be passed to the back-end SAP system.  After I restarted the J2EE engine, I was able to create the sales order.
    I noticed a couple of interesting things as well:
    -You need to fill in the leading zeros for Customer Number (KUNNR) before passing of this value
    -The ECC BAPI automatically (atleast in my case) changed the input value of Partner-PartnerRole from "SP" to "AG".  This change occurs before the first step in the Debugger is performed.  This change, however, does not occur when the BAPI is called from Web Dynpro.  Once I edited the Web Dynpro Partner Role input to "AG", I was able to create the sales order.
    I have list my code below, thank you all for your help.
    Regards,
    Matt
         Bapi_Salesorder_Createfromdat2_Input SO = new Bapi_Salesorder_Createfromdat2_Input();
         Bapi_Transaction_Commit_Input Commit = new Bapi_Transaction_Commit_Input();
         Bapisdhd1 OrderHeader = new Bapisdhd1();
         OrderHeader.setSales_Off("0000");
         OrderHeader.setDoc_Type("ZOR");
         OrderHeader.setPo_Meth_S("CU01");
         SO.setOrder_Header_In(OrderHeader);
         Bapiparnr Partner = new Bapiparnr();
         Bapiparnr.Bapiparnr_List PartnerList = new Bapiparnr.Bapiparnr_List();     
         Partner.setPartn_Numb(PartnerNumber);
         Partner.setPartn_Role("AG");
         PartnerList.addBapiparnr(Partner);
         SO.setOrder_Partners(PartnerList);
         int size = wdContext.nodeShoppingCart().size();
         BigDecimal Qty;
         Bapisditm.Bapisditm_List ItemsList = new Bapisditm.Bapisditm_List();
         Bapisditm Items;
         IPublicUserAccount.IShoppingCartElement CartItem = wdContext.currentShoppingCartElement();
         for (int i=0; i < size; i++){     
              Items = new Bapisditm();
              Qty = new BigDecimal(BigInteger.ZERO);
              CartItem = wdContext.nodeShoppingCart().getShoppingCartElementAt(i);
              Qty = Qty.add(BigDecimal.valueOf(CartItem.getQuantity()));                              
              Items.setTarget_Qty(Qty);
              Items.setTarget_Qu("EA");
              Items.setMaterial(CartItem.getMaterial_number());          
              ItemsList.add(Items);
         SO.setOrder_Items_In(ItemsList);     
         wdContext.nodeBapi_Salesorder_Createfromdat2_Input().bind(SO);
         wdContext.nodeBapi_Transaction_Commit_Input().bind(Commit);
    catch(Exception ex) {
         IWDMessageManager msgMgr = wdComponentAPI.getMessageManager();
         msgMgr.reportException(ex.getLocalizedMessage()+ " Create SO Failed!", true);
         try {
              wdContext.currentBapi_Salesorder_Createfromdat2_InputElement().modelObject().execute();
              wdContext.currentBapi_Transaction_Commit_InputElement().modelObject().execute();
         catch (Exception ex){
              IWDMessageManager msgMgr = wdComponentAPI.getMessageManager();
              msgMgr.reportException(ex.getLocalizedMessage()+ " Retrieve Cart Failed!", true);

Maybe you are looking for

  • Deployment of RDF File in Oracle Apps Directory

    Hi, I am facing problem in deploying the custom RDF file in Oracle Apps Instance. My RDF file works fine when it is deployed in the XXASO directory structure with Profile option ASO:Print_Report_Directory set to XXASO directory. But When the same RDF

  • How to cut and paste with MacBook Air

    How do I cut and paste with MacBook Air?

  • Burning movie to a dvd?

    I just burned my quicktime move to a dvd, now how can I burn the same movie so it can play on a dvd player on my tv? Do I have to convert it?

  • MB Pro keeps crashing, not restarting.

    I've been having some problems with my Macbook Pro lately. For example, it doesn't always go to sleep when I close the lid, and somehow drains the battery in a couple of hours when this happens. It's running Yosemite 10.10.2, it's a mid 2012, 13-inch

  • Relation between Date Profile and Action Profile

    Hi Folks, I don't want any date profile assigned to my transaction type SLFN. When I took out date profile and saved system gave me error "Action profile is only allowed with date profile SLNF_HEADER". I have assigned Z action profile to SLFN. Is the