BAPI -table

Hello all,
    I am trying to find the actual table used by function module "BAPI_COMPANY_GETDETAIL". In another words, when you execute this function modue, from which table it gets the information.
Can you guys please tell me how to do that?
Regards,
NS.

hi
good
Short text
Company details
Functionality
This method enables the user to access further information about a company. The company's detailed data as determined by the system is returned. Any problems arising are returned as a return code message.
Notes
The same authorization checks are carried out under this method as take place when displaying information within an R/3 transaction.
The system does not convert the input parameter COMPANYID, meaning that leading blank characters within this parameter are not cleared.
Messages are returned within the RETURN parameter. This parameter documentation contains the return codes and their meaning.
Parameter
COMPANYID
COMPANY_DETAIL
RETURN
TABLES USED->
T880
thanks
mrutyun^

Similar Messages

  • How to populate multiple entries to Bapi Table

    Hi all,
      How to populate multiple entries to Bapi Table.....
    Here is the code(in component controller)
      Z_Recr_Apply_Point_Input request = new Z_Recr_Apply_Point_Input(WDModelScopeType.TASK_SCOPE);
           int  size = wdContext.nodeApplicants().size();
                for(int i = 0 ; i < size ; i++)
                    String isselected = wdThis.wdGetContext().nodeApplicants().getElementAt(i).getAttributeAsText("Appl_Number");
                     if(isselected == "true")
                               com.models.veteranpoint.Zrecr_Aplno appid = new
                                    com.models.veteranpoint.Zrecr_Aplno();                                        
                                    appid.setAppl_Number(wdContext.nodeApplicants().
                                        getApplicantsElementAt(i).getAppl_Number());
                               request.addApplicants(appid);
    I want to pass the selected input field to bapi..
    Please tel me where i pass the input field...
    Please correct my code...
    Thanks & regards
    Mathi s

    Hi,
    Steps to insert multiple entries to BAPI table.
    1.Create an instance for BAPI input
    2.Bind the instance to the Node of the BAPI input
    3.Create instance of the Structure(BAPI table) to which input has to be added.
    4.Set the input values to the Structure instance.
    5.Add the instance to the BAPI input.
    6.Execute
    From the given example,I assume Z_Recr_Apply_Point_Input  is the BAPI Input and com.epiuse.us.recruitment.models.veteranpoint.Zrecr_Aplno as Structure
    Step 1:
    Z_Recr_Apply_Point_Input request = new Z_Recr_Apply_Point_Input(WDModelScopeType.TASK_SCOPE);
    Step 2:
    <b>wdContext.nodeZ_Recr_Apply_Point_Input.bind(request);</b>
    Steps 3 & 4:
    int size = wdContext.nodeApplicants().size();
    for(int i = 0 ; i < size ; i++)
    String isselected = wdThis.wdGetContext().nodeApplicants().getElementAt(i).getAttributeAsText("Appl_Number");
    if(isselected == "true")
    com.epiuse.us.recruitment.models.veteranpoint.Zrecr_Aplno appid = new
    com.epiuse.us.recruitment.models.veteranpoint.Zrecr_Aplno();
    appid.setAppl_Number(wdContext.nodeApplicants().
    getApplicantsElementAt(i).getAppl_Number());
    <b>wdContext.currentZ_Recr_Apply_Point_InputElement().modelObject().addRecr_Aplno(appid);</b>
    Step 5:
    <b>wdContext.currentZ_Recr_Apply_Point_InputElement().modelObject().execute();</b>
    Regards,
    Viji Priya

  • Passing values to RFC/BAPI Table

    Hi,
    I am having a very strange problem. While passing the values to RFC/BAPI table using add method the values are not passed to backend SAP. Below is the code which I am using just to pass some data in RFC/BAPI table.
    The same code was working few days back. Is there any configuration in JCO or any other problems other than the code?
    Your l help is greatly appreciated.
      public void executeZtest_Function_Input( )
    //    //@@begin executeZtest_Function_Input()
    //     //$$begin Service Controller(943377124)
           IWDMessageManager manager = wdComponentAPI.getMessageManager();
           try{
      Ztest_Function_Input input = new Ztest_Function_Input();
           for (int i=0; i<5;i++){
                Zhr_Ear_Cclist cc =new Zhr_Ear_Cclist();
                cc.setFi_User("[email protected]");
                input.addIcc_List(cc);
           wdContext.nodeZtest_Function_Input().bind(input);
           wdContext.currentZtest_Function_InputElement().modelObject().execute();
                wdContext.nodeOutput().invalidate();
           } catch(WDDynamicRFCExecuteException ce) {
                manager.reportException(ce.getMessage(), false);
         //$$end
        //@@end

    Hi Raksh,
              I also got the same problem. Please check the following ways then you will solve problem.
    1. First check the appropriate BAPI in SAP GUI Software. You have to determine where is the problem?. Is it in Dynpro or BAPI itself?.
    2. Suppose the BAPI structure change you will wont't run. If BAPI strusture change you have to reimport BAPI.
    3. Please check the JCo connectio using test Button. Then redeploy your project.
    4. Rebuild your project then redeploy.
    Check the above ways you may get answer.
    Kind Regards,
    S.Saravanan

  • Alternative UI Output formats for BAPI table

    Hi Experts,
    Can I display the output of a BAPI table in any other format apart from a table.
    Regards
    Abdullah

    Abdullah,
    In web dynpro you cannot have tables with scrollbar. A workaround for that may be a use of ScrollContainer UI element with fixed height and display all table rows via setting visibleRowsCount=-1.but problem here is , table headers will be scrolled as well. So it is better not to have them like that.
    I would suggest take use of existing table UI element and dont alter its functionality.
    Regarding incorporating the application using web dynpro I guess that you must be knowing(not sure but think that you need to get rid of COM DCOM).
    hope it helps
    regards,

  • RFC+BAPI+TABLE HELP

    Hi all.
    Im install SAP NetWeaver Sneak preview ABAP edition.
    Me application writen i VB 6 connect ok.
    BAPI,TABLE- object connect ok.
    If retrieving data command BAPI getdetail+show app closed=crash,TABLE search ok,if TABLE show data or TABLE detail data,main app writen error - No search table-table not found ......
    Please help

    Armin,
    First of all than you for your reaction. I couldn't answer earlier because I was too busy to catch up with project deadlines.
    I checked the mapping between the custom controller and the view controller is done. It should be OK since I can display the bapi returned table in a Table widget.
    But I still don't know how to access this returned table from the wdDoInit() method of the view controller.
    My context is as following:
    Bapi_Currency_Getlist_Input
      -- Curreny_List
         -- Currency
    I can get a reference to currentBapi_Currency_Getlist_Input, next I can get a reference to currentCurrency_ListElement. But as from this point, I can't get a List or any other container with the currency values. (The bapi I call is bapi_currency_getlist and I try to create a value help with curency values)

  • 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);

  • RFC Lookup - BAPI-TABLE Parameters problem

    Hello All,
    I had a scenario where i need to export parameters and am supposed to get import parameters from BAPI between source and target structures.
    like -
    source --> BAPI execution = result --> target
    We had succeeded in getting those but the only problem is with TABLE parameters in that BAPI.
    How can we achieve it.
    Faster reply would be appreciated.
    Thanks & regards
    Reddy

    Hi VJ,
    Its not a simple source-target mapping .
    For Ex :
    Source-Bapi-Idoc
    Source will send some parameters to BAPI and bapi will execute it and respond with values in table parameter of the bapi and result would be assigned to idoc-field.
    For this i am using RFC Look up with sample code as :
    String rfcxml ="<ns0:Z_BAPI xmlns:ns0=\"urn:sap-com:document:sap:rfc:functions\">" +
    "     <A>" + A + "</A>" +       --- Export parameters
    "     <B>" + B + "</B>" +       --- Export parameters
    //"                       <TABLE><FIELD1>" + FIELD2 + "</FIELD1></TABLE>" +
    //"                       <TABLE><FIELD2>" + FIELD2 + "</FIELD2></TABLE>" +
    //"                       <TABLE><FIELD3>" + KDMAT+ "</FIELD3></TABLE>" +
    //          "<FIELD1>" + FIELD1 + "</FIELD1>" +
    "</ns0:Z_BAPI> "  ;
    Passing A & B as export parameters and getting TABLE-FIELD1&2&3 as response.
    I hope some problem in the syntax.
    Regards,
    HP

  • WebDynpro -  How to pass a single field value to BAPI table?

    Hello,
    I have just come from WebDynpro ABAP training and being a novice hit my first issue right away.
    I need to use BAPI - BAPI_CONTRACT_CREATEFROMDATA to create SD contract (I have used this BAPI to create a service call inside Webdynpro). I have two required fields: contract start and end dates. These fields passed in a table called CONTRACT_DATA_IN.
    When I use the fields from the structures or individual fields, all I need to do is just put them on the view, and when I hit my submit button they will be passed to the BAPI. They are a part of COMPONENTCONTROLLER context (I have also mapped them in View context), but tables are obviously different.
    Is there any way to pass data to tables as seamlessly without any code as for structures? Or do I need to write code to get the values from the input fields and then populate the table manually?
    Thanks,
    Alex

    Hi,
    Single customer contract creation use the struture-
    If you want to pass only one record then using the input fields for those 2 fields we can pass them to BAPI and then create the Customer Contract. This will work for only one record of customer contract.
    then we can directly read these input fields and pass to BAPI.
    Creating many customer contracts -
    For example, If you want to provide the group of records at a time and then you want to create the cusotmer contracts for so many records then you fill these fields and pass them to table then pass this table to the tables parameters of that BAPI.
    Here we need not create the Table UI element separate input fields would serve the purpose.
    Now we can create the batch of contracts for N customers.
    these input fields of a customer will be passed to table, then next set of input fields etc.
    For this create the Table UI element and fill all the records and then pass it to the Tables of the BAPI.
    Regards
    Lekha

  • BAPI Tables and XMLSerialize

    I am using the .NET connector with C# and doing a proof of concept calling the bapi Bapi_Customer_Getdetail, which is working great.  My problem is, I want to serialize the contents of the BAPIKNA101 table to an XML document.  I have produced the XML file, but there is only one problem with how it is doing this.  For attributes of the BAPIKNA101 table that have an underscore in the name, the serialization puts the characters '5f' in.  For example, here is the 'POSTL_CODE' node:  <POSTL_5fCODE>2500 BG</POSTL_--5fCODE>.  Here is a short piece of code doing the serialization:
    sap_proxy.Bapi_Customer_Getdetail(CustomerNo,
                null, null, null, "1",                      out tab_kna1, out tab_return);
    XmlSerializer objSr = new XmlSerializer(typeof(BAPIKNA101));                              
    TextWriter writer = new StreamWriter(@"c:\sr.xml");
    objSr.Serialize(writer, tab_kna1);                              
    Any help would be great.  I will see how the responses here are, I may need to take this to a C# forum.
    Thanks.
    Don

    Please install the patch from OSS note 506603 and regenerate (right-click .sapwsdl file and say "Run custom tool". This will fix the problem with the XML attributes.

  • CRM PRODUCT BAPI + TABLES

    Hi,
    Can any one help me or give me some clue from where we can find all the Product related BAPI's in the CRM ?
    Also give me the names of the Product related Tables in CRM Data base.
    Points will be rewarded for helpful answers.
    Thanks,
    Samantak.

    Hi Ankan,
    Thanks for your prompt reply. But it would of great help if you provide some details about the CRM Product related BAPI's and the type of BAPI's available.
    I have to write BAPI Wrapper with the help of existing BAPI's.
    Thanks in advance.
    Samantak.

  • How BAPI Tables parameters are passed by reference

    Hi Gurus,
                     I have a genuine doubt regarding BAPI parameters. I would like to point out the genreal rules of bapi like,
    1. BAPI parameters should be passed by value. (Because they are rfc fm's. So both systems will be in different servers. This is the normal scenario.)
    2. But the tables parameters in BAPI can't be passed by value. Instead they are passed by reference.
    3. I know they use some kind of delta mechanism to transfer tables parameters to remote servers.
    So gurus I would like to know what exactly happens when a tables parameter is passed. And also I didn't understand the delta mechanism. Kindly guide me.
    Thanks in advance,
    Jerry Jerome

    You'll see in [SAP Library - RFC - Parameter Handling in Remote Calls|http://help.sap.com/saphelp_nw04s/helpdata/en/22/042551488911d189490000e829fbbd/frameset.htm] that tables are not passed by reference when you use RFC. It also explains the delta.
    When you make a remote function call, the system handles parameter transfer differently than it does with local calls.
    TABLES parameters
    The actual table is transferred, but not the table header. If a table parameter is not specified, an empty table is used in the called function.
    The RFC uses a delta managing mechanism to minimize network load during parameter and result passing. Internal ABAP tables can be used as parameters for function module calls. When a function module is called locally, a parameter tables is transferred u201Cby reference". This means that you do not have to create a new local copy. RFC does not support transfer u201Cby referenceu201D. Therefore, the entire table must be transferred back and forth between the RFC client and the RFC server. When the RFC server receives the table entries, it creates a local copy of the internal table. Then only delta information is returned to the RFC client. This information is not returned to the RFC client every time a table operation occurs, however; instead, all collected delta information is passed on at once when the function returns to the client.
    The first time a table is passed, it is given an object-ID and registered as a "virtual global table" in the calling system. This registration is kept alive as long as call-backs are possible between calling and called systems. Thus, if multiple call-backs occur, the change-log can be passed back and forth to update the local copy, but the table itself need only be copied once (the first time).

  • BAPI Table parameter of type a structure  without word BAPI

    Hi Experts,
    Is it possible to have a Table parameter in a BAPI  which is such a structure type that does not contain word 'BAPI' ?
    like 
    .........Parameter Name.........................Type  Spec....................Associated Type..........................Short text
    ..............ITAB......................................LIKE................................. ZSTRUCT...................." ZSTRUCT does not contain word 'BAPI'
    Thanks & Regards,
    Biswajit
    Edited by: Biswajit Das on Aug 16, 2009 9:47 AM

    Hi ,
       your BAPI structure name shold be like this "ZBAPI_STRUCT"  , then only you can add FM to API method. Your structure name should start with ZBAPI.
    Regards,
    Pradip

  • Need FM/BAPI/table to getasset transaction types...

    Hello Experts,
    I am currently doing a report wherein I need to check if a given asset transaction type
    falls under acquisition, retirements, transafers, etc. Are there any available FM, BAPI
    or tables for my requirement?
    Thank you and take care!

    Name of function module Short text for function module.
    BAPI_CHARACT_GETLIST BAPI for Characteristics - Find Name
    0002 Company Code Business Object.
    BAPI_CCODE_GET_FIRSTDAY_PERIOD For Company Code: First Day of Period
    BAPI_CCODE_GET_LASTDAY_FYEAR For Company Code: Last Day of Fiscal Year
    BAPI_COMPANYCODE_EXISTENCECHK Check if Company Code Exists
    BAPI_COMPANYCODE_GETDETAIL Company Code Details
    BAPI_COMPANYCODE_GETLIST List of Company Codes
    BAPI_COMPANYCODE_GET_PERIOD For Company Code: Posting Date -> Period, Fiscal Year
    0003 Business Area Business Object
    BAPI_BUSINESSAREA_EXISTENCECHK Check if business area exists
    BAPI_BUSINESSAREA_GETDETAIL Business area details
    BAPI_BUSINESSAREA_GETLIST List of business areas
    0004 Business Object Controlling Area
    BAPI_CONTROLLINGAREA_GETDETAIL List Detail Information for Controlling Area
    0004CORE Business Object: Controlling Area (Core)
    BAPI_COAREA_GETPERIODLIMITS Controlling Area: First and Last Day of a Period.
    follow the link below for more details:
    http://www.sapbapi.com/bapi-list/

  • VC and BAPI table

    Hello
    I have BAPI with table parameter. This parameter in an input structure but VC define it as output parameter (When I drag and drop this model).
    Could you help me how to solve this problem?

    Hi
    If you right click on the port itself you can then use the flip port functionality to change the port to an input. Please be sure you are using SP9 as it supports tables as inputs.
    Jarrod Williams

  • Populate BAPI Table

    All,
    I have a table called <b>T_Req_qual</b> in my Bapi. I need to populate this table based on my needs. Can anyone tell me how can i do that..
    I wrote below code but im stuck how to populate multiple entries.. Also im not sure whether below code is correct or not..
    ZReq_Qual qual_input = new ZReq_Qual();
    qual_input.setObjid("80033");
    qual_input.setGroup_Id("Test");
    bapiInput.addReq_Skill(qual_input);
    Thanks..
    BM

    Hi,
    1)u create model
    2)Add used model in Webdynpro component
    3)then context map the Component contoller to Model
    4)again mao View contoller to Component controller
    I used Bapi_Flight_Getlist....like that u follow for T_Req_qual
    Write the following coding in Component controller  WD doinit();
    Bapi_Flight_Getlist_Input bap=new Bapi_Flight_Getlist_Input();
        wdContext.nodeBapi_Flight_Getlist_Input().bind(bap);
        try{
             wdContext.nodeBapi_Flight_Getlist_Input().currentBapi_Flight_Getlist_InputElement().modelObject().execute();
             wdContext.nodeOutput().invalidate();
        catch(Exception e)
             e.getStackTrace();
    Sample application,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d352a790-0201-0010-5082-b1a608d22b6c
    null

  • Bapi table - wrong values

    Hi,
    I have a Z Bapi with a couple of fields, I have tested on R/3 and the resulting table has valid values, nevertheless when I executed the Bapi from WD I have all the fields on the table good but two, wich returns the values: CUST-100000000000001 (CHAR30) and CUST-1000000 (PROFL-CHAR12)
    Any ideas about what could be happening?
    Thanks in advance
    Jean Carlo
    on R3:
    ex:
    CATALOG                               MEI ...
    European Waste Code            KG
    European Waste Code            KG
    European Waste Code            KG
    on WD:
    Catalog                             UMB ...
    CUST-100000000000001 KG
    CUST-100000000000001 KG
    CUST-100000000000001 KG

    Hi ,
    Did u try to execute the same bapi in the corresponding backend with the login you are using for webdynpro app?
    If the JCO connection you are using is configured for SSO. Then there should be a user in backend for the front end user.
    You can see the JCO connections in Webdynpro content Administrator.
    The result may be user -specific.That is for different users the bapi can give different results.
    You can check the language used using this line in ur webdynpro code. The url parameter used to pass the locale to the webdynpro application is sap-locale
    Check the SAP Note 947081 for language related problems.
    Best Wishes
    Idhaya R
    Edited by: IdhayaR on May 19, 2010 2:39 PM

Maybe you are looking for