Q? how to change filename of receiver adapter includeing payload attribute?

hi all.
our scenario is IDOC - XI - FILE.
IDOC is standard type .xml"
Despite of searching help library, just read about how to change using payload value.
How to change the filename using payload attribute?
Message was edited by: ChangSeop Song

Hi,
You can create the file name dynamically from the payload of the receiver adapter as follows.
From the requirement you have stated, you want your file to be named as,
TPSDLS<shipmentid>.
For this, in the reciver file adapter, give your filename as <b>TPSDLS%var%</b> and under variable name substitution,
<b>var</b> --> <b>payload:IDOCTYPE,1,Shipments,1,ShipmentID,1</b>
here, var acts as your variable name and it first looks for IDOCTYPE and its first occurence, shipment and its first occurence and finally, shipmentID and its first occurence. There by generating the filename dynamically.
For more info on this, check the topic <b>variable substitution</b> under this link.
http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
hope this helps,
let me know if you have any clarification,
regards,
bhavesh

Similar Messages

  • How to change specified hierachy node to master data attribute automatic?

    Dear BW experts:
             How to change specified hierachy node to master data attribute automatically? I have a retail business: I have a fixed material group hierachy in R3 Retail ,Now I will extract the material group hierachy ,my goal is that the specified material group hierachy node as dimension in query ,not show hierachy level,So I need change specified material group hierachy node to material group's attribute.
    Anybody solve the requests?
            Thank you for your help in advance !

    If I understand your requirement correctly, you need to have a specific Material Group Hierarchy level (Say Level 2) to be an attribute of Material Group. Usually, this level represents a Brand or Segment, or something with specific meaning.
    If this is correct, here are the things you need to do:
    1) Create an InfoOnject for this specific attribute representing the specified hierarchy level
    2) Add this InfoObject to Material Group as an navigational attribute
    3) Select this navigational attribute in your InfoProvider
    4) Create a transformation routine for this navigational attribute in Material Group Transformation so that the specified hierarchy level for Material Group will be found and populated. The detail of this routine will depend on your specific requirement. Also, you have to make sure Material Group Hierarchy is updated before Material Group attributes are loaded. If you are not family with ABAP, please ask an ABAPer to help you for the Transformation Routine.
    5) Include this navigational attribute in your query along with other required InfoObjects.
    Hope this help and good luck!
    Bill

  • How to change the police of form include text in so10?

    Hi everyone,
    In so10 when I created a text, how to change its police?
    Thanks!

    Hello,
    Jelena Perfiljeva :           in french the word "police" means "font" (example : Helve, courrier new etc...)
    wuyia nata : what is your language connection to SAP ?
    Cordialement,
    Chaouki.
    Edited by: me on Sep 5, 2008 10:22 PM

  • File adapter: how to change filename

    Hi all,
    In my scenario I need to add specific time stamp (current date actually) to filename when it's copied to target system. In the properties of file adapter there is an option to add time stamp, but I need it to be in format YYMMDD.hhmm, while XI default suggests another one. How can I solve the problem? Use variable substitution or m.b. dynamic configuration? In addition want to say that there is no any mapping in the scenario.
    Thank you.

    Hi Dmitriy,
    pls do chk this links
    An interesting usage of Variable Substitution in XI
    Solution to the problem encountered using Variable Substitution with XI-SP12
    The specified item was not found.
    do g with dynamic configuration
    Regrads
    Sampath

  • Change FileName File/FTP Adapter

    Hi all,
    I have a simple scenario File-To-File there is no mapping,so i've created it directly on Integration Directory, like this : https://wiki.sdn.sap.com/wiki/display/XI/FiletofilewithoutusingwithIntegration+Repository
    I've have a requirement to change the file name to be saved by Receiver in accordance with a complex logic.
    I know that the FileName variable can be manipulated like this: /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
    But in my scenario I have no mapping, so I'm thinking about to implement a Module to change the FileName to be saved.
    Does anybody suggest another way? Or implement a module is the best solution for this case?
    I'm using PI 7.1
    Best regards

    Hi all,
    The requirement to change file name was changed and now I can calculate the new name after file has been saved on target directory, so my solution was to create a java program that contains this logic and the code to rename file. Now after processing I'm calling this program and works fine.
    Best regards

  • How to change filename in iPhoto?

    Hi,
    I can't seem to find out how i can "rename" the photos in iPhoto - so it also changes in "Finder"?
    ("Rename them for eks. "IMG001.jpg" to "Sunrise.jpg")
    I've tried to rename them in "Finder", but then iPhoto can't recognize them anymore.
    Is this a fact? Or is there a way to do this?
    Help? :o)

    When I click on a photo in Iphoto and I look to the bottom left of my screen where it shows the "information" box, the first line states Title, that is where it shows my new name I gave the pic. What I do is select all photos in an event, click batch change, and then click title and then type my new name (ex. 2009-01-09).
    That’s how you do it. No problems there.
    My canon (an apple product) came with its own program for downloading pics (imagebrowser).
    Canon are a large multinational all of their own. Apple don’t own them.
    There are many, many ways to access your files in iPhoto:
    For 10.5 users: You can use any Open / Attach / Browse dialogue. On the left there's a Media heading, your pics can be accessed there. Apple-Click for selecting multiple pics.
    Uploaded with plasq's Skitch!
    To upload to a site that does not have an iPhoto Export Plug-in the recommended way is to Select the Pic in the iPhoto Window and go File -> Export and export the pic to the desktop, then upload from there. After the upload you can trash the pic on the desktop. It's only a copy and your original is safe in iPhoto.
    This is also true for emailing with Web-based services. If you're using Gmail you can use iPhoto2GMail
    If you use Apple's Mail, Entourage, AOL or Eudora you can email from within iPhoto. With 10.5 you can access the Library from the New Message Window in Mail:
    Uploaded with plasq's Skitch!
    If you use a Cocoa-based Browser such as Safari, you can drag the pics from the iPhoto Window to the Attach window in the browser.
    Or, if you want to access the files with iPhoto not running, then create a Media Browser using Automator (takes about 10 seconds) or use this free utility Karelia iMedia Browser
    Other options include:
    1. *Drag and Drop*: Drag a photo from the iPhoto Window to the desktop, there iPhoto will make a full-sized copy of the pic.
    2. *File -> Export*: Select the files in the iPhoto Window and go File -> Export. The dialogue will give you various options, including altering the format, naming the files and changing the size. Again, producing a copy.
    3. *Show File*: Right- (or Control-) Click on a pic and in the resulting dialogue choose 'Show File'. A Finder window will pop open with the file already selected.
    Regards
    TD

  • Filenaming convention-Receiver adapter

    Dear All,
    In a file to file scenario, I am sending a file with specific file name and now at the receiving end i used have the file name as same name along with timestamp and a counter both. Is there any dynamic file naming program available.
    Please provide some suggestions.
    Regards,
    Nithiyanandam

    Hi....
       Create a new field in the target structure.
      For that map like below
      DynamicConfiguration -->
                Counter -->           concate --> Targetfield
    And use variable substituion in the reciever communication channel.and also choose file construction mode as 'AddTimeStamp'.
    If you dont want  the extra field in the target payload, use FCC and remove that extra field.
    Thanks ,
    Leela

  • How can i Configure JDBC Receiver Adapter to INSERT data in multiple tables

    Hi ,
    I want to INSERT data in 4 diffrent tables.
    Input Data Format is:
    <H1>
      <d1></d1>
       <d2></d2>
    </H1>
    I want to insert <H1> Header data in particular table & all the details data<D1> in their corresponding table.
    Note that Header Can't repeat but Details records are repeating again & again.
    Is it possible to write Multiple INSERT STATEMENT in single Data Type.??
    I mean to say can we write STATEMENT keyword again & again. if yes HOW ?

    Hi
    see below links.
    http://help.sap.com/saphelp_nw2004s/helpdata/en/cf/406642ea59c753e10000000a1550b0/content.htm
    http://help.sap.com/saphelp_nw2004s/helpdata/en/64/ce4e886334ec4ea7c2712e11cc567c/content.htm
    Regards
    Chilla..

  • JDBC receiver adapter: No 'action' attribute found in XML document

    Hi this is my target structure getting generated at the Receiver JDBC adapter
    I have checked the XML doc, still unable to figure out why in the RWB its showing the following error:
    "Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: No 'action' attribute found in XML document (attribute "action" missing or wrong XML structure)"
    <?xml version="1.0" encoding="UTF-8"?>
    <ns0:MT_IF001 xmlns:ns0="http://vodafone.com/xi/IF001">
    <Statement>
    <OPCO_VPC_PO action="UPDATE">
    <access>
    <SO>0060000090</SO>
    <SO_ITEM>000010</SO_ITEM>
    </access>
    <key>
    <OPCO_PO>0002002291</OPCO_PO>
    <OPCO_PO_ITEM>00010</OPCO_PO_ITEM>
    </key>
    </OPCO_VPC_PO>
    </Statement>
    </ns0:MT_IF001>
    Kindly Help !!
    Thanks !!

    Hi,
                 Clearly stating that no action attribute .So, please take a look at the structure please do like this at your Data Type specification
    <i><b><b><root>
      <StatementName1>
    <dbTableName action=”UPDATE” | “UPDATE_INSERT”>
        <table>realDbTableName</table>
    <access>
    <col1>val1</col1>
    <col2>val2new</col2>
    </access>
    <key1>
    <col2>val2old</col2>
    <col4>val4</col4>
    </key1>
    <key2>
    <col2>val2old2</col2>
    </key2>
    </dbTableName>
      </StatementName1>
    </root></b></b></i>
        refer the  following link
    http://help.sap.com/saphelp_nw04/helpdata/en/2e/96fd3f2d14e869e10000000a155106/content.htm
    **Assign points if you found helpful
    Regards.,
    V.Rangarajan

  • How to change display name of the attachment item attribute.

    Hello Experts
    I have a requirement to send a notification with attachment but attachment name should be attachment name,
    Is there any way to change the display name of the Attachment
    Please advise;
    Thanks
    Rajesh.

    Azmathulla,
    It is not possible to change the name of the server, but you can add a label to it (see attached screenshot).  And yes, it can be done during production hours, this doesn't affect the production data.
    Please let me know if this answers your question.

  • How to change code in MV50AFZZ

    HI,
    i want change the code in Include MV50AFZZ (FORM USEREXIT_LGORT_DETERMINATION). this include is provided for user exits. can any one please help me how to change the code in this Include and what are the necessary actions i need to take.

    You'll have to request a SCCR Key on SAP OSS ( http://service.sap.com )
    Then :
    -> Sap Notes Search
    -> Key and request
    -> SSCR Keys
    -> Registration ( You provides the following info : Basis Release, eg 620 then
    R3TR / Prog / MV50AFZZ
    Of course, you need an OSS user.
    Best Regards,
    Erwan

  • Receiver determination using substring in filename in file adapter

    Hi
    In PI 7.11 I would like to determine the receiver based on a substring in the filename in a file receiver adapter. I am planning on using a context object but am having trouble entering the correct code in the "Right Operand" field.
    I have tried selecting Context Object = Filename http://sap.com/xi/XI/System/File and entering this code in the Right Operand: "contains(substring('_4000_'))"   and an "=" in the as I am looking for a filename, that contains the substring "_4000_".
    I would like to avoid using an extra map and using Dynamic Configuration, as I thing this would be the most elegant way of fixing it
    Is there a way of referencing the context object if I chose xpath in stead of context object?
    MIkael

    Hi Mikael,
    I have the same scenario like you , could you please tell me about the condition how to you use XPath for Context Object
    I need to check the file name and according to that I have to put the file in the different directory.
    Source File: XXXX_IN_xxxx
                       XXXX_PH_xxxx
    I have to check the 7th and 8th Char of the file and according to that I have to place the file in the folder
    Target: DGE008\IN\Inbound
                DGE008PH\Inbound
    I don't know how to used the XPATH for file and specially how to use the substring in that.
    Could you please help.
    Thanks,

  • How to pass dynamic filename to Receiver JMS channel

    Hi experts,
    I want to pass the dynamic filename to receiver JMS message Properties.
    for example
    I am passing directory name via adapter module AF_Modules/DynamicConfigurationBean with key and value combination like below. How to pass dynamic filename value to a dynamic property ( say DCJMSMessageProperty1)
    eg.
    key.0 - >insert http://sap.com/xi/XI/System/JMS DCJMSMessageProperty0
    value.0 - >  testdirectory ( which is static value)
    Note: Im have not created any ESR object . i just have to bypass the file to a jms queue. I have used AAE integrated configuration scenario ( file to jms )
    Regards,
    Balaji
    Edited by: Balaji Pichaimuthu on Jan 27, 2011 4:45 PM
    Edited by: Balaji Pichaimuthu on Jan 27, 2011 4:46 PM

    Already given link for the dynamic configuration code snippet in the earlier reply... Below is the code snippet
    Note: Use Adapter Specific Message Attributes for the target Communication Channel(CC).Check the indicator for filename in the advanced tab of CC
    //UDF code
    String filename="";
    String NameSpace = "http:/"+"/sap.com/xi/XI/System/JMS";
    try{
          DynamicConfiguration conf = (DynamicConfiguration) param.get(
            StreamTransformationConstants.DYNAMIC_CONFIGURATION);
          DynamicConfigurationKey key  =  DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File",   "FileName");
           // read filename value
           filename = conf.get(key);     
          // So far we extracted filename value .. now do your logic  something like this...
          DynamicConfigurationKey key2 = DynamicConfigurationKey.create(NameSpace,"yourjmsvalue goes here");
           conf.put(key2,filename);
         } catch(Exception e){

  • How to get zip file in SFTP receiver adapter

    Hi Experts,
    we got one scenario, which the PI need to pick the .zip file from file path using  file adapter and process to SFTP server with same name and extension .zip.
    we tried using ASMA setting and when ever we are placing the '*' in receiver channel file name , it showing error as "Putting * failed".
    so could you please provide solution how we can able to receive the .zip file with same name.
    regards
    raju

    Hi Raju,
    In ASMA the default namespace was like this http://sap.com/xi/XI/System you can changed it to http://sap.com/xi/XI/System/File.
    please try this...
    Regards
    srinivas

  • Filename from payload - FTP receiver adapter

    Hello everyone!
    I have a scenario wherein I need to get the value from a field coming from an IDOC and then give that value as the "filename" of the file that is saved in the FTP folder.
    IDOC > XI > FILE
    For example, if /ORDERS05/IDOC/E1EDK02/BELNR = 620000123
    then I want the name of the file to be saved in the FTP folder to be 620000123.xml
    I understand you may use the 'variable substitution' property in the FTP receiver adapter, but subsequent attempts at trying to configure that property have resulted in errors. Can anyone help me out?
    Warm regards,
    Glenn

    do u have recordset name (root message)
    For Ex: If you want to refer to the field which is bold
    below is your variable substuition:
    payload:root,1,e1,1,e2,2
    <?xml version="1.0" encoding="UTF-8" ?>
    <root>
      <dummy>
         <e1>
            <e2>Data_1</e2>
            <f/>
           <g attr="abc">text</g>
            <e2>Data_2</e2>
         </e1>
      </dummy>
      <e1>
         <e2>illegal/value</e2>
         <f/>
         <g attr="abc">text</g>
         <e2 attr="fghij">Example Value</e2>
       </e1>
    </root>
    Similarly
    for your strucutre:
    <MS_MT>
    <order>
          <number>
    the variable substuition would be
    payload:MS_MT,1,order,1,number,1
    you have to give complete XML to arrive to this value.

Maybe you are looking for

  • Sales Order Grouped Delivery Lines - Ship Sets

    We have a need to ensure that groups of lines on our sales orders are all created on the same delivery.  The order is entered into VA01 and the ATP check is run to schedule.  This is fine.  However, at the time of delivery creation, a line may not be

  • SQL INDEX USAGE

    hi, I have a procedure which took 15-20 minutes in the past to execute.Suddently it is taking 2 hours.When i examined i came to know that the sql statement is not using one of the index.I dropped the index and created it.The explain plan is generated

  • Newbie ques : How to get the list of all tables in the database

    Hi, I'm very new to Oracle (using Oracle8i currently). I wanted to know if there is a way to get the list of all tables in the database. Like in mySQL you can use the command " show tables" to get the list of all the tables. Any help will e greatly a

  • BSP Data Entry Application in a SAP BW System

    Would it be unwise to develop a BSP data entry application within a BW system? The application's purpose in life is to collect data for reporting in BW. The application would store its data in transactional ODS tables.  From there, the data would be

  • How to execute unix script in java program that is on unix .

    hi , I want to call "sendfax" script that is for sending fax to Hylafax server. This sendfax script is called in client java program.