How to map payload to SDATA in IDOC_INBOUND_ASYNCHRONOUS.

Hi,
I am trying to send a payload  to DWM from MES  using RFC IDOC_INBOUND_ASYNCHRONOUS.
I want to include my payload in <SDATA> tag of IDOC_INBOUND_ASYNCHRONOUS but <SDATA> is accepting only string fromat its not accepting the xml tag format .
while trying to send in xml format its creating the IDOC with only one segment
can anyone guide me how we have to include my XML structure in <SDATA>
Regards,
DUVVURUS

Duwurus,
SDATA is a 1000 LCHAR string that holds the user data. All field values of the IDoc segment you want to send are concatenated one after the other, using their defined field length. For an example, see [EDI_DD - IDoc data record|http://help.sap.com/saphelp_47x200/helpdata/en/1a/0e3842539911d1898b0000e8322d00/frameset.htm].
To create the SDATA string, check the segment, and append the fields with the value in the field legth to the string, e.g.
Field1 CHAR 5 = AB
Field2 CHAR 4 = DEF
SDATA = "   AB DEF"
For numeric values you have to calculate the field length correctly. Remember that certain fields also need leading zeroes.
SAP will overlay SDATA with the IDoc segment structure to get the field values. Check WE05 to see if the IDoc has been created successfully. There you will also see if the field length have been correctly or if there have been displacements.
Michael

Similar Messages

  • How to include Payload  to SDATA tag of RFC "IDOC_INBOUND_ASYNCHRONOUS"

    Hi ,
    I am trying to send IDOC using RFC IDOC_INBOUND_ASYNCHRONOUS and mappind the payload that I have to send from Local Properties to <SDATA> of <IDOC_INBOUND_ASYNCHRONOUS> --> <TABLES> --> <IDOC_DATA_REC_40>  --> <SDATA> of RFC JCo call
    Is this the correct way or can anyone sugegst me how to map the paylaod that we are going to send to <SDATA> of
    RFC  - IDOC_INBOUND_ASYNCHRONOUS
    Thanks,
    DUVVURUS

    Hi Duwurus,
    please have a look at thread [How to send IDOC from MII to SAP|http://forums.sdn.sap.com/click.jspa?searchID=63428752&messageID=8114114]. There I have described how to implement it.
    Michael

  • How to map payload from Human Task to BPEL

    Hi,
    I have created a human task form for which I send two parameters from the BPEL process.
    The user is able to update the fields containing the sent parameters and then click 'APPROVE' or 'REJECT'. However, I need the values of the updated fields to be returned and not the 'APPROVE' or 'REJECT strings.
    Can anybody help me with this?
    Alex

    Hi Alex,
    If you checked the Editable via worklistapp box then you dont need to update the values.
    These values automatically update the values of these parameters in human task if you properly mapped the values.
    Regards,
    Priyanka

  • How to map text payload (Not XML) to IDOC

    Hi All,
    In a scenario wherein I am getting a Text file as a Outbound Payload in XI (It is not a XML file - simple text Payload file which we see in SXMB_MONI) through XI Adapter and I need to map the text file to IDOC.
    I can not use here File Adapter (File Content Conversion) as Incoming file is not stored at any location and it is just pushed to PI Server.
    However I am not able to visualize how the text Payload will be read and mapped to IDOC.
    Your inputs will be highly appreciated.
    Regards,
    Nitin Patil

    I can not use here File Adapter (File Content Conversion) as Incoming file is not stored at any location
    and it is just pushed to PI Server
    Which adapter are you planning to use in this case? If not FCC then you can also opt for MessageTransformbean to do the conversion....for more information refer this blog /people/gabrielsagayaselvam.panneerselvam/blog/2009/12/07/standard-adapter-framework-modules-afmodules-in-pi-71-150part-2 (also check the embedded blog reference given by the author)
    What is the content (format) of the file....even a .txt file can have a XML message......just that we need FCC or above bean when the file is a CSV file.
    Regards,
    Abhishek.

  • How to map the appointment date in CRMXIF_ORDER_SAVE_M02-4x ?

    Hi Team,
    I want to map the field in CRMXIF_ORDER_SAVE_M02-4X, how to map..please help ..where we need to do ..could you please tell me the steps.
    CustomerAppointmentDate  
    CRMXIF__ORDER__SAVE__M02-4x/ E101CRMXIF__BUSTRANS/ E101CRMXIF__APPOINTMENT__XT/E101CRMXIF__APPOINTMENT/ TIMESTAMP__FROM
    Thanks
    Kalpana  

    Hi Kalpana,
    Below is a sample code. Modify this as per your input.
    * Header details
      CLEAR itab_edidc40. 
    MOVE sy-mandt TO itab_edidc40-mandt .
    MOVE sy-saprl TO itab_edidc40-docrel. 
    itab_edidc40-docnum = '0000000000000001'.
    itab_edidc40-direct = '2' . 
    CONCATENATE 'SAP' sy-sysid INTO itab_edidc40-rcvpor. 
    itab_edidc40-rcvprt = 'LS'. 
    itab_edidc40-rcvprn = t000-logsys. 
    CONCATENATE 'SAP' sy-sysid INTO itab_edidc40-sndpor. 
    itab_edidc40-sndprt = 'LS'. 
    itab_edidc40-sndprn = t000-logsys. 
    itab_edidc40-mestyp = 'CRMXIF_ORDER_SAVE_M' . 
    itab_edidc40-idoctyp = 'CRMXIF_ORDER_SAVE_U02' . 
    itab_edidc40-arckey = ' '.
    itab_edidc40serial = l_serial . 
    APPEND itab_edidc40  .  CLEAR itab_edidc40  .
      CLEAR: itab_edidd40 ,e101crmxif_bustrans. 
    itab_edidd40-segnam = 'E101CRMXIF_BUSTRANS'. 
    itab_edidd40-docnum = '0000000000000001'.
    e101crmxif_bustrans-object_task = ’I’.
    e101crmxif_bustrans-object_type = eg: 'BUS2000117'.
    e101crmxif_bustrans-process_type = process type of your transaction.
    e101crmxif_bustrans-description = ’Test’.
    MOVE e101crmxif_bustrans TO itab_edidd40sdata . 
    APPEND itab_edidd40  .  CLEAR itab_edidd40  .
    itab_edidd40-segnam = 'E101CRMXIF_APPOINTMENT_XT'.
    itab_edidd40-docnum = '0000000000000001'.
    e101crmxif_partner_xtdatax =  'X' . 
    MOVE  e101crmxif_partner_xt TO itab_edidd40-sdata . 
    APPEND itab_edidd40  . 
    CLEAR: itab_edidd40,e101crmxif_bustrans  .
    *** Pass the Value   
    itab_edidd40-segnam = 'E101CRMXIF_APPOINTMENT'.   
    itab_edidd40-docnum = '0000000000000001'.
    e101crmxif_appointmenttimestamp_from = ‘01/03/2015’.   
    MOVE e101crmxif_appointment TO itab_edidd40sdata .   
    APPEND itab_edidd40  .    CLEAR itab_edidd40  .
    * Create IDoc
    CALL FUNCTION 'IDOC_INBOUND_ASYNCHRONOUS'   
    TABLES    
    idoc_control_rec_40 = itab_edidc40     
    idoc_data_rec_40    = itab_edidd40.
    SELECT  * FROM edidc   WHERE serial = l_serial .  
    l_range-low = edidc-docnum.    l_range-sign = 'I'.    l_range-option = 'EQ'.    APPEND l_range.  ENDSELECT .
    * report program to create transaction 
    SUBMIT rbdapp01 WITH docnum IN l_range                WITH p_output = ' '  AND RETURN.  COMMIT WORK.
    WAIT UP TO 2 SECONDS. 
    SELECT  status countr statyp stapa4     INTO (l_status, l_countr, l_statyp,l_stapa4)    UP TO 1 ROWS     FROM  edids     WHERE docnum = edidc-docnum      ORDER BY countr DESCENDING . 
    ENDSELECT. 
    SELECT SINGLE object_id guid INTO (lv_object_id , lv_object_guid)     FROM crmd_orderadm_h     WHERE guid = l_stapa4+0(32).
    IF lv_object_id IS NOT INITIAL.  
    object_id = lv_object_id.
    ENDIF. 
    COMMIT WORK.
    You can test it using WE02 or WE05 transaction.
    Give Points if useful.
    Regards,
    Abi

  • How to get Payload of SOAP Message in Advance Adapter Engine

    HI All,
    I am wondering if anybody can tell me how to view the Payload of SOAP Sender and Receiver Message in Advance Adapter Engine?
    Does Anybody know how to check mapping payload in Advance Adapter Engine because in ABAP you can see the mapping payload under Request Message Mapping but when you use AAE you can't see the Request Message Mapping Payload.
    I have a SOAP to RFC Scenario in which I can't see the SOAP Sender and RFC Receiver Mapping Payload.
    When I am sending incorrect data to an RFC I am getting this error which is very strange and new to me.
    com.sap.engine.interfaces.messaging.api.exception.MessagingException: Unable to split a synchronous message
    Any comments would be much appreciated.
    Thanks,
    Iqbal

    HI All,
    I have managed to find Michal's Blog which is talking about getting the mapping payload but unfortunately I don't know how to create Adapter Module so I am wondering if somebody can please provide me EAR file so that I will request the Basis guys to deploy the code and hopefully this will solve my query.
    Michal's Blog
    As you all probably know while using local Advanced Adapter Engine (AAE) processing in SAP PI 7.1 the message is logged only once (during processing by sender adapter). This is great in terms of performance but what if we need to check the mapping output? Is there a way do do it somehow? It turns out that we don't have such an option in standard yet. Is there any alternative then?
    It turns out there is - a simplest adapter module there is...
    Local AAE works in such a way that from the sender adapter it executes the receiver adapter so in the outbound message to PI processing you can see the adapter info logs of the receiver adapter and this is what we can use. The idea is to add an adapter module to the receiver adapter which will put the content of the message into the audit log of PI message processing. We can do it by writing a few lines of code:
    PI/XI: target message logging with local AAE not possible ? not anymore...
    *Please upload the file in any free site or <REMOVED BY MODERATOR>
    <READ RULES OF ENGAGEMENT>
    Thanks,
    Edited by: Prateek Raj Srivastava on Jan 6, 2012 9:10 PM

  • How can the payload of a XI message be normalized to the RFC-XMLuFF1F

    How can the payload of a XI message be normalized to the RFC-XML
    format? Is it possible to remove unwanted XML-Namespace declarations
    from a RFC-XML document?

    While sending a message to a RFC-Adapter receiver channel a error
    is thrown during RFC-XML-document parsing. The RFC-XML document looks
    like it has the correct RFC-XML format but there are some additional
    XML elements (e.g. XML-Namespace declarations). These elements can't
    be understood by the RFC-XML parser of the RFC-Adapter. This parser
    only is suitable for correct RFC-XML documents (like created by a
    RFC-Adapter sender channel or the SAP JCO).To remove the unneeded elements from the RFC-XML document a message
    mapping within the Integration Server can be used. The attached file
    rfcnormalizer.jar contains a XSLT-Stylesheet which can be used for
    this purpose.

  • How to map n x m to  i

    how to map  all the items to another node (0...unbounded)?
    head (0...unbounded)
      --  t1
        --t2
        --t2
       -- item (0....unbounded)
       i1
       i2
      i3
    Edited by: Shen Peng on Dec 7, 2010 9:28 AM

    Hi Shen,
    If the version of your PI system is less than 7.1, then you need to go for Java mapping to achieve this requirement.
    Here is a smple Java mapping code.
    import com.sap.aii.mapping.api.StreamTransformation;
    import com.sap.aii.mapping.api.AbstractTrace;
    import com.sap.aii.mapping.api.StreamTransformationConstants;
    import java.util.Map;
    import java.io.*;
    public class PayloadToXMLField implements StreamTransformation {
        String strXML = new String();
         //Declare the XML tag for your XML message
         String StartXMLTag = "<Payload>";
         String EndXMLTag = "</Payload>";
        AbstractTrace trace;
        private Map param = null;
        public void setParameter(Map param) {
            this.param = param;
        public void execute(InputStream in, OutputStream out) {
            trace =
                (AbstractTrace) param.get(
                    StreamTransformationConstants.MAPPING_TRACE);
            trace.addInfo("Process Started");
            try {
                StringBuffer strbuffer = new StringBuffer();
                byte[] b = new byte[4096];
                for (int n;(n = in.read(b)) != -1;) {
                    strbuffer.append(new String(b, 0, n));
                strXML = strbuffer.toString();
            } catch (Exception e) {
                System.out.println("Exception Occurred");
            outputPayload =
                "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
                   + StartXMLTag
                   + strXML
                   + EndXMLTag;
            try {
                out.write(outputPayload.getBytes());
                   trace.addInfo("Process Completed");;
            } catch (Exception e) {
                trace.addInfo("Process Terminated: Error in writing out payload");;
    If you have PI 7.1, then refer the below link:
    /people/jyothi.anagani/blog/2010/06/17/convert-the-input-xml-to-string-in-pi-71-using-standard-graphical-mapping
    Thanks,

  • How to Map in SAP      ?

    Hi
    My client is Automobile industry.In the presales process my company delivers the goods to the dealer.On transit the goods are damaged.Instead of returning the goods the dealer him self repairs the goods and sends the credit memo to the company.The company will send the engineer for inspection and give the clearance certificate for the dealer.With reference to this we have to create the credit the customer.
    How to Map it SAP....?
    Plz send me the reply
    Regard's
    Prasad.

    Dear Prasad,
    As you r not taking d goodS back (or dealer is not sending them back) thus it's not a case of a Returns. Also there is no issue with d invoice either thus even Invoice Corrrection Request will not b generated.
    Thus it's a simple case of creating a Credit Memo Request for the required amount i.e the amount claimed 2 b spent by d dealer. This will obviously have a block which can b removed by d engineer who went for inspection (or some1else depending on d working of d organisation). Once the billing block is removed the dealer can b issued a Credit Memo in d usual way.
    Hope it answers ur query.
    regards
    PARAM

  • How to map new field in DSO

    I have added a new field to the dso and i have replicated the datasource as well which is showing the new field newly added in ecc. how can i map the new keyfigure in the transformation between the datasource and ods. its showin in the ds, can u pls tell me how to map now.

    Ya but the problem is I have an infosource in between and its not showing in the transformation between the dso and infosource.....nor the infosource and the datasource. But its there in the first transformation on the dso side, not on the inforsource side..... but how to get that field in the infosource side...so that i can map the field between both the transformations....between infosoucre and dso and infosouce and ds.....You know what I mean. the zfield is showin in the dso field structure in the first level mapping between dso and infosouce....but where do i map it.
    Edited by: Daniel on Nov 28, 2011 9:59 AM

  • How to Map the Unit field  in case of DSO and INFOCUBE

    Dear Experts,
    I have a issue ,Please help me to solve this
    I have DSO as provider ,
    And, i have to map transformations  btw the Datasource and DSO.
    In generic Data source,  i have unit fields like BASME,MEINS (Quantity units) & STWAE (currency field)
    and normal Quantity fields  like KWMNG,OAUME(quantity related),OAUWE (value related).
    In DSO data fields as Key figure info objects like  0Quantity (which have 0Unit as unit of measure) and some other  key figures which have there respective unit of measure in info object  definition.
    So you Please tell me how to map the Quantity ,Amounts, unit fields to key figures that we have.
    (How it will be for both DSO and Info cube is there any difference?)
    Edited by: AnjunathNaidu on Jan 18, 2012 1:20 PM

    Navasamol ,
    If it is works ,will u please tell me what is the difference ,if the transformations btw data source and DSO and
    what is the difference btw data source and info cube and btw DSO to Infocube or cube to cube .
    And i have  seen the Quantity fields  and there respective unit fields are mapped directly  to key figure info object
    in case of Info cube . Its working fine .
    If only 1:1 mapping allowed in DSO data fields key figures and there respective unit of measure characteristic.
    why this difference btw DSO and Info cube can any one explain me in detail.
    Expecting your valuable suggestions.
    Thanks & Regards,
    Anjunath Naidu
    Edited by: AnjunathNaidu on Jan 18, 2012 4:05 PM

  • How to map promotional items

    Hi Experts,
    how to map promotional items with sales employee wise.
    and what is the difference bet sample and promotional items
    Regards,
    Amar

    I have no idea abt your process, but you can create new order reason as promotional items and assign to FOC order, you can create sales employee as customer and create FOC with customers ( sales employee).

  • How to map lattitude and longitude on a map in j2me.

    hi all,
    i am new to this forum and new to j2me.
    i am developing a pplication to track location of a gps mobile phone.
    i am using wtk2.5.1 jsr179 to develop it
    i know how to get location of a mobile phone but i cant find any method how to map those lat long coordinates on a map...
    please help me out if anyone knows about it..
    thanx

    Hi,
    I'm afraid that this is large problem... and it's not related to J2ME.
    The first question is whether you want to use some map provider and its API or you have a bitmap and you want to place a cursor of your position in the map.
    In the first case find an API to use (I don't know any). In the second case you have to understand what the GPS coordination mean, know projection type of the used map, then find and use the transformation formulas to transform GPS coordinates to map coordinates and vice versa.
    Regarding the GPS coordinates start here: http://en.wikipedia.org/wiki/World_Geodetic_System
    Regarding the projections - my map I tried to use in my application uses Lambert conic conformal projection http://en.wikipedia.org/wiki/Lambert_conformal_conic_projection
    but it may differ from map to map.
    Enjoy :-)
    Rada

  • How to map free goods scenario

    how to map free goods scenario?

    Hi
    Two types of free goods
    1.with excise free sample goods
    2.With out excise free sample goods
    with out excise free sample goods
    step1 create a purchase order and tick free goods column
    step2 GRN against free goods Po
    step3 No a/c entry Generated.
    with excise free sample goods
    step1 J1iex
    step2. Part1 created
    step3. Part11 created
    rds
    Kavi

  • How to map business process and enterprise service?

    Recently, I read some documents about ESA. I'm confusing about the relationship between business process and enterprise service. In other word, how to map the business process to enterprise service after the business process is analyzed? Is there any methodology/rule to define business process and wrap them into service in ESA?

    Hi Sherry,
    I like to add some of my thoughts about that discussion. From my point of view ESA is much more than just another BPM or Enterprise BPM. ESA is adresses six key areas and I think all of them are really needed:
    - <b>People Productivity</b> as the word itself describes...it's about portals and productivity.
    - <b>Embedded Analytics</b> has to integrate transactional and analytical content.
    - <b>Service Composition</b> is used for model-driven service composition and services orchestration.
    - <b>Service Enablement</b> is about a Enterprise Services Repository filled with business meaningful Enterprise Services and service patterns for enabled objects. Excactly this is where SAP has years of experiences.
    - <b>Business Process Platform</b> is about service enablement of all application platform objects and engines. This is the place where "BPM" for core business processes resits.
    - <b>Life-Cycle Management</b> has to cover the deployment, configuration, operation and change management for ESA based processes.
    Therefore the term "BPM" is located in serveral layers of an ESA approach. On the level of <u>Business Process Platform</u> BPM is providing the choreography for core business preocesses.
    At <u>Service Enablement</u> BPM needs to compose out of granular services (I would say "atomic" services)
    buiness meaningful services (here we have "molecular" services).
    The third level where BPM could be used is <u>Service Composition</u> because exactly this is the place
    where serveral Enterprise Services could be combined to a process representation.
    To come back to the discussion:
    1. The question should be how to indentify business meaningful services which could represent single process steps. ATP check, Credit card check, ... could be examples. In theory this service could be out-tasked, defined more flexible etc. This means that processes needs to be evaluated for Enterprise Service candidates. Afterwards you can check against SAP's Enterprise Services Repository for already existing Enterprise Services. The evalution for enterprise services candidates will be supported by the metodology mentioned by Kaj and David.
    2. I think domains in this context should be motivated by business and/or functional areas. Depending on the granularity. For example Order Fulfilment Services, Master Data Services, Search Services... These kind of serices can be combined again to services such as "Search of Master Data" (Search Service + Read Master Data Service) etc. or can be used to generate UI to be used in a ESA application.
    Your thoughts?
    Very best regards
    Wulff

Maybe you are looking for

  • Unable to understand the concept of Primary Key in EJB

    hi, please help me in understanding the concept of Primary Key. For each and every entity bean represents a data base row. i think it is correct. if multiple users are accessing the same data base row, there will be different primary key for each and

  • Web Banners

    Are there any good tutorials on creating Web Banners in Photoshop CC 2014.

  • Parliant Phone Valet volume control script

    I have been using Phone Valet for several weeks and love it. One of the cool features is an Applescript which fades out the volume on iTunes whenever I am on the line. Unfortunately, I use internet radio a lot, and the mute doesn't work there. Parlia

  • Exporting photos with keywords

    I recently organized over 600 family photos and organized each by keywords. I now want to export them to a CD to share. I am exporting the photos for my PC using family around the country. When I export the photos, the keywords don't go with it. Is t

  • Itunes trouble with windows 8

    Since I got my new computer (HP Envy) I installed Itunes and everytime that I try to open the file it says it has encountered a problem and needs to close. I am running windows 8. I never had this problem with windows 7.