on 08-24-2006 4:47 PM
Hi,
I need to create target filename same as source filename. When receiver communication channel is proxy. Communication channel.
Thanks,
Venu.
Hi,
Is your Receiver is Proxy ? Is it ABAP proxy ?
You can write a logic inside the proxy code to create a file with same name as in the source file.
Because in proxy , you are not generating file immeadiately, you are just calling a proxy method from XI with data, and your logic to process the data will be inside the proxy method. So you can handle this over there.
But why can't you use file adapter ?
Using Adapter Speicific Identifiers, you can achieve this.
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
Regards,
Moorthy
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Venu,
Can you pls elaborate your scenario??
R u trying to pick a file and post the data using a inbound proxy into your R/3 system. Then whats the role you are planning to have for the file name.
Cheers
JK
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Venu,
So the flow will be like,
Step1: file->proxy(with some validation)
Step2: based on the validation from the step1 trigger an outbound proxy and create the file.
For this you need to use the module in your sender file adapter and then pass it as an extra field in the payload...this field you'll be maintaining in your source and target structure of your step1.
Now this file name will be available in your inbound proxy, do the validation and send it in the outbound proxy structure(which again will have the node to hold the file name).
In the step2 as the last part in the receiver file adapter use variable substitution.
This will hold good if you are using XI throughout. If you are not using step 2 still you can use module to get the file name and pass it to the proxy data and in ABAP code, you can use OPEN DATASET command(check for its syntax) and create the file in the R/3 server application layer.
cheers
JK
Venu,
To get the Source File name and and appned the date to it, you can use Adapter Specific Identtifers -- File Name in the Sender and receiver file adapter and in the message mapping, set the file name using this code,
String newfilename="";
DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
DynamicConfigurationKey key = DynamicConfigurationKey.create("http://sap.com/xi/XI/System/File","FileName");
// Get Sourcefilename
String oldfilename=conf.get(key);
//append sourcedateL
String nwfilename=oldfilename;
conf.put(key, newfilename);
Regards,
Bhavesh
Regards,
Bhavesh
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.