Skip to Content
avatar image
Former Member

How do I include a blank in an enumeration

Hi -

I have an element in my datatype that is length 1 and I would like to specify 2 enumeration values, X and blank.

Essentially I want the following in my datatype XSD:

<xsd:restriction base="xsd:string">

<xsd:maxLength value="1" />

<xsd:enumeration value="X" />

<xsd:enumeration value=" " />

</xsd:restriction>

According to the SAP help the enumeration field should be set to the list of values separated by blanks.

So I've tried:

- X followed by 2 blanks - doesn't work

- X &#160; - complains that it exceeds the max length of 1

I've also tried exporting the XSD, changing it, and then importing it, but XI removes the <xsd:enumeration value=" " /> line on import.

Any ideas?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    Mar 03, 2005 at 08:42 AM

    Hi,

    I fear there is indeed no possibility.

    Which purpose do you want this datatype to use for? (ABAP proxy, java proxy).

    Greetings

    Stephan

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 29, 2010 at 03:18 PM

    Hi, I have same requirement. Were you able to get a solution for this?

    Experts: do you have any other inputs for this requirement?

    Regards,

    Prasad

    Add comment
    10|10000 characters needed characters exceeded

  • Sep 29, 2010 at 03:33 PM

    hi, if the maxlength is 1 you never will send 2 characters

    you can modify your DT field to maxlength=2. if you send a numeric value one character will be send,if you need an"X " youwont have a problem

    now if you cannot modify you DT (i dont think so) the blank should be added in the target system

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Alejandro Pertierra

      Hi Rodrigo, I dont know if it is a bug in SAP XI or a feature. But due this we can not have a "" (blank) as a possible value in enumeration.

      Regardss, Prasad