cancel
Showing results for 
Search instead for 
Did you mean: 

Switch step on an abstract IDOC in a BPM

Former Member
0 Kudos

Hi Experts,

I have IDOC mapping wich filters the items.

is some case all the items are filtered, unfortunatly the idoc item segment is mandatory. I'm trying to create a BPM to Cancel the message if not items is left.

the easiest way I found is to duplicate the item in the mapping and to map default value to the second item.

I'm trying to use a BPM to detect that only the dummy item is available and to cancel it.

in the BPM I'm using a switch to test the result of my mapping, to check the value of an item field.but this does not seem to work.

the mapping seems ok.

I ckecked the Workflow and the container the switch step is testing is empty.

&HRMD_ABA04_OUT.PAYLOAD.OBJID& != 'DO_NOT_SEND'{TYPE=SWFXST_STRING}

this field is an item field.

any idea why it's empty ?

thanks,

abdellatif

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I don't know why the field is empty. However, I had a similar requirement in one of our scenarios. I used a different approach. I simply created an abstract interface <b>count_segments</b> with a single integer field <b>num_segments</b>. I then used a mapping to map the number of segments (using the <b>count </b>function) from the source IDoc to this <b>count_segment</b> interface. In the BPM I used a <b>switch</b> statement to check whether <b>num_segments</b> is empty and aborted the BPM if it was.

Hope this helps (please reward me if it does...).

Regards, Joerg.

Answers (0)