on 07-09-2010 5:53 AM
Hi All,
I am using IDOC to JDBC adapter . When I receive an IDOC from ECC to PI, I need to check for the value of one segment field
if that field value is ZS1, then only needs to send this IDoc data to external system.
Eventhough this field is not mandatory field in IDoc and not using in the receiver system structure. This field just to check the condition weather to send or not.
Regards,
Vinay
I need to check for the value of one segment field if that field value is ZS1, then only needs to send this IDoc data to
external system.
Do the check in Receiver Determination itself.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Abhishek,
Thanks for your response.
Please explain me in detail how to do this in receiver determination. Because reciever structure will not receive this field Only its available in sender IDoc structure.
I never Validate field at receiver determination ....Explain in detail.
Regards,
Vinay.
Because reciever structure will not receive this field Only its available in sender IDoc structure.
Even though the name is Receiver Determination.....the validation is done on the Sender structure.....just that we select which receiver should receive the message.....or if the message should be sent to the receiver or not.
Receiver Determination > Condition Editor (adjacent column to where you have mentioned the receiver service)> Left Operand --> XPATH --> Select the IDOC node
Middle Operand --> = operator
Right Operand --> ZS1 ....it will be constant.....harcode it.
Then select the option as you require....end with error or cancel the process...it will be implemented when IDOC_filed is not ZS1
Regards,
Abhishek.
Hi Abishek,
I got it and I slected the condition like IDOC_FIELD = ZS1 But what to select below ?
If no receiver is found , proceed as follows
1) error message.
2) ignore
3) select the following receiever
Here what is no reciever found means ? Means IDOC_FIELD is not equal to ZS1 ?
I dont want to procced if condition fails ( IDOC_FIELD = ZS1 ). Can I select ignore option in this case ?
Regards,
Vinay.
Hi,
The options clearly says ur requirement...
please go through http://help.sap.com/saphelp_nw04/helpdata/en/26/5ccd3bb4560f01e10000000a11402f/content.htm
Babu
Hi,
Check this :
http://help.sap.com/saphelp_nw04/helpdata/en/43/a513f2632c332ce10000000a11466f/frameset.htm
and then decide what your business needs to do in such cases.
Regards,
Pragati
Here what is no reciever found means ? Means IDOC_FIELD is not equal to ZS1 ?
Yes
I dont want to procced if condition fails ( IDOC_FIELD = ZS1 ).
Since you dont want to proceed further with message processding select 1) error message.
Can I select ignore option in this case ?
No, ignore would mean that you want to forward the message to receiver even when IDOC_FIELD is not equal to ZS1
Regards,
Abhishek.
Hi,
In condition editor add the following :
that field exists AND the value is 'ZS1'
If both condns are satisfied then the data will be send to target sys.If the field doesnot appear in idoc structure then the data won't be sent to target.
If you are using PI 7.1 check this:
/people/abhishek.salvi/blog/2009/07/15/sap-pi71-receiver-determination-xpath-and-you
Regards,
Pragati
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.