Skip to Content
avatar image
Former Member

split message!!

Hi ,

My scenario is IDoc to File.

the requirement is for each line item in Idoc i have to create a single file.

suppose 10 line items are coming in the Idoc(10 segment)..then i have to create 10 files....

can anyone tell me how to do that??

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

8 Answers

  • avatar image
    Former Member
    Sep 15, 2008 at 12:30 PM

    Hi,

    It is possible by using BPM. Try this blog..

    Illustration of Multi-Mapping and Message Split using BPM in SAP Exchange Infrastructure

    Regards,

    Vivek LR

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 15, 2008 at 12:34 PM

    This message was moderated.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 15, 2008 at 12:35 PM

    Hi,

    No need BPM make scenario according to ur requirement, at receiver end make occurance 1..1. It will generate each line as one file.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi nallam,

      if i do this.. only 1 message will be created..........suppose 3 line ites coming in Idoc .. then only only file will be cretaed with 1st line item...

      and i cant use multimapping since.. number of line items are not constant and target mesage structure is same....

      is there any other way...

  • avatar image
    Former Member
    Sep 15, 2008 at 12:38 PM
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 15, 2008 at 12:46 PM

    Hi,

    This can possible by using Multi-Mapping with out BPM.Select number of Messages in Message Tab in the Mapping Editor.and use Enhanced interface Determination in Interface Determination in ID

    this Blog can give u clear picture of Multi mapping with out BPM

    /people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi check this option...

      http://help.sap.com/saphelp_nw70/helpdata/en/95/bb623c6369f454e10000000a114084/frameset.htm

      file.writeMode=addCounter

      In mode addCounter the system generates a new file for each document. The file name comprises the name specified in file.targetFilename, extended by one counter that is added before the file name extension (for example, default002.file). The counter is constructed from the subsequent specifications.

      The mode addCounter guarantees that no data is overwritten. If necessary, the system finds the next free counter from which it can construct a new file name.

      In mode addCounter the exact format of the file name can be controlled using the following parameters; each parameter has a default setting.

  • avatar image
    Former Member
    Sep 15, 2008 at 06:29 PM

    Use SplitByValue function:

    Message Splitting Using the Graphical Mapping Tool

    Field (with change context) ==> SplitByValue[Each] ===> Source

    Remember to change the output occurence in the "message" tab on the message mapping to 0.unbounded, then you can generate a message for every context of that segment/value

    Regards,

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 16, 2008 at 04:32 AM

    Hi Sam,

    This can be done without BPM using 1:N mapping and using enhanced interface determination.Make your target structure as 0...unbounded. Now use the source node which is occuring N times to the target side Root node.

    Thanks and Regards,

    Sanjeev.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 16, 2008 at 01:57 PM

    i solvet it by... changing the occurence of the message type from 1(by defaul it will be)to 1........unbounded..and also in ID by doing enhance interface determination.

    so it will create a message for each segment...

    thanks all

    Add comment
    10|10000 characters needed characters exceeded