on 04-09-2008 1:52 PM
Since Space ' ' is a valid value in Several SAP Fields How One can send Spaces thru the System. In XML Structures If the Field has Spaces system will send Nulls ( for example tag like <Name /> ) But I want to send this field as <Name> </Name>. We cant use XM XTENDED option as our R/3 is on WEBAS 6.20.
I tried MapwithDefault and it doesn't work. I added spaces to the field in ABAP Report before calling proxy which also doesn't work.
Any Suggestions.
Have u tried with standard function "Constant" and giving a space. Or u may try with a small udf also
Regards,
Prateek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Ram:
In the XML Display, As far as i know, the spaces will not be displayed. To confirm that, try writing the same XML payload to a file with FCC, you will get the spaces. In case if it doesn't work, you can add spaces in message mapping, if you know the field should/must have spaces in it using some UDFs
Ram:
I did ABAP Proxy - XI - File and in the ABAP proxy I set a field as below to send spaces
space(8) TYPE c.
I didnt do any thing in the mapping and when the CSV file is created, it worked for me. As you said by using CONSTANT and assigning spaces to target variable should achieve the same.
What happens in your case is, since XML does not display the spaces,it will not show in the XML Payload. It will show as <field></field>. If you were to write the same Payload as CSV file, you will be able to see the spaces in the flat file. Since Webservice (SOAP) also receives payload as XML, i guess its finding difficult to interpret the spaces sent and creating the variable as Null.
The alternative, you can do is, send some special characters in the fields which have spaces and modify then at the webservice side
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
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.