on 02-13-2008 9:03 AM
Hi,
I want to implement a scenario like File1-XI-webservices-XI-File2 scenario.
(asynchornous-synchornous-asynchornous scenario).
File1 will have only field 'Material Name'. webservices on the target side take the 'Material Name' as input and return 'Vendor Name'.
I want to implement a logic at XI as follows.
1)Whenever the 'Vendor name' returned from webservice is 'XYZ paints',I have to populate the
fields of File2 with some pre-determined Rate,Paint grade,Paint quantity to be ordered.
2)whenever the 'Vendor name' returned from webservice is 'ABC paints,I have to populate the
fields of FIle2 with some other Pre-determinced Rate,Paint Grade and Paint quantity to be
ordered.
Questions:
How to achieve the above logic at XI.Is it possible to use some standard functions available at mapping.Do I need to implement the Logic at BPM?Can it be done at mapping
level?
Regards,
Alex.M.
I am not sure the "IF else" construct will help you if you have long list of values or if the vlaues are to be dynamic in nature. If at run time you are to get some vlaues against the fixed values coming in from your file then why can't you use "Value Mapping" functionality. Maintain a Table in XI with all the values and then call and read it at run time.
A simple Situation : You provide Employee Number (coming from WebService) and for this EMpNo from the Value Mapping Table you can derive information like dt of Joining or divitons etc (derived at run time) and pass it to Target.
Hope I got ur requirement corrrect and this solution helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please check The below Blog.
https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/5479. [original link is broken] [original link is broken] [original link is broken]
Three options
1. Use BPM. Async Sync Bridge
Receive - Send sync - Send Async
2. Without BPM
This should be the ideal choice
3. File to File using Webservice lookup
/people/bhavesh.kantilal/blog/2006/11/20/webservice-calls-from-a-user-defined-function
But in ur case, mutiple lookup calls would be required wich may make it inefficient.
In all the cases the logic will reside in mapping only
In mapping, use if condition. And then map the fields to constants based on if condition.
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alex,
you can achieve this without BPM also,
you just need to decide one thing, how are you going to bring the pre decided values in XI??
If you are going to hard code those values in File 2 then, just use a simple 'if -- then -- else' construct in the response of the webservice and hard code the values.
Let me know if you need more help.
Thanks,
Varun
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
i think it's necessary to use the bpm for that scenario.
The mapping could be done with message mapping.
Is your vendor name always one of your two possibilites (in that case you could use if-then-else) or could it have another (third) value.
Regards
Patrick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
if i got your scenario right you have one source field and more than one target fields.
Your target fields should get a value in dependency of your (one) source value.
If it's like that you can map your source value to all of your target values.
For example:
source -> FixValues -> target1
source -> FixValues -> target2
...
Double click on FixValues opens a table. In this table you can write your values.
For example:
XYZ paints | 100 (this will be your target value)
ABC paints | 200 (this will be your target value)
Regards
Patrick
Hello,
here it is all explained:
(Fix value mapping is on page 76)
Regards
Patrick
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.