Execution of bapi

hi all,
   please help me execut the bapi i.e bapi_material_savedata. n help me create a material with that.
regards
vishwajeet

> please help me execut the bapi i.e bapi_material_savedata. n help me create a material  with that.
>
> regards
> vishwajeet
Hi Vishwajeet,
You can get documentation with transaction code BAPI.
Look in Logistics -General > Logistics Basic Data > Standardmaterial > Create
This is a different BAPI but may work for you.
Jim

Similar Messages

  • How to Use and Filter Table contents after execution of Bapi

    Can anybody guide me how to Use and Filter the table Contents which i got after successful execution of a Bapi
    I used Component Controller in my Project
    Ex: My table contains Redundant data for a single column but i want to display the column contents with out Redundancy
    Name
    Raghu
    Raghu
    Raghu
    Debasish
    Debasish
    I want to filter the table contents and i want to display the table with out Redundancy
    and Even when i am using a Dropdown i selected a Column  from a Table as the values for that Dropdown  but that table is having redundant data and the same data is getting displayed in that Dropdown i want the Dropdown to display data with out redundancy
    Thanks

    I also got that problem recently and after debuging for a while I figured out, that it was resulting from an error in my table's model: When the model received new items to display I
    1.) Fired an delete event for the old items
    2.) Fired an insert event for the new items
    Problem was that when firing the delete event I didn't already assigned the new items to the model. Therefore it had still the old row count.
    Maybe you have also a faulty table model?...

  • Execution of BAPI Webservice from webdynpro

    Hi
    We have a BAPI called CreateUser in backend system and this standard BAPI is exposed as a webservice and not published in ESR or UDDI. Just we have  wsdl.
    I want to develope a WD4J application to execute the BAPI Webservice.
    Can any body please tell me what is the right procedure i.e Is we need to use LOGICAL DESTINATIONS
    (or ) Any configurations required between Java Stack and ABAP Stack.
    I am using Adaptive webservice model. I am getting some errors if i import the model using wsdl only.
    Please any body give me the step by step procedure in CE environment .
    Regards
    Kalyan

    Hi,
    documentation about proxy generation from RFCs/BAPIs is available at: http://help.sap.com/saphelp_nw04/helpdata/en/ed/897483ea5011d6b2e800508b6b8a93/frameset.htm
    There's a tutorial how to bind a Web Service to a WD model at: https://www.sdn.sap.com/sdn/developerareas/webdynpro.sdn?page=TutWD7_CarRentalWS.htm
    I'm not sure if this tutorial includes the Web Service generation also, but you can search for this in the online documentation of the Developer Studio.
    PradeeP

  • Execution of BAPI inside BADI

    Good day Gurus,
    I implemented  BAPI_RE_CN_CREATE inside a BADI.
    The syntax that I use is CALL FUNCTION BAPI_RE_CN_CREATE IN BACKGROUND TASK. I used "IN BACKGROUND TASK" because without that, the function keeps on looping. After adding the command, the BAPI works. Here is my question, how can I retrieve immediately the contract number that the BAPI created? I hope you can help me.
    Thanks in advance.
    Elly

    Hi Kesav,
    We put the BADI in AFTER_SAVE Method. The code is like this......
    if sy-ucomm = 'TRANS_NEXT'.
      CALL FUNCTION BAPI_RE_CN_CREATE
         importing
    endif.
    When the the system reach at CALL FUNCTION part, it does'nt execute it and it jumps back to "IF" condition part. We look for solution in the forum and someone suggest to put "IN BACKGROUND TASK" and we didi that. It works actually. But after excuting the CALL FUNCTION and search the contract that was save in VICNCN table, it was not updated yet.
    OUr scenario is that we want to know what is the contract number being created after the CALL FUNCTION module because we have another requirement that we will use that field after creating the contract.
    Elly

  • REG : Execution of BAPI in view controller

    Hi Experts,
    Is this necessity to excute bapi in  component controller only.I am excuting bapi once only so i am comfortable in executing bapi in view.Kindly advise me any drawbacks if there are any for executing bapi in view controller.
    Regards,
    Anupama

    hi
    with  respect to calling the rfc or the bapi in the view comtroller will not effect the performance ,
    as there may be scenarios where on click of a button in the view you need to call the rfc ,
    the execute method which gets generated should always be in the component controller and calling the rfc can be from the
    view controller or the component controller ,  this will help to use the execute method any where in  'N' of views
    rather to using execute method in view controller .
    if your are new to webdynpro and exposing rfc / bapi then go with the standard document the SAP has provided
    for calling and executing  rfc.

  • BAPI execution in webdynpro returns only a few records

    Hi,
            I'm executing a BAPI in my webdynpro application and it is returning only a few records from backend table. When i execute the BAPI in R/3 with the same input i'm getting all the records. In webdynpro i'm getting only 22 records for different set of inputs while in R/3 i'm getting all records(37,41 etc). Any help in this regard will be valuable.
    Regards,
    Shabeer

    Hi,
         I am invalidating the output node after execution of BAPI. The BAPI is executing properly and it is returning records also.But the problem is with the number of records returned by BAPI. As i've mentioned earlier it is always returning 22 records, eventhough the actual output contains more than 22 records(I checked this in R/3). I was told that the BAPI is calling a transaction(i don't know whether it is the problem since i am not familiar with ABAP and R/3 that much).Is it possible that webdynpro is fetching records even before the BAPI execution is complete in R/3 and hence returning partial output(I'm not sure about this thing) ?
    Any help in this regard will be valuable.
    Thanks and regards,
    Shabeer

  • How can I Export dynamic table to bapi,  which is imported from BAPI.

    At first time execution of BAPI , I am getting Items(Table formate) . Again I have export these Items to BAPI. As a Input Table. How can transfer data export table to import table.
    And also I need delete some items, which are come form bapi. Then I need to export .
    Any body can help me to achieve this issue.
    <b>EX.   At first execution of BAPI, I am getting items in one out structure. After that I need to execute same BAPI using these items.</b>

    You'll have to *alias* your columns, not prefix it with the table names:
    $[CHE_TEST@asterix1_impl] r
      1  declare
      2    cursor cData is
      3      with data as (
      4        select 1 id, 'test1' val1, 'a' val2 from dual
      5        union all
      6        select 1 id, '1test' val1, 'b' val2 from dual
      7        union all
      8        select 2 id, 'test2' val1, 'a' val2 from dual
      9        union all
    10        select 2 id, '2test' val1, 'b' val2 from dual
    11      )
    12      select a.id, b.id, a.val1, b.val1, a.val2, b.val2
    13      from data a, data b
    14      where a.id = b.id
    15      and a.val2 = 'a'
    16      and b.val2 = 'b';
    17  begin
    18    for rData in cData loop
    19      null;
    20    end loop;
    21* end;
      for rData in cData loop
    ERROR at line 18:
    ORA-06550: line 18, column 3:
    PLS-00402: alias required in SELECT list of cursor to avoid duplicate column names
    ORA-06550: line 18, column 3:
    PL/SQL: Statement ignored
    $[CHE_TEST@asterix1_impl] r
      1  declare
      2    cursor cData is
      3      with data as (
      4        select 1 id, 'test1' val1, 'a' val2 from dual
      5        union all
      6        select 1 id, '1test' val1, 'b' val2 from dual
      7        union all
      8        select 2 id, 'test2' val1, 'a' val2 from dual
      9        union all
    10        select 2 id, '2test' val1, 'b' val2 from dual
    11      )
    12      select a.id a_id, b.id b_id, a.val1 a_val1, b.val1 b_val1, a.val2 a_val2, b.val2 b_val2
    13      from data a, data b
    14      where a.id = b.id
    15      and a.val2 = 'a'
    16      and b.val2 = 'b';
    17  begin
    18    for rData in cData loop
    19      null;
    20    end loop;
    21* end;
    PL/SQL procedure successfully completed.
    cheers

  • BAPI monitoring

    HI experts In file business req I developed scenario like JDBC--XI--R/3(RFC).
    In my scenario data is send to R/3 using BAPI(RFC) from XI using receiver RFC adapter.
    So How Can I check whether data is saved or not in R/3 Database.
    How we can see the BAPI list in R/3 as like WE05 for IDoc at R/3 system.
    Thanks

    HI,
    You could monitor the processing with XI Monitoring tools RWB (Runtime Workbench) & SXMB_MONI.
    Here if you get the successful status then you cna check in SM58 if there is any error generated on XI side as well as on R/3 side.
    This will give you the confirmation about successful execution of BAPI on R/3 side. If in case you get any message in SM58 it means there was some problem with BAPI while executing.
    Even you can use rscrm_bapi > select a query to schedule > monitor for monitoring the BAPIs
    Refer
    Transaction for RSCRM_BAPI monitor
    Thanks
    Swarup

  • Multiline BAPI return structure  and RFC Adapter

    Since SP14 RFC Adapter check return structure of RFC function.
    But how it works if BAPI returns multiline BAPIRET2?
    Will adapter loop all elements and perfom commit only if <b>all</b> alements don't have errors.

    I'am about this:
    <i>As of SP 14 support for commit handling for single BAPI calls was added to the RfcAdapter receiver channel. If activated in the receiver channel setting, the received XI message will be executed as synchronous RFC (sRFC) in the receiving system. This is also true for asynchronous (QoS EO) XI messages to receive and analyze the execution result by the RfcAdapter.
                   The received response is parsed by the RfcAdapter to get the BAPI return parameter with name "RETURN". This return parameter can be of BAPIRETURN, BAPIRET1 or BAPIRET2 types. The "RETURN" parameter is checked for the response status (field TYPE) which can take following values:
                  1. 'S' : Success
                  2. 'I' : Information
                  3. 'W' : Warning
                  4. ''  : Empty String
                  5. 'A' : Abort
                  6. 'E' : Error
                   If the response contains one amongst the first four response status then it implies that the BAPI was successful. If the response contains one amongst the last two response then the BAPI failed. If the BAPI "RETURN" parameter is of not of type ABAP structure rather of type ABAP table, a empty table is also considered as successful execution result.
                   In case of a successful execution the BAPI function module "BAPI_TRANSACTION_COMMIT" is called within the same context to trigger the commit of the BAPI. In case of a failure the BAPI function module "BAPI_TRANSACTION_ROLLBACK" is executed by RFC Adapter which rolls back the changes.</i>

  • Bapi-urgent

    hi all,
    how do we check standard bapi BAPI_HELPVALUES_GET whether it retrieves all Parameter ids or not? Based on our test results.
    this is i given after execution of bapi.
    objtype =user,
    method=getdetail,
    parameter=parameter,
    field=parid.
    regards,
    msrinu.

    Dear Srinivas,
    Check out the following execution. Hope this will be helpful.
    FUNCTION zbapi_lifecycle_get_list.
    ""Local Interface:
    *"  TABLES
    *"      STRUC_GETLIST STRUCTURE  ZSTRUC_LIFECYCLE
    *"      RETURN STRUCTURE  BAPIRET2
    Internal table structure declaration.
      TYPES : BEGIN OF itab_lifecycle,
                dlcode    TYPE zse_devlifecycle-dlcode,
                dldesc    TYPE zse_devlifecycle-dldesc,
                dllevel   TYPE zse_devlifecycle-dllevel,
               END OF itab_lifecycle .
    DECLATIONS OF RETURN VARIABLES.
      DATA : wa_return TYPE bapiret2,
             gt_return TYPE TABLE OF bapiret2.
    Internal table declaration.
      DATA : tab_dlcycle TYPE TABLE OF itab_lifecycle WITH HEADER LINE.
    Getting values from data base table into internal table.
      SELECT dlcode dldesc dllevel FROM zse_devlifecycle INTO TABLE tab_dlcycle where loekz ne 'X'.
    *Transferring data (FOR DROPDOWNLIST).
      struc_getlist[] = tab_dlcycle[].
      CALL FUNCTION 'BALW_BAPIRETURN_GET2'
          EXPORTING
            type   = 'I'
            cl     = 'ZSU'
            number = '047'
          IMPORTING
            return = wa_return.
        APPEND wa_return TO gt_return.
        MOVE gt_return[] TO return[].
        CLEAR wa_return.
    ENDFUNCTION.
    Best Regards,
    Rajesh.
    Please reward points if found helpful.

  • Urgent help bapi!!

    hi all,
    The bapi BAPI_PRODORDCONF_CREATE_TT has FUCNTION moudle
    MAP2I_PP_TIMETICKET_TO_AFRUD which is gentred automaticlly. how it is possibe to generate this F.M
    please help.
    Thanks,
    sridhar

    Hello sridhar,
    I think taht this FM generated depends of your customizing or one of input parameters in BAPI.
    During the execution of BAPi, the program always uses this FM or they are some parameters to use this FM ?
    Regards
    Sebastien

  • BAPI to create an account in SAP Banking

    I'm trying to create an account in SAP Banking using BAPI BAPI_BCA_ACCOUNT_CREATE.
    The path for account creation is given below for reference.....
    SAP Menu->Financial Services->Account Management->Account->Account Master Data->Create Account (Transaction BCA_CN_ACCT_01)
            The execution of BAPI is successful and it's generating an internal id. How to get the Account number from this internal id?
            May be, internally it's reserving an account number. For example, If last created account was IN/969696/0000000122/, after running the BAPI, if I try to create an account manually again, then it's creating an account with number IN/969696/0000000124/. But I'm unable to view A/c IN/969696/0000000123/ created by the BAPI in BCA_CN_ACCT_03 as it says the account number doen't exist.
           The same process is working fine when i'm using BDC for transaction BCA_CN_ACCT_01 and I'm able to see the account number in BCA_CN_ACCT_03.
    I'm calling BAPI_BCA_ACCOUNTAM_SAVE_ALL and BAPI_TRANSACTION_COMMIT after calling the BAPI as well.
    Is there any other process involved? Do I have to call any other BAPI to get the account no in external format?
    Kindly help.........

    Hello Keshav,
                           Thanks a lot for your reply......
    The BAPI BAPI_CREATE_ACPOOL is not available in SAP Banking. Currently, I've done it with BDC, to provide a temporary solution.
    KIndly share sample code or documentations for this BAPI, if someone has worked on it.

  • Help needed with this BAPI

    hi,
    I'm using this IS Oil BAPI RFC_SDCONOIL_CREATEFROMDATA for uploading sales contracts. When we create a contract this BAPI is popping up a dialog asking for some input values. There is no way that these input values can be supplied through the BAPI itself. Is there any way to supress such pop up dialogs after the execution of BAPIs.
    Vijay

    I don't have experience in IS-OIL, but what are the values that you are asked to enter? Did you check if you can set some SPA/GPA parameters to care of them? Look at the code where this pop-up comes and see if it is executed conditionally. If it is, then check what you are not satisfying in that condition.
    Srinivas

  • Executing BAPIs in WDJ

    Hi,
    Kindly give me the clear procedure to execute the BAPIs in Drop Down UI in WebDynrpo Java after importing the RFC as a model.
    I have searched online for the soulutions. But am not getting the proper steps for populating the drop down UI element after execution of BAPIs.
    Thanks in advance.
    Edited by: Ratish Rao on Oct 25, 2011 6:52 AM
    Edited by: Ratish Rao on Oct 25, 2011 6:52 AM

    Hi Ratish,
    After importing the Adaptive RFC model, do the following steps:
    1) Add the particular model in to the component. This you can do by right clicking "Used Models" and adding the particular model.
    2) Go to the Diagram view of component and make a context mapping between model and component controller. (ie, from component controller to model).
    3) Save all the meta data.
    4) Then add a mapping from view controller to component controller and select the appropriate context node.
    5) Save all the meta data
    6) Open the particular view and drag and drop a "Drop down by Index" control on to the view. Make sure that it is "Drop down by Index".
    7) Take the drop down's properties and do a context binding to the text's property.
    If you are doing all these steps, it should work. Reply me if you are facing any issues.
    Regards,
    Jithin

  • Error while creating Requisition

    Hi experts,
    I am getting this error from RFC while creating requisition in portal for multiple line items.
    Screen output without connection to user., error key: RFC_ERROR_SYSTEM_FAILURE
    I have used standard BAPI: BAPI_REQUISITION_CREATE for creating the requisition in portal.
    It works fine for a single line item but does not work multiple line items.I have checked the JCOs.It is correct.
    Please suggest.
    Thanks,
    Rajani

    hi!
    After importing structures to the model in webdynpro and mapping it to the corresponding field in the table of webdynpro screen, you should go through this code in on clicking of an event or triggering of a button event
       public void executePurchaseRequisitionCreate( )
        //@@begin executePurchaseRequisitionCreate()
              try {
                   for (int i = 0;
                        i < wdThis.wdGetContext().nodeTableNode().size();
                        i++) {
                             Bapiebanc re = new Bapiebanc();
                        IPublicPurchaseRequisitionCustomCotroller.ITableNodeElement tn =
                             wdThis
                                  .wdGetContext()
                                  .nodeTableNode()
                                  .getTableNodeElementAt(
                                  i);
                        re.setPreq_Item(tn.getPreq_Item());
                        re.setMaterial(tn.getMaterial());
                        re.setUnit(tn.getUnit());
                        re.setQuantity(tn.getQuantity());
                        re.setDeliv_Date(tn.getDeliv_Date());
                        re.setPlant(tn.getPlant());
                        re.setPur_Group(tn.getPur_Group());
                        re.setDoc_Type(tn.getDoc_Type());
                        re.setPurch_Org(tn.getPurch_Org());
                        re.setDes_Vendor(tn.getDes_Vendor());
                        re.setStore_Loc(tn.getStore_Loc());
                        //                    wdContext
                        //                         .currentBapi_Requisition_Create_InputElement()
                        //                         .modelObject()
                        //                         .addRequisition_Items(re);
                        wdContext
                             .nodeBapi_Requisition_Create_Input()
                             .currentBapi_Requisition_Create_InputElement()
                             .modelObject()     
                             .addRequisition_Items(re);
                   //execution of Bapi
                   wdThis
                        .wdGetContext()
                        .currentBapi_Requisition_Create_InputElement()
                        .modelObject()
                        .execute();
              } catch (Exception ex) {
                   msgMgr =
                        (MessageManager) wdThis
                             .wdGetAPI()
                             .getComponent()
                             .getMessageManager();
                   msgMgr.reportException("Error from bapi: " + ex.toString(), true);
                   ex.printStackTrace();
              wdContext.nodeOutput().invalidate();
              wdContext.nodeRequisition_Items().invalidate();
        //@@end

Maybe you are looking for

  • XML Publisher Report Bursting

    I have created report using XML Publisher Report Bursting. The output-type of the report is pdf.. <xapi:document output="${PROJECT_APPROVER}" output-type="pdf" delivery="123"> But if I change the format to xls it's showing error and the report is not

  • When I open a new window only the history for that session is available. Where did the rest of my history go?

    If I close out all my current window/tabs and open a new session the only history I can find in for that window. None of my past browsing history is available. Anyone have any idea on how to find the rest of my history?

  • Activity Guide tab not visible in BPM Workspace

    I've deployed a simple BPM Process which consists of one Initiator and one User task. I've added both the activities to a milestone what I defined under the Activity Guide. I've used JDeveloper 11.1.1.4.0 to develope the Process. But after deploying

  • COM / DDE behaves differently in Acrobat Reader 9.0 ??

    Hello ! We have a big client application (written in Delphi) which uses DDE extensivelly to handle printing tasks. It works fine with Reader 6.x, 7.x and 8.x but we are unable to make it work with the latest Reader 9.0. We create an instance of Adobe

  • Multi-lingual MsgBundle

    Hi All, I know that when writing a custom Validation error message at entity level a MsgBundle class is created. To localize the error message i just need to clone the MsgBundle, concat a _locale on the filename andn alter the messages. However, what