Payload as a single Field

how we can treat full file (Full payload ) as in single field.
While file picking from sender end and keep the  full content as a payload in single field at source side?

Hi,
A bit confused with your question, but here are the two things which might help
1) sending whole source payload into single field in target structure, you can do this by mapping the headersegment to the target field and select RETURN AS XML on right click. there is one blog on this with screen shots if you want to take a look.
2) Taking whole payload from a single source field, You can do this by writing an UDF to extract the XML payload file and placing it before the MM in OP.
Thanks...
Karna....

Similar Messages

  • Xml payload in a single field

    Hi All,
    I hve a scenario like this ERP->XI->Monitoring system
    In the mapping, I need to assign the outbound payload (whole xml) to a field in the target
    message field since the (Target) Monitoring system wants to receive the whole xml message in single field.
    How can i achieve this?
    Thanks
    Deno

    try this.. some of the imports are not required.. however I just copied from my code..
    import javax.ejb.CreateException;
    import javax.ejb.SessionBean;
    import javax.ejb.SessionContext;
    import com.sap.aii.af.mp.module.Module;
    import com.sap.aii.af.mp.module.ModuleContext;
    import com.sap.aii.af.mp.module.ModuleData;
    import com.sap.aii.af.mp.module.ModuleException;
    import com.sap.aii.af.ra.ms.api.Message;
    import com.sap.aii.af.service.trace.Trace;
    import java.util.Hashtable;
    //XML Parsing and Transformation classes
    import javax.xml.parsers.*;
    import org.w3c.dom.*;
    import java.io.InputStream;
    import java.io.ByteArrayOutputStream;
    import java.io.StringWriter;
    import com.sap.aii.af.ra.ms.api.XMLPayload;
    import com.sun.org.apache.xml.internal.serialize.OutputFormat;
    import com.sun.org.apache.xml.internal.serialize.XMLSerializer;
    import javax.xml.transform.*;
    import javax.xml.transform.Source;
    import javax.xml.transform.Result;
    import javax.xml.transform.dom.DOMSource;
    import javax.xml.transform.stream.StreamResult;     
    Object obj = null; //Handler to get principal data
              Message msg = null;// Handler to get message object
              String getXMLtoField = null;
              try {
                   obj = inputModuleData.getPrincipalData();
                   msg = (Message)obj;
                   XMLPayload xmlpayload = msg.getDocument();
                        DocumentBuilderFactory factory;
                        factory =DocumentBuilderFactory.newInstance();
                        DocumentBuilder builder = factory.newDocumentBuilder();
                        // parse the XML Payload
                        Document document = builder.parse((InputStream)
                        xmlpayload.getInputStream());
                        OutputFormat format = new OutputFormat(document);    // Serialize DOM
                        StringWriter stringOut = new StringWriter();    // Writer will be a String
                        XMLSerializer serial = new XMLSerializer(stringOut, format);
                        serial.asDOMSerializer();                       // As a DOM Serializer
                        serial.serialize(document.getDocumentElement());
                        String FileContent = stringOut.toString();
              return getXMLtoField;

  • How to prevent the logging of a single field in XI ?

    Hi Guys,
    we have developed the interfaces for payment card services using the Enterprise services and the major problem what we are facing is to prevent the logging of the 3 digit security code in XI.
    According to the payment card industry standards you should not store it as well as you should not encrypt this 3 digit CVV code.
    Is there any way we can prevent the logging of this single field in XI ?
    Is it possible if we develop our own custom adapters then we can acheive this ? Do we have full control over the DB in the custom adapters?
    any help or suggestions or other alternatives would be really appreciated. I want to hear some solution from the experts.
    Thanks in advance,
    Srini

    Hi Beena,
    You can encrypt the credit card no and SSN and that should not be a problem, but you should not store or encrypt the CVV no.
    as i said we have our own tools many customers are using with respect to RFCs where you can encrypt and decrypt the card numbers and also not storing the values of CVV.
    The above scenario works fine with no issues and it is according to the PCI standards. If you use PI 7.1 and use adaptive controlling the values are stored at a single place ie you can acheive single persistance and even this will not be our solution.
    Advanced Adapter Engine Configuration in PI 7.1
    with the single persistsnce, if there is a adapter module or custom adapter which takes the payload and prevents the stroage of the value of a single field then it would be our solution.
    Thanks,
    Srini
    Edited by: Srinivas Reddy on Aug 20, 2008 7:42 PM
    Edited by: Srinivas Reddy on Aug 20, 2008 7:57 PM

  • Passing multiple values for a single field in URL to call sap Transaction

    Hi All,
    I need to pass multiple values for a single field to SAP transaction .
    means if i have say a field "Date" which can contain more than one value, <b>but its not a range which has two fields</b> . How is it possible.
    Let me know pls.
    Regards,
    Sirisha.R.S.

    Hi Satyajit,
    I need to call a transaction with multiple values which gives me the report based on those values.
    So I need to pass multiple values for a single parameter.
    I hope u got it.
    Regards,
    Sirisha.R.S.

  • F4 help for a single field in interactive form

    Hi Experts,
    I am working in HRAS process.I created a Form Scenario and an Adobe Form.  I linked my interactive form in portal using standard Start Processes iView . Now I have to create a value help(F4 help) for 'STATE' field based on 'COUNTRY' field value in adobe form.  I filled the Input value Help in the corresponding Form Scenario field. But in portal the adobe form shows the field as a single field only.
    How I can I attach the manual F4 help to 'COUNTRY' field?
    The how to  vary the F4 help values in 'STATE'  fied based on 'COUNTRY'  field?
    Do I need to code  in Java script for this?
    Please provide some inputs with code sample
    Thanks in advance,

    Lek,
    Check Nikhil's reply in this [thread|Re: Reg: value help from BADI is not displayed in the HCm form;. It should probably help you.
    Chintan

  • Deleting a single field from existing Layout - Update

    Hi,
    We need to amend our custom integrator's layout by removing a field from the layout.
    However, in Desktop Integration - "Define Layout" - we do not have any option to delete a field (options are - Move Up/down, Read only, width,Frozen pane)
    (Making width - 0 is not solving the purpose since only the field is not visible in layout but mappings remain as is)
    Is there any option to remove a single field from integrator layout?
    Thanks much in advance,
    Rgds,
    Sumanth

    Duplicate post - Deleting a single field from existing Layout - Update
    Srini

  • Deleting a single field from existing WebADI Layout (Update)

    Hi,
    We need to amend our custom WebADI integrator's layout by removing a field from the layout.
    However, in Desktop Integration - "Define Layout" - we do not have any option to delete a field (options are - Move Up/down, Read only, width,Frozen pane)
    (Making width - 0 is not solving the purpose since only the field is not visible in layout but mappings remain as is)
    Is there any option to remove a single field from integrator layout?
    Thanks much in advance,
    Rgds,
    Sumanth

    Duplicate post - Deleting a single field from existing Layout - Update
    Srini

  • Display values of a single field in a multiple rows in a table region

    Hi Tech-Gurus,
    I want to display values of a single field ( which is in a table region) in multiple rows and also need to restrict the values from decimal number. If i click save, then it will throw exception "Decimal not allowed".
    xxxxxx
    yyyyyy
    Reg.No
    1234
    5678
    7654
    I need to display the values of REG.NO in different rows like,
    1234
    5678
    7654
    and also need to validate as well against Decimal values.
    Please help me with the code how i will iterate ?

    Hi,
    I am assuming you are talking about displaying substrings from the Reg No in different rows. For this you would need to write a query which identifies the substrings and creates a separate row for each (ensure you choose values for all other columns in the table row). Kindly let me know if the understanding is incorrect.
    To validate against decimal value you can use the java code by checking the difference of the number and the number on which modulus has been applied. Hope that helps.
    Regards
    Sumit

  • How to update a single field in Word macro

    Hello,
    I am trying to create an AutoOpen() macro that will update the file name and path when user opens in a Word document, but I can't seem to find anything explaining how to update a single field, specifically the {FILENAME \p} field.  There
    are other fields in the document, so I do not want to update all the fields.  Most of the links I found only explain how to update ALL fields. Can somebody please tell me how I can update only the filename and path field using an autoopen macro?
    Thank you

    Stefan's response is correct.
    Here is a macro that should update only filename fields.
    Sub FileNameFieldUpdateAllStory()
    ' Written by Charles Kyle Kenyon 15 November 2001 - modified for filename 10 Sept 2014
    ' repaired by Jezebel
    ' All Story Field Updater - Filename fields
    Dim oField As Field
    Dim oStory As Range
    ' On Error Resume Next
    For Each oStory In ActiveDocument.StoryRanges
    ' This goes into headers and footers as well as the regular document
    Do
    For Each oField In oStory.Fields
    If oField.Type = wdFieldFileName Then
    oField.Update
    End If
    Next oField
    Set oStory = oStory.NextStoryRange
    Loop Until oStory Is Nothing
    Next oStory
    End Sub
    See Installing Macros for help in using this.
    Charles Kenyon Madison, WI

  • How to change the screen element of a single field in a table control

    Hi Gurus,
    I want to change the screen element of a single field (or the whole row) in a table control according to a condition.
    I have 2 columns in the table control. One is an input column and one output only. When user enters values into the input column, they need to be compared against the values in the other column, and if there is a discrepancy, the row where the discrepancy is needs to be highlighted.
    I have tried the following code which highlights the whole column ...
    CONTROLS: TC_ZVOYG_BINS TYPE TABLEVIEW USING SCREEN 0500.
    DATA: wa_tc_zvoyg_col LIKE LINE OF TC_ZVOYG_BINS-cols.
      LOOP AT G_TC_ZVOYG_BINS_ITAB
               INTO G_TC_ZVOYG_BINS_WA.
        if G_TC_ZVOYG_BINS_WA-zdelivery_bin ne G_TC_ZVOYG_BINS_WA-zactual_bin.
          loop at screen.
            IF screen-name = 'ZVOYG_BINS-ZACTUAL_BIN'.
              wa_tc_zvoyg_col-screen-intensified = 1.
              MODIFY tc_zvoyg_bins-cols FROM wa_tc_zvoyg_col TRANSPORTING
              screen-intensified WHERE screen-name = screen-name.
            endif.
          endloop.
        endif.
      endloop.
    And also the following code which makes no change ...
      LOOP AT G_TC_ZVOYG_BINS_ITAB
               INTO G_TC_ZVOYG_BINS_WA.
        if G_TC_ZVOYG_BINS_WA-zdelivery_bin ne G_TC_ZVOYG_BINS_WA-zactual_bin.
          loop at screen.
            IF screen-name = 'ZVOYG_BINS-ZACTUAL_BIN'.
              screen-intensified = '1'.
              modify screen.
            endif.
          endloop.
        endif.
      endloop.
    Thanks in advance.

    Hi,
    The modification of a screen element attribute (LOOP AT SCREEN...MODIFY SCREEN) must always be done in the PBO (for a dynpro, it will be in a PBO module, i.e. declared by MODULE ... OUTPUT)
    About the loop at the internal table, it is done automatically by the system, also during the PBO, you'll find something like LOOP [AT itab] ... WITH CONTROL ...  in the PBO part of the screen flow logic (note: you may have to complete with a supplementary READ TABLE if you don't use AT itab). So you don't need an additional loop.
    Best regards
    Sandra

  • Changing the color of a single field in a row of a table

    Is it possible to change the color of text of a single field within a single column. If field 'C' in a row is negative number change the text color to red. Is this possible?

    Hi Champion,
    Please Do search before posting.. you get lots of threads here...
    Re: color for a particular column in table
    Re: Color a table row
    Please go through this..
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/707fb792-c181-2d10-61bd-ce15d58b5cf1?QuickLink=index&overridelayout=true

  • Displaying data from a list into a single field with comma separated values

    Hi,
    I have a requirement to change a report with an XML structure (simplified version) as below
    <Protocol>
    <ProtocolNumber>100</ProtocolNumber>
    <SiteName>Baxter Building</SiteName>
    <ListOfActivity>
    <Activity>
    <Description>Communication Memo Description.</Description>
    <Name>James</Name>
    </Activity>
    <Activity>
    <Description>Visit 4</Description>
    <Name>James</Name>
    </Activity>
    <ListOfActivity/>
    </Protocol>
    On the report I need to display all the 'Names' for each of the Child (Activities) in a single field at the Parent (Protocol) level, with each Name separated by a comma.
    How do I go about getting this to work?
    Thanks

    Take a look at this: http://blogs.oracle.com/xmlpublisher/entry/inline_grouping
    You could do this (ofcourse, you will need to add extra logic to ensure that there is no comma added after the last name..)
    <?for-each@inlines:Name?><?.?><?', '?><?end for-each?>
    Thanks,
    Bipuser

  • How to delete data from single field in a database table?

    Hi guys,
         Plz suggest me How to delete data from single field in a database table?
    thnks,
    pavan

    hi
    in addition to abv details..chk this:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb3aef358411d1829f0000e829fbfe/content.htm
    http://dev.mysql.com/doc/maxdb/en/34/ee7fbd293911d3a97d00a0c9449261/content.htm
    regards,
    madhu

  • Multiples payloads in a single message

    Hi everybody,
    I have a scenario where I will receive multiples payloads in a single message (several email attachments) and I have to call a WebService for each different payload, or email attachment in this case.
    Scenario: Mail Sender (multiples attachments/payloads) -> XI -> SOAP Receiver
    These attachments in the email are XML files with the same structure (WSDL) that  must map it to the WebService.
    I'm thinking in receive these payloads using Java Mapping to merge all these XML files in a single fat XML structure and after that use a BPM to do a Loop in order to call the WebService for each part of this fat XML. But I'm not sure if it is the best option and I don't really know how to do this BPM.
    Anyone has a suggestion how should I do this?
    Regards,
    Rogério

    You need to write an adapter module for merging all the XML attachements in to one. Then you should use 1..n mapping in the BPM for splitting them in to multiple payloads.
    BPM - Receive -> Transform (1..N) ->Block -> for each (message) ->send ->close block
    VJ

  • Multiple values in where clause(IN) of select query in Cisco Cloud Portal using single field

    I can actually pass multiple values in the IN statement of select query using multiple dictionary fields in the data retrieval rule of the AFC in Cisco cloud portal like
    #dictionary.field1# = 1 and
    #dictionary.field2#=2
    select col1,col2 from table1 where col3 in (#dictionary.field1#,dictionary.field2#).
    but I want to pass mutiple values in a single field as
    #dictionary.field1#=1,2
    select col1,col2 from table1 where col3 in (#dictionary.field1#) and the query gives no data because it is taking as '1,2' instead of '1','2'.
    Please give the solution for passing multiple values in a single variable to use in IN operator of WHERE clause

    Ok, I now understand what you are trying to do. Unfortunately, you cannot inject parts of a SQL statement into a DDR through a dictionary field, which always represents a specific value (the comma in your case is attempting injection of a SQL construct to refer to multiple values). One possible solution is to arbitrarily consolidate your list of values using a delimiter that you know will not be in the values themselves such as a colon (:). Let's use 3 values as it serves as a better example.
    Set your dictionary field to a single reference to all 3 values of interest, say 'a', 'b', 'c' as:
    :a:b:c:  (you can use javascript to create this consolidated dictionary field)
    Now your query would look something like the following:
    select col1,col2 from table1 where #dictionary.field1t# like '%:'+col3+':%'
    This should achieve the desired result.

Maybe you are looking for

  • Use session in business services

    I want to use JSFUtils.storeOnSession in the Model project. I created a class that I want to expose as a Data Control but I can't because the FacesContext can't be imported.

  • OBIEE11g1.5 External Table Authorization

    Hi, I have integrated LDAP for authentication. But for roles I have created an external table and by initialize block, I am populating it dynamically. My cache is disabled in NQSConfig file and Cache is unchecked in initialize block also. It is popul

  • MFE (Mail For Exchange) for N72

    Hi, Nokia business software site shows that N72 is supported for MFE but there is no download link for the same like other phones. Is N72 really supported for MFE? If yes, can anybody pass on the link for the same. Thanks, Ashley 

  • Read 16 bit binary image into LabVIEW, convert to TIFF and display

    Hello, I have what is probably a simple problem - I have RAW images (1536 x 1944) saved in binary files consisting of unsigned 16 bit integers that I need to read into LabVIEW and be able to view on the front panel (so presumably convert to TIFF or s

  • Error 201

    I was installing Creative Cloud in order to use Adobe Premiere Trial when code error 201 showed up. What can I do?