Read Data Type Structure

Hi,
Is it possible using ABAP to read the schema definition of a data type to provide a list of the elements defined.
Thanks
Martin

Hi,
In ABAP you can parse xml or xsd using iXML package. Search for that in SDN.
The Message Interface will surely have the Message type name. So your requirement is absolutely possuble.
Need to know in which scenario you will use this? Please post that.
Regards,
P.Venkat

Similar Messages

  • How to read data from structure RSTXT

    Hi Everyone..
       I have some problem with read data from structure RSTXT.
    I am using transaction code vl02n -> for delivery select <b>Item</b> in item
    overview tab -> Go to -> Item -> text.
    I want display "<b>RSTXT-TXLINE</b>" field in <b>ALV</b> report how it can be possible?
    If anyone knows about it plz reply me with example.
    Thanks in Advance.

    Hi,
    Use FM READ_TEXT
    ( Once on the text, plz display it in plain page mode :
    then > Go To> header : Here you'll get the FM parameters : ID, Object, Name, ... )
    Sample code :
      DATA: BEGIN OF TTLINE OCCURS 0.
              INCLUDE STRUCTURE TLINE.
      DATA: END OF TTLINE.
      CALL FUNCTION 'READ_TEXT'
           EXPORTING
                CLIENT                  = SY-MANDT
                ID                      = L_ID
                LANGUAGE                = L_LANGUE
                NAME                    = L_BL
                OBJECT                  = 'VBBK'
           TABLES
                LINES                   = TTLINE
           EXCEPTIONS
                ID                      = 1
                LANGUAGE                = 2
                NAME                    = 3
                NOT_FOUND               = 4
                OBJECT                  = 5
                REFERENCE_CHECK         = 6
                WRONG_ACCESS_TO_ARCHIVE = 7
                OTHERS                  = 8.
    Regards,
    Erwan

  • Copy imported IDOC structure to own data type structure in PI

    I am looking to copy the imported IDOC structure to data type structure, is there any way to do this instead creating whole elements again. The reason to do this is I need to change the occurence of one of the element and standard IDOC structure wouldn't let me do it.
    Thanks,
    Menaga

    Hi Menaga,
    Inorder to change the occurance in IDOC you will need to import the idoc as external definition which you can use for message mapping (once you change the occurance and import the XSD).
    Michal's blog will help you get to it precisely,
    /people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change
    Gud luck,
    Regards,
    Pavan

  • Problem to transform Flat file to Data Type Structurated and map to IDOC

    Hi all,
    I have a file to idoc scenario.
    The information is like this:
    1#!445#!AI12#!1#!20070214#!DVXXXXR#!201#!31GINHG876#!#!
    2#!#!ETC
    3#!000000000030008888#!#!3000#!#!10#!#!20070215
    4#!dades45#!b#!c#!d#!e#!f#!g
    5#!pos5
    where 1, 2, ... = key segments for the file adapter and #! are the field separator.
    this must go to a Data Type with substructures like this:
    (xml)
    .1
    ......2
    .3
    ......4
    ......5
    where 2 is inside 1 and 4-5 inside 3.
    The reason of this is we can get unbounded replays of 3/4/5 for one header.
    But XI reads the information like if all segments are headers.
    .1
    .2
    .3
    .4
    .5
    So the IDOC is bad created.
    Where is the issue?  At Message Mapping all substructures are mapped with his default and at TEST option it works fine.
    Thanks in advance for your help.
    best regards
    Message was edited by:
            Federico Martin
    Message was edited by:
            Federico Martin

    Dear people,
    according to license problems at client, it's impossible to get the convert agent.
    so now we come back to try to solve with normal mapping.
    the next step is try to convert it using 2 message mappings: dt (flat xml) to dt (structurated) and this one to the idoc.
    i suppose it can be done adding program at interface mapping.
    I created the no hiereachical Data Type for load the information and it's fine. But i am unable to get the first mapping OK, because XI has problems with unbounded segments.
    If you agreed and has time, i copy here the information and his structure.
    I receive (#! defines separation and key segment fields are 1,2,3,4,5):
    1#!445#!AH02#!1#!20070214#!DVPOSTER#!201#!31GINHGIN0#!#!
    2#!#!ETC
    3#!000000000030008888#!#!3000#!#!10#!#!20070215
    4#!dades45#!b#!c#!d#!e#!f#!g
    3#!000000000030008888#!#!3000#!#!10#!#!20070215
    3#!000000000030008888#!#!3000#!#!10#!#!20070215
    4#!dades45#!b#!c#!d#!e#!f#!g
    5#!pos5
    5#!pos5
    5#!pos5
    The destination must be:
    CHASE A
    1 (1..1)
    ....2 (1..1)
    3 (1..unbounded)
    ....4 (0..1)
    3 (1..unbounded)
    3 (1..unbounded)
    ....4 (0..1)
    5 (1..unbounded)
    5 (1..unbounded)
    5 (1..unbounded)
    CHASE B
    Or, in another case with 5 as child of 3 (like example in last mail)
    1#!445#!AH02#!1#!20070214#!DVPOSTER#!201#!31GINHGIN0#!#!
    2#!#!ETC
    3#!000000000030008888#!#!3000#!#!10#!#!20070215
    4#!dades45#!b#!c#!d#!e#!f#!g
    5#!pos5
    3#!000000000030008888#!#!3000#!#!10#!#!20070215
    5#!pos5
    3#!000000000030008888#!#!3000#!#!10#!#!20070215
    4#!dades45#!b#!c#!d#!e#!f#!g
    5#!pos5
    1 (1..1)
    ....2 (1..1)
    3 (1..unbounded)
    ....4 (0..1)
    ....5 (1..unbounded)
    3 (1..unbounded)
    ....5 (1..unbounded)
    3 (1..unbounded)
    ....4 (0..1)
    ....5 (1..unbounded)
    3 (1..unbounded)
    ....4 (0..1)
    ....5 (1..unbounded)
    Questions:
    How i do for map Data Type (no hierachical) -to-> Data Type (hierachical) and  Data Type (hierachical) -to-> IDOC? Is any loop or context object required?
    Thank you in advance for your help and sorry the long thread.

  • How to pass complex data type structure to WebService under mx:request?

    From my Flex client, I need to pass data to a web service whose operation expects a complex data type with multiple layers of nesting structure. How can I populate the <mx:request> for the <mx:WebServices>? Any examples?
    A couple of approaches come to my mind:
    (1) construct ActionScript object to mimic the datatype expected by web service, and pass an instance of the AS object to mx:request; or
    (2) construct an entire SOAP request body in XML and pass it into mx:request.
    Does any of these (or both) work? If both work, which is the better way?
    Thanks in advance for your input!
    -William

    Thanks a lot for the rapid response, Marcel.
    For further details on the maping between WS complexType structure and AS object, is there any specific requirement? such as naming, binding, structure of nesting, etc.
    William

  • Data type structure while picking data from MS Access database

    Dear All,
    I have to start on new interface in which data from MS Access database will be updated in the z-table in SAP. Is there any blog available which gives step by step process for MS Access-XI-RFC interface. Or please guide me on what should be the structure of the Data Type for picking the data from the MS Access database.
    Regards,
    NJ

    Hi Nishu,
    Sender side the structure is as follows
    db_sen_dt
    ..... emp_row
    ..........  f1
    ..........  f2
    Structure is complex then check this blog
    /people/alessandro.berta/blog/2005/10/04/save-time-with-generalized-jdbc-datatypes
    JDBC to RFC Scenario, but it is synchronous
    SYNCHRONOUS SOAP TO JDBC - END TO END WALKTHROUGH  
    Also check this link
    Regards
    Ramesh

  • How to read *.dat type file

    Hallo!
    Can anyone help me with reading *.dat file using labview functions. Previously I've read them via matlab script, but after compiling to executable I could not read *.dat files. It might be because I'm working on LV 6i and in order to be able to read via matlab 6.5 I've paste matlabscript.dll from LV 7 to the main 6i place. However now I want to load this dats by using LV function and I can not achieve it.
    I've already tried to use some examples from the help base and it doesn't work. There are slightly more then 2 milion samples in one coloumn in tis file.
    Can anyone show me how to do that? I will appraciate
    thanks
    michal m
    Attachments:
    260701-1405V1.zip ‏1 KB

    LabVIEw is always big endian (on any platform), but most other programs are little endian on intel machines (windows). See also the link Donald posted.
    Your particular code still has a few bugs. Since you are reading U16, the number of data points is half the number of bytes in the file. You are trying to read twice as many and always get Error 4 (EOF encountered). To avoid this error, you need to divide the bytes by two for reading. Also watch out for correct representations, your record(s) indicator is I32 instead of U16, causing unecessary extra memory usage. ... and don't forget to close your file when done reading.
    Message Edited by altenbach on 05-30-2005 09:19 AM
    Message Edited by Support on 05-31-2005 08:59 AM
    LabVIEW Champion . Do more with less code and in less time .
    Attachments:
    ReadU16Dat.png ‏6 KB

  • Data Type structure within ABAP

    Can the structure of a message type within XI be seen using ABAP.

    Hi Martin !
    I'm afraid not. The process works the other way around. You can create/define it in ABAP and then import it in XI (as RFC).
    Or design it in XI (Integration Repository) and "export" it as an ABAP Proxy class in SAP ERP.
    Regards,
    Matias.

  • Error in read value from structure

    hi gurus,
    the structure does not contain any data.... so i have 2 problem related to it.
    1. do i apply the select query nd write statement on structure rf05l. i apply it gives error that rf05l is not the table.....
    2. so what is the use of include structure in report, why we used it nd what is the procedure to read data from structure.
    types : BEGIN OF t_rf05l.
    include structure rf05l.
    types : END OF t_rf05l.
    DATA : it_rf05l TYPE STANDARD TABLE OF t_rf05l WITH HEADER LINE,
    wa_it_rf05l TYPE t_rf05l.
    select * from rf05l into it_rf05l.
    append it_rf05l.
    write :......
    reply me soon....
    thanx
    manish sharma.

    Hi
    select * from rf05l into it_rf05l.
    append it_rf05l.
    write :......
    Do this:
    select * from rt05l
    into corresponding fields of table it_r05l.
    loop at it_ro5l into wa_it_rf05l.
    write....
    endloop.
    include structure rf05l. mens you are including all the fields of that Database table into itab or your structure. its does not mean that rt05l can be used as ITAB.
    Regards
    Aditya

  • Details on data types for posting data to DB2 on AS400 from XI

    Hi
       We have a scenario in which we post data from XI (3.0, SP23 ) to DB2 on AS400 and we are using jdbc adapters ( jdbc drivers from IBM deployed on XI J2EE server as per SAP's instructions )
    On AS400-DB2, there are two files F1 and F2  that we have to update in a particular library L1 - on a server S1.  Each of the two files has a single field with the same name as that of the file.
    I have the following questions :
    1. How do we construct/specify the data type in order to convert XML from XI to the sql that DB2 needs - I do understand there is a standard data type structure used to convert XML to sql calls when we use JDBC receiver adapter type communication channel. Do we use the same for posting XML data from XI to DB2 too ? 
    2. What is the url for the jdbc driver - to connect to DB2 on AS400 ?
    Please share experiences of XI -- > posting to DB2 using JDBC.

    Used standard xml -->SQL constructs

  • Data Type for File adapter

    hi all,
    we have a scenario which is idoc-xi-file
    the output data type should be something like this:
    [Data.1]
    Promo,1000,,,,,,,
    PromoD,2000,,yup
    Item,1,IGRP,,,,,,FTY,3
    Tier,1,,,,,,,ITEM,,
    Itemy,1,IGRP,,,,,,FTY,1,A_,100,,ELST
    we have to use file content conversion parameters for this as well as this needs to be converted to a CSV file format(third party system).
    any help in declaring this kind of data type(structure) and handling file content conversion parameters would be highly appreciated.
    for data type if any anybody can help me build the structure or give an example!!!
    would be gr8!!!
    thanks in advance
    ahmed

    Hi Parvez,
    For file content conversion, you can refer the below link:-
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/frameset.htm
    I hope this helps.
    Regards.
    Praveen

  • How can I read a binary file stream with many data type, as with AcqKnowledge physio binary data file?

    I would like to read in and write physiological data files which were saved by BioPac�s AcqKnowledge 3.8.1 software, in conjunction with their MP150 acquisition system. To start with, I�d like to write a converter from different physiodata file format into the AcqKnowledge binary file format for version 3.5 � 3.7 (including 3.7.3). It will allow us to read different file format into an analysis package which can only read in file written by AcqKnowledge version 3.5 � 3.7 (including 3.7.3).
    I attempted to write a reader following the Application Note AS156 entitled �AcqKnowledge File Format for PC with Windows� (see http://biopac.com/AppNotes/ app156Fi
    leFormat/FileFormat.htm ). Note the link for the Mac File format is very instructive too - it is presented in a different style and might make sense to some people with C library like look (http://biopac.com/AppNotes/ app155macffmt/macff.htm).
    I guess the problem I had was that I could not manage to read all the different byte data stream with File.vi. This is easy in C but I did not get very far in LabView 7.0. Also, I was a little unsure which LabView data types correspond to int, char , short, long, double, byte, RGB and Rect. And, since it is for PC I am also assuming the data to be written as �little endian� integer, and thus I also used byte swap vi.
    Two samples *.acq binary files are attach to this post to the list. Demo.acq is for version 3.7-3.7.2, while SCR_EKGtest1b.acq was recorded and saved with AcqKnowledge 3.8.1, which version number is 41.
    I would be grateful if you someone could explain how to handle such binary file stream with LabView and send an example to i
    llustrate it.
    Many thanks in advance for your help.
    Donat-Pierre
    Attachments:
    Demo.acq ‏248 KB
    SCR_EKG_test1b.acq ‏97 KB

    The reading of double is also straight forward : just use a dble float wired to the type cast node, after inverting the string (indian conversion).
    See the attached example.
    The measure of skin thickness is based on OCT (optical coherent tomography = interferometry) : an optical fiber system send and received light emitted to/back from the skin at a few centimeter distance. A profile of skin structure is then computed from the optical signal.
    CC
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Read_AK_time_info.vi.zip ‏9 KB

  • Plz help upgrade issue moving data from char type structure to non char typ

    Hi Experts
    plz help its very urgent
    Data :workout(5000) .
    FIELD-SYMBOLS : <FS_WORKOUT> TYPE ANY.  
    workout = '         u' .
    ASSIGN WORKOUT TO <FS_WORKOUT> CASTING TYPE C .
                      BAPISDITM = <FS_WORKOUT>.
    i am getting dump after BAPISDITM = <FS_WORKOUT>.
    i think i am getting the dump bcoz i am moving character type structure to non character type structure but i think with field symbols we can remove this issue thats y i used it but its not working plz help me
    its very urgent
    *dump is :*
    Short text
        Data objects in Unicode programs cannot be converted.
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "ZSDR0009" had to be terminated because it has
        come across a statement that unfortunately cannot be executed.
    How to correct the error
        Use only convertible operands "dst" and "src" for the statement
           "MOVE src TO dst"
        If the error occures in a non-modified SAP program, you may be able to
        find an interim solution in an SAP Note.
        If you have access to SAP Notes, carry out a search with the following
        keywords:
        "UC_OBJECTS_NOT_CONVERTIBLE" " "
        "ZSDR0009" or "ZSDR0009_I02"
        "USER_COMMAND"
    thanx in advance

    i got d solution in this thread
    Hi all,
    data: gv_line(6000) type c.
    Bvbapkom = gv_line.
    But i am getting the Error like : gv_line and Bvbapkom are not mutually convertable.
    Note: Bvbapkom is a Structure
    How do i solve this ?
    Mahesh
    KR  
    Posts: 210
    Registered: 11/24/06
    Forum Points: 0 
      Re: gv_line and Bvbapkom are not mutually convertable.  
    Posted: Nov 30, 2007 8:40 AM    in response to: KR         Reply 
    Hi ,
    i got the solution
    ANSWER:
    Field-symbols: <X_Bvbapkom> type x,
    <X_gv_line> type x.
    Assign: Bvbapkom to <X_Bvbapkom> casting,
    gv_line to <X_gv_line> casting.
    <X_Bvbapkom> = <X_gv_line>.
    Nasaka Ramakris...  
    Posts: 4
    Registered: 1/19/08
    Forum Points: 20 
      Re: gv_line and Bvbapkom are not mutually convertable.   
    Posted: Jan 19, 2008 7:42 AM    in response to: KR         Reply 
    Hi Check this answer.
    ANSWER:
    Field-symbols: <X_Bvbapkom> type x,
    <X_gv_line> type x.
    Assign: Bvbapkom to <X_Bvbapkom> casting,
    gv_line to <X_gv_line> casting.
    <X_Bvbapkom> = <X_gv_line>.

  • XI settings, change of Data Types and XI still maps old structures

    Hi,
    I have defined XI scenario, where synchronous WebService is being called, and XI calls RFC function module, which returns data. It was working perfectly, until
    I have changed the order of few fields in Data Type and added a few new (exactly as the changes in RFC function module).
    And now the WebService returns exception, on the first field added to the interface:
    <Trace level="1" type="T">com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation: Cannot produce target element /ns1:MT_BMS_Response/CUSTOMERS_PERSON/TITLE. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd at
    TITLE is added field.
    I have reactivated everything one by one again, clear cache from Integration Builder and Integration Directory, but it does not help and still old structures are being used in XI.
    I have tested the Interface Mapping and all fields are transformed correctly.
    Please help as it comes a little urgent and I have run out of ideas what to do to refresh the customizing of data types?
    Thank you in advance!

    Hi Peter,
    Yes, I am calling RFC function module from XI.
    After I changed the interface of RFC in SAP, I have imported this RFC once more to XI in Integration Builder and new structures appeared.
    And exception returned is that first new field added to the RFC and Data Type and so on, returns an exception.
    And returned XML structures (in message monitoring) appears to be still old structures.

  • A structure with mutiple data types or array of array

    I want to read some soft of a table from a text file and want to store in a structure (not in database) for future use. I want the structure to have rows and columns when I need to reach. Colums should store multiple data types (int and/or string). I have examined Collections that only store one data type and only one dimension. I need a structure that holds multiple datatypes and at least 2 dimension. In short I need array of array? Any example or suggestion?

    Here is the colection part. But I cound not get it finished. Stuck at getting data from collection.. How could I read from the collection
        public static Long ReadFromFile() {
            List liste = new ArrayList();
            try {
                FileReader file = new FileReader ("abc.txt");
                BufferedReader buffer = new BufferedReader (file);
                String line = "";
                int i = 0;
                while ((line = buffer.readLine())!= null) {
                    if (i>0) {
                        DataS kontrol = new DataS();
                        String [] temp = null;
                        temp = line.split("\t");
                        for (int j=0; j< temp.length; j++) {                       
                            if (j== 0 && StrUtil.ValidNumber(temp[0])>0 ) {
                                kontrol.set_C_id(temp[0]);
                            } else if (j== 1) {
                                kontrol.set_C_enabled(temp[1]);
                            } else if (j== 2) {
                                kontrol.set_C_table(temp[2]);
                            } else if (j== 3) {
                                kontrol.set_C_field(temp[3]);
                            } else if (j== 4) {
                                kontrol.set_C_xmlobjectname(temp[4]);
                            } else if (j== 5) {
                                kontrol.set_C_xmlsubobjectname(temp[5]);
                            } else if (j== 6 && StrUtil.ValidNumber(temp[6])>0 ) {
                                kontrol.set_C_controltype(temp[6]);
                            } else if (j== 7) {
                                kontrol.set_C_datatype(temp[7]);
                            } else if (j== 8 && StrUtil.ValidNumber(temp[8])>0 ) {
                                kontrol.set_C_datalength(temp[8]);
                            } else if (j== 9 && StrUtil.ValidNumber(temp[9])>0 ) {
                                kontrol.set_C_dl(temp[9]);
                            } else if (j== 10) {
                                kontrol.set_C_conditionop(temp[10]);
                            } else if (j== 11) {
                                kontrol.set_C_conditionval(temp[11]);
                        liste.add(kontrol);                   
                    i++;
                    buffer.close();
            catch (IOException e) {
                return Long.valueOf(-1);
            /*For reading test*/
            try{
                DataS stored_kontrol = new DataS();
                Iterator itr = liste.iterator();
                int i = 0 ;
                while(itr.hasNext()) {
                    //Object obj = itr.getClass();
                    // Here were I stuck... How can I read from collection which is filled with object
            } catch (Exception e) {
                return Long.valueOf(-1);
            return Long.valueOf(1);
        }

Maybe you are looking for

  • Photoshop Elements 13 crashes my Windows 7 PC every time I edit and try to save a panorama jpg created on a Samsung Galaxy S5 camera phone.

    Photoshop Elements 13 program crashes every time when using my Windows 7 PC to edit and try to save a panorama jpg created on a Samsung Galaxy S5 camera phone. However, Photoshop Elements 11 will perform and save the edits OK. What is wrong with vers

  • Send an email base on data in database

    Hi, I have created an stored procedure,which will send an email on certain condition but it doesn't seen to work. can anyone pls help. sp := CREATE OR REPLACE procedure AMC.amc_renewal(amc_date date) as begin for dates in (select serial_no, ORION_SUP

  • REQUEST: UEFI/GOP bios update for R9 290X GAMING 4G

    Greetings, I'd appreciate it if you could give me an updated bios for my graphics card (see title). Beforehand, could you tell me how to extract the binaries first, so I could supply those to you? BIOS: dm121506.students.fhstp.ac.at/ORIGINAL%20BIOS/H

  • Macbook Pro to Sanyo projector wireless ?

    Greetings from Alaska. Say I need some advice. We have a Sanyo projector mounted on the ceiling at our church. Currently I have a VGA and a S-video cables running down to meet our laptops. I notice that the S-video is much clearer on the screen (whic

  • Work flow SBWP Several Invoice

    Hi Gurus, can anyone help on how to group into one the several work items (executable documents-scanned invoice) for processing in FB60? The case was there are several pages of the invoice and have to be scanned in four parts creating 4 work items.