BAPI_CUSTOMER_GETLIST

Hi
Could anyone tell me how to use " BAPI_CUSTOMER_GETLIST"??
Regards.

Hi
http://abap.wikiprog.com/wiki/BAPI_CUSTOMER_GETLIST
Check this snippet
DATA :
   w_idrange TYPE
    STANDARD TABLE
          OF bapicustomer_idrange,
   wa_range LIKE LINE OF w_idrange,
   w_addressdata TYPE
        STANDARD TABLE
              OF bapicustomer_addressdata,
   w_specialdata TYPE
        STANDARD TABLE
              OF bapicustomer_specialdata,
   w_return TYPE bapireturn1,
   w_maxrows TYPE bapif4a-max_rows VALUE '10'.
CLEAR wa_range.
wa_range-sign = 'I'.
wa_range-option = 'BT'.
wa_range-low   = '0000000001'.
wa_range-high = '0000002000'.
APPEND wa_range TO w_idrange.
CALL FUNCTION 'BAPI_CUSTOMER_GETLIST'
EXPORTING
   maxrows           = w_maxrows
*   CPDONLY           = CPDONLY
IMPORTING
   return            = w_return
  TABLES
    idrange           = w_idrange
   ADDRESSDATA       = w_ADDRESSDATA
   SPECIALDATA       = w_SPECIALDATA.
Regards
pavan

