on 09-07-2010 10:38 AM
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.
I guess you want empty tags if file is coming empty??
If yes then try with std. function MapWithDefault.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
yes what i need is the msg with empty tags. However I need it before the operation mapping happens because i have a module that has to be previously executed. I was thinking of creating an adapter module that creates the "empty msg" when the payload is empty. The easy solution would be to enable a parameter which i can use to pass the xml structure of the empty msg to the module and return it in the payload. However, I fwould like to obtain the structure definition of the msg from SAP PI. Is there any way to get Message Type definitions from a Adapter Module?
Thank you in advance.
> 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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.