cancel
Showing results for 
Search instead for 
Did you mean: 

empty payload for idoc adapter

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

prateek
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi,

as far as I know because of xslt always an payload is generated even when it's empty because of conditions in the mapping. I think have to use the enhanced receeiver determination.

Bernd

prateek
Active Contributor
0 Kudos

See my reply here

Regards,

Prateek

Former Member
0 Kudos

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

Former Member
0 Kudos

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