Skip to Content

Create an empty msg

Hello Experts,

i have an interface that takes a file from a filesystem and sends it to SAP. Sometimes this file is empty but i still need to process it. However, what i actually need is to create a empty Message Type. I mean, if i configure the CC to "Process Empty Files" the payload generated is empty. What i need is that instead of a blank payload, a empty message type.

Does anybody has any idea on how to do it?

Thank you very much.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Sep 07, 2010 at 09:45 AM

    Hi Roger,

    You can control this in message mapping.

    In mapping, check if nothing is coming from source side, then suppress the target node.

    This will create the file with message type only.

    -Supriya.

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 07, 2010 at 10:47 AM

    > What i need is that instead of a blank payload, a empty message type.

    I do not know, what you mean by "empty message type", but if you want anything else besides an empty payload, you have to write an adapter module or a Java mapping to create this.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 07, 2010 at 10:52 AM

    I guess you want empty tags if file is coming empty??

    If yes then try with std. function MapWithDefault.

    Add comment
    10|10000 characters needed characters exceeded

    • I hope you can pick an empty file from Sender side.

      Now make all Target side fields as Optional (No any filed or segment is Mandatory).

      Now pass that empty file to target, it will generate an empty file for target, first check it in mapping.

      And close the CC "Empty file procrssing option".