Getting a table from XI to SAP through RFC

Hi Experts,
I created a RFC function to get data from XI.
I created a structure and defined a table in the Tables tab in the function.
When the function is called fron XI, I can see that the function is working, but i get no data in the table.
Any ideas?
Thank you very much,
Sagit.

Hi,
The function parameters:
FUNCTION zsd_get_cost_tms_from_xi .
""Local Interface:
*"  TABLES
*"      IT_COST_TMS STRUCTURE  ZSD_COST_TMS_STRUCT OPTIONAL
*"      RETURN STRUCTURE  BAPIRET2 OPTIONAL
The table a expect to get from XI:
STRUCTURE  ZSD_COST_TMS_STRUCT :
VBELN     VBELN     CHAR     10     0     Sales and Distribution Document Number
ABSTAMP     ABSTAMP     CHAR     14     0     ABAP Time Stamp
KBETR     CHAR11     CHAR     11     0     Character Length 11
ACE_TXT50     ACE_TXT50     CHAR     50     0     Text
ABADRKFLDN     ABADRKFLDN     CHAR     30     0     Field name for SD interface
Best Regards,
Sagit.

Similar Messages

  • How to get internal table from SAP Data Provider C#

    Hello.
    ABAP:
       DATA: lt_t001 TYPE TABLE OF t001.
       DATA: url(1000) TYPE c.
      SELECT * INTO TABLE lt_t001 FROM t001.
      CALL FUNCTION 'DP_CREATE_URL'
        EXPORTING
          type                 = 'APPLICATION'
          subtype           = 'X-R3TABLE'
        TABLES
          data                 = lt_t001
        CHANGING
          url                    = url
        EXCEPTIONS
          OTHERS           = 4.
    C#:
    using SAPDataProvider;
    using SAPTableFactoryCtrl;
    public void SetDataFromUrl(string url)
                SAPDataProviderClass p = new SAPDataProviderClass();
                p.SetDataFromURL("APPLICATION", "X-R3TABLE", url);
                ISapDPR3Table tbl = p.GetDataAsR3Table("APPLICATION", "X-R3TABLE");
                SAPTableFactoryClass tf = new SAPTableFactoryClass();
                Table tb = (Table)tf.NewTable();
                tb.ISAPrfcITab = tbl.DataTable; // Exception !!!!!!
    How to get internal table from SAP Data Provider ?

    Hi Sergey,
    I'm trying to do the same, have you found a solution to solved it?
    thanks for your help.
    Regards.
    Jonathan

  • Get all tables from a tcode

    Can any of you suggest a function module from which I can get the list of tables used in a transaction?
    I have tried function module GET_TABLE which returns only the tables used in a program.But if there are any function module calls inside the program I need to get the tables used in the function module also.
    Any ideas ??

    HI,
        Try this func. module.
    RS_PROGRAM_TABLES
    give values to parameters:
    OBJECT_TYPE         -            TRAN
    OBJECT_NAME       -             ME31K ->(transaction name)
    Regards,
    Karthick.

  • How to pass resultset to the internal table from EIM to SAP's FM

    We're testing the data push from EIM to SAP data.
    I build a function module 
    FUNCTION ZLP0105_FUN.
    ""Local Interface:
    *"  IMPORTING
    *"     VALUE(I_IMPORTVARIABLE) TYPE  CHAR10 DEFAULT 32
    *"  TABLES
    *"      T_TABLE STRUCTURE  ZLP0105_FUN OPTIONAL
    After the EIM imports the funtion module,  the import variable I_IMPORTVARIABLE shows in the EIM, but the structure of the table T_TABLE does not show in EIM.  the Structure contains 4 fields. 
    How can the structure (4fields) show in the EIM?
    any help will be greatly appreicated.

    How are you passing that one single record to the workflow Conatiner
    I mean are you using any macro's or FM
    See if at all you want to pass a table with multple values then you hvae to use the macro's SWC_SET_TABLE by including the *INCLUDE<CNTN01> in your module pool program and
    for SWC_SET_TABLE you have to pass three parameters
    SWC_SET_TABLE it_cont 'T_DATA' t_info.
    It_cont is of type SWCONT
    T_DATA is a workflow conatainer element and the type should be same as your Table control
    t_info is a internal with the values that are displyed in your table control.

  • I can't get any sounds from my ipod, only through earphones

    I can't get any sounds from my itouch. I can only hear through my headphones. I completely reset my itouch and still nothing

    - Try cleaning out/blowing out the headphone jack. Try inserting/removing the plug a dozen times or so. There is a little switch in the headphone jack that disconnects the speaker when the headphone jack is inserted.
    Try the following to rule out a software problem. I do not know what you meant by "completely reset my itouch".
    - Reset the iOS device. Nothing will be lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iOS device.
    - Make an appointment at the Genius Bar of an Apple store. Seems you have a bad headphone jack or other hardware problem.
    Apple Retail Store - Genius Bar

  • Relation table from BW and SAP

    Hi Expert,
    Please help me about how to find the mapping of SAP table and BW table, I can not see the link of two place of SAP box and BW box.
    HieuLM

    Hi,
    Please note that there is no direct link between BW table fields and R/3 table fields.
    In RSOSFIELDMAP table, you can find the mapping between the datasource field(R/3 field) and the infobject in BW/BI system for a particular datasource and source system.
    Suppose VBELN field from R/3 has been used in a datasource and you want fo find the infobject in BW to which it has been mapped, then in this table, give VBELN as field and the particular source system name and execute. You would find the Infoobject that will be filled by this field.
    Now if you want to find the table of R/3 from where this field VBELN is coming, then take the datasource name from this BW table and go to R/3 system.
    If this is a LO datasource, go to LBWE and click on Maintenance for this datasource. You would get the list of fields which would start like MCVBAK VBELN. Here VBAK is table name.
    If it is a generic datasource, go to RSO2, give your datasource. From here based on table/ function module you should be able to find the source for this field.

  • How to get Auction No. from RFX in SAP SRM strategic sourcing

    Hello experts,
    We are using SAP SRM7.0 strategic sourcing.
    We are converting the RFx to Auction. All the thing we needed is if there is any function module to get the auction number with the RFx number.
    I've tried with a few but couldn't found.
    Thanks & best regards,
    Ramana

    Hi Ramana,
    You should check following link:
    http://wiki.scn.sap.com/wiki/display/SRM/Live+Auction+tables+structures+classes+function+groups+and+function+modules
    I hope it helps.
    Regards,

  • Get a table from XML with unknown number of columns

    Guys, I'm looking if it is possible to get the following result:
    imagine I have an XML like one of the following (it doesn't matter which one, I just give a few examples for you to have a choice). The main idea, that there are described several columns and values for 1 row of these columns, e.g.:
    SQL> with t as (select
      2  ' <column>
      3    <name>col1</name>
      4    <value>100</value>
      5   </column>
      6   <column>
      7    <name>col2</name>
      8    <value>200</value>
      9   </column>' xml from dual union all
    10             select
    11  ' <column>col1
    12     <value>100</value>
    13    </column>
    14    <column>col1
    15     <value>100</value>
    16    </column>' from dual union all
    17             select
    18  '<col1>100</col1>
    19  <col2>200</col2>' from dual)
    20             --
    21             select * from t
    22  /
    XML
    <column>
      <name>col1</name>
      <value>100</value>
    </column>
    <column>
      <name>col2</name>
      <value>200</value>
    </column>
    <column>col1
       <value>100</value>
      </column>
      <column>col1
       <value>100</value>
      </column>
    <col1>100</col1>
    <col2>200</col2>
    SQL> I want to get the following result from this XML:
          COL1       COL2
           100        200So the main idea here is that the number of columns can vary - it is not fixed.
    So it is quite similar to dynamic SQL.
    Is it possibe with XML?

    The only general way to get a flexible amount of columns I know of is to use table functions returning anydataset.
    It should be rather straightforward to pass in a xml document and return its tablestructure respectivly (though the »structure« of the xml must be fixed).
    Would that be an acceptable way of doing this?

  • HT5622 I just got a new iPhone 5.  I am trying to get my apps from my iPhone 4 through the App Store I am receiving an error saying "ConnectionManager::invoke:: Failed to find service connection URL."  I am showing full strength  on my wifi signal.  What

    Help I keep getting a connection error for App Store and iTunes on my new iPhone 5 but not for game enter?  What should I do?

    From what I'm seeing, looks like it's being fixed even as we speak.  My recommendation is to wait an hour or so and check again.  Inconvenient, but that's probably the best option.

  • How to send Chinese Characters from BPEL to SAP through JCA Adapter

    Hi All,
    We want to do a POC using a BPEL process to send Chinese characters to SAP System through a JCA Adapter.
    If anyone has implemented the similar requirement, please share your thoughts on how to achieve it? Or if there had been any problems?
    Also, please let us know which SAP API we can use to test this?
    Appreciate your quick help!

    Hi Srini,
    I am working on 9.0.3 EBS 11i.
    Now i am able to encode using the below code:
    in = new BufferedReader(new InputStreamReader(uploadedByteStream.getInputStream(),"UTF-8"));
    if(linetext[7]!=null&&!"".equalsIgnoreCase(linetext[7]))
    col8=linetext[7].toString();
    vendor = new String(linetext[7].getBytes("UTF-8"),"EUC_CN");
    Now i am able to encode to chinese character when the file is in ANSI encoding, i see the CSV data in some form(not chinese).
    But when the file is in UTF-8 , and i can see the CSV data in Chinese (when i open in edit plus) , the encoding is not proper. when i remove the encoding the chinese data is coming properly.
    The data i am printing on the OAF screen.
    Now my doubt is : What type of file shd i be uploading ANSI/UTF-8????
    When i see on the local jdev as sop's , the data is seen as ???? but on the screen its printing correctly.
    but the data has to be passed to pl/sql procedure.
    Regards,
    Roopa.

  • Transfer data from legacy system to sap through rfc

    There is an Excel-sheet where a user will enter some records, this excel-sheet should be automatically transferred to SAP. How it can be done? How can I see that records and how this link would be stablished?Give me the detail example! please help...!

    hi,
    You can write a program which will be run at scheduled intervals. You can crate a job for this.
    This program will read the file either by OPEN DATASET, READ DATASET
    for GUI_UPLOAD ... depending on where the file is located.
    Then you can do the processing of each record using a BDC to insert recordsinto SAP. This will be done by doing a transaction recording in SHDB.
    Useful links:
    BDC
    www.sap-img.com/abap/learning-bdc-programming.htm
    www.itquestionbank.com/bdc-recording.html
    Regards,
    Vivek

  • Execute ABAP Code Inspector from Outside of SAP

    Hi all...
    For reporting purpose, I would like to use ABAP Code Inspector (transaction SCI) for generating output as a file, it should call from outside of SAP through RFC function module and generate the list (output) as flat file (or XML), does anyone have been done with similar work like this? I wonder if you could share your experience with me...
    thanks in advance,
    yayan irianto.

    I managed to set up the variant, however found a problem.
    I used "Search ABAP Statement Patterns" under "Search Functs" and set the pattern like followings.
    SELECT + INTO *
    SELECT SINGLE + INTO *
    However following statements were detected.
    SELECT * INTO TABLE IT_DRAW FROM DRAW.
    SELECT MANDT INTO TABLE IT_DRAW FROM DRAW.
    SELECT SINGLE * INTO TABLE IT_DRAW FROM DRAW.
    SELECT SINGLE MANDT INTO TABLE IT_DRAW FROM DRAW.
    It's because + means one ABAP token in the code inspector.
    Is there anyway to find only "SELECT SINGLE *" and "SELECT *" ?

  • Retrieve data from R3 to XI using RFC

    Hi,
    I want to get data out from R3 to XI through RFCs or even using idocs. I have done RFC configurations in abap using SM59 with XI as destination. I am not sure whether its right. Please guide me as to how to get data out of R3 by first sending the ID no. to R3 and then retrieving data. Can anybody help me or give me some links where i could get some information about such a scenario?
    Thank you

    Hi Kevin,
    You need not to do any seeting at R3 side for RFC Scenarios.
    For RFC Scenario:
    Make RFC in R3 make sure that it is working fine in R3. take ID as a import parameter.
    Import the RFC Structure in XI in Imported Objects.
    Do the Design & Configuration as you do generaly.
    For IDOC Scenarios :
    Yuo have to do some setting in R3 and XI side . For Required setting refer following Links.
    Trouble shooting ALE settings.
    Troubleshooting of ALE Process
    Configuration steps for Idoc.
    Configuration steps required for posting idoc's(XI)
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d19fe210-0d01-0010-4094-a6fba344e098
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/cdded790-0201-0010-6db8-beb9bb2b2660
    Reward Points if Helpful
    Thanks
    Sunil Singh

  • Want to get a hardcopy from the oscillosco​pe tds3034b through ethernet

    i'd like to use labview to get a hardcopy from my oscilloscope tds3034b through ethernet,but after I sent out "hardcopy start" i can't receive any data from oscilloscope.I found some other people also have this issue,I don't know how to close it.wish you give me some suggestions.Thanks.
    attachment is  other people's block diagram for 3034b
    Attachments:
    original.png ‏22 KB

    You are telling the hardcopy to go to a printer.  See here for the code I used to get the screen shot and save it to a file on my computer instead of on the scope: http://forums.ni.com/t5/Instrument-Control-GPIB-Se​rial/Screen-capture-of-Tektronix-MSO4104B-using-La​...
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions

  • Getting An Error while connecting to SAP :InComplete logon data

    Hi
    I trying to get the tables of SAP using Sapproxy class ,but enable to get the table from SAP Table..
    and also using SAP Connector 2.0.1 to connect the .net ,I got the SAP function and I write the code for it but enable to get the data in from the SAP
    I am binding the data to the data grid
    it is displaying the error like:
    SAP.Connector.RfcLogonException: Incomplete logon data.
    How to fix the problem ? suggestion please
    Thanks

    1.check your hibernate.cfg.xml file and make sure you use "xwiki/xwiki" as the username and password.
    2.make sure you have create "xwiki" tablespace in your oracle db.
    B.R
    Han

Maybe you are looking for