Anything for DDIC-structure to XSD transformation available???

Hi,
do you know a function module/class/transaction that allows <b>to transform any ddic structure to its XSD representation</b>?
I know that with "CALL TRANSFORMATION" you can transform ddic structures to an XML representation. But I need a simple XSD (Scheme) representation.
Any idea??

Hi Christian,
the XSD editor is part of the XI Integration Builder and is running in the design part (Java). There you can create manually data types and the editor is converting that to XSD automatically. Another option there is to import existing XSD... My problem is I have a lot of ddic structures in R/3 and I need them for XI. -> import
I have asked this question also in the XI forum - not really helpful answers yet.
I thought there must be a standard SAP function module to create that XSD presentation. If not you have to create complex structures manually within XI. Nice work
Thanks anyway and best regards to Dr. Muller

Similar Messages

  • Deep DDIC-Structure - Method to get the Comp.Type of a sub-structure

    Dear colleagues,
    thought the subsequent piece of coding might be helpful for the following problem:
    In DDIC you have created a deep/nested Structure e.g. a complete Business Document representation like
    s_doc_header type struct_doc_header
         (incl.) item  type tab_item
            (incl) party type tab_party etc.
    Now for some purpose you need to access somewhere a sub-part of this structure, e.g. the party-part. You only know (dynamically) the component name "party", but need for dynamic access also the Component Type ("tab_party") (in order to make use of  a "CREATE DATA lr_reftodata TYPE (determined_comp_type)." )
    The following piece of coding should help to query any start component type (here "struct_doc_header") for its embedded components.
    Its a recursive use of features provided by the very nice class(set) of cl_abap_structdescr.
    I implemented it as a static method.
    When doing so, you need to ensure, that the TYPE-GROUP "ABAP" is linked to the class (class properties --> forward declarations),
    Let me know if you find it useful.
    And apologies in advance, if the same problem was already posted in the forum. I did only a rough search before due to a lag of ideas for appropriate search-strings ...
    Best regards,
    Rudy
    Signature:
    Importing:
    IV_COMPNAME     TYPE ABAP_COMPNAME
    IV_START_STRUCTR     TYPE KOMP_TYPE
    Exporting/returning
    EV_DDIC_STRUCT     TYPE KOMP_TYPE
    METHOD search_deep_ddic_by_comp.
    * Description      -------------------------------------------
    *  Methods looks into a deep DDIC-Structure and returns the
    *  corresponding TYPE
    *  Prerequsite for usage: Structures component names are unique.
    * Local Data Defintions --------------------------------------
    * Locals -----------------------------------------------------
    * TYPES:
      DATA: lv_compname                 TYPE abap_compname.
      DATA: lt_componenttable           TYPE abap_component_tab.
      DATA: lv_relative_name            TYPE string.
      DATA: lv_ddic_header                  TYPE x030l.
      DATA: lv_ddic_struct              TYPE komp_type.
      DATA: lv_start_struct             TYPE komp_type.
    * supporting
      DATA: lv_lines                    TYPE i.
      DATA: lv_message                  TYPE string.
      DATA: lt_selopt                   TYPE sesf_selection_parameters_tab.
      DATA: ls_selopt                   TYPE sesf_selection_parameter.
    * References -------------------------------------------------
      DATA: lo_struct_descr             TYPE REF TO cl_abap_structdescr.
      DATA: lo_type_descr               TYPE REF TO cl_abap_typedescr.
    * Field-Symbols ----------------------------------------------
      FIELD-SYMBOLS:
            <fs_struct_descr_component> TYPE abap_componentdescr.
      lo_struct_descr ?= cl_abap_structdescr=>describe_by_name( p_name = iv_start_structr ).
      IF lo_struct_descr IS BOUND.
    *   get all sub-structures/components of iv_start_structr
        CALL METHOD lo_struct_descr->get_components
          RECEIVING
            p_result = lt_componenttable.
        lv_compname = iv_compname.
        READ TABLE lt_componenttable ASSIGNING <fs_struct_descr_component>
                                               WITH KEY  name = lv_compname.
        IF sy-subrc = 0.
    *     matching component found - search for DDIC structure
          CALL METHOD <fs_struct_descr_component>-type->get_relative_name
            RECEIVING
              p_relative_name = lv_relative_name.
          ASSERT lv_relative_name IS NOT INITIAL.
          CASE <fs_struct_descr_component>-type->type_kind.
            WHEN 'u' OR 'v'. "structure
              ev_ddic_struct = lv_relative_name.
              RETURN.
            WHEN 'h'. "table type - derive the line type
              lo_type_descr ?= cl_abap_datadescr=>describe_by_name( p_name = lv_relative_name ).
              CALL METHOD lo_type_descr->get_ddic_header
                RECEIVING
                  p_header = lv_ddic_header.
              IF sy-subrc = 0.
                ev_ddic_struct   = lv_ddic_header-refname.
                RETURN.
              ELSE.
                "error
              ENDIF.
            WHEN OTHERS.
              "error
          ENDCASE.
        ELSE.
    *     go deeper into structure and look into each sub-structure via recursion
          LOOP AT lt_componenttable ASSIGNING <fs_struct_descr_component>.
            CALL METHOD <fs_struct_descr_component>-type->get_relative_name
              RECEIVING
                p_relative_name = lv_relative_name.
            ASSERT lv_relative_name IS NOT INITIAL.
            CASE <fs_struct_descr_component>-type->type_kind.
              WHEN 'u' OR 'v'. "structure
              WHEN 'h'. "table type - derive the line type
                lo_type_descr ?= cl_abap_datadescr=>describe_by_name( p_name = lv_relative_name ).
                CALL METHOD lo_type_descr->get_ddic_header
                  RECEIVING
                    p_header = lv_ddic_header.
                IF sy-subrc = 0.
                  lv_relative_name = lv_ddic_header-refname.
                ELSE.
                  "error
                ENDIF.
              WHEN OTHERS.
                EXIT. "next loop, investigate only struct and table
            ENDCASE.
    *        lv_compname     = <fs_struct_descr_component>-name.
            lv_start_struct = lv_relative_name.
            CALL METHOD /scmtms/cl_ddic_utility=>search_deep_ddic_by_comp
              EXPORTING
                iv_compname      = iv_compname
                iv_start_structr = lv_start_struct
              IMPORTING
                ev_ddic_struct   = lv_ddic_struct.
            IF lv_ddic_struct IS NOT INITIAL.
              ev_ddic_struct = lv_ddic_struct.
              EXIT.
            ENDIF.
          ENDLOOP.
        ENDIF.
      ENDIF.
    ENDMETHOD.

    Using command:
    ASSIGN COMPONENT idx OF STRUCTURE struc TO <fs>.
    For example:
    DESCRIBE FIELD pi_output TYPE pi_output COMPONENTS lv_columns. "For number of columns
    DO lv_columns TIMES.
    ASSIGN COMPONENT SY-INDEX OF
    STRUCTURE (name of structure) TO <l_fs_output>. "<l_fs_output> - field of structure
    DESCRIBE FIELD <l_fs_output>... "with other options.
    ENDDO.

  • Simple transformation with reference to ddic structures

    Hi, experts,
    we decide to use xml as the format when exchanging massive data with other applications. and we want to use simple transformation because according to the document it's more fast.
    actually our file structure is determined by certain ddic structures, one xml file main contain several ddic structures , and they are all flat one, not deep structure.
    the xml file may look like this:
    <data>
    <ddic1>[components of ddic structure 1 ]</ddic1>
    <ddic2>[components of ddic structure 2 ]</ddic2>
    </data>
    i am new to ST,i am wondering that is it possible to make the ST more easy with the help of ddic structure? do i still need to declare the components one by one in the ST program?
    BR.
    jun

    It only runs ok with 2 internal tables because of the way you set up the XML string.  It will run ok with 3 internal tables too.  If you strip out the '<C>' nodes or move the '<C>' nodes around, you'll see what I mean (move the C nodes to the last B node).  Each time you start a loop in a simple transformation, the internal table is initialized.  So, you need to form your sample XML string differently, declare your internal tables differently (nested), or use XSLT for a little more power.

  • XSD to DDIC Structure

    Hi,
    Is there any way of creating a DDIC Structure based on a given XSD schema?
    Thanks,
    Pedro Leal

    People, I have the same need and, although I can create DataType (dictionary) proxies (unlike Pedro), it doesn't allow me to import an .XSD, it's still looking for the portType definition (which belongs in a WSDL but not in a XSD).
    Given that a DataType type proxy only creates structures, I don't get why it won't let me use an XSD file as input...
    Specifically, I get the error:
    Interface definition missing in WSDL document
    (<portType> missing)
    (Message no. SPRX125)
    I may add that currently I'm trying to import a local XSD file directly in SE80 but I suppose that generating from XI definition (loading the XSD in XI first) will yield the same result.
    Does anyone have an explanation for this?
    Many thanks

  • I purchased extra cloud storage and it shows 51 GB available yet there's no room for anything. How do I allocate that available storage?

    I purchased extra cloud storage and it shows 51 GB available yet there's no room for anything. How do I allocate that available storage?

    Whoa, it sounds like you're confusing two very different things.
    iCloud initially comes allowing 5GB of free storage (for backups, etc.).
    Your iPad (or are you talking about an iPhone in the wrong forum?) comes with some number of tens of gigabytes of storage, which cannot be added to.
    So something doesn't make sense in your comment.

  • Error mesg "Generated DDIC structure for form ZPAYSLIP1 contains errors"?

    Hi,
    I tried to create a payslip using TCODE HRFORMS.
    I clicked on Create button, i specified all the details,
    i.e Form Name   
        Country Grouping
        Form Class
    Here i specified Country Grouping as "40". And Form Class as "PAYSLIP"
    After this i saved it. And i tried to Activate it. Its throwing an error message like....
    "Generated DDIC structure for form ZPAYSLIP1 contains errors"
    Any helps.....

    Hi,
    That is CEDT only. I wrote in my thread description of that i.e PAYSLIP...
    Regards,
    Shankar.

  • Ddic structure to XML

    Hi,
    is there an easy way to create a xml string based on a ddic structure?
    Its a nested structure and I want to avoid to create all elements manually.
    Perfect way would be that i could fill the structure with data and then transform this into a xml string.
    for instance:
    ls_test-header-name = 'tester'
    ls_test-header-county = 'germany'
    ls_test-item-material = '4711'
    ls_test-item-pos = '1'
    should be transformed to:
    <?xml version="1.0"?>
       <ls_test>
           <header>
             <name>tester</name>
             <country>germany</country>
           </header>
           <item>
              <material>4711</material>
              <pos>1</pos>
          </item>
        </ls_test>
    Thanks,
    Christoph

    Hi Christoph,
    following link describes the xml transformation suggested above:
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/e3/7d4719ca581441b6841f1054ff1326/frameset.htm
    and here is a small example
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/ae/101640a991c742e10000000a1550b0/frameset.htm
    Hope this is helpful.
    Regards
    Bernd

  • Using XMLDB when XSD not Available.

    I am evaluating the use of XMLDB for a project where XSD is not available for the source documents although they are structured. We will use Oracle 11gRel2.
    At present we are storing the files as Unstructured, and the query performance is very poor -- even for small files (50MB). Is there a way to use other types such as Structured when we cannot provide an XSD?

    Is there a way to use other types such as Structured when we cannot provide an XSD?Yes, use XMLType with BINARY XML storage and create a structured XMLIndex.
    You might want to read this for the details :
    http://download.oracle.com/docs/cd/E11882_01/appdev.112/e16659/xdb_indexing.htm#CHDEADIH
    You'll also find useful examples on the forum.

  • Solution Manager 4.0 install error logging in for DDIC step 29

    Has anyone else seen the error 'Test logon to SAP System <sid> failed"? It states that it cannot login for DDIC. This is at step 29 during the install of the solution manager 4.0.
    We are running on a Windows 2003 Server/Oracle 10g.
    Any help would be greatly appreciated. We've been hitting this same error for the last couple of days.
    Thanks,
    DBB

    Dear Derrick,
    I have run into the exact same problem!!!!
    During step 29 of the install does it ask you to enter the DDIC password?
    It will ask you twice for a password if both the times the login fails then you will have no other option but to uninstall and reinstall Sol Man 4.
    The tactic that worked for me is that when it will ask u the passowrd the first time.......before you enter the password.......login in to Sol Man 4 using the default DDIC password 19920706. then change the default password. And then go back to the install and give this new ddic password.
    This is the only thing that worked with me.
    Let me know if anything else works.
    Email me @ [email protected] if you have any other questions.
    thanks
    Mikir

  • Assign specific metadata for folder structures in the Content Server

    Assign specific metadata for folder structures in the Content Server
    Hi to all,
    I working with Oracle Content Server 10g and Desktop Integration Suite and I will like to know how can I restrict or enable some specific metadatas from the default metadata, for differents content folder. This is different from the function: Information Field Inherit Configuration.
    tnks!

    I am a bit unclear about your question:
    - do you ask about metadata assigned to folders, or
    - do you ask about metadata assigned to items in folders?
    Starting from #2, if you forget about folders, there is standard functionality that you can use to restrict, enable, ... metadata for an item. Read this chapter: http://docs.oracle.com/cd/E21764_01/doc.1111/e10978/c04_metadata.htm#sthref288 to get full details.
    I am not sure whether you can use anything of this functionality (profiles, option lists, etc.) when you check in a new folder. I doubt it, though. The logic of folders is slightly different - whilst e.g. profiles correspond to "content item", you don't find such a correspondence in folder's hierarchy (why a folder could not contain various content types, for instance?)
    Last question is, from where you want to use this functionality - even for items. In 10g, Desktop Integration Suite's functionality was rather limited (often it was supposed that a user will just 'throw' an item to a folder, and metadata will be inherited from folders). You might have to upgrade your DIS to 11g; it should work even with 10g Content Server, but make sure you verify it before mass upgrade. In 11g, DIS should offer profiles, etc. with full capabilities.

  • CDIR  is a DDIC structure  used in the IMPORT  DIRECTORY

    CDIR  is a DDIC structure  used in the IMPORT  DIRECTORY statement—my question is is it usqable for all cluster databases we make indeoendently apart from INDX or just for INDX

    I have no real details, but based on your question I am guessing Thunderbird does not check the drive letter only the path. so H:\Stuff and G:\Stuff would be the same thing. Try a change to the actual folder names.

  • Table name for the structure MEPO1211

    Hi Friends,
    I want to find out the the Purchase Orders created with USD currency.   This currency indicator is not available in the table EKPO.  On checking the PO, the currency field is in the strucure MEPO1211.
    Kindly let me know the table name where the PO with currency is stored or the table name for the structure MEPO1211.
    Thanks in advance.
    Regards,
    Mark K

    Hello Mark
    If the fields belong to the PO header then EKKO is the table you should look for.
    In case of item related data the table is EKPO.
    In any case structure MEPO1211 just belongs to screen 1211 in the PO application.
    Further Reading:
    [Purchase order item - cl_po_header_handle_mm|https://wiki.sdn.sap.com/wiki/display/ABAP/Purchaseorderitem-cl_po_header_handle_mm]
    Regards
      Uwe

  • Best practices for folder structure in SOA Project

    Actually, In my project, I have more than 10 BPEL process and several DBAdapters and some HumanTasks. For each BPEL process, JDeveloper creates .bpel, .componentType, wsdl files. For DBAdapters JDeveloper creates lot of files, and same for HumanTasks as well.
    By default Jdeveloper puts all these files in root directory of the Project. It looks messy having 100's of files in root directory.
    How can I organize all these files?
    What are the best practices for folder structure in SOA Project ?
    Thanks

    Yes Yatan. I did noticed that Polling service WSDL disabled in EM . But I want to try this approach beacause I want to move all database related stuff to one composite. I have another composite with 3 BPEL Processes. One BPEL queries external webservice and save the response in DB. One BPEL just fires the first Process(Query) and respond to caller with an unique id. I have Another BPEL which keeps polling on database for 5 sec(I'm using PICK Activity), if there is any new record in database it will retrun to caller. If no new records in database, returns empty to the caller after 5 sec.
    If I put all these in one composite, having lot of files in root directory, the composite really looks very messy.
    As you said, I want to have 2 composites. First Compoiste will have 3 BPEL processes, and 2nd Composite will have DB Polling and DB Save. I will have another project for MDS to store XSDs.
    So because I can't have Polling service as exposed service, I have to keep Polling service in the same Composite where the BPEL is. Now again it goes back to Big and messy project.
    Is there any way I can separate all DB related including polling in a separate Composite ?
    Thanks
    --Sreeny                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • ABAP APIs for DDIC?

    Hi all,
    Is there any ABAP API for DDIC? I wanted to manipulate DDIC structures and types from code, for example, change names, create a new DDIC object, add a new field to an existed table.
    I guess we have that but I didn't find any documents on this topic. Please help, Thanks a lot.
    Best regards.
    Message was edited by:
            Xiaoming Wang

    Hi,
    please check out the link below it will help you
    http://help.sap.com/saphelp_nw2004s/helpdata/en/fa/35b63a23271742e10000000a11402f/content.htm
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/601ddb01-e5c8-2910-d981-b190b51fca44
    **************PLEASE REWARD POINTS IF THE INFORMATION IS HELPFUL TO YOU*************

  • BRFplus: DDIC Structure as Function Parameter results in Dump

    Hi all,
    I want to use Data Dictionary structure VBAK as a (signature) parameter to a BRFplus Function.
    I have created a Data Object VBAK bound to the DDIC structure VBAK, and defined it as a parameter to my Function.
    In my code to call the BRF function, I have:
    DATA:
      lo_context            TYPE REF TO if_fdt_context,
      lo_function           TYPE REF TO if_fdt_function.
    DATA:
      ls_vbak               TYPE VBAK.
      lo_context  = lo_function->get_process_context( ).
      lo_context->set_value(
        EXPORTING
          iv_name = 'VBAK'
          ia_value = ls_vbak ).
    The SET_VALUE method results in a runtime error (program dump) of type UC_OBJECTS_NOT_CONVERTIBLE description u201CData objects in Unicode programs cannot be convertedu201D.
    On investigation this seems to be because certain fields are represented differently in BRF.  For example, the DDIC field VBAK-ERDAT (type DATS) is stored in BRF as TIMEPOINT, which is itself a structure (type FDT_S_TIMEPOINT).  Trying to move the date value to the timepoint value is not possible and results in the dump.
    How do I get around this ?  Or in practice is it not feasible to use DDIC structures containing dates, times and possibly numbers as function parameters ??
    Running on SAP NW 7.0 EHP1 SP5.
    Thanks,
    Grogan

    Therefore you best create an internal structure reusing the types in IF_FDT_TYPES. Then you copy the data into the BRFplus internal format and then you process the function.
    Is there a method to do this, or do I have to develop my own using RTTI / RTTC ?
    NW 701 - *sigh*.
    Thanks & regards,
    Grogan

Maybe you are looking for

  • Error in Posting Goods Receipt

    Hi Experts, I am getting the following error when i am posting a goods receipt. Syntax error in validation prerequisite "VALLGAP", step "" Message no. GB 033 Diagnosis A syntax error was found in validation VALLGAP during the ABAP code generation. Th

  • Use of Inbound Handler property in SFP transaction while creating form

    Hello, Can anyone please tell me what is the use of Inbound Handler property while creating adobe interactive form in SAP SFP transaction. Steps -> 1>in SAP system go to transaction sfp. 2>create form. 3>In properties tab->Inbound Handler.->what is t

  • Temp folder stopping me from replying to messages

    I am unable to reply to emails. I have version 24.6.0. When I click Send, error message says "Unable to open the temporary file C:\Users\Robert\AppData\Local\Temp\nsemail.eml. Check your 'Temporary Directory' setting." I tried to delete this and two

  • Proposed goods issue date, material availability date

    Dear All, where to configure the goods issue date & material availability date. regards, Murugan

  • URL iView

    Hi We have a req like this. We have a URL iView which points to some site like SDN. We have done the user mapping so that it wont ask for login. But the req is... inside the so created page, there are many links. The user wants to add those links to