Mapping XML to fields

If I have XML coming back from a Web Service, how do I map the fields in the XML document to individual fields in the output view?

u can go for file to proxy scenario.
read the file using file adapter
Do the mpaping in XI
Pass the data using XI adapter to R3 system using proxy
Write a abap program which will update the data in R3 table.
Now clarify few things
Wat is the file format if its csv or fixed length then u have to go for file content conversion.
Follow the below blog:
Server Proxy -
ABAP Server Proxies
File to Inbound Proxy:
File to R/3 via ABAP Proxy
chirag

Similar Messages

  • How to map user-defined fields in XML communication on SRM site

    Hi All!
    We use the External sourcing scenario and we transfer requirements from ERP  in SRM through XI (PurchaseRequestERPSourcingRequest_In)
    We should transfer the user-defined fields, but we can not map it in SRM site.
    We have enhanced enterprise service in XI, have realized BADI PUR_SE_PRERPSOURCINGRQCO_ASYN on ERP site.
    I see the XML message with ours z-fields in tr.  SXI_MONITOR (into SRM), but I can not find it in BBP_PDISC.
    We try to use BADI BBP_SAPXML1_IN_BADI (there is no method for SC), and BADI /SAPSRM/BD_SOA_MAPPING (z-fields is empty)
    Someone can tell how to map user-defined field for SC?
    Thanks in advance
    Evgeny Ilchenko

    Hello, Julia
    We have found solution our problem
    We have enhanced standard service in a new enhancement name space and defined own enhancement elements in our namespaces. Then these enhancement elements refered to the SAP standard Enterprise Service.
    But In our new interfaces were different  XML namespaces
    When we have correct an error we could use the next BADI
    on ERP site: PUR_SE_PRERPSOURCINGRQCO_ASYN
    on SRM site: /SAPSRM/BD_SOA_MAPPING
    BR,
    Evgeny

  • Is it possible to map the cmp fields of the entity bean with out dictionary

    Dear sirs,
    I have created the EJB project module and WEB Module. Now i have to map the CMP fields of the entity bean to the underlying table. Is it possible to map the cmp fields of the entity bean with out java dictionary? If yes how can we do that.
    I have got some error while mapping an EJB's CMP fields to the table through dictionary. I was actually intended to map 79 fields but it gives an error that more than 64 fields are not allowed while building the dictionary.
    1. Can you tell me what could be the possible reason?
    2. Is it possible to map the cmp fields of the entity bean with out java dictionary? If yes how can we do that.
    Kindly helo me,
    Sudheesh K S

    Hi,
    Sudheesh please check up if the below link helps,there are other ways of writing the persistent.xml for container managed entity bean.
    http://help.sap.com/saphelp_nw04s/helpdata/en/9b/f695f0c84acf46a4e0b31f69d8a9b7/frameset.htm, probably in the studio you cannot browse through tables not in  the java dictionary,but manually editing it may still solve the problem.
    Also here is another link that specifies the databases supported by J2EE Engine.
    http://help.sap.com/saphelp_nw04s/helpdata/en/66/a5283eeb47b40be10000000a114084/frameset.htm
    The below link shows how to specify the database vendor and datasource
    http://help.sap.com/saphelp_nw04s/helpdata/en/e1/67fc3ee241ba28e10000000a114084/frameset.htm
    Hope you are able to solve the problem.
    Do let us know if you come up with the solution.
    Regards,
    Harish
    Message was edited by: HARISH SUBRAMANIAN

  • Problem in mapping xml data with header details from IPM 11g to BPEL

    Hi,
    I want to map xml data as a supporting content from IPM application to BPEL.
    My xml is
    <?xml version="1.0" encoding="utf-8"?>
    <DocumentFile xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://tempuri.org/Document.xsd">
    <Document DocumentType="Invoice">
    <DocumentImage>
    <Filename>\\10.205.0.209\Img\10883212.TIF</Filename>
    </DocumentImage>
    </DocumentFile>
    If I remove header details from root element <DocumentFile> i.e. modified xml is
    <DocumentFile>
    <Document DocumentType="Invoice">
    <DocumentImage>
    <Filename>\\10.205.0.209\Img\10883212.TIF</Filename>
    </DocumentImage>
    </DocumentFile>
    it works fine but i need to pass header details as well.
    Please suggest.
    Thanks,
    Priya

    Hi Naveen,
    In sxmb_moni the content transmitted to the adapter(RFC)is as follows
    <?xml version="1.0" encoding="UTF-8" ?>
    - <ns:ZRFID_EQUIP xmlns:ns="urn:sap-com:document:sap:rfc:functions">
    - <RECORDS>
    - <item>
      <FLOC>f1-01-01</FLOC>
      <RFID_NO>I006</RFID_NO>
      </item>
    - <item>
      <FLOC>f1-01-02</FLOC>
      <RFID_NO>I002</RFID_NO>
      </item>
    - <item>
      <FLOC>f1-01-03</FLOC>
      <RFID_NO>I003</RFID_NO>
      </item>
    - <item>
      <FLOC>f1-01-04</FLOC>
      <RFID_NO>I004</RFID_NO>
      </item>
    - <item>
      <FLOC>f1-01-05</FLOC>
      <RFID_NO>I005</RFID_NO>
      </item>
    - <item>
      <FLOC>f1-01-06</FLOC>
      <RFID_NO>I001</RFID_NO>
      </item>
      </RECORDS>
      </ns:ZRFID_EQUIP>
    At r/3 side the field floc and rfid_no gets mapped to floc which is of char30
    eg floc=f1-01-01I006
       rfid_no=

  • Question w/ mapping header text fields from the ORDERS05 idoc - Need help!!

    My mapping seems to be combining two header texts categories(IDs) and putting in into the XML target field. That's the first issue.
    The 2nd issue is trying to figure out how to only use only a part of the tdline.
    The idoc value is: <TDLINE>232828-0 06/25/2009 EDI Vendor Confirmed</TDLINE> .
    I only want to use the first part: 232828-0 and ignore the rest(
    06/25/2009 EDI Vendor Confirmed).
    Would someone have 30 mins to help a newbie out.
    I can send screen shots of the idoc coming into PI and the XML file going out as well as my mapping for the field.
    Thanks,
    Jeff
    jschreiber@ballhort .com

    Jeff,
    I have sent a test email pl send me screenshots.
    Issue 2: Did you try to use standard function for texts i.e "substring". Open the mapping in editing mode and all the way down you  can see "Function" from where you can choose std functions.
    -Sid

  • Mapping the CMP Fields with the Database Table using Websphere???

    Hi,
    How to Map the CMP Fields with the Database Table using Websphere
    thru ejb.jar.xml???
    Thanks,
    JavaCrazyLover

    Hi,
    How to Map the CMP Fields with the Database Table using Websphere
    thru ejb.jar.xml???
    Thanks,
    JavaCrazyLover

  • How to generate map.xml,toc.xml, help.hs file

    Hi All,
    In our application, we have all the help written in html files. I have the steps to configure ohw-config.xml, web.xml . We want to map the html help based on the application page name.
    Can anyone let me know the good tool to generate map.xml,toc.xml for the html files.

    try magichelp.
    it is multi-user help authoring tool,
    currently Support Oracle help .
    Home:http://www.gethelpsoft.com
    Download from:http://www.gethelpsoft.com/download/mhtrial.exe
    MagicHelp is multi-user help systems and documentation tool,it is the fastest, easiest way to create professional Help systems and documentation.
    Support export format:CHM/MsHelp2.x/Word/WebHelp/JavaHelp/OracleHelp/EclipseHelp...
    Support import format:COM TypeLib/FileSystem/...
    Team Working feature makes develop-team works more orderly, efficiently, and cost savely, the quality of software document will be increased. MagicTopic feature enables you extending MagicHelp to other fields, such as project management, requirement management and transaction assistance. One can develop different kinds of extensions to extend application of MagicHelp, e.g. database tables design.

  • Hibernate mapping XML files for the two SQL Server tables below.

    Hello all..,
    Question 1:
    I am working on a project that needs to support a database with an inherited legacy schema that you cannot change. The schema is provided below.Hibernate mapping XML files for the two SQL Server tables below. Please provide those two XML files. Assume some hypothetical package and class names. Assume that no "fancy" stuff such as lazy initialization, optimistic locking etc is needed at this time.
    CREATE TABLE [SURVEY_ANSWERS] (
    [ANSWER_ID] [int] IDENTITY (1,1) NOT NULL,
    [QUESTION_ID] [int] NOT NULL,
    [POSITION] [int] NULL,
    [TEXT] [varchar](350) NULL
    CREATE TABLE [dbo].[SURVEY_QUESTIONS] (
          [QUESTION_ID] [int] IDENTITY (1, 1) NOT NULL ,
          [TEXT] [varchar] (350) NULL
    GO
    ALTER TABLE SURVEY_ANSWERS
    ADD CONSTRAINT pk_SURVEY_ANSWERS PRIMARY KEY(ANSWER_ID,QUESTION_ID);
    ALTER TABLE [dbo].[SURVEY_QUESTIONS] ADD
           PRIMARY KEY  CLUSTERED
                [QUESTION_ID]
    GO
    ALTER TABLE [dbo].[SURVEY_ANSWERS] ADD
           FOREIGN KEY
                [QUESTION_ID]
          ) REFERENCES [dbo].[SURVEY_QUESTIONS] (
                [QUESTION_ID]
          )Question 2:
    Assume that you are working on a project developing, say, a banking application. You are the Architect and thinking that Hibernate ORM should be used for the entire access to the relational database. As usual, you have created (or auto-generated) a set of HBM XML files as well as POJOs for which you define the mappings. Assume now that a new requirement has just popped up. The system needs to be able to import new bank accounts and user information in bulk from a very large XML file at once and store it in the database. Assume the XML file contains all necessary information to populate fields in database tables. As performance is very important for this operation. Given this description, how would you approach the problem?
    Please describe briefly.
    -Thanks and regards
    Praveen Soni

    You're not fooling anyone Dennis_Mox. But nice try.Jeez, man. Mail me at denismox[at]yandex.ru, I will show you that exact test, dammit.

  • FILE not found error: j2ee/home/applib/applications-mapping.xml (No such fi

    Hi EveryBody
    i have my applications-mapping.xml file already in the applib directory, but when i try to conect to a remote ejb i had this error[b]
    FILE not found error: j2ee/home/applib/applications-mapping.xml (No such file or directory)
    can anyone help??

    gday
    Is the error on the client or server?
    What role in the application does applications-mapping.xml fulfill?
    How are you loading the file in?
    -steve-

  • Mapping ECC PO fields to R/3 PO fields

    Hi Experts,
    I was trying map ECC Po fields to R/3 fields which are not mapping in standard way automatically. Like Tracking No and Good Recipient name.
    I am using the BADI BBP_ECS_PO_OUT_BADI to map these fields.
    However i am able to map and see those fields in the back end.
    The same thing i was trying to do for the Text fields. Suppose, mapping vendor text to item text .these fields are not able to transfer through this BADI.
    for this i am using the BADI BBP_PO_INBOUND_BADI in R/3 to map these fields . I am able to map and see those text fields in R/3 also. But wonder now i am not able to see Tracking No and Good Recipient name fields in R/3 .
    Any pointer to solve this issue, really a help for me.
    Thanks in Advance.

    Hi Disha ,
    Thank you so much for your reply ,
    Actually i have implemted the BBP_ECS_PO_OUT_BADI this BADI only in SRM side .When i have implemeted i can see Tracking No and Goods recipient are mapping correctly in Back End . But the thing is only the text fields are not mapping the correctly. though code was correct .
    So i have implemeted the BBP_PO_INBOUND_BADI BADI in the R/3 side , through this one i can able to map the text fiedls , where as this time Tracking No and Goods recipient are not mapping .Any pointers for this , will really help for me .
    *See my code for BBP_ECS_PO_OUT_BADI*
    *Vendor text at line item level of SRM PO should be passed to
    *u2018Item Textu2019 at R/3 PO line item level.
      LOOP AT it_item INTO WA_PO_ITEM.
        Read table IT_LONGTEXT into wa_LONGTEXT with key Guid = WA_PO_ITEM-guid
                                                         tDid = 'ITXT'.
        IF SY-SUBRC EQ 0.
          W_PO_ITEM_TEXT-PO_NUMBER = WA_PO_ITEM-BE_OBJECT_ID.
          W_PO_ITEM_TEXT-PO_ITEM  = WA_PO_ITEM-NUMBER_INT+5(5).
          W_PO_ITEM_TEXT-TEXT_ID   = 'F01'.
          W_PO_ITEM_TEXT-TEXT_FORM = '*'.
          W_PO_ITEM_TEXT-TEXT_LINE = WA_LONGTEXT-TDLINE.
          APPEND W_PO_ITEM_TEXT TO CT_BAPI_POITEM_TEXT.
        ENDIF.
    *Internal Note at line item level of SRM PO should be passed to
    *u2018Info record noteu2019 at line item level of R/3 PO
        Read table IT_LONGTEXT into wa_LONGTEXT with key Guid = WA_PO_ITEM-guid
                                                           tDid = 'NOTE'.
        IF SY-SUBRC EQ 0.
          W_PO_ITEM_TEXT-PO_NUMBER = WA_PO_ITEM-BE_OBJECT_ID.
          W_PO_ITEM_TEXT-PO_ITEM  = WA_PO_ITEM-NUMBER_INT+5(5).
          W_PO_ITEM_TEXT-TEXT_ID   = 'F06'.
          W_PO_ITEM_TEXT-TEXT_FORM = '*'.
          W_PO_ITEM_TEXT-TEXT_LINE = WA_LONGTEXT-TDLINE.
          APPEND W_PO_ITEM_TEXT TO CT_BAPI_POITEM_TEXT.
        ENDIF.
      ENDLOOP.
    *Vendor Text at PO header level should be passed onto R/3 PO header text field.
      Read table IT_LONGTEXT into wa_LONGTEXT with key Guid = IS_HEADER-GUID
                                                       tDid = 'HTXT'.
      IF SY-SUBRC EQ 0.
        WA_Header_text-PO_NUMBER = IS_HEADER-BE_OBJECT_ID.
       WA_Header_text-PO_ITEM  = WA_PO_ITEM-NUMBER_INT+5(5).
       WA_Header_text-PO_ITEM+4(1)  = '0'.
        WA_Header_text-TEXT_ID   = 'F02'.
        WA_Header_text-TEXT_FORM = '*'.
        WA_Header_text-TEXT_LINE = WA_LONGTEXT-TDLINE.
        APPEND WA_Header_text TO CT_BAPI_POHEADER_TEXT.
      ENDIF.
    *Map the Tracking No
      LOOP AT it_item INTO WA_PO_ITEM.
        Read table CT_BAPI_POITEM into WA_BAPI_ITEMS with key PO_ITEM = WA_PO_ITEM-NUMBER_INT+5(5).
        WA_BAPI_ITEMS-TRACKINGNO = WA_PO_ITEM-BE_TRACKING_NO.
        MODIFY TABLE CT_BAPI_POITEM FROM WA_BAPI_ITEMS TRANSPORTING trackingno.
      ENDLOOP.
    *The user id of the Partner Function u2018Goods recipientu2019 is map to
    *R/3 Goods Recipient field
      LOOP AT it_item INTO WA_PO_ITEM.
        Read table IT_PARTNER into wa_partner with key P_GUID = WA_PO_ITEM-guid
                                                       PARTNER_FCT = v_grfun.
        IF SY-SUBRC EQ 0.
          SELECT SINGLE CHUSR
                 FROM BUT000
                 INTO v_grname
                 WHERE PARTNER_GUID = WA_PARTNER-PARTNER_NO.
          Read table CT_BAPI_POACCOUNT into WA_POACCOUNT with key PO_ITEM = WA_PO_ITEM-NUMBER_INT+5(5).
          WA_POACCOUNT-GR_RCPT = V_GRNAME.
          MODIFY TABLE CT_BAPI_POACCOUNT FROM WA_POACCOUNT TRANSPORTING GR_RCPT.
        ENDIF.
      ENDLOOP.
    endmethod.
    See my code BBP_PO_INBOUND_BADI
    APPEND LINES OF bbp_potextheader TO bapi_potextheader.
    APPEND LINES OF BBP_POTEXTITEM TO BAPI_POTEXTITEM.
    Evem i tried to map these traking no and good recipient fields in the R/ 3 , I have this piece of code in the Back end , But couldnt work for me.
    LOOP AT BBP_POITEM INTO WA_BBP_POITEM.
       Read table BAPI_POITEM into WA_BAPI_POITEM with key PO_ITEM =
              WA_BBP_POITEM-PO_ITEM.
       WA_BBP_POITEM-TRACKINGNO = WA_BBP_POITEM-TRACKINGNO.
      MODIFY table BAPI_POITEM FROM WA_BAPI_POITEM TRANSPORTING trackingno
       Read table BBP_POACCOUNT into wa_BBP_POACCOUNT with key PO_ITEM =
               WA_BBP_POITEM-PO_ITEM.
       wa_BAPI_POACCOUNT-GR_RCPT = wa_BBP_POACCOUNT-GR_RCPT.
       MODIFY table BAPI_POACCOUNT FROM wa_BBP_POACCOUNT TRANSPORTING
    GR_RCPT.
    ENDLOOP.
    Loop at BAPI_POITEM into wa_BAPI_POITEM.
       Read table BAPI_POITEMX into wa_BAPI_POITEMX with key PO_ITEM  =
    wa_BAPI_POITEM-PO_ITEM.
       wa_BAPI_POITEMX-TRACKINGNO = 'X'.
    MODIFY table BAPI_POITEMX FROM wa_BAPI_POITEMX TRANSPORTING TRACKINGNO
    Read table BAPI_POACCOUNTX into wa_BAPI_POACCOUNTX with key PO_ITEM  =
    wa_BAPI_POITEM-PO_ITEM.
       wa_BAPI_POACCOUNTX-GR_RCPT = 'X'.
       MODIFY table BAPI_POACCOUNTX FROM wa_BAPI_POACCOUNTX TRANSPORTING
      GR_RCPT.
    Endloop.

  • Issue with mapping XML to Java using SAX API

    I am using SAX API to Map XML Documents To Java. Is it possible to differentiate the elements based on the attribute rather than localname or element name in SAX API? because I am having the below xml structure. In SAX API we are processing the element values based on start/End Element name.
    <?xml version="1.0" encoding="UTF-8"?>
    <response>
    <result name="response">
    <doc>
    <str name="art_id">192201910</str>
    <str name="title">test</str>
    <arr name="author">
    <str>Darrell Dunn</str>
    <str>William </str>
    </arr>
    <arr name="tax">
    <str>113243335</str>
    <str>233454666</str>
    </arr>
    </doc>
    <doc>
    <str name="art_id">192201911</str>
    <str name="title">test2</str>
    <arr name="author">
    <str>Darrell Dunn1</str>
    <str>William 1</str>
    </arr>
    </doc>
    </result>
    </response>
    I want to map the elements based on attributes such as
    classobj.art_id, classobj.title, classobj.tax[]. I have wriiten code below, but I am not getting the proper result.
    import org.xml.sax.;
    import org.xml.sax.helpers.;
    import java.io.;
    import java.util.;
    import common.;
    public class XmltoObjectHandler extends DefaultHandler{
    /* Creates a new instance of XmltoObjectHandler */
    public XmltoObjectHandler() {
    // Local SolrDocument object to collect
    // document XML data.
    private XmlDocument doc = new XmlDocument();
    // Local list of solr documents items...
    private Vector xmlDocuments = new Vector();
    // Local current solr document reference...
    private XmlDocument currentSolrDoc;
    // Buffer for collecting data from
    // the "characters" SAX event.
    private CharArrayWriter contents = new CharArrayWriter();
    // Override methods of the DefaultHandler class
    // to gain notification of SAX Events.
    // See org.xml.sax.ContentHandler for all available events.
    public void startElement( String namespaceURI,
    String localName,
    String qName,
    Attributes attr ) throws SAXException {
    if ( localName.equals( "doc" ) ) {
    currentXmlDoc = new XmlDocument();
    solrDocuments.addElement( currentSolrDoc );
    if( localName.equals("str"){
    for ( int i = 0; i < attr.getLength(); i++ ){
    if("art_id".equals(attr.getValue(i))){
    currentSolrDoc.art_id = contents.toString();
    if("title".equals(attr.getValue(i))){
    currentSolrDoc.title = contents.toString();
    public void endElement( String namespaceURI,
    String localName,
    String qName ) throws SAXException {
    public void characters( char[] ch, int start, int length )
    throws SAXException {
    contents.write( ch, start, length );
    public Vector getxmlDocuments() {
    return solrDocuments;
    public static void main( String[] argv ){
    System.out.println( "Example4:" );
    try {
    // Create SAX 2 parser...
    XMLReader xr = XMLReaderFactory.createXMLReader();
    // Set the ContentHandler...
    XmltoObjectHandler ex4 = new XmltoObjectHandler();
    xr.setContentHandler( ex4 );
    // Parse the file...
    xr.parse( new InputSource(new FileReader( "xmlfile.xml" )));
    // Display all documents items...
    XmlDocument i;
    Vector items = ex4.getxmlDocument();
    Enumeration e = items.elements();
    while( e.hasMoreElements()){
    i = (XmlDocument) e.nextElement();
    System.out.println(i.art_id+"\n");
    System.out.println(i.title+"\n");
    }catch ( Exception e ) {
    e.printStackTrace();
    Can anybody help me how to process this type of xml. Is there any other way we can do this? I am trying for two days. It is a big deadlock for me. any help greatly appriciated. Thanks in advance.

    I added my code inside code tags...
    import org.xml.sax.*;
    import org.xml.sax.helpers.*;
    import java.io.*;
    import java.util.*;
    import common.*;
    public class XmltoObjectHandler extends DefaultHandler{
        /** Creates a new instance of XmltoObjectHandler */
        public XmltoObjectHandler() {
        // Local SolrDocument object to collect
        // document XML data.
        private XmlDocument doc = new XmlDocument();
        // Local list of solr documents items...
        private Vector xmlDocuments = new Vector();
        // Local current solr document reference...
        private XmlDocument currentSolrDoc;
        // Buffer for collecting data from
        // the "characters" SAX event.
        private CharArrayWriter contents = new CharArrayWriter();  
        // Override methods of the DefaultHandler class
        // to gain notification of SAX Events.
        // See org.xml.sax.ContentHandler for all available events.
        public void startElement( String namespaceURI,
                String localName,
                String qName,
                Attributes attr ) throws SAXException {
              if ( localName.equals( "doc" ) ) {
                currentXmlDoc = new XmlDocument();
                solrDocuments.addElement( currentSolrDoc );
              if( localName.equals("str"){
                   for ( int i = 0; i < attr.getLength(); i++ ){               
                    if("art_id".equals(attr.getValue(i))){
                             currentSolrDoc.art_id = contents.toString();
                        if("title".equals(attr.getValue(i))){
                             currentSolrDoc.title = contents.toString();
        public void endElement( String namespaceURI,
                String localName,
                String qName ) throws SAXException {      
        public void characters( char[] ch, int start, int length )
        throws SAXException {       
            contents.write( ch, start, length );       
        public Vector getxmlDocuments() {
            return solrDocuments;
        public static void main( String[] argv ){       
            System.out.println( "Example4:" );
            try {          
                // Create SAX 2 parser...
                XMLReader xr = XMLReaderFactory.createXMLReader();           
                // Set the ContentHandler...
                XmltoObjectHandler ex4 = new XmltoObjectHandler();
                xr.setContentHandler( ex4 );           
                // Parse the file...
                xr.parse( new InputSource(new FileReader( "xmlfile.xml" )));          
                // Display all documents items...
                XmlDocument i;
                Vector items = ex4.getxmlDocument();
                Enumeration e = items.elements();
                while( e.hasMoreElements()){
                    i = (XmlDocument) e.nextElement();
                    System.out.println(i.art_id+"\n");
                        System.out.println(i.title+"\n");
            }catch ( Exception e ) {
                e.printStackTrace();
    }

  • 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

  • How to map XML File input to VO (eventually to update table) upon fileupld

    Reqirement: I am downloading an XML File (basically name-value pair) from user using OAMessageFileUploadBean. I need to take this file and update to an existing record in the table (cs_incidents_all). XML File schema is well-known in advance.
    Approach: Don't know what is the best, but I'm thinking if there is an OAF way to map the XML File (Blobdomain) to VO and get the rowIMPL.getColumn1Value to fetch all the datavalues then loop thru all the columns (xml-tags) and finally call plsql APIs which will update/insert into table (cs_incidents_all)
    Is this possible in OAF? If so please shed some light as to how to map XML File to VO.
    If this is not possible then please let me know the other way. I have to do this inside the oaf.
    Thank you,

    Can someone please let me know if this is possible in OAF?

  • Need your assistance in mapping Structure and Field in DME Tree

    Hello Friends - I need your help in "Mapping from structure field" in DME.
    In the existing format tree, It is mapped Structure as "FPAYP" and Field name "BNAME" to populate Company Code name in the Payment file.
    Now I am asked to change this to populate value either from OX02 or OX15.
    When Company Code name was maintained, It was maintained in short and in the address tab, Full name is maintained.
    Please let me know which Structue and Field I should assign to pull the value either from OX02 or OX15.
    Thanks for your help.

    Thanks a lot Henri/Lakshmi.
    I have maintained mapping procedure Sturecture/field - FPAYHX/AUST1 to get the CoCd name in the file. In AUST1, Length of the CoCd is more  than 18, and as per Bank format, It should be 18 characters in length.
    User is not happy that complete CoCd name is not populated in the file. He has come up with an alternative and shortened the CoCd name that needs to be populated in the file and suggested us to get the value into the payment file. We should not replace CoCd name with the name he suggested in OX02/OX15,FBZP.
    My doubt is that if there is any filed I can use to maintain the name he suggested and assign it in mapping procedure.
    Thanks

  • How to map idoc segment field E1IDB02-FIIKONTO with BSEG-ESRNR.

    Hi,
    I have searched for lot of threads in the forum , and also i tried myself but i am not able to map this fields segment with my logic, so please anyone kindly contribute in mapping idoc segment field  with the logic given below:
    idoc type :PAYEXT  outbound idoc.
    message type: PEXR2002
    This is my logic: i need to populate the ISR number(BSEG-ESRNR  ) in idoc segment field( E1IDB02-FIIKONTO)
    DATA : str1 TYPE string,
          len1  TYPE i,
          len2  TYPE i,
          str2  TYPE string,
          str3  TYPE string.
    str1 = '01-1234-4'. ---> BSEG-ESRNR  "ISR Subscriber Number
    REPLACE FIRST OCCURRENCE OF '-' IN str1 WITH '_'.
    REPLACE ALL OCCURRENCES OF  '-' IN str1 WITH space.
    CONDENSE str1.
    len1 = STRLEN( str1 ).
    IF len1 LT '9'.
    len2 = '9' - len1.
    CASE len2.
       WHEN '1'.
         REPLACE ALL OCCURRENCES OF '_' IN str1 WITH '00'.
       WHEN '2'.
         REPLACE ALL OCCURRENCES OF '_' IN str1 WITH '000'.
       WHEN '3'.
         REPLACE ALL OCCURRENCES OF '_' IN str1 WITH '0000'.
       WHEN '4'.
         REPLACE ALL OCCURRENCES OF '_' IN str1 WITH '000000'.
       WHEN OTHERS.
    ENDCASE.
    ELSEIF len1 EQ '9'.
    REPLACE ALL OCCURRENCES OF '_' IN str1 WITH '0'.
    ELSEIF len1 GT '9'.
    REPLACE ALL OCCURRENCES OF '_' IN str1 WITH space.
    CONDENSE str1.
    ENDIF.
    Thanks in Advance.

    Resolved.

Maybe you are looking for