Skip to Content
avatar image
Former Member

cancel the processing of a mesage mapping

Hi ,

My interface recieves an idoc and later a rfc lookup is done using the data in the idoc and based on the data reeturned by this rfc i would decide either a target message is to be created or not to be created.

so i set the occurence of the traget message in the mapping to 0..unbounded

but now if my rfc doesnt return a valid value no messages are created but at the same time a 'red flag' comes up in the sxmb_moni saying that 'split mapping created no messages'

is there any way to avoid this red flag in the moni because all red flags in the moni will be monitored and such red flags which actually are not errors need not be monitored so we dont want a red flag for this case at all

any ideas on how this could be made possible ??

Many Thanks for your help

Bharath

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Oct 24, 2009 at 02:43 PM

    Dear Bharath:

    if you use the founction of splitting message ,means message mapping is :1:0n,then you can do opertaion mapping for the corresponding message, the occurrence of inerfaceis 1:0n,i dont clear about what you said,but i think there are no problems that the target message is no created,

    best regard!

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 24, 2009 at 08:42 PM

    Do one thing... Just map your parent nodes (root nodes) with some constants rather doing 1:1 mapping.

    Regards,

    Sarvesh

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Bharat,

      What about using two mappings in your Interface mapping like this...

      First mapping: IDOC Source -


      > Temp_Target

      Second mapping: Temp_Target -


      > Final_Target. (This mapping will be always simple 1:1 mapping without any conditions)

      Note: The structure of Temp_Target & Final_Target will be exactly same.

      CASE1: In first mapping you will call your RFC to determine the receivers and if RFC returns something then simply map source IDOC to Temp_Target and Temp_Target to Finla_Target. (Till here no problem).

      CASE2: If in your first mapping RFC doesn't return anything then map some constant values to Temp_Target. Now do conditional Receiver Determination (based on these constant values) and chose either XI file adapter to write the file on XI server or chose mail adapter to send an email. (second mapping will happen after Conditional RD in both the cases).

      If you like to use file adapter then chose overwrite option so that it will not append the data in the file.

      Regards,

      Sarvesh