on 02-25-2008 4:51 PM
We have a custom ABAP report which gathers invoice data from SRM system and sends it to XI system using proxies. There some fields which can have a blank value and need to be transmitted in xml message as blank. When we open the message in SXMB_MONI we expected to see <field1 />. But we dont see any empty xml tags, only those fileds which have a value in them appear in the xml message.
Is it possible to send blank fields in xml messages using proxies?
Hi !
I'm afraid this is a known problem.
You could concatenate a "#" or "@" or another special character at the end of those required fields and them remove the character in XI or you just can solve it at XI level, by making mandatory (occurance 1..1) those fields in the target message structure and using a standard mapping function such as mapWithDefault to give a blank value to those fields that did not entered XI because of being blank.
Regards,
Matias
ps: please award points if helpful.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please take a look at this doc: [Activating Extended XML Handling|http://help.sap.com/saphelp_nw04/helpdata/en/73/3f5c3c3906b006e10000000a11402f/content.htm]
Regards,
Jakub
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
That was a very good link. Another simple way i came across is to modify the xslt. Refer to weblog
Link: [https://www.sdn.sap.com/irj/sdn/weblogs?blog=/pub/wlg/3125] [original link is broken] [original link is broken] [original link is broken];
In the XSLT there were conditions written written to not send the field it was initial, i removed the conditions and it works fine.
Hi,
At the time of mapping use API mapWithDefault API. and don't pass any value in it bydefault it will take blank value.
Source field---->mapWithDefault ---> target field
Thanks
swarup
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Adding to Matias,
If you checking in /nsxmb_moni, Spaces are Trimmed in /nsxmb_moni though it is Present.
Regards
Agasthuri Doss
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.