on 11-05-2008 2:27 PM
Hello,
I have a file to idoc scenario with an xslt mapping. Normaly after the mapping the idoc looks like:
<wpwuw>-
<idoc>...</idoc>
<idoc>...</idoc>
</wpwuw>
Because of the business requirements in some cases the mapping should not generate an idoc. That means I have to create an empty payload.
The problem is that the idoc adapter creates an error for all kinds of empty messages.
a) empty payload
b) empty trading segment ( <wpwuw></wpwuw> )
c) empty idoc segment ( <wpwuw>-<idoc/>-</wpwuw> )
Any idea what I can do not to get an error from the idoc adapter ?
Regards Bernd
Idoc adapter won't be able to handle empty messages as per ur requirement. Better would be not creating at all after checking some condition in mapping.
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
instead of creating empty paylaod. Use conditional(enhanced for mapping & standard for condition on Xpath) receiver determination for this and dont generate IDOC for the specified conditions.
Thanks
Gaurav
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
You can check for values of these fields in Enhanced receiver determination step. It will check the result after executing mapping step.
Terminate the message if it contains empty message.
Kulwinder
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.