on 11-15-2006 9:45 AM
Hi all,
My scenario is the following:
I am getting a file from a file adapter, but I want some of the records to be sent to R/3 through an RFC function.
I used the 'createIf' on the header of the function (1st node).
The RFC function's occurences are 0 to Unbounted.
The problem is that if test my mapping, I send 4 records that should be seen as RFC calls but I am seing only 1.
Can anyone help me?
I think that this is better:
The file Message type:
M_FILE
___|__ Record
_________|__ Date
____________ Sign
____________ Account
____________ Amount
____________ Contract
The RFC message type:
Z_XI_PAYMENTS
___|__ Amount
______ Contract
______ Date
My 'createIf' mapping:
___________<Account> -
|
<Constant: 0123456789> -
|---> equalS ---> createIf ---> <Z_XI_PAYMENTS>
Thanks
Message was edited by:
Dimitris Galanis
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Mapping looks good to me.
Just a few pointers,
1. Did you change the occurence of the target message type in Message Mapping to 0 to unbounded?
2. Did you change the occurence of the Target message Interface in interface mapping to 0 to unbounded?
Make these 2 changes, activate your messae and interafce mapping and test the same. it should work.
Regards,
Bhavesh
As <Z_XI_PAYMENTS> is the root node, it cannot occur more than once.
It is not possible to have several RFC calls from one single message. You need BPM to do the split or a split mapping.
In your case I strictly recommend to rewrite your RFC in a way that it is able to handle multiple records, otherwise you would increase the number of messages which might lead to perfomance problems.
Regards
Stefam
hi,
First of all you need to create multimapping ( you need SP14 or higher).
It will be 1:N. Change occurency in message mapping and interface mapping, then you can have many RFC calls.
Later in the mapping you need to either change context of <account> element or remove context after your if statement. It has to be done in order to create as many RFC functions as you want. You cannot have inside target (last) queue any context changes.
Queue should look like that:
[something]
[something]
[something]
[something]
not like that (in such case you will genertate only one RFC call):
[something]
CC
[something]
CC
[something]
CC
[something]
Regards,
Wojciehc
Hi,
Actually it was Wojciech who pointed out the issue with the Context.
Just adding to the discussion , if you cannot create a custom RFC and want to continue with the current approach, this blog should help,
/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible
Regards,
Bhavesh
Hi,
Check on this:
http://help.sap.com/saphelp_nw04/helpdata/en/42/f3b31d48fb1bc8e10000000a11466f/content.htm
the ideal would be to make a zRFC from perfromance perspective. But if the Business requires it for u to send it one at a time have a look at the link above.
Regards
Vijaya
Hi,
Can you give the source and target strcuture so that we can help you with the mapping.
Regards,
Bhavesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.