on 01-27-2014 9:22 PM
Hi,
I would like to create an xml that has elements which include the character '-'.
My target xml is like:
<?xml version="1.0" encoding="UTF-8"?>
-<Document-Invoice>-<Invoice-Header><InvoiceNumber>9000062753</InvoiceNumber><InvoiceDate>2013-12-14</InvoiceDate><SalesDate>2013-12-14</SalesDate>.........
As you can see I need to create date type with names Document-Invoice and element Invoice-Header. When I try to create them as Data type or as element I get the error
Name contains invalid characters: - Only a(A)-z(Z), 0-9, and "_" are permitted |
How can I handle this situation ?
Any tips and advice appreciated
Kind Regards
Antonis
Message was edited by: Konstantinidis Antonis
Hi Antonis - You have marked the discussion as answered. Was it intensional?
Incase you are still looking for an answer then -
As the error message states you cannot use the "-" in DT. If you really need then please refer to Udo's reply in the below discussion.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
i exported the Message type (it was a zip file) , I extracted the zip file , the extracted folder had 2 files that are related...I imported these file from the menu , there is an extrernal definition option for mass import ( Mass Import for External Definitions - Providing, Discovering and Consuming Services - SAP Library ) and it works!!! THANK ALL for your support .
Hallo Antoni,
I had some similar issues when I was developing a web service. This was due to the validation of the XML document. If this is a proxy object, try to see what is the data element behind and try to change it (do it as CHAR10 or string) and try to see if this is working.
BR
Giorgos
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI Antonis
"-" is not a permitted value as the pop up message shows only allowed values are:
a(A)-z(Z), 0-9, and
"_" are permitted
So you can use "_" instead. Is there any specific business need to have "-" as seperator.
IMO, Naming of object should not cause any issue , its the data which matters.
Regards
Srinivas
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.