on 04-26-2007 9:03 AM
Hi Experts,
Here Iam doing IDOC To File cenario
I have Source Structure As Follows
FILES -
0....UN
HEADER GROUP -
1..1
RECORD_TYPE
CREATION DATE
CURRENT TIME
GLN_CODE
DETAIL GROUP----
0....UN
RECORD_TYPE
MATERIAL NO
BATCH_CODE
QUALITY
QUANTITY
BATCH_STATUS
FOOTERGROUP----
1....1
RECORD_TYPE
RECORD_COUNT
Here I Should Satisfy the Condition if the RECORD_TYPE = 'xxxx' then
the Sourece File Should move to the Target Application
Here How Can i Do this Check.
Please Let me Know Your Helpful and Precious Answers
Regards
Khanna
<i>Here I Should Satisfy the Condition if the RECORD_TYPE = 'xxxx' then
the Sourece File Should move to the Target Application</i>
>>
in this case your receiver is based on your message. hence utilize XPATH in receiver determination.
Check if RECORD_TYPE = 'xxxx', then provide the receiver.
in the corresponding interface determination you will have the mapping which will create the file
Further reference;
Receiver Det- Xpath:
/people/shabarish.vijayakumar/blog/2006/06/07/customise-your-xpath-expressions-in-receiver-determination
/people/shabarish.vijayakumar/blog/2005/08/03/xpath-to-show-the-path-multiple-receivers
XPATH in Interfce Det:
/people/suraj.sr/blog/2006/01/05/multiple-inbound-interfaces-within-a-service
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rajesh,
If you need to do a simple check on the source field , as you have specified , then thr is no need for a UDF ( with a code for checking the value on that field) .
Solution : Do a check on the source field , in the reciever determination.
Regards,
Sushil Hadge.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Do you have any else condition? if not go for 'If without else' or go for 'IF'
IF -> RECORD_TYPE = XXX (Constant) - then Target.
Can you be more clear, it seems in your structure, you have Record_Type in Header, Body and Footer, on which Record_Type you are checking the condition?
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use equalsS standard function for this. You dont need any UDF for this.
Regards,
Jai Shankar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.