on 07-05-2012 6:41 AM
I am working a scenario as File to IDOC.
I am using RFCLOOKUP with functional module.
for this RFCLOOKUP, i have one field as input and output as flag.
if flag = x then nothing pass to idoc filed
if flag=space then need to pass some fix values based on two fields.
So i am trying to do the logic as below.
Field1 -->RFClookup --> flag ---> if then else condition ---> if flag = x then nothing/ if flag = space then --->field2 and field 3 need to pass fixvalues and get the result and that i need to pass to IDOC field.
Please help
1. how i can mention this part ( RFClookup --> flag )
2. after flag condition
3. field2 and field 3 to fix values based on flag = space
4. finally to IDOC.
if you can help graphically it would be great ???
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks Greg for your response.
Need small clarifications.
At "Source", written a logic as below.
Field10 and Field20 concatenate ----> FixValues (key, value) --- > if Then --> passing the Fixvalue to Target
But getting the problem at this above logic.......like it is not properly taking the Field1 and Field2 pair and getting the Value.
Here one problem is in you mapping daigram at Field1, i have written the logic as below
Field1 ---> Remove contexts
Field 2 ---> Remove contexts ----> Sortbykey --->Splitby value(Each Value) ---> RFClookup.
please help the values are not passing properly and passing as randomly......
Thanks
Earlier the File to IDOC logic is working fine....but now after changing the above logic...i am getting wrong results..
Based on Companycode, need to post the IDOC.......but i am testing with Same Company code of 4 records....triggering 4 idocs....
first one with all the data......that means with all the 4 records...
second one, third one and 4th one with header data only....triggering IDOCs.....
how should i correct is only first IDOC......
no need of 2nd, 3rd and 4th idocs..
To achieve your mapping, you need to:
- Create your RFC function (with export parameter as a CHAR or Bool)
- Follow these help to put the RFC Lookup into your mapping:
- For output parameter, use the IFTHEN function to set a fixed value to the receiver field structure
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sabu,
you logic is almost right way.
you need to concat the Field2 & Field3
Field1 -->RFClookup --> flag ---> if then else condition ---> if flag = x then nothing/ if flag = space then --->concat ----> field2 and field 3 .
regards,
Venkat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear sabu,
I advice you to create UDF for this requirement.
Or else you really want to do it without UDF then create a temporary variable at target message type.
Use the Declaring variable feature.
For the field2 and feild3 you have to check condition two times based on field 1. Better put the condition and store your result value in variable
and then proceed further based on variable value do your mapping.
thanks and regards,
Anup Banerjee
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
78 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
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.