Skip to Content
avatar image
-1
Former Member

Error in ABAP Proxy SERIALIZE_APPLICATION_DATA Conversion error ABAP => XML

We are trying to generate ABAP outbound proxy. Getting error message below.

SERIALIZE_APPLICATION_DATA Conversion error ABAP => XML: Request Message; CX_ST_SWITCH_NO_CASE in /1SAI/SAS8172B5C1FEAE9080B8D5 Line 34 Unexpected Case in Branch.

I deleted proxy and regenerated, still getting error. Is there somebody can help with it?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Jan 31 at 03:12 AM

    Hi Ankit,

    Yes, I was getting issue while generating XML and issue is resolved. When PI generated proxy, it created SWITCH in the deep structure. Make sure schema should have UTF-8 format. First line should be <?xml version="1.0" encoding="utf-8" ?>.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Ankit,

      Please find below my answers.

      1. What's a SWITCH here? - When PI creates proxy it will appear in the SPROXY transaction for you. Then you as an abaper creates proxy. It will create class and deep structure. SWITCH is component created in deep structure.

      2. Where I'll be able to see it? - Inside deep structure

      3. Should it be removed/replaced or what should be done with it? - You cannot change deep structure. Scema must be modified with UTF-8 format and PI developer will regenerate proxy. You should not have SWITCH in deep structure.

      4. Regarding the schema, I can see the first line is <?xml version="1.0"?>, how can I change it to <?xml version="1.0" encoding="utf-8" ?>? - You can open schema in notepad and replace first line with <?xml version="1.0" encoding="utf-8" ?>.

      5. I referred my other proxies as well, all have <?xml version="1.0"?> as the first line & they are working fine. - Not sure about this.

      Try This.

      Step1- Deactivate your proxy

      Step2 - Modify first line in schema as I said

      Step3 - send it to PI and ask them to regenerate proxy

      Step4 - Generate your proxy. Your deep structure shouldnt have SWITCH.

      Try this and let me know.

      Regards

      Satish

  • avatar image
    Former Member
    Oct 23, 2017 at 09:56 PM
    -1

    Former Member any Idea?

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 31 at 02:16 AM
    -2

    Hi Satish,

    Did you resolve it? If so, kindly share the solution. I'm getting the same error.

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Gopa,

      Kindly check the t-code STRANS & enter /1SAI/xxxxxxxxxxxx (whatever error you are getting) & check it’s code that gets generated after generating the proxy. I provided this info to ABAPer & they figured it out.

  • Feb 05 at 06:45 AM
    -3

    Hi All,

    I am also getting this error, can you kindly guide me how to solve it...

    Add comment
    10|10000 characters needed characters exceeded