on 09-01-2009 2:43 PM
Hi
I'm working on a File to Proxy scenario, where the file names(10 chars length) are unique. These files will be available for XI in a source directory. My requirement is -- file name need to be decoded into 3 values and to be updated into a r/3 database table along with the file data.
Hope my requirement is clear.
Thanks.
Hai,
Map the file name to a field in the target .
Again in the SPROXY , you will get an internal table which contains the field .
Now you can easily fetch the particular field from the internal table and update to the table
Regards,
Jude
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Just create the UDF as mentioned in the blog but without any input parameters, now map this udf to any of your fieds which you are not using or create a new field for it.
One more thing you can either change the file name in UDF/mapping itself or in R3 when you get it in your intrnal table, I mean it's upto you.
--Sarvesh
Hi,
I've created as per the blog /people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
I can see the Dynamic Configuration section but i cant see the field which stores the file name.
Created UDF is
one constant --> UDF(pasted the code which is there in blog) -->field
I added a constant and mapped to the udf as it says mapping not sufficient.
Thanks.
You cannot see the field which stores the file name. The file name comes from payload at runtime.
Secondly no need to create any input parametes in your UDF, just edit your udf and delete the input parameter (default input is 'a') so that you don't have to map any constant to this UDF just map this UDF to target field.
e.g. UDF ---> target Field.
--Sarvesh
You cannot see the field which stores the file name. The file name comes from payload at runtime.
Secondly no need to create any input parametes in your UDF, just edit your udf and delete the input parameter (default input is 'a') so that you don't have to map any constant to this UDF just map this UDF to target field.
e.g. UDF ---> target Field.
I did the same but am not able to activate the mapping.
Mapping activation Error:
Activation of the change list canceled Check result for Message Mapping hello_mapping | http://briks.com:
Mapping not sufficiently defined
Chennai.
> I forgot to mention that my receiver is a XI Adapter (Proxy) where In CC I can't see the Advance tab for enabling the Adapter specific parameters.
I already know that you have XI adapter since you are doing inbound proxy. Anyway you will not require to do this in your Receiver CC, just do it in your Sender CC.
> Will it be a reason why my file is not appearing in the receiver structure?
No, I dont think. You will see the file name in your sender payload under SOAP Header ---> Dynamic Configuration, which will automatically come to your mapping if you have used the UDF when you to end to end testing only.
Regards,
Sarvesh
> Mapping activation Error:
>
> Activation of the change list canceled Check result for Message Mapping hello_mapping | http://briks.com:
> Mapping not sufficiently defined
Do like this..
Open your UDF code then press the edit button (Pencile icon) then click on the arugment (a) and then click on Delete Selected line icon (red color minus icon).
After doing this activate your mapping.
Just use Dynamic configuration in your mapping for this.
/people/michal.krawczyk2/blog/2005/11/10/xi-the-same-filename-from-a-sender-to-a-receiver-file-adapter--sp14
--Sarvesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.