Doubt om Dynamic Configuration of receiver file
Hello ,
for Acheiving the Dynamic configuration of receiver file name ,adapter specific message attribute is used...But how to suppress the name of file in the content of the Received file...
Is my question correct..do we get the file name in content of the receiver file,while using the Adapter specifc message attribute.
And another question ,in the Variable substitution ...do we get the above problem,then how to tackle the situation to suprress the file name in the payload of receiver file.
HI,
You can handle the dynamic file name via Dynamic configuration or with the help of Variable Substitution.
Please refer
have a look
Dynamic File Name using XI 3.0 SP12 Part - I --> Dynamic File Name using XI 3.0 SP12 Part u2013 I
Dynamic file name(XSLT Mapping with Java Enhancement) using XI 3.0 SP12 Part -II --> Dynamic file name(XSLT Mapping with Java Enhancement) using XI 3.0 SP12 Part -II
With Variable Substituion, you may need to supress the filename
Dynamic File Name - Suppress the Substitue varible
Let me know if you need anymore info.
Thanks
Swarup
Similar Messages
-
Configuring the Receiver File/FTP Adapter !!
Hi
I am trying to configure the Receiver file adapter using the J2SE adapter engine(Please note , NOT the J2EE adapter engine).I see a prerequisite for configuring as below
"The address (HTTP port and URL) where the adapter can be contacted from the Integration Engine".
What values are to be specified and how can they be validated ?
I could see an example given in the Docs saying below,
If i specify , say for example,
"XI.httpPort=1234 and
XI.httpService=/file/Receiver, the end point address of the file/FTP adapter in the Integration Engine must be specified as follows:
http://<fileadapterhost>:1234/file/Receiver"
Can anyone explain what exactly is this endpoint address and where should it be specified/referred to ?
Thanks
SaravanaHi,
"http://<fileadapterhost>:1234/file/Receiver"
this adress refers to an end point with the end point type "xi-connectivity" in the integration directory (ID)which refers to the settings in the file adapter (httpPort=1234 and XI.httpService=/file/Receiver)
1. you specify these adress in the file adapter (outbound)
2. you refer to these adress in the ID (Receiver System End points)
every file adapter should have an own port, because you can not specify two identical ports in two fileadapters.
hope I could help you,
michele
Message was edited by: Michele Mangieri
Message was edited by: Michele Mangieri -
Dynamic configuration of Receiver FTP File channel
Hi,
The scenario is sending an IDOC from an R/3 system (using IDOC adapter) to a FTP file system. I want to dynamically configure the filename and the target directory in the following cases
1. With filename and the target directory coming as a part of the source IDOC
structure
2. There is mapping involved (pass thru) and the file name and target directory are
NOT a part of the source IDOC structure.
I have seen blogs which explains the situation using mapping for File-To-File scenario (Not IDOC-To-File scenario) and some blogs explaining for Http adapter and email adapter, but not for the above scenarios for IDOC-To-File Scenarion.
Your input is highly appreciated.
Regards
Ganeshhi
use Varable susbtituion in receiver file adapter
you set the Enable indicator, you can enter variables for the Target Directory and File Name Scheme. Enter the names of the variables and references in the table.
● Enter each variable that you reference in the Target Directory and File Name Scheme fields without the surrounding percentage sign under Name of Variables in the table.
The variables can refer to attributes of the message header or elements of the message payload.
○ If the variables are to refer to an attribute of the message header, add the prefix message: to the name of the variable under Reference. You can specify the following attributes of the message header:
sender_party, sender_service, receiver_party, receiver_service, interface_name, interface_namespace,
message_id (message ID with hyphens, for example 9fbe1ff1-9a0d-11d9-8665-cbf10a126331)
message_id_hex (message ID in hexadecimal format, for example 9fbe1ff19a0d11d98665cbf10a126331)
For example, if you want to specify the interface name from the message header in the target directory or in the file name scheme, enter message:interface_name as the reference.
or look into help
http://help.sap.com/saphelp_nw04/helpdata/en/ae/d03341771b4c0de10000000a1550b0/frameset.htm
please reward points
Thanks
Sreeram.G.Reddy
Message was edited by:
Sreeram Reddy -
Dynamic Filename on Receiver File Adapter
Hi,
I am running XI 3.0 SP 14.
The scenario is
SAP R/3 (IDOC) > XI (Receiver File Adapter)> FTP Server
There is no mapping on the XI side, we just drop the IDOC XML on to the ftp server.
I would like to configure a dynamic file name on the Receiver File Adapter where if the 'MSATZ' Field
within the E1EPD04 segment of the IDOC is populated then I would like to send a separate
Filename than the one specified on the 'File Name Scheme'.
Has anybody done this or any suggestion how I should go about this please.
Thank you.
Warm Regards,
RanjanHi Guys,
When I tried to create the User defined function as below, I got the Null value for the "StreamTransformationConstants.DYNAMIC_CONFIGURATION" object.
My code looks like this,(this is part of the debuging code)
Start
public String Create(String a,String b,Container container){
if (container.getTransformationParameters() == null)
return "conf.null";
if (container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION) == null)
return "Dynamic.null";
return b;
--End
On the output I get the value "Dynamic.null". I do not know why the object value is Null.
Any suggestion pls.
Thank you.
Warm Regards,
Ranjan -
Dynamic Configuration for two file adapters communication channels
Hello Experts!!!!!!
In one of the interface in my landscape, I am using two file adapters for creating two files with different names and at two different destination on F.T.P.
However the receiver service for both the communication channel are same.
In message mapping I am using multi mapping to create two files out a single message.
Now i have a requirement of changing file path and file name using dynamic configuration for both the comm channel.
When i doing dynamic coniguration for both the comm. channel. My interface is creating two files but with same name and on same destination which is set for second communication channel through dynamic configuration.
Here, I guess the second dynamic configuration is over writing the first dynamic configuration and hence creating two files with same name and at same destination.
Please suggest, if separate dynamic configuration for separate communication channel of same receiver service can be done?
Thanks & Regards,
AmolThanks for your prompt responses!!!!!
Is there any way, By which in dynamic configuration I can find out the communication channel name and then change its parameter.
I mean if iam using say comm. channel A and B.
Then in dynamic configuration for A, I will first take communication channel A by calling it and then change its path/file name.
and then do samething for comm. channel B in its dynamic conf.
Regards,
Amol -
Dynamic naming of receiver file adapter
Hello Friends,
How to handle the dynamic file naming in XI at receiver side as file naming convention sequence to be incremented for every 1 hour...
my Client expecting to handle at mapping...How to do this...
Could any one give me the program if we need to do it in java...
and pls also give another approach if any
Setup dynamically ,>>as file naming convention sequence to be incremented for every 1 hour.
Please elaborate this point. I'm again seeing same the question from your side.
From Variable Substitution you can access only ASMA and can refer the payload element. But in the requirement is something else the you should have to go for Dynamic Configuration in Mapping program.
Thanks
Farooq
Edited by: Farooq Farooqui on Aug 16, 2008 12:11 AM -
Dynamic configuration of receiver communicaton channel?
I have files, Header line tells which server it should go.(Like ip address and port). How can dinamically configure the receiver communication channel.
Thank You
Ganges LeavesHi,
I have very similar requirement, In my scenario I need to pick up files from 4 static locations and based on the file name and pick up type(file/ftp) I can find out the destination's connectivity information from a Cross-Referencing table(Based on MS-SQL Database table- I can get this using look API) in this table we maintaining more than 100 destinations(host/user_name/password etc).
Now I need to set the connectivity information dynamically at runtime. I know this is not possible with Standard XI but does anyone thinks this is possible by any technical way using with XI.. Adapter Modules or Java Proxies?
This is very Critical to win the war with other middleware tools. Please let me know your thoughts and comments...
thanks,
Laxman Molugu -
Dynamic Configuration - CC Receiver - Abap Mapping
How can I add info in the xml message in Dynamic Configuration from Abap Mapping ?
Thanks in advance.Hi,
The following should do the trick:
data: l_dyn_record type MPP_DYNAMIC.
l_dyn_record-namespace = 'http://sap.com/xi/XI/System/File'.
l_dyn_record-name = 'FileName'.
l_dyn_record-value = 'myFileName'.
CALL METHOD dynamic_configuration->add_record
EXPORTING
record = l_dyn_record.
Regards,
Daniel -
Dynamic configuration for multiple files
Hi All,
I am new to PI. I have a proxy to file scenario, wherein 3 files are to be generated depending upon the value in a field (site ID) on the same receiver. Site ID can only have 3 different vales. All these 3 files are to have a dynamically defined name.
How can I configure this scenario? Is there any way in which all 3 files can have dynamically defined names? Please help.
Regards
Vipulif you have only one recored (one site id) in proxy at a time, thn u can write a UDF for dynamic file name..
// UDF: public String SetFileNameDyn(String siteID, Container container) throws StreamTransformationException{
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
String myFileName = "";
if(siteID.equals("firstValue")){
myFileName = "FirstFile1";
}else if(siteID.equals("secondValue")){
myFileName = "SecondFile2";
}else if(siteID.equals("thirdValue")){
myFileName = "ThirdFile3";
conf.put(key, myFileName);
return myFileName; -
Need how to configuration on Receiver File adapter
Hi,
I am working on File to File scenario. I need to create a file in output directory with time stamp.
I am also need to create File output directory.
I used create target directory. But the file is not creating in the directory.
Please help me on this issue.
Thanks,
SwathiHi Swathi,
1. To have the file with the Timestamp, use the option "Add Timestamp" in File construction mode.
2. Check the receiver communication channel and in MONI. If the file is not created and is successful in MONI, then the message might stuck in Queue. Check the queues.
Ensure the provide target directory path is correct.
Check this: /people/shabarish.vijayakumar/blog/2007/07/26/troubleshooting-the-file-adapter-last-updated-on-02-july10
Thanks, -
Need fcc configuration on receiver file adapter
Hi,
I am working on file to file scenario using fcc. My source file is picking propely in sxmb_moni its showing properly. but output file is not placing in target directory.
My output record structure iss
Target..1.1(nodE)
detail 0..unbounded
field1 length 15
field2 length 10
field3 length 14
trailer 1...1
field1 length 5
field2 length 2
for this how would i configure reciver fcc at the same time please mention me the properties.
Thanks,
enivassHi,
Do you need to convert from XML to Plain Text file? Or simply output the XML?
If you need to convert your XML back to plain you should go with something like that:
XML2Plain Transform.Class com.sap.aii.messaging.adapter.Conversion
XML2Plain Transform.ContentType text/plain;charset=utf-8
XML2Plain xml.conversionType StructXML2Plain
XML2Plain xml.addHeaderLine 0
XML2Plain xml.recordsetStructure DT_Header,1,DT_Detail,*,DT_Trailer,1
XML2Plain xml.DT_Detail.fieldFixedLengths 15,10,14
XML2Plain xml.DT_Detail.fixedLengthTooShortHandling Cut
XML2Plain xml.DT_Trailer.fieldFixedLengths 5,2
Reference:
http://help.sap.com/saphelp_nw04/Helpdata/EN/24/4cad3baabd4737bab64d0201bc0c6c/content.htm -
Dyanamic Configuration at receiver file adapter determine target directory
Hi Experts,
I have a requirement to determine the target directory during runtime.
From the source side one particular field determine the Target directory where you need to place file
ECC - PI - File adapter - this is the scenario
In target side 3 directories in the same server . but the directory should determine from source fields - werks
As I am new to PI Please describe the procedure in detail.
Thanks in advance.
KevinHi Kevin,
Use the below UDF and map to the rootnode in the message mapping.
public String GetFileName(Container container){
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
String ourSourceFileName = conf.get(key);
return ourSourceFileName;
In the Advanced tab of the File adapter, check the option Adapter Specific Message Attributes. Under that, check the Filename option.
This would get the fieldname in the target filename.
Check the below link:
/people/madanmohan.agrawal/blog/2009/05/20/combining-three-different-aspects-of-pi-asma-af-module-and-variable-substitution-in-one-shot
http://help.sap.com/saphelp_nw04/helpdata/en/43/0a7d1be4e622f3e10000000a1553f7/frameset.htm
/people/shabarish.vijayakumar/blog/2007/07/26/troubleshooting-the-file-adapter-last-updated-on-02-july10
Thanks, -
Variable Substitution - dynamic names in receiver file adapter :)
Hi,
anyone tried this new feature yet?
Variable Substitution
http://help.sap.com/saphelp_nw04/helpdata/en/bc/bb79d6061007419a081e58cbeaaf28/content.htm
I hope it's working fine it may be a good answer to many questions on the forum:)
I can't wait till I get my hands on XI SP12:)
if anyone has a document the describes <b>all</b> of the changes that came with sp12 please post the link
Regards,
michal
Message was edited by: Michal KrawczykHi,
I can't wait to test the new test tool
http://help.sap.com/saphelp_nw04/helpdata/en/6b/874a4273bb3830e10000000a155106/content.htm
it looks like a very helpful thing
come on, come on I want my sp12:)
Regards,
michal -
Dynamic Configuration - Set Directory Path for File Receiver Adapter
Hi Experts,
I have a question regarding the dynamic configuration for the file adapter. Is it possible to set a directory path without a message mapping for the file receiver adapter? the problem is that I want to import a pdf document. this pdf document I want to store in a dynamic directory (depending on the filename). so I have to read the filename out of the dynamic configuration and generate (depending on the filename) a directory for this file. Is that possible without a message mapping? I cannot make a message mapping because the file has the pdf format and should not get changed.
best regards
Christopher KühnHi Gaurav,
I use the ASMA (respectively the filename) for the sender adapter. After the pdf was imported into XI this filename is in the ASMA.
But what then??? How can I get this filename with the help of the variable substitution? and if I have this filename I have to change this filename a bit to generate the name / path of the directory.
Please explain it to me detailled
Thanks and regards
christopher -
Dynamic File name in Receiver File adapter
Hi,
My Scenario is Proxy to File.
I must create filename dynamically in the receiver file adapter by taking the sales order number and divison from the source.
How can i create a dynamic filename? i searched the forum, but i could not get the correct answer,
Please help me out.
Regards
SrinivasHi Srinivas,
> My Scenario is Proxy to File.
> I must create filename dynamically in the receiver file adapter by taking the sales order number and divison from the source.
public String targetFileName(String Sono, String Div, Container container) throws StreamTransformationException
DynamicConfiguration conf = (DynamicConfiguration)container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
String MyFileName = sono + div + "<filename>"+".xml";
conf.put(key, MyFileName);
return MyFileName;
File name you can format according to your requirement.
And one more thing for this you have to specify the ASMA properties. For this check the below link step-1 and step-2.
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
Regards
Ramesh
Maybe you are looking for
-
Where did the Partitions and SubPartitions go?
I created a table with partition Range (Transaction_Date, Retention_Period) and hash (Record_Id) subpartition template (for 32 subpartitions) Then I add more partitions and while the loop is going on I can get counts of partitions and subpartitions.
-
How do i get my office computer to recognise the songs that i burn on to disc from my itunes
How do i get my office computer and my work laptop to recognise the songs on the discs that i burn from itunes
-
Execution of Immediate SQL in compiled package in two versions of SQL*PLUS
A peculiar problem has risen in our database. Execution of Immediate SQL in compiled package in two versions of SQLPLUS gives different results We have a compiled package with two procedures that contain immediate SQL statements, and these are: +PROC
-
Can't see help in JDeveloper.
I was using help in JDeveloper and, suddenly, I lost it and can't open it anymore. Help me find help! Thanks, Inna.
-
Moved into new flat - How do i find out what the t...
I've just moved into a leased flat as a tenant and there is a BT box on the wall. I'm looking to setup broadband etc but all providers require the telephone number at the property. Is there any way to find this out? I don't have a phone plugged in a