Similar Messages

  • ERROR in this BAPI_CUSTOMER_GETLIST

    Hello,
    Please help me ,I am getting error while executing  this report.
    I want to Execute a BAPI .
    BAPI_CUSTOMER_GETLIST.
    INPUT : I,EQ,0000002156.
    where it went wrong
    REPORT  ZRBAPI_CUSTOMER_GETLIST.
    DATA : IDRANGE     LIKE      BAPICUSTOMER_IDRANGE OCCURS 0.
    DATA : ADDRESSDATA LIKE      BAPICUSTOMER_ADDRESSDATA OCCURS 0.
    DATA : SPECIALDATA LIKE      BAPICUSTOMER_SPECIALDATA OCCURS 0.
    DATA : BEGIN OF DUP_IDRANGE  OCCURS 0 ,
           SIGN like BAPICUSTOMER_IDRANGE-SIGN ,
           OPTION like BAPICUSTOMER_IDRANGE-OPTION ,
           LOW like BAPICUSTOMER_IDRANGE-LOW,
           END OF DUP_IDRANGE.
    SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS: SIGN like BAPICUSTOMER_IDRANGE-SIGN ,
                OPTION like BAPICUSTOMER_IDRANGE-OPTION ,
                LOW like BAPICUSTOMER_IDRANGE-LOW .
    SELECTION-SCREEN: END OF BLOCK b1.
    DUP_IDRANGE-SIGN = SIGN.
    DUP_IDRANGE-OPTION = OPTION.
    DUP_IDRANGE-LOW = LOW.
    Write : DUP_IDRANGE.
    CALL FUNCTION 'BAPI_CUSTOMER_GETLIST'
    Exporting
      MAXROWS           = 0
      CPDONLY           =
    IMPORTING
      RETURN            =
      TABLES
        IDRANGE           = DUP_IDRANGE
       ADDRESSDATA        = ADDRESSDATA
       SPECIALDATA        = SPECIALDATA

    Check the below code and modified ..
    REPORT ZRBAPI_CUSTOMER_GETLIST.
    DATA : IDRANGE LIKE BAPICUSTOMER_IDRANGE OCCURS 0.
    DATA : ADDRESSDATA LIKE BAPICUSTOMER_ADDRESSDATA OCCURS 0 with header
    line.
    DATA : SPECIALDATA LIKE BAPICUSTOMER_SPECIALDATA OCCURS 0.
    data DUP_IDRANGE like BAPICUSTOMER_IDRANGE occurs 0 with header
    line.
    SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS: SIGN like BAPICUSTOMER_IDRANGE-SIGN ,
    OPTION like BAPICUSTOMER_IDRANGE-OPTION ,
    LOW like BAPICUSTOMER_IDRANGE-LOW .
    SELECTION-SCREEN: END OF BLOCK b1.
    DUP_IDRANGE-SIGN = SIGN.
    DUP_IDRANGE-OPTION = OPTION.
    DUP_IDRANGE-LOW = LOW.
    append dup_idrange.
    Write : DUP_IDRANGE.
    CALL FUNCTION 'BAPI_CUSTOMER_GETLIST'
    Exporting
    MAXROWS = 0
    CPDONLY =
    IMPORTING
    RETURN =
    TABLES
    IDRANGE = DUP_IDRANGE
    ADDRESSDATA = ADDRESSDATA
    SPECIALDATA = SPECIALDATA
    break sy-uname.
    loop at ADDRESSDATA.
    endloop.
    Thanks
    Seshu

  • BAPI_CUSTOMER_GETLIST returning one less result when multiples of 100...

    Good day, All
    We call BAPI_CUSTOMER_GETLIST to return address information (ADDRESSDATA) for a group of customer records (IDRANGE).  Problem is that when the number of customer records is 201, 301, 401, 501, ... the address records that are returned are missing one.  We get 200, 300, 400, 500, ... records returned.
    I'm just wondering if anybody else has seen this and what you may have done to avoid this.
    Thanks,
    Chad

    Thanks for the reply Jonathan.
    What you are saying makes perfect sense except when we remove one record from the IDRANGE list going from 201 to 200 then we get the expected 200 record results in ADDRESSDATA and SPECIALDATA.  When we run that same removed record all by itself it does in fact return a single result line in both ADDRESSDATA and SPECIALDATA.
    I did find a Support Note 882460 that mentions something similiar.  Could this be the solution that we need.  Our version of R/3 is 4.7

  • How to get the o/p of the report by calling a method in grid form or table.

    Hi All,
    I have a doubt in using the function module from the report . Can any one tell me how to achieve this.l
    method GET_CUSTOMERS.
    DATA IT_IDRANGE TYPE TABLE OF BAPICUSTOMER_IDRANGE  INITIAL SIZE 0.
    DATA IT_ADDRDATA  TYPE TABLE OF BAPICUSTOMER_ADDRESSDATA  INITIAL SIZE 0.
    DATA WA_IDRANGE LIKE LINE OF IT_IDRANGE.
    DATA WA_ADDRDATA LIKE LINE OF  IT_ADDRDATA.
    *WA_IDRANGE = IDRANGE.
    *WRITE / WA_IDRANGE.
    WA_IDRANGE-SIGN = 'I'.
    WA_IDRANGE-OPTION = 'CP'.
    WA_IDRANGE-LOW   = '*'.
    WA_IDRANGE-HIGH = ' '.
    WRITE: / WA_IDRANGE-SIGN,WA_IDRANGE-OPTION,WA_IDRANGE-LOW,WA_IDRANGE-HIGH.
    APPEND WA_IDRANGE TO IT_IDRANGE.
    CALL FUNCTION 'BAPI_CUSTOMER_GETLIST'
    EXPORTING
      MAXROWS           = 0
      CPDONLY           =
    IMPORTING
      RETURN            =
      TABLES
       IDRANGE           = IT_IDRANGE
       ADDRESSDATA       = it_addrdata
      SPECIALDATA       =
    loop at it_addrdata into wa_addrdata.
      write / wa_addrdata.
      ENDLOOP.
    endmethod.
    now from the report am calling this and i need the result ie wa_addrdata in table form so while using the FM ALV_GRID_DISPLAY in class am getting the o/p. but how do i acheive it from report(SE38)
    DATA OBJ TYPE REF TO ZGBAPI_CUSTOMER_GETLIST.
    CREATE OBJECT OBJ.
    DATA IT_IDRANGE TYPE TABLE OF BAPICUSTOMER_IDRANGE INITIAL SIZE 0.
    DATA IT_ADDRDATA  TYPE TABLE OF BAPICUSTOMER_ADDRESSDATA INITIAL SIZE 0.
    DATA WA_IDRANGE LIKE LINE OF IT_IDRANGE.
    DATA WA_ADDRDATA LIKE LINE OF  IT_ADDRDATA.
    *WRITE / WA_IDRANGE.
    *WA_IDRANGE-SIGN = 'I'.
    *WA_IDRANGE-OPTION = 'CP'.
    WA_IDRANGE-LOW   = ''.
    *WA_IDRANGE-HIGH = ' '.
    CALL METHOD OBJ->get_customers
      EXPORTING
        idrange     = WA_IDRANGE
      IMPORTING
        addressdata =  WA_ADDRDATA
    CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      I_INTERFACE_CHECK                 = ' '
      I_BYPASSING_BUFFER                = ' '
      I_BUFFER_ACTIVE                   = ' '
      I_CALLBACK_PROGRAM                = ' '
      I_CALLBACK_PF_STATUS_SET          = ' '
      I_CALLBACK_USER_COMMAND           = ' '
      I_CALLBACK_TOP_OF_PAGE            = ' '
      I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
      I_CALLBACK_HTML_END_OF_LIST       = ' '
      I_STRUCTURE_NAME                  = 'BAPICUSTOMER_ADDRESSDATA'
      I_BACKGROUND_ID                   = ' '
      I_GRID_TITLE                      =
      I_GRID_SETTINGS                   =
      IS_LAYOUT                         =
      IT_FIELDCAT                       =
      IT_EXCLUDING                      =
      IT_SPECIAL_GROUPS                 =
      IT_SORT                           =
      IT_FILTER                         =
      IS_SEL_HIDE                       =
      I_DEFAULT                         = 'X'
      I_SAVE                            = ' '
      IS_VARIANT                        =
      IT_EVENTS                         =
      IT_EVENT_EXIT                     =
      IS_PRINT                          =
      IS_REPREP_ID                      =
      I_SCREEN_START_COLUMN             = 0
      I_SCREEN_START_LINE               = 0
      I_SCREEN_END_COLUMN               = 0
      I_SCREEN_END_LINE                 = 0
      I_HTML_HEIGHT_TOP                 = 0
      I_HTML_HEIGHT_END                 = 0
      IT_ALV_GRAPHICS                   =
      IT_HYPERLINK                      =
      IT_ADD_FIELDCAT                   =
      IT_EXCEPT_QINFO                   =
      IR_SALV_FULLSCREEN_ADAPTER        =
    *IMPORTING
      E_EXIT_CAUSED_BY_CALLER           =
      ES_EXIT_CAUSED_BY_USER            =
      TABLES
        t_outtab                          =   IT_ADDRDATA
    EXCEPTIONS
      PROGRAM_ERROR                     = 1
       OTHERS                            = 2
    IF sy-subrc <> 0.
    Implement suitable error handling here
    ENDIF.
    **"endloop.
    i want the o/p of this in table form... Pleae help.

    Thanks a lot Rod for your prompt reply.
    I agree with you about the accuracy of the data. Are you aware of any other way to track the execution times of Discoverer reports?
    Thanks
    Giovanni

  • How to read the column name of a table from sap system using C#?

    Hi!!
    I am using SAP .NET connector and creating a windows application.
    Now I wanna read the column name when a table name is given....
    Connection is done, but I don't know the code to read the column names alone...
    Can anyone help me with the code??

    fine!!
    So if i give the table name, which the RFC_READ_TABLE function module have, will it run properly? or i wanna change all the codes in order to support RFC_READ_TABLE function module?
    Because from the beginning I was using BAPI_CUSTOMER_GETLIST function, but my client requirement is to use ERP function module RFC_READ_TABLE, he didn't give any table name also..
    This is my code: What I have to change in this???
    ECCDestinationConfig ECCDestination = new ECCDestinationConfig();
                RfcDestinationManager.RegisterDestinationConfiguration(ECCDestination);
                RfcDestination rfcDest = null;
                rfcDest = RfcDestinationManager.GetDestination(a);
                    RfcRepository repo = rfcDest.Repository;
                    IRfcFunction customerList = repo.CreateFunction("BAPI_CUSTOMER_GETLIST");
                    IRfcTable addressData = customerList.GetTable("AddressTable"));
                    int j = addressData.Metadata.LineType.FieldCount;
                    for (int i = 0; i < j; i++)
                        RfcElementMetadata metadata = addressData.GetElementMetadata(i);
                        listallcolumn.Items.Add(metadata.Name);
    Message was edited by: Jeswin Rebil

  • How to use BAPIRETURN in a ZBAPI

    Hello friends
    I have looked at standard BAPI's like 'BAPI_CUSTOMER_GETLIST' where they use BAPIRETURN or BAPIRETURN1 in the export tab to send back the messages.
    Can I use BAPIRETURN or BAPIRETURN1 in the ZBAPI that I have created.
    If I can use, what are the things that I should be doing, other than defining it in the EXPORT tab in SE37 transaction. Do I need to add some code for it in the SOURCE code, or will it automatically send related messages.
    Any feedback will be highly appreciated.
    Thanks
    Ram

    Return parameter
    Description
    This parameter contains the messages from the method call.
    Value range
    Type  ID  Number  Message
    E    S&     26   Ranges: Value & in field SIGN is invalid. Allowed
    values are I, E.
    E    S&     27   Ranges: Value & in field OPTION is invalid
    (EQ,NE,GT,GE,LE,LT,BT,NB,CP,NP)
    E    F2    718   No customers were found for the selection criteria
    E    F2    543   No authorization to display general data for
    customer accounts
    We collect the return messages in that return parameter and create a log and display them in desktop or sent a email or stored them in application server.
    Ex :
            CALL FUNCTION 'BAPI_FIXEDASSET_OVRTAKE_CREATE'
              EXPORTING
                key                 = la_key
                testrun             = l_testrun
                generaldata         = la_generaldata
                generaldatax        = la_generaldatax
                inventory           = la_inventory
                inventoryx          = la_inventoryx
                postinginformation  = la_postinginformation
                postinginformationx = la_postinginformationx
                timedependentdata   = la_timedependentdata
                timedependentdatax  = la_timedependentdatax
                allocations         = la_allocations
                allocationsx        = la_allocationsx
                origin              = la_origin
                originx             = la_originx
              IMPORTING
                assetcreated        = la_assetcreated
              TABLES
                depreciationareas   = li_depreciationareas
                depreciationareasx  = li_depreciationareasx
                cumulatedvalues     = li_cumulatedvalues
                postedvalues        = li_postedvalues
                transactions        = li_transactions
                return              = i_return.
    IF NOT i_return[] IS INITIAL.
            CLEAR: wa_return,
                   wa_error_file,
                   l_message.
            LOOP AT i_return INTO wa_return.
              IF wa_return-type   = 'S'.
                wa_error_file-type = wa_return-type.
                g_no_load = g_no_load + 1.
                IF l_testrun <> 'X'.
                  CONCATENATE text-009 la_assetcreated-asset
                      INTO l_message.
                  CLEAR: la_assetcreated.
                  CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
                ELSE.
                  l_message = text-064.
                ENDIF.
                EXIT.
              ELSE.
                IF l_message IS INITIAL.
                  CONCATENATE l_message wa_return-message INTO l_message.
                ELSE.
                  CONCATENATE l_message wa_return-message INTO l_message SEPARATED BY ','.
                ENDIF.
              ENDIF.
              CLEAR: wa_return.
            ENDLOOP.
            MOVE-CORRESPONDING wa_input TO wa_error_file.
            IF wa_error_file-type <> 'S'.
              wa_error_file-type = 'E'.
              g_no_failed = g_no_failed + 1.
            ENDIF.
            wa_error_file-mssg1     = l_message.
            APPEND wa_error_file TO p_error_table.
            CLEAR: wa_error_file, l_message.
          ENDIF.
        ELSE.
          g_no_invalid = g_no_invalid + 1.
        ENDIF.

  • Getlist bapi for customer based on sales org, distbtn chnl

    Hi,
        Is there any standard BAPI for customer Getlist , i want to filter based on distribution chanel and sales org and divison.
            Now am using BAPI_CUSTOMER_GETLIST  its showing all customer list i want to filter this based on distribution chanel and sales org and divison.
    Thanks ,
    Arun

    Hi Siva : )
    In VK11 we have a key combination radio button called Country/ Destination Ctr./Plant/TaxClCust/TaxClMat.
    I think it might be a custom key combination (so you might have to create a siliar one for yourself), but basically all I had to enter there was Country = GB, Destination Coutry = GB, plant SORG1 (it's called the same as the sales org and is linked 1-1), tax classification on Customer = 2 (because I want the central setting on the customer to be 2 = ICO, no tax), tax classification on material 1 = full tax goods and enter relevat tax code.
    Hope this helps.
    It worked for me.
    Kind regards,
    Tanja

  • BAPI to get customers filtered by sales org and distribution channel

    Hi there,
    I'm writing a little portal web-app on an MS platform to allow externals to place orders directly.  I have a problem that I need to get a list of customers (for ship-to) that is filtered by the same sales org and dist chan as my sold-to company and BAPI_CUSTOMER_GETLIST doesn't return this info for filtering.  What options do I have?
    Many thanks,
    Ashley

    Hello,
    Create custom RFC function module.
    Use table KNVV to get your customer list based on sales org. & distribution channel.
    Regards,
    Sameer

  • Bapi_Salesorder_Getlist return no items

    When calling the Bapi_Salesorder_Getlist from .NET Connector but got no items return.
    I can browse the order for customer 1012 in SAPGUI.
    If the problem is caused by the searching parameters?
    Please check the code for me.
    Thanks!
         Orders.SAPProxyOrders proxyorders= new Orders.SAPProxyOrders(cs);
         // call the RFM method on the proxy
         Orders.BAPIRETURN Return0=new Orders.BAPIRETURN();
         Orders.BAPIORDERSTable Sales_Orders=new Orders.BAPIORDERSTable();
         try
              proxyorders.Bapi_Salesorder_Getlist("1012", "", "", "", "", "", "", "*", out Return0, ref Sales_Orders);
         catch(SAP.Connector.RfcCommunicationException exp)
              MessageBox.Show(exp.Message);
              return;
         catch(Exception exp)
              MessageBox.Show(exp.Message);
              return;
                   this.labelResultNumber.Text=Sales_Orders.Count.ToString();

    Thanks.
    Your hint is very helpful.
    Bapi_Customer_GetDetail can read single customer by giving customernumber (Knnum)
    Bapi_Order_GetStatus can also read a single order by giving order number.
    But When calling Bapi_Order_GetList or Bapi_Customer_GetList, it return no Rows.
    The BAPIREAUT.Number is 748, its Message said "No cusomter was found by giving criteria.
    I still suspect the searching parameters is wrong.
    The requirement is to list all the orders of a customer.
    Or could you give me such code directyly.
    Thanks a lot

  • RFC Error in SM58 Commit fault

    My scenario is RFC to XI to FILE.
    I made RFC destination in SM59
    and configure xi according to
    /people/michal.krawczyk2/blog/2005/03/29/configuring-the-sender-rfc-adapter--step-by-step
    The connection test in SM59 is succeeded.
    I would like to execute BAPI, so wrote following..
      CALL FUNCTION 'BAPI_CUSTOMER_GETLIST'
           IN BACKGROUND TASK
           DESTINATION 'BAPI_XI_001'
       <<< parameters >>>
       COMMIT WORK.
    BUT in SM58, I got error
    'Commit fault: com.sap.aii.af.rfc.afcommunication.
    RfcAFWException: alterna '.
    Any ideas?
    Best regards.

    Thank you very much for your information.
    I checked Q&A19 of SAP NOTE 730870
    and configured XI again.
    Then I got a different error...
    ' program BAPI_CUSTOMER_GETLIST not registered / CPI
      C-CALL: 'ThSAPECMINIT'#  '
    I have already checked the spelling of BAPI's name.
    Have you saw this error??

  • Service Call via RFC

    Hi all.
    I am currently starting with WDA and facing some problems in calling BAPI via RFC.
    We have a "plain" WAS without SD or other modules. Our data is distributed over multiple R/3 systems.
    When I try to implement a Service Call to the BAPI BAPI_CUSTOMER_GETLIST via RFC I got the error message that this FM is not available in the current system (WAS).
    Does anyone has experience in how to get this working?
    What is the best practice here?
    - Building wrapper on WAS which calls the FM via RFC on the other system?
    - Installing missing modules on WAS ?
    Any comment would be appreciated.
    Cheers,
    Sascha

    Hi again.
    To shorten development time we considered the following solution:
    We are generating web service proxy classes on the WAS for the BAPIs of the R/3 system we want to use. Afterwards we are generating wrapper function modules which will use these proxies. So we do not have to import all missing structrues cause these are generated automatically during proxy generation.
    I tested this already with BAPI_CUSTOMER_GETDETAIL2. Calling the wrapping fm which calls the service proxy works fine from se80. I do get a result via the service.
    Then i generated a service call for my WEBDynpro component using the wizard in WDA.
    Silly is that the generated code is not compilable cause of missing ,. Anyway after correcting I tried to run my webdynpro application and when the fm gets called via the generated service method I receive the following message:
    CODE           SOAP:111
    ERRORTEXT     Unallowed RFC-XML Tag (SOAP_EINVALDOC)
    Any ideas?
    Why is it working when i call the fm directly but not when calling it from my webdynpro app?
    Thanks in advance
    Sascha
    Message was edited by: Sascha Dingeldey
    Message was edited by: Sascha Dingeldey

  • Problems In JCO

    hi,
    in bapi_customer_getDetail2 ,i have to set customerno and companycode of customer.i can get customerNo from bapi_customer_getList.But how to Know companycode of customer.
    regards
    Guru

    Hi Guru,
    These all are the standard BAPIs related with Company Code .
    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
      one more thing..this is not the right forum to discuss the ABAP related issues. this is purely ABAP related issue. anyway u r using this with JCO.
    Regards
    Kishor Gopinathan

  • BAPI Programing- CODE

    Hi All,
             I am new to ABAP and just now started to make hand on practise in BAPI,  
    I need a code to try out this program
    here goes the program.
    Write a report to print or display the list of customers given the customer numbers and country codes (select options). Formatting and coloring should be professional.
    I-B: Use the standard Bapi instead of direct table access.
    I dont know how to proceed with this. please help in writing the code .
    Thanks in advance
    Thanks & regards.
    Prasannakesavan

    You could start with this....
    report zrich_0002.
    tables: kna1.
    data: iadd type table of bapicustomer_addressdata with header line.
    select-options: s_kunnr for kna1-kunnr.
    start-of-selection.
      call function 'BAPI_CUSTOMER_GETLIST'
    * EXPORTING
    *   MAXROWS           = 0
    *   CPDONLY           =
    * IMPORTING
    *   RETURN            =
        tables
          idrange           = s_kunnr
          addressdata       = iadd
    *   SPECIALDATA       =
      check sy-subrc = 0.
    Welcome to SDN.  Please remember to award points for helpful answers.  Thanks.
    Regards,
    Rich Heilman

  • How  to pass the BAPI Parameter

    Hi,
    I can able to connect the Sap using sap .net connector in vb.net. also using SAP .Net Connector wizard in C#.net,i can able to create Dll files of BAPI .also when im adding the dll reference in visualbasic.net it has been added successfully.but after i dont know how to pass the parameter to BAPI function and how to get the return records from BAPI.Can any one guide me how to do this in Visualbasic .net?

    Yes. Thankx . Actualy problem is that SAP .net connector 1.0.1 is not uninstalled completely on my system .
    Now i can able to see all the function using filter in  server explorer.Now i selected BAPI_CUSTOMER_GETLIST.Can you guide how to (code)get the datas into ADOtable or any recordset in Visual basic.net.
    Please give me the example program .
    Thanks in advance
    Message was edited by: Prakash N
    Message was edited by: Prakash N

  • Bapi_customer_list

    I am fairly new to data transfer with sap.
    I am trying to write app to export list of customer from sap using bapi_customer.getlist. Below is my test code but I am getting o rows back. Can anyone help.
    Thanks
    AppSapConfig sapCfg = new AppSapConfig();
                RfcDestinationManager.RegisterDestinationConfiguration(sapCfg);
                     RfcDestination sb = RfcDestinationManager.GetDestination("XXX");
                    try{
                        RfcRepository repo = sb.Repository;
                        IRfcFunction companyBapi = repo.CreateFunction("BAPI_CUSTOMER_GETLIST");
                        companyBapi.SetValue("Maxrows", "0");
                        companyBapi.SetValue("Cpdonly", "");
                        companyBapi.Invoke(sb);
                        IRfcTable detail = companyBapi.GetTable("AddressData");
                                                                                    for (int ii = 0; ii < detail.Count; ii++)
                            Console.WriteLine("????");

    Hi Kelvan,
    There are some good no of threads  available please check.
    [Calling Bapi |https://websmp209.sap-ag.de/~sapdownload/011000358700007640702002E/SAPJCo.pdf]
    Regards,
    Madhu.

Maybe you are looking for