Mapping to BAPI

Hello!
I'm trying to map this structure to standard BAPI_BUPA_CREATE_FROM_DATA
<?xml version="1.0" encoding="UTF-8"?>
<MDMBusinessPartner remoteSystem="" schemeVersionID="">
<Record>
</Record>
</MDMBusinessPartner>
What is the right mapping for this? I have all of elements in <Record> </Record> and I can't understand how I must to map it to CENTRALDATA, CENTRALDATAPERSON, CENTRALDATAORGANISATION and other

you will have to;
1. In case graphical mapping, write a UDF to extract whichever value you want from the source and then map it to the corresponding target
2. Else use a java mapping to help you extract and populate the target

Similar Messages

  • Error in mapping the BAPI to the model in vc

    Hi all,
    I am new to the visual composer.
    I have created the new model, i am trying to map the bapi to the model. iam  getting the followin error when tried to select the avialable bapi in the VC
    error :  Failed to fetch the meta data
    This selected  element can not be added to the New model
    Can any body guess what is this error.
    Regards
    Vijay

    Hi Vishal,
    This error is coming because you are trying to map the bapi to the model itself. You can only map a bapi to an iView.
    Go to <b>Compose Model</b> tab on the right, and select an iView from the Components given. Double click or drag to add it to your model. When you go inside your iView, you will be able to map your bapi now.
    Go to page 34 in the following doc:
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/63f2052e-0c01-0010-b9a2-e1f7457a7fbe">https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/63f2052e-0c01-0010-b9a2-e1f7457a7fbe</a>
    Bye
    Ankur
    Reward points if it helps!!

  • Error while mapping the BAPI exception to the Fault Messge

    Hi
    I have a scenario SOAP to BAPI ...
    when i try test the scenarion from Altova XML SPY for BAPI exception ... i am getting the following error....
    When i tried to map the BAPI exception to the Fault Message its giving me the error...
    com.sap.aii.af.ra.ms.api.DeliveryException: com.sap.aii.af.ra.ms.api.MessagingException: Could not parse XMBMessage due to Unexpected length of element <sap:Error><sap:ApplicationFaultMessageNamespace> =

    Hi,
            Fault messages can be used for inbound proxies....for BAPI also it can be used i am also not sure....How are you tracking that the data is getting posted into the SAP table with the help of BAPI?
    Thanks
    Arijit

  • Concept of 'x' fields mapping in BAPI

    Hi Experts,
    Please explain the concept of 'x' fields mapping in BAPI. Why do we need that ?
    Thanks
    ~Sid
    "Max points are guarenteed"

    As the previous answer says, it's a "true / false" flag to say you want the changes applied to a particular field... the BAPI code cannot just say:
      if not some_field_name is initial.
        change value of some_field_name.
      endif.
    because the initial value may be a valid value for "some_field_name" so you wouldn't be able to clear the field out with this logic.. so instead the BAPI logic is more like:
      if some_field_name_flag = 'X'.
        change value of some_field_name.
      endif.

  • BAPIMTCS mapping to BAPI incorrect while downloading SI_CONNOBJ

    Hi ,
    I am getting the error " BAPIMTCS mapping to BAPI incorrect "  in SMW01 while downloading SI_CONNOBJ from ISU to CRM . Please suggest me solution if any one had faced the same problem before .
    Thanks & Regards,
    Rahul D

    Hi,
    Any guess please .
    Below are the error messages I am getting .
    Error 1 :  " Validation error occurred:Module VALIDATE_MSGBDOC_FOR_CONNOBJ, BDoc type
               SI_CONNOBJ   SMW3 18 "
    Error 2: " BAPIMTCS mapping to BAPI incorrect  IBSSI_CRMTO_MESSAGES 11 "
    Regards,
    Rahul D

  • Message mapping problem: BAPI with range table parameters

    A kind hello to all,
    I try to call the BAPI_ALM_ORDERHEAD_GET_LIST in a 4.70 system via RFC connector. The configuration already works with another BAPI. With this here I get message mapping exception:
    Trace level="1" type="T">com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation: Zielelement /ns1:BAPI_ALM_ORDERHEAD_GET_LIST kann nicht angelegt werden. Prüfen Sie, ob die XML-Instanz für die Ausgangs-XSD und die Zielfeldzuordnung die Anforderungen der Ziel-XSD erfüllt. at com.sap.aii.mappingtool.tf3.AMappingProgram.start
    (How can I switch the trace language to English easily? I try to translate:
    "BAPI_ALM_ORDERHEAD_GET_LIST cannot be created. Check if the XML instance meets the requirements for the output XSD and the destination field mapping meets the requirements of the destination XSD.")
    But the mapping test tool in the Integration Builder Design does not report any warning or error.
    My guess is that the problem lies in the parameter structure of the BAPI_ALM_ORDERHEAD_GET_LIST: I have to fill the IT_RANGES selection range table, so it looks as if I need several instances of the item in the corresponding XML. Can I use "Duplicate tree" in the mapping editor? Here I got another exception?
    Many thanks for any help!
    Regards,
    Carsten

    Hi Udo,
    you gave the final hint, indeed I used a XML file that was not evidently not compliant to the message type I created (even though it had been validated by Altova XMLspy).
    From now onwards I only use the "Create instance" function of the test tool to create the XML body of my test messages...
    Thanks a lot,
    and best regards,
    Carsten

  • Mapping SRM BAPI - XCBL Purchase Order

    Hi all,
    my scenario is SRM BAPI -> XI -> supplier HTTP server.
    My customer used to run this scenario on Business Connector and it seems that SAP delivered a kind of BC add-on where this scenario was automatically configured.
    We tried to export the structures ans the mapping (java mapping + XSLT) from BC and import it in XI but until now it hasn't been very succesful.
    Does anyone know if this mapping is available in a ready-to-import-in-XI format ?
    PS : the name of the BAPI is BAPI_POEC_XML_SEND
    Thank you in advance.
    Regards,
    Julien

    Do you think it would be possible to use the Marketplace adapter ?
    Julien

  • Should i Map thecommon bapi's to component controller or custom controller?

    Hey Can any body give the clarification for this doubt
    we have one web dynpro component , It contains some views. Created some BAPIs. Now we have two different applications in the same component. So we have created the two controllers for each application. the created BAPI's are mapped to o each controllers with respect to application.   . Now we have a small doubt, the Bapis  which common are common to both application not binding to any of that two controllers. so the common bapis should be map to the component controller or created one more controller like util Controller.
    Once bapis  mapped to any of this we can add this controllers to views. Please suggest which one is better, either mapping bapi's to component controller or custom controller.
    vijay

    Hi Raj, thks for the quick responce again.  I made small mistake in the sentence.Plz look at now again
    In my webDynpro project , under that i have created only single WebDynpro component with two applications .I have two modules(applications) one is DirectCustomer and another one is InDirectCustomer. so i have set of RFS's in a single RFC model. In this RFS's some are common to both the views. some are independent to each other. so i have created two custom controllers one for directCustomer another for Indirectcustomer.Then i mapped the RFC' model objects to each custom controller seperately . But now the RFC's which are common to both views to map, Better, should i map common RFC model objects  to existing Componentcontroller(which comes by default when create the webDynpro component) or should i create new customcontroller (like commoncontroller).
    which i option is better, can u suggest me. I feel that, The common RFC's will be mapped to component controller, bcz, it the Base controller for the both customcontroller , indrectly to the viewcontroller.
    Wht is your suggestion on this disign issue?

  • Bad DimAs mapping for Structure Parameters, BAPI ActiveX

    I am using BAPI ActiveX from Visual Basic.  All is working well except a mapping issue.
    I am mapping a BAPI structure export parameter to an object using DimAs method.  I am getting raw byte lengths instead of character lengths.  Example if a parameter is 10 characters long it is actually unicode stored as 20 bytes.
    The result is that the object is misaligned when retrieving data.  So I have to play games to find ask for the right field that will line up.  I am getting the data ok, no extra bytes.  The object fields are defined improperly.
    If the export parameter is a table or a simple value, no problems.  It appears to be structures only.  Note:  I am going after cProjects BAPI's, I have not tested other BAPI areas to see if the same problem exists.
    Known issue?  Any kind of notes I should check out?  Workaround ideas other than the tedious one I have?
    Thanks

    Hi,
    Workout the below application u can get idea abt BAPI,
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d352a790-0201-0010-5082-b1a608d22b6c
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webdynpro/wd%20java/wd%20tutorials/creating%20a%20web%20dynpro%20application%20accessing%20abap%20functions.pdf
    1)Input parameter is Input node where we can give some input to access an BAPI.
    2)Output parameter is Output node wher we have all output datas...we import all datas from BAPI to WebDynpro by using Output node
    3)But all Input node have Output node..so we can access output node from Input node.
    Regards,
    Suresh T

  • Mapping Issue: How to split the value  of Lineitem

    Hi  All,
    I have issue in Mapping .XML-> BAPI Scenario
    1 line item  has the  one 50% Cost Centre , another 50% Cost centre data
    2 line item has only      100% WBS elemnt
    WBS elemnt mapping :
    If A |EQUALS (Text) | WBS_ELEMNT   |If without else|  B(WBS value)  |REmoveContexs| SplitByValue|   WBS_ELEMNT(BAPI field)
    But this supress second line item : WBS_ELEMNT data and uploads into1.Item .Hence PO is not getting created in SAP.
    Could you please giv me a logic to actaually split the value into 2 seperate so that respective data of each line item  are split properly .
    Thank you ,
    Vara

    Hi I think you need an udf for this:
    int total = Integer.parseInt(value[0]);
    result.addValue(Integer.toString(a/2));
    result.addValue(Integer.toString(a/2));
    and after it you can add a splitbyvalue

  • HTTP to RFC (Calling BAPI)

    Hi,
    I am working on creating a Purchase Order in SAP system by calling BAPI's from XI using RFC adapter.
    I defined the following in IR:
    1. Created data types for mapping with BAPI request and response.
    2. Created messsage types and assigned corresponding data types to the message types.
    3. Created one Message Interface (Outbound/Synchronous), Output message - request message type, Input message - response message type.
    4. Create request and response message mapping and one Inteface mapping (with request tab and response tab) properly assigned.
    Defined the following in ID:
    1. Created HTTP business system (no communication channel)
    2. Created communication channel for receiving system (SAP).
    3. Created receiving determination and interface determination, receiver agreement, no sender agreement.
    I sent XML message (required data to create purchase order) from HTTP client but I am getting the response as <b>Unable to determine name of mapping program</b>, my Interface Determination has proper Inbound Interface (ZBAPI_PO_CREATE) and Mapping program (PO_I_MAP). But Why am I getting the reposnse as I said above in my HTTP client?
    Appreciate your help,
    Thanks and Regards,
    Jagadish.

    Hi Jagadish,
    The error lies in Message Mapping .So please check it once again .You have mentioned your steps it seem there is problem in Message mapping..
    Please look at the following Steps..
    IR:
    1.Import Corresponding RFC(BAPI). No need to create Interface Objects( Data type, Message type,Message Interface ) for SAP( RFC ) system..
    2.Create Interface Objects For HTTP System.As you told it is synchronous.
    3.Perform Two Message Mappings
      (A).HTTP Request <--> RFC Req
      (B).RFC  Response<-->HTTP Res
    4.Perform one Interface Mapping which includes Request and Response Mappings ..
    5.Activate all objects..
    ID : what you have done is ok..
    URL: http://<hostname:port>/<path>?<query-string> Make sure your URL is correct or not for( sender HTTP )..
    I think it will hepl you , if it is solved please assign points . If you have any doubt you can call me...
    Thanks
    N.Prasad Babu
    iGATE Global Solutions Hyderabad : 98490 65377

  • Getting Error in java mapping: Parsing empty source. Root element expected!

    Hi Experts,
       I am using java mapping for schema validation of input message. I have followed all the standard procedures and implemented the java class in the interface mapping.
    My interface mapping is like this:
    OrderData --->Java Class ---SchemaValidate
                         Mesg Map ---OrderData_to_BAP --->BAPI Msg
    So first I want to validate the schema of the input message. If the input message is invalid then XI should throw an exception. Then I use the actual message mapping to map the input order data to the BAPI input parameters.
    In the java code I am using xerces parser.
    The java code works fine when I run it as a standalone application.
    The interface mapping also works fine if I don't include the java mapping. Ofcourse schema validation does not happen.
    But when I test the interface mapping by including the java mapping then I am getting the error:
    Call method execute of the application Java mapping SchemaValidate
    Java mapping SchemaValidate completed. (execute() of SchemaValidate
    com.sap.aii.utilxi.misc.api.BaseRuntimeException: Parsing an empty source. Root element expected!
    What am I doing wrong? Why it is not getting the root element?
    My Java code is as follows:
    import com.sap.aii.mapping.api.StreamTransformation;
    import com.sap.aii.mapping.api.StreamTransformationConstants;
    import com.sap.aii.mapping.api.StreamTransformationException;
    import java.io.*;
    import java.util.Map;
    import javax.xml.parsers.*;
    import org.xml.sax.helpers.*;
    import org.xml.sax.*;
    import org.apache.xerces.jaxp.*;
    Sample mapper for SAP-XI
    @author Gopal
    public class SchemaValidate implements StreamTransformation {
        //Constants when using XML Schema for SAX parsing.
         static final String JAXP_SCHEMA_LANGUAGE =
         "http://java.sun.com/xml/jaxp/properties/schemaLanguage";
         static final String W3C_XML_SCHEMA =
         "http://www.w3.org/2001/XMLSchema";
         static final String JAXP_SCHEMA_SOURCE =
         "http://java.sun.com/xml/jaxp/properties/schemaSource";
    Injection of mapping parameters
    from integration engine
    @param map Map with configuration data
        public void setParameter(Map map) {
    Mapping implementation
    @param inputStream Input data from integration engine
    @param outputStream Output data to integration engine
        public void execute(InputStream inputStream,
                            OutputStream outputStream)
          throws StreamTransformationException {
            try {
                  // obtain an object of class javax.xml.parsers.SAXParser,
                  SAXParserFactory spf = SAXParserFactoryImpl.newInstance();
                  spf.setNamespaceAware(true);
                  spf.setValidating(true);
                  SAXParser sp = spf.newSAXParser();
                  // setup the schema file
                  sp.setProperty(JAXP_SCHEMA_LANGUAGE, W3C_XML_SCHEMA);
                  sp.setProperty(JAXP_SCHEMA_SOURCE, new File("IOReqMsgSchema.xsd"));
                  //parse the input xml using the given schema
                  sp.parse(inputStream, new ParseErrorHandler());
            catch(SAXException se) {
              se.printStackTrace();
            catch ( Exception e ) {
              throw new StreamTransformationException( e.getMessage() );
    My input message is :
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:OrderCreate_request xmlns:ns0="mynamespace">
       <ORDER>HTEST1234567</ORDER>
       <ORDER_TYPE>z001</ORDER_TYPE>
       <ORDER_NAME>Test Order</ORDER_NAME>
       <CO_AREA>INTC</CO_AREA>
       <CCTR_POSTED>1234567890888888888</CCTR_POSTED>
       <CURRENCY>USD</CURRENCY>
       <PERSON_RESP>12345679</PERSON_RESP>
    </ns0:OrderCreate_request>
    Kindly help! please this is urgent!!!!!!
    Thanks
    Gopal
    Edited by: gopalkrishna baliga on Feb 28, 2008 9:34 AM

    Hi Stefan,
       I did the code changes to return output stream and the java code works perfectly in standalone mode in my PC.
       But when I use the same in the Java mapping with XI then It throws an error "Getting Error in java mapping: Parsing empty source. Root element expected!".
    My XI J2EE server has JDK1.4.3.11.
    Is there any limitation of using SAX parser in XI? If Yes, then which parser should be used for schema validation in XI?
    I have included the XSD file for schema validation along with class files in the .jar file. This jar file is then imported in XI repository. Is the XI engine not able to read the XSD file?
    Do I have to handle reading XSD file differently? Any suggession how?
    Is this parser error due to some security access?
    Kindly help me! I have been struggling with this problem since 2 weeks. I will be greatfull to you if you can help me.
    Thanks
    Gopal

  • Mapping problem question

    Hello,
    I am new to XI. I am working on XI 3 sp-9.
    I have configured an outbound interface with a JDBC adapter and an inbound rfc/bapi interface. I made some mappings between the message type which holds the database record and the bapi (bapi_requsition_create).
    In the XI monitor I see that the source and target payloads are the same so I assume the mapping was not done. So at this stage I figure I should test my mapping in the integration builder.
    However when I test the mapping the BAPI xml structure on the result pane does not expand even tough I recieve a message indicating that test finsihed succesfully.
    Thanks
    Boaz

    Hi Boaz,
    It sounds like your mapping results in an empty document. Above the test result pane, try pressing the SRC button to view the raw XML result.
    Regards,
    Thorsten

  • BAPI as Web Service in XI 2.0

    Hi there,
    I have been struggling for about a week trying to <u>deploy/call a BAPI as a Web Service in XI 2.0. </u>
    However, despite all my attempts I didn't manage to get this "simple" scenario to work.
    My conclusion until now; is that XI 2.0 just does not or is not ready to provide this kind of functionality.
    Hopefully in version 3.0  all these shortcomings will be part of the past.
    Regards,
    Rob.
    Message was edited by: rob viana

    Hi rob, how are you ?
    I have done this at least two weeks, to validate the concept, I had some problems until proceed correctly but, yes, works fine !
    First I did import the BAPI_MATERIAL_GETLIST, create 2 data types, one to receive parameters from webservice client and map to BAPI call, and another to get the BAPI response(I have created an sync interface), so, created 2 message types, corresponding to 2 data types, and 1 message interface specifying the outbound and inbound message types.
    So, I did create two message mappings, one to map the request to BAPI and another to map the response to client, and a interface mapping to set the request and response with respective mappings and interfaces.
    After, I did create the corresponding configuration objects and, in the configuration, I´ve used the menu "Tools/Define Web Service..." to generate a wsdl(I´ve used this option only to check the parameters that will be exposed, and check the endpoint that XI is suggering to be used, I didn´t use the WSDL to call the webservice)- here is a trip: to me, the option mentioned above generate the following address as endpoint: http://:1080/sap/xi/engine/?type=entry,
    and the port listed above(1080) is incorrect, the correct value is found at SMICM transaction, looking on Active Services, this is a http port available on this screen(in my case, the correct value is 8030).
    The ultimate task is configure the SOAP Adapter to listen the SOAP requests to this interface.
    I think that the problem is to find correct documentation, I have experienced many situations where I have a problem to solve and, its very difficult to get a document, help, etc.. that explain how to solve the problem.

  • Defining mapping program

    hi all.
    here iam dealing with file to BAPI.
    mw sender sample file is
    in sender file.
    HEADER|22012007|WMD
    123565139|220.05
    133565127|1230.05
    143565511|260.00
    153565812|11345.05
    122565912|320.05
    123565013|21259
    125565814|232.05
    131565212|200.00
    132565145|38.05
    134565173|5213.10
    136565191|298.05
    137565132|228.10
    TRAILER|12|40843.55
    for this i have created my data type as
    header
    under header my datatypes are
    docdate
    siteid.
    nad under body
    accno
    amount
    and under footer
    totrec
    toamt
    here when iam mapping with BAPI.
    and while iam testing iamgetting docdate and siteid only for first record and for remaining records it remains blank,
    but
    i should get the doddate,siteid for all the records in bapi.
    waiting for the great answer.
    bye.
    regards.
    seeta ram.

    Seeta,
    I couldn't understand what happens if we add three lines of code, will make big complexity in the program. Of course  we do have some standard functions, choose whichever is comfortable for u.
    Source structure.
    MT_Input
       <b>Header       1..1</b>
             docdate 1..1
             siteid  1..1
      <b> Body   1..unbounded</b>
             accno  1..1
             amount 1..1
      <b> Footer  1..1</b>
             Totrec  1..1
             Totamt 1..1
    MT_Output
               <b>yisu_bapi   0..1</b>
              <b> e_waste 0..1</b>
    <b>           item  0..unbounded</b>
                           docdate 0..1
                           siteid 0..1
                           amount  0..1
                           accno  0..1
                           totrec  0..1
    Note : Bolded letters are node with same level.
    UDF : Create advanced UDF  with Queue[option select] with two inputs.
              For example lets say input variable name is input1 and input2
    <u><b>Code</b></u>
    int cnt = input2.length;
    for(int i=0;i<cnt;i++)
    result.addValue(""input1[0]"");
    Mapping logic.
    Don't Map   -
    > <b>MT_Output</b>
    Constant  -
    ><b>yisu_bapi</b> [bcoz u didn't mentioned what is the source for this node]
    Constant----
    ><b>e_waste</b> [bcoz u didn't mentioned what is the source for this node]
      Body -
    > <b>item</b>
      docdate[input1] & accno[input2][change context to MT_Input] -
    > UDF -
    > Splitbyvalue[EachValue]----><b>docdate</b>
    siteid[input1] & accno[input2][change context to MT_Input] -
    > UDF -
    > Splitbyvalue[EachValue]----><b>siteid</b>
        amount -
    ><b>amount</b>
        accno -
    ><b>accno</b>
    Totrec[input1] & accno[input2][change context to MT_Input] -
    > UDF -
    > Splitbyvalue[EachValue]----><b>totrec</b>
    Note : No need to import anything.
    I hope it helps you!!!!
    Best regards,
    raj.

Maybe you are looking for

  • WD MyBook Premium External Drive Giving Problems

    This is to transfer files from Mac to PC and generally for backup. I understand 128Gb is a limit for OS X 10.3 I'm using to recognise on a MS-DOS format on this 250Gb disk. I formatted this disk with Disk Utility as a single partition with all the da

  • Exchange rate fields get failed when uploading data

    Hi, I have a problem when uploading purchasing data (2LIS_02_SCL) from R/3 to BW. Basically the exchange rate value is right in the PSA but NOT in the cube. I just wondering what did they do when transfering the exchange rate data from PSA to cube. I

  • Windows 8 computers using USB modems

    When using a new Windows 8 computer with a USB modem you must download the new software for the USB modem and the new drivers from www.vzam.net.  The existing disk that comes with the device will not have the current drivers or software needed to int

  • Parked invoice in 4.5b version  not posting in ECC6

    I am on Tech upgrade 4.5b to Ecc6.  Some invoices were parked in 4.5b by using MR41 and need to post by FBV0 in new version ECC6 EPH4. System does not allow to post these invoices. Error message is : - You can no longer user transaction MR01 - Intern

  • Email advising unauthorised purchase....

    I have today recieved an email from apple (?) stating .... Dear Apple Customer, Your Apple ID was just used to purchase "***" from the iTunes Store on a computer or device that had not not previously been associated with that Apple ID. You may also b