Validations and Mapping EDI-XML .

Hi,
Can anyone explain me the process of mapping xml-edi to SAP and validations with respect to business.
An example could really help.
Thanks

The inbound xml file contains data that needs to be put into a format that sap can understand. There are several ways to do this. You can use XI or any other transaltion utility. Alternately, your xml file can be converted using custom programs using XSLT as a translation tool.
SAP has a number of ways of loading  external transactional data into the system. You can use IDOCs or web services, or other methods. The jist of it is you will need to convert your xml file into a format SAP understands.

Similar Messages

  • Valid and well Formed XML Schema

    OK I have a project that takes in a xml doc and a xml schema and checks if doc if valid for given schema
    how do i check if a xml schema doc is well formed and valid on its own

    Thanks very much for you reply.
    Howcome in the tool XMLSpy when you create a schema you can check it its both well formed, well thats ok
    and valid? you dont specify the xml doc.
    I have code written that accepts a shema and instance doc and that works grand.
    Just a general question.
    Thanks.

  • Xml validation and transformation in a row: Possible?

    Hi.
    I'm working on a small tool that uses javax.xml.validation and javax.xml.transform (JDK 6) to perform validation and transformation of xml files in a row.
    The problem is, the namespaces and reference to the xml schema required by the validator somehow prevent the transformation from extracting data from the xml file.
    Here's the header I use in the xml file:
    <tagWhatever
    xmlns="http://www.myPlace.com"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.myPlace.com mySchema.xsd">To sum it up, with the namespace declaration within the xml I can validate but not transform, and without the declaration, I can transform but not validate.
    Can anyone help me out witht this one?
    Thanks
    5thString

    Hi.
    I'm working on a small tool that uses javax.xml.validation and javax.xml.transform (JDK 6) to perform validation and transformation of xml files in a row.
    The problem is, the namespaces and reference to the xml schema required by the validator somehow prevent the transformation from extracting data from the xml file.
    Here's the header I use in the xml file:
    <tagWhatever
    xmlns="http://www.myPlace.com"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://www.myPlace.com mySchema.xsd">To sum it up, with the namespace declaration within the xml I can validate but not transform, and without the declaration, I can transform but not validate.
    Can anyone help me out witht this one?
    Thanks
    5thString

  • Sending Idocs from SAP-R/3 to XI, bundle and map them to one XML-file

    Hi All,
    We need to send IDoc's (DEBMAS06) from R/3 to XI and  bundle and map them to a single xml-file. Please help us with your suggestions on how to proceed using a simple solution (probably need of BPM).
    Regards,
    Theo

    Hi Theo,
    there is an example in SAP Library: <a href="http://help.sap.com/saphelp_nw04/helpdata/en/08/16163ff8519a06e10000000a114084/frameset.htm">Collecting and Bundling Messages - One Interface</a>. Plz post us your detailed quetions.
    Regards,
    Udo

  • How to remove a font file and its mapping from XML Publisher Administrator

    Hello,
    I am trying to remove a font file and its mapping from the XML Publisher Administrator. If this is not possible, is there a way to disable it?
    The reason why I am asking this is because we just got a new check printer, and I was able to print just fine. However, the MICR font was not coming up properly on the check, so I went ahead and configured the font with the XML Publisher Administrator. Now my check output is coming up blank after running the XML report publisher program. The only change I did was to upload the MICR font and mapped it.
    My template and rdf report file are working fine in another environment we have, so I know that's not the problem.
    Any help is appreciate it.
    Thanks.

    This is how you do it
    Font
    DELETE FROM xdo_lobs
    where lob_code like '<Font_name>';
    Font Mapping Set
    DELETE FROM xdo_font_mapping_sets_TL
    WHERE mapping_code like '<MAPPING_CODE>'

  • Problem in Creating .wsdl file and mapping.xml with ant

    hi
    i am created my .wsdl file and mapping.xml file with wscompile tool but when i run this by ant tool it show a problem.
    the command runs on command prompt but when run throught ant file it shows a following error :-
    Execute failed: java.io.IOException: CreateProces: wscompile -define -mapping build\classes\META-INF\mapping.xml -d . -nd build\.................and so on
    so if anybody have any idea then plz help me asap
    thanx

    The following Ant snippet is the way I've defined my wscompile task. I'm creating a web application and it looks like yours might be an EJB endpoint, but you can adjust where necessary:
    <taskdef name="wscompile" classname="com.sun.xml.rpc.tools.ant.Wscompile">
         <classpath refid="compile.classpath" />
    </taskdef>
    <target name="init">
         <echo message="-------- ${appname} --------" />
    </target>
    <!-- This target compiles the server components using an existing WSDL as the driving document.
           The configuration file must use the <wsdl> element giving the location (local file system
           or URL) of the WSDL document.
           Note: the fork argument is needed to over come a bug when using the mapping argument. See
           http://forum.java.sun.com/thread.jspa?threadID=592994&tstart=0
      -->
         <target name="generate-server-from-WSDL" depends="init">
              <wscompile fork="yes"
                           keep="true"
                           base="${basedir}/WebContent/WEB-INF/classes"
                           import="true"
                           features="wsi"
                           xPrintStackTrace="true"
                           verbose="true"
                           mapping="${basedir}/WebContent/WEB-INF/jaxrpc-mapping.xml"
                           sourcebase="${basedir}/src"
                           config="${config.server.doclit.file}">
                   <classpath>
                        <path refid="compile.classpath" />
                   </classpath>
              </wscompile>
         </target>
         <target name="compile-server-from-WSDL" depends="generate-server-from-WSDL">
              <javac srcdir="${basedir}/src" destdir="${basedir}/WebContent/WEB-INF/classes" debug="${compile.debug}">
                   <classpath refid="compile.classpath" />
              </javac>
         </target>Just make sure that the named destination directories exist before you run the script.
    If you'd like more details on the wscompile Ant task, I found the following pages invaluable:
    https://jax-rpc.dev.java.net/whitepaper/1.1/index-part1.html

  • Get Map As XML/Server Image returns blank image on server and errors out on local

    In Server, map.getMapAsXML and map.getMapAsServerImage both return blank images though they return a valid url
    In local, executing map.getMapAsXML reports the following error:
    Uncaught SecurityError: Failed to execute 'toDataURL' on 'HTMLCanvasElement': Tainted canvases may not be exported. oraclemapsv2.js:2171(anonymous function) oraclemapsv2.js:2171(anonymous function) oraclemapsv2.js:2137f

    You may be using Windows with limited functionality as the previous version expired. Did you re-format the drive/partition before you did the "fresh" install if not Windows probably kept the old install information so knew that it was expired previously. Either activate Windows (try typing slui.exe and filling in the product key and activate - then restart the machine) or re-format the drive/partition that Windows is on and re-install Windows again.

  • Retreive IDOC number and map it to a field in Target XML

    Hi Experts,
    IDOC to file scenario
    I have a requirement where I have to retreive the number of the IDOC generated and map it to a field ID in the target XML.
    Do i have to use a UDF for this? can ne one pls explain?
    Regards,
    Teja

    Hi Ravi,
    You dont need use a UDF for this.
    this is a very simple requiremen.
    You can get the IDOC number from source IDOc
    under EDI_DC40 node field name DOCNUM.
    This DOCNUM fielsd will contain the IDOC number
    Map this DOCNUM field from source IDOC to target XML structure.

  • SEEburger error in conversion from EDI to EDI-XML

    Dear SAP experts,
    Good day!
    Can i seek your inputs regarding this error i'm getting when i've tried to convert the EDI (D93A_RECADV message) into EDI-XML?
    I am using BIC for this one.
    This is the error i am getting,
    [Error:ID=2099;LEVEL=1] InhouseDocReader doSyntaxCheck(): offset[78167]: the found segment  is not in the message description.
    Conversion error
    Does this mean the source file is in wrong structure?
    Kindly advise.
    Thank you very much!
    Fred

    Hi,
    Make sure that You used the Source structure in the IR from the External Def of the Seeburger SWCV only.
    And deployed the necessary mappings on XI server by making the .sda file in BIC.
    And the Incoming file should have the valid values while parsing the EDI file inorder to convert the EDI ti EDI_XML
    Check this also
    /people/nithiyanandam.au2/blog/2008/02/20/handling-edi-interfaces-using-seeburger-bic-modules
    Regards
    Seshagiri

  • Value Mappings and Mapping lookups?

    Hi Experts,
    I've came across a thread on SDN which is mention below.
    value mapping
    can anyone explain me what is value mapping and fix mappings and why we need them and wht is mapping lookups?
    plz refer some weblogs which can explains in detail about  value mappings, fixed mappings and mapping lookups?
    pts will b rewarded
    thanks
    Faisal

    Hi,
    Hope this information is useful to you..
    Value Mapping Blogs.
    /people/community.user/blog/2007/01/08/valuemapping-using-the-graphical-mapping-tool
    /people/sreekanth.babu2/blog/2005/02/23/value-mapping-replication
    Mapping look up API
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-code-samples/mapping%20lookups:%20RFC%20API.pdf
    what is lookups
    Lookups are used to identify / request the data from mapping , i mean interupting the process and looking for data which was stored in some where and get that data and comback to process and continue with that data.
    why we can use for lookups.
    We will use these type of lookups in Message mapping for refering DB Lookup for data base which is not SAP, RFC lookups for SAP data
    Look up tables
    In the error handling topic we have seen the different validations which need to be performed on file.
    This can be done through Lookup.
    Some use cases:
    • Look up employee information.
    • Lookup for raising an alert.
    The purpose of the lookup may be:
    • To perform application-level validation of the data, before sending it to the backend.
    • To populate fields of the XML document with some additional data found in the backend application.
    There are two ways in which we can do lookup:
    • Call lookup method from GUI mapping.
    • Call lookup method from XSLT mapping.
    Some useful blogs...
    /people/shabarish.vijayakumar/blog/2006/02/13/unable-to-open-iresrid-xipipi-71-updated-for-pi-71-support
    Lookup - /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
    DB lookup - /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    SOAP Lookup - /people/bhavesh.kantilal/blog/2006/11/20/webservice-calls-from-a-user-defined-function
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/406642ea59c753e10000000a1550b0
    Lookup’s in XI made simpler - /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    How to check JDBC SQL Query Syntax and verify the query results inside a User Defined Function of the Lookup API -
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
    /people/prasad.illapani/blog/2006/10/25/how-to-check-jdbc-sql-query-syntax-and-verify-the-query-results-inside-a-user-defined-function-of-the-lookup-api
    Lookups - /people/morten.wittrock/blog/2006/03/30/wrapping-your-mapping-lookup-api-code-in-easy-to-use-java-classes
    Lookups - /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
    /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    http://help.sap.com/saphelp_nw04/helpdata/en/cf/406642ea59c753e10000000a1550b0/content.htm
    /people/sap.user72/blog/2005/12/06/optimizing-lookups-in-xi
    Lookups with XSLT - https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/8e7daa90-0201-0010-9499-cd347ffbbf72
    /people/sravya.talanki2/blog
    /people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler
    /people/sravya.talanki2/blog/2005/12/21/use-this-crazy-piece-for-any-rfc-mapping-lookups
    /people/alessandro.guarneri/blog/2006/03/27/sap-xi-lookup-api-the-killer
    /people/sap.user72/blog/2005/12/06/optimizing-lookups-in-xi
    /people/morten.wittrock/blog/2006/03/30/wrapping-your-mapping-lookup-api-code-in-easy-to-use-java-classes
    Thanks,
    Satya..
    Reward points if it is useful..

  • How to validate EDI XML payload against ECS file

    Hi All,
    How to validate an EDI XML against ecs file.
    Can you please provide steps.
    Sample EDI XML i am trying to validate against EDI_4010_850.ecs
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <Transaction-850 xmlns:ns1="urn:oracle:b2b:X12/V4010/850" Standard="X12" xmlns="urn:oracle:b2b:X12/V4010/850">
    <ns1:Segment-ST>
    <ns1:Element-143>850</ns1:Element-143>
    <ns1:Element-329>000000010</ns1:Element-329>
    </ns1:Segment-ST>
    <ns1:Segment-BEG>
    <ns1:Element-353>00</ns1:Element-353>
    <ns1:Element-92>NE</ns1:Element-92>
    <ns1:Element-324>12345678</ns1:Element-324>
    <ns1:Element-373>20140703</ns1:Element-373>
    </ns1:Segment-BEG>
    <ns1:Loop-PO1>
    <ns1:Segment-PO1>
    <ns1:Element-350>001</ns1:Element-350>
    <ns1:Element-330>1</ns1:Element-330>
    <ns1:Element-212>96</ns1:Element-212>
    <ns1:Element-639>AA</ns1:Element-639>
    <ns1:Element-235_1>VC</ns1:Element-235_1>
    <ns1:Element-234_1>571157</ns1:Element-234_1>
    <ns1:Element-235_2>CB</ns1:Element-235_2>
    <ns1:Element-234_2>00100</ns1:Element-234_2>
    </ns1:Segment-PO1>
    <ns1:Loop-PID>
    <ns1:Segment-PID>
    <ns1:Element-349>F</ns1:Element-349>
    <ns1:Element-352>Rockford product</ns1:Element-352>
    </ns1:Segment-PID>
    </ns1:Loop-PID>
    <ns1:Segment-DTM>
    <ns1:Element-374>038</ns1:Element-374>
    <ns1:Element-373>20140626</ns1:Element-373>
    </ns1:Segment-DTM>
    <ns1:Loop-AMT>
    <ns1:Segment-AMT>
    <ns1:Element-522>1</ns1:Element-522>
    <ns1:Element-782>1</ns1:Element-782>
    </ns1:Segment-AMT></ns1:Loop-AMT>
    </ns1:Loop-PO1>
    <ns1:Segment-SE>
    <ns1:Element-96>#SegmentCount#</ns1:Element-96>
    <ns1:Element-329>000000010</ns1:Element-329>
    </ns1:Segment-SE>
    </Transaction-850>
    Thanks,
    Sid.

    What We have done is, took the XML which we are passing to B2B and assigned the XSD_PO_850 schema to it and validated. Its showing as Valid. Not sure, where the issue is now?

  • Mapping EDI ISA06 segment to BPEL element

    Hi
    We have created a BPEL process for PO Inbound using X12 4010 EDI Version.
    One of the trading partner send their EDI document and place them in B2B server.
    B2B server has been setup to handle different partners.
    One of our BPEL process will deQuee the messages from B2B server.
    One of our requirement is to Map ISA06 segment value to BPEL one of element.
    Where these values will be stored in this process and how can acchieve this requirement?
    Regards
    Kiran Akkiraju

    Hi Kiran,
    Actually If you see the EDI-XML generated by the B2B.The
    <Internal-Properties>
    <Data-Structure Name="Interchange">
    <Lookup Name="InterchangeSenderID">SOME value </Lookup>
    <>
    section will have the value you are looking for i.e the ISA06 segment.
    If you are using the 850.ecs and 850.xsd shipped with the product then the ISA segments are not there.
    However the edi-xml generated by B2B has that value.
    Now while doing the Mapping we have to extract the value from Internal properties->datastructure->lookup.
    I hope these inputs would help you get started.
    One more thing I wanted to know are you using XML Gateway from APPS Adapter
    for invoking Oracle APPS.
    Regards
    Lalit

  • Error/Warning while validating a mapping

    I'm using OWB version 9.2 and database 9i.
    I have few major problems in OWB. We have stage and star schemas on the same database instance. The source system is on a different database instance. There are database links created between target instance to source.
    I have about 20 mappings; all validated, deployed and executed successfully about 2 weeks back.
    Beginning of this week I logged on to OWB and tried to make some changes to one of the mappings. Before I made changes I tried to validate the mapping and I got following warnings:
    "VLD-1008: Referenced mapping column <COLUMN_NAME> does not exist"
    "VLD-1003: Reference <COLUMN_NAME> between mapping object and repository object does not exist".
    When I click on "View Details" it says I need to reconcile outbound of the staging table.
    When I have not made any changes to the mapping why do I need to do this? I want to know under what circumstances do we get this message?
    Another weird thing is I validated the mapping, after 15 minutes I tried to deploy this and still got the above warnings, although I had reconciled outbound and successfully validated the mapping. Am I missing something here?
    Another problem is I have a mapping which loads a dimension from staging table. Very simple basic mapping all it does is dumps from staging table to dimension and key is generated by sequence generator. Both stage and star schemas are on the same database instance. When I try to validate this mapping it gives me error:
    "VLD-2769: Database link is not allowed for data target <DIMENSION_NAME>" and when I click view details it shows following:
    "Loading of data across database link is not supported. Deploy this mapping within the same database instance as the actual target and remove the database link access specification from the physical configuration of this data target operator."
    I have not specified any database link or schema name in the mapping configuration; both stage and star schemas are on same instance. Although there are two instances that it works fine. First if I provide the schema name in the mapping configuration it gives me warning but deploys and executes fine. Secondly if I go to deployment manager, select the mapping and click deploy it validates successfully. Why do I get this error when I validate in the mapping editor?
    I never had these problems before; all the mappings were validated, deployed and executed successfully.
    I would like to know where/what could have gone wrong? Could any of you point me in the right direction? Any help would be greatly appreciated.
    Thanks

    hi.
    ok look i also had this errors:
    "VLD-1008: Referenced mapping column <COLUMN_NAME> does not exist"
    "VLD-1003: Reference <COLUMN_NAME> between mapping object and repository object does not exist".
    this errors could be due to that something has change in the source database, in this case could be that somebody change the name column since the last time you did the load.
    A possible solution is that you open the mapping (edit) and reconcile the tables both the table "from"(where the table came) and the table "to"(the table destination).
    ooh and check the source system for any table that has changed, if it changed, so you have to load again the table.
    bye

  • How do I enable Firefox 4 to do a search on more than one word (e.g. "yahoo mail") without receiving the error message "the URL is not valid and cannot be loaded"?

    After loading Firefox 4.0, I changed the address bar search engine to Google Search by Name, so I'd be taken straight to the most relevant webpage when I type in a word.
    It works fine when I type in one word, but if I use a search with more than one word (e.g. "yahoo mail" or "google maps") I get an alert saying "The URL is not valid and cannot be loaded". Is there any way I can fix the address bar to accept multiple word searches?
    I've tried disabling all my add-ons, but it didn't make any difference.

    Hi, this should sort out your problem:
    1. Type in "about:config" into the address bar, this will open the settings menu. Click on "I'll be careful, I promise!"
    2. Search for "keyword.URL" in the filter bar.
    3. Enter "http://www.google.com/search?btnI=I%27m+Feeling+Lucky&q=" into the value field.
    I'm no expert, but I had the same problem which got on my nerves after being so used to being able to type anything in, and following these steps fixed it.

  • Reading A xml file and sending that XML Data as input  to a Service

    Hi All,
    I have a requirement to read(I am using File adapter to read) a xml file and map the data in that xml to a service(schema) input variable.
    Example of  xml file that I have to read and the content of that xml file like below:
      <StudentList>
        <student>
           <Name> ravi</Name>
           <branch>EEE</branch>
          <fathername> raghu</fathername>
        </student>
      <student>
           <Name> raju</Name>
           <branch>ECE</branch>
          <fathername> ravi</fathername>
        </student>
    <StudentList>
    I have to pass the data(ravi,EEE,raghu etc) to a service input varible. That invoked Service input variable(schema) contains the schema similar to above schema.
    My flow is like below:
      ReadFile file adapter -------------------> BPEL process -----> Target Service.I am using transform activity in BPEL process to map the data from xml file to Service.
    I am using above xml file as sample in Native Data format(to create XSD schema file).
    After I built the process,I checked file adapter polls the data and receive the file(I am getting View xml document in EM console flow).
    But transform activity does not have anything and it is not mapping the data.I am getting blank data in the transform activity with only element names like below
    ---------------------------------------------------------------------------EM console Audit trail (I am giving this because u can clearly understand what is happening-----------------------------------------------------
       -ReceiveFile
            -some datedetails      received file
              View XML document  (This xml contains data and structure like above  xml )
        - transformData:
            <payload>
              <InvokeService_inputvariable>
                  <part name="body">
                     <StudentList>
                         <student>
                           <name/>
                            <branch/>
                            <fathername/>
                         </student>
                   </StudentList>
              </part>
             </InvokeService_inputvariable>
    'Why I am getting like this".Is there any problem with native data format configuration.?
    Please help me out regarding this issue as I am running out my time.

    Hi syam,
    Thank you very much for your replies so far so that I have some progrees in my task.
    As you told I could have put default directory in composite.xml,but what happenes is the everyday new final subdirectory gets created  in the 'soafolder' folder.What I mean is in  the c:/soafolder/1234_xmlfiles folder, the '1234_xmlfiles' is not manually created one.It is created automatically by executing some jar.
    Basically we can't know the sub folder name until it is created by jar with its own logic. whereas main folder is same(soafolder) ever.
    I will give you example with our folder name so that it would be more convenient for us to understand.
    1) yesterday's  the folder structure :  'c:/soafolder/130731_LS' .The  '130731_LS' folder is created automatically by executing some jar file(it has its own logic to control and create the subdirectories which is not in our control).
    2) Today's folder structure :  'c:/soafolder/130804_LS. The folder is created automatically(everytime the number part(130731,130804).I think that number is indicating 2013 july 31 st like that.I have to enquire about this)is changing) at a particular time and xml files will be loaded in the folder.
    Our challenge : It is not that we can put the default or further path in composite.xml and poll the file adapter.Not everytime we have to change the path in composite.xml.The process should know the folder path (I don't know whether it is possible or not.) and  everyday and file adapter poll the files in that created subfolders.
    I hope you can understand my requirement .Please help me out in this regard.

Maybe you are looking for

  • Recovery of a deldeted file/folder in KM

    Hi All, One user has deleted some folder/files in KM accidentally and we are not able to retrieve it back. Is there any option to retrieve the deleted folder/files? We confuigured the DB is persistent mode for CM Repository and the Configuration deta

  • Board Size in Ultiboard

    This is probably going to ne one of the most stupid questions ever asked, but I'm going to ask anyway. This is an Ultiboard question. How do I know what board size I am going to need in advance of placing components?  The way I have been doing this i

  • Colour Laserjet CM 1312nfi mfp not scanning on windows server 2008 r2

    I am running windows server 2008 r2. I have a Colour Laserjet CM 1312nfi mfp. Server does not pick up scanner. Is their software or utility to solve te problem. No software on Hp website.

  • Working on Upgrade - Need to Activate all user exits for unicode

    Hi Experts, I am working for Upgrade project, All the user exits were not unicode compatable, Hence every T.Code which is activated for User Exit is going into Dumps. Can anyone give us the easy way to fix this problem. Regards, Sekhar.J

  • Business place & section code as mandatory for tds vendor postings

    hi experts, iwe have a requirement in withholding tax -  tds, when ever post the invoice to w/tax venor section code/business place filed as required. where to do this regds gopal