Abap mapping - IDoc structure

Hi,
I realize an Abap mapping for "IDoc -> XI -> File" and I want to "play" with idoc segments and idoc fields...
Thus in my coding, I need to define some internal structures which are exactly the same than IDoc segments (e.g E2LFA1M for supplier).
Such a structure exists in R/3 (cf. tcode SE11), but this one does NOT exist in XI. It seems there is only the table IDXEDSAPPL with the list of all fields for one segment.
Is is possible to import and use directly this structure (e.g E2LFA1M) from R/3 to XI ?
or must I define manually in my code the same structure than in R/3 ?
Regards.
Mickael

Hi Mickael,
I have the same problem.
How did you solve this problem?
Regards
Elsa

Similar Messages

  • ABAP Mapping + IDOC

    Hello !
    i need to do an aplication to PI that use IDOC and ABAP Mapping.
    i'd like to know how can i do to use a IDOC structure in interface "IF_MAPPING" to ABAP Mapping.
    Can you help me please?
    Thanks a lot!
    Patricia
    Edited by: Patricia_Sena on Jul 20, 2011 3:49 PM

    Hi,
    i have a .txt that will be send to SAP.
    this archive should be insert in SAP though idoc.
    this is the problem and i have to use the abap mapping....
    i knew that this could be use with java mapping....but i have have to use abap mapping....
    clear?
    Tks

  • Idoc  - JMS queue using ABAP Mapping

    Hi all,
    I am doing a idoc to JMS queue scenario using ABAP Mapping. I am new to ABAP
    Basically i want to know how to read the OUTBOUND idoc segments and their field values. I have gone through link : IDOC--XI--IDOC Using ABAP MAPPING(Idoc to Idoc using ABAP Mapping).
    If any body could suggest me how to read idoc->segment->fields or give some sample code, it would be very helpful.
    Thanks in advance&
    Regards,
    Mani

    Hi Mani,
    Maybe it would be easier to use graphical mapping. In ABP mapping you have to parse XML and than create target document. If you want to do it I'd strongly advice you to read it:
    http://help.sap.com/saphelp_nw04/helpdata/en/47/b5413acdb62f70e10000000a114084/frameset.htm
    Regards,
    Wojtek

  • IDOC-XI-FILE Scenario: Error in ABAP Mapping

    Dear All,
    I am working on IDOC-XI-Flat FIle scenario in which I am using ABAP Mapping as per document "How To Convert an IDoc-XML
    structure to a flat file and vice versa in XI 3.0".
    I created one customized Idoc for this. The Idoc is reacing XI but its flat file is not getting created. Its giving me following error:
    <SAP:Stack>Error in mapping program Z_ABAP_MAPPING_PACKING_LIST (type SAP-ABAP, kernel error ID UNCAUGHT_EXCEPTION) An exception with the type CX_SY_REF_IS_INITIAL occurred, but was neither handled locally, nor declared in a RAISING clause Dereferencing of the NULL reference.</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
    I have also gone thru threads posted for the same topic earlier but still I am not been to resolve this error.
    Please help me out in resolving this error.
    Regards,
    N.Jain

    HI,
       Log saying that, u have problem in the mapping program.
      i.e Z_ABAP_MAPPING_PACKING_LIST
       the problem is due declaration of data.
       i hope that, you have some methods.
       those are declared under intialization section in mapping program.
      please use start of selection before the method.
    other wise, it will come under intilization section.
    warm regards
    mahesh.

  • Mapping IDoc in Web Service structure

    Hey,
    now I got general question about mapping:
    I'm using the SAPRDI02 IDoc to send print data to PI. This should be mapped to the web service structure then.
    The IDoc contains the text elements of the sap script and the value of these elements.
    The Web service has some structures and one structure for the document content. this structure has some general
    fields to describe the type of document, which should be printed and a field for the content of the document. This field
    expects unformated XML.
    My question now is, how I should do the mapping best. Do you think it's possible to do it with the graphical tool, or should
    I use XSLT, Java or ABAP mapping?
    I think, the data from the IDoc would be something like this:
    E1RDID
      SYMNAME
      SYMVALUE
    The structure of the web service form content is something like this:
    Printforms
      Printform
        Formtype
        FormContent
        Priority
    And as I understand it, the XML content for the field "FormContent" should be something like this:
    <FormField1>contentOfFormField1</FormField1>
    or
    <FormField1 value = 'contentOfFormField1' />
    So the fields SYMNAME and SYMVALUE should be transferred to this structure and then to the field "FormContent"
    in the webservice.
    Any idea how I do this in the best way?
    THANK YOU!
    Michael

    Hi Rodrigo,
    how do I create the XML tags? The XML-tag name should be the content of SYMNAME and the tag value should be
    the content of SYMVALUE.
    Like this:
    <SYMNAME>SYMVALUE</SYMNAME>
    And in the IDoc, Symname and Symvalue are part of a structure, and each line is one symname/symvalue couple. That means,
    all the lines of this segment should later be just one field value of FormContent in the webservice....
    Example:
    Line1:
    SYMNAME --> testField1
    SYMVALUE --> testContent1
    Line2:
    SYMNAME --> festField2
    SYMVALUE --> testContent2
    And this should later result in:
    <testField1>testConent1</testField1><testField2>testContent2</testField2>
    Sorry, it's a bit hard to explain...

  • Creating multiple idocs in ABAP mapping

    Hi,
    my scenario is source message (JDBC) to target message (idoc).
    There can be multiple idocs (unbounded).
    I am using ABAP mapping to create the Idoc XML structure. For this i use function module IDX_IDOC_TO_XML.
    The idoc is getting created but the problem occurs in case of generating multiple idoc instances.
    I changed the idoc occurence to unbounded & used the new idoc external definition in the interface mapping.
    I also call the IDX_IDOC_TO_XML & create the output stream factory in a loop (per idoc ).
    However only 1 idoc gets generated every time.
    Can someone suggest how to create the multiple idocs.
    Regards
    Prasenjit

    Hi Prasenjit,
    In order to generate multiple idoc first of all you need to change the target structure with multiple occurence...that you have already done...
    Now while generating XML in abap mapping you have to make sure you have element idoc(with its content) repeating for your "N" number of idocs...
    can you please copy paste your final xml generated...
    Nilesh

  • Automatic IDOC parse in ABAP Mapping?

    Hi,
    I'm creating a very complex mapping in an IDOC -> PI -> File scenario and I'm using ABAP Mapping to do that.
    I already know how to parse an inbound xml but it's a "heavy" job and the code finishes very "hardcoded".
    As you know, SAP uses the structure EDIDD to send/receive IDOC data generically. So I'm sure that internally SAP has a method/function or something to convert the XML data sent by PI to that EDIDD data structure when you send an Idoc through PI. I can't found that, do you know if it exists?
    Thanks

    You can use function module IDX_XML_TO_IDOC to convert the XML to IDOC type internal tables.
    Check for other function module in function group IDOC_ADAPTER_MB.
    KK

  • IDOC--XI--IDOC Using ABAP MAPPING

    Hi all,
    My requirement is to map source IDOC fields to target IDOC fields using ABAP Mapping.
    few fields in source idoc structure has to be merged into a single field in target idoc structure.
    need help on how to start with as i am not exposed to ABAP Mapping.
    regards,
    Subba

    Hi Subba,
    I suggest you also go through these links:
    https://websmp101.sap-ag.de/~sapdownload/011000358700003082332004E/HowToABAPMapping.pdf
    /people/ravikumar.allampallam/blog/2005/02/10/different-types-of-mapping-in-xi
    /people/r.eijpe/blog
    ABAP Mapping Vs Java Mapping.
    Re: Message Mapping of type ABAP Class not being shown
    Re: Performance of mappings (JAVA, XSLT, ABAP)
    Refer to following SDN Demo which explains the need and how to do the ABAP mapping.
    https://www.sdn.sap.com/irj/sdn/docs?rid=/webcontent/uuid/110ff05d-0501-0010-a19d-958247c9f798#jdi [original link is broken]
    This document will help you to create ABAP Mapping.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/e3ead790-0201-0010-64bb-9e4d67a466b4
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/3.0/how%20to%20use%20abap-mapping%20in%20xi%203.0.pdf
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/5c46ab90-0201-0010-42bd-9d0302591383
    Regards,
    Abhy
    Message was edited by: Abhy Thomas

  • IDOC conevrsion through ABAP mapping

    Hi,
    I am trying to map to an IDOC MATMAS05 with an extension ZMATMAS05, using ABAP mapping. The source and target structures are external definition formats(xsd) of the IDOC.(I did this because I am using a BPM and used the xsds as abstract interfaces)
    When I run the Map I get an error "Extension ZMATMAS05 Unknown". I have hardcoded the EDI_DC40 values in the map. So I have set CIMTYP to ZMATMAS05.
    I have loaded the metadata using idx2. Still I am getting this error. Would need help on this.
    reagards,
    Saswata

    Hi,
    Have a look into this SAP note- 751839
    Is all the segments of idoc is released ?
    Delete the IDX2 entry and reload it, And reimport into Repository
    Regards,
    moorthy

  • ABAP Dictionary structure for use in ABAP Mapping

    Hello, I'm creating an ABAP mapping class which requires me to use standard ABAP dictionary (table) structures (ex.MARA, KNA1 etc) for the mapping as the data coming into the mapping is in that format. I'm creating the ABAP class in the PI server and do not have table structures (MARA, KNA1 etc) in the dictionary in the PI server. What is the efficient way to create these structures (as Z elements) in the PI server's dictionary?
    I have the XSD of these table structures. Can I import those XSDs into the ABAP dictionary in PI servers? If yes, how can it be done? Please help!

    Yes you can import it as an external definition data and create the data type based on this XSD. Go through the link below for more information on the steps to import and how to use it.
    http://help.sap.com/saphelp_nwpi71/helpdata/en/26/9e97b0f525d743882936c2d6f375c7/frameset.htm

  • File to IDoc : XML parsing in ABAP mapping

    Hi,
    In ABAP mapping I want to parse all of the incoming XML strings to internal table.Later I add few more fields to this table and transfer them to IDOC adapter in IDOC-XML format.In thsi case how do i get all of the input file data(converted from XML) into internal table using XML parsing in ABAP Mapping?
    Thansk in advance,
    RP

    Hi Amil,
    I insert into table but not immediately,I want all the parsed xml data into internal table and do something before I insert into DB /send it to IDOC.
    I knwo how to get single Xml parsing,but how to get multple records(looping xml parse) to internal table?
    Thanks,
    RP
    Edited by: RP@261 on Jun 3, 2009 2:14 PM

  • ABAP Mapping - Testing - IDoc - Trouble

    Hi Friends,
    There is one ABAP Mapping used in our system. The outbound interface is based on one message in external definition and inbound interface is IDoc.
    When I try to test this mapping in our PI System using the transaction "SXI_MAPPING_TEST", in the initial screen/input screen in F4 help for the Sender Interface selection, our outbound interface is not displayed. In the Receiver Interface also, it is not display the IDoc.
    What could be the problem ? How to test our Z class in this case with the input XML.
    Could you please help me?
    Kind regards
    Jegathees P.

    Hi,
    don't use SXI_MAPPING_TEST
    use my report which is much better
    XI/PI: Easy ABAP mapping tests - no more SXI_MAPPING_TEST
    BTW
    there is no need to use any HTTP client nor anything to test ABAP mapping - just my report
    Regards,
    Michal Krawczyk

  • How to map idoc segments to multiple output structures

    Dear experts,
    On Pi I need to map segments from an Idoc to 2 different outputstructures. My scenario is as follows:
    incoming Idoc on PI -> if segment eq 'X' then map to outputstructure '1'; if segment eq 'Y' then map to outputstructure '2'
    Idoc structure is as follows:
    - 1 header segment
    - 1..n detail segments (which I need to map to outputstructure 1)
    - 1 summarisation segment (which I need to map to outputstructure 2)
    Output needs to be a .txt file.
    I would like to use the graphical message mapping on PI, how can I map the Idoc to multiple output structures?
    Thanks in advance,
    William

    Hi
    You can do 1:n multimapping
    in message mapping in messages tab ..add both the structures in target tab and do the mapping
    and in operation mapping add both the message interface on the target side
    PLease go through this blog
    /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible

  • IDoc to Flat file scenario - abap mapping

    Hi All,
    I have to do some IDOC to Flat file scenarios. In Order to generate the file in required format I will have to add all segments(Nodes) of Idoc in FCC receiver. We also have other option of doing it through ABAP Mapping which I found in one blog.
    Now my question is : Is it better way of doing it through FCC or ABAP Mapping?
    Ofcourse from development point of view ABAP Mapping looks easier as FCC is very time consuming task.
    Is there and performance issues in either of the approach?
    Thanks and Regards,
    Atul

    Hi VJ and Harald,
    Thanks for your replies.
    I am not having PI7.1 however the given blog was very informative.
    I will try using file port approach as suggested.
    Thanks and Regards,
    Atul

  • Webservice  to Idoc/File using ABAP mapping

    Hi Experts,
    I need your expert advise on below scenario.The flow of the scenario is..
    1)I will get a control record from a webservice(SOAP sender adpater), this initiates the process flow.
    2)based on control record ,The ABAP mapping program will call a program(within the PI sys) to fetch the data from DB table.then the ABAP mapping program will have to create 2 messages for the target. One is IDoc and another one is File.
    Pls suggest the best approach.
    Regards,
    Srini

    Hi Prateek,
    Thanks for quick reply.
    there is a main program which has different classes and methoda to fetch the data from DB tables.I dont want to touch this main program.
    what  i am going to do is, I will this main program from abap mapping by passing the control record information.based on this control record,the main program will fetch data for ABAP mapping.From ABAP mapping, i have to generate 2 messages,one for IDOc and another one is for File.
    Hope you got my requirement.
    Regards,
    Srini

Maybe you are looking for