<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic I need a mixture between XSEQUENCE and CSEQUENCE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-a-mixture-between-xsequence-and-csequence/m-p/4779952#M1119811</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i would like to have a method which accepts XSEQUENCE or CSEQUENCE or to be more exact it should axxept XSTRING or STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only type i can see which covers that is ANY. But how to react if a structure or a table is delivered? I would like to raise an exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, how can i check if the type is string or xstring?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Nov 2008 11:36:08 GMT</pubDate>
    <dc:creator>rainer_hbenthal</dc:creator>
    <dc:date>2008-11-19T11:36:08Z</dc:date>
    <item>
      <title>I need a mixture between XSEQUENCE and CSEQUENCE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-a-mixture-between-xsequence-and-csequence/m-p/4779952#M1119811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i would like to have a method which accepts XSEQUENCE or CSEQUENCE or to be more exact it should axxept XSTRING or STRING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only type i can see which covers that is ANY. But how to react if a structure or a table is delivered? I would like to raise an exception.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, how can i check if the type is string or xstring?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2008 11:36:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-a-mixture-between-xsequence-and-csequence/m-p/4779952#M1119811</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2008-11-19T11:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: I need a mixture between XSEQUENCE and CSEQUENCE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-a-mixture-between-xsequence-and-csequence/m-p/4779953#M1119812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rainer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There might be some other simple way..... but one way is to use RTTI service...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;example&lt;/STRONG&gt; - an exception is triggered if passed data obj is not of elementary type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA : gv_string   TYPE string,
       gv_xstring  TYPE xstring,
       gs_struc    TYPE makt,
       gt_table    TYPE TABLE OF makt,
       go_data_ref TYPE REF TO cl_abap_elemdescr.

TRY.
    go_data_ref ?= cl_abap_typedescr=&amp;gt;describe_by_data( gv_string ).     " safe
    go_data_ref ?= cl_abap_typedescr=&amp;gt;describe_by_data( gv_xstring ).    " safe
    go_data_ref ?= cl_abap_typedescr=&amp;gt;describe_by_data( gs_struc ).      " triggers exception
    go_data_ref ?= cl_abap_typedescr=&amp;gt;describe_by_data( gt_table ).      " triggers exception
  CATCH cx_sy_move_cast_error.
    BREAK-POINT.  " it is a struc or table
ENDTRY.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Jose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Nov 2008 13:26:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-a-mixture-between-xsequence-and-csequence/m-p/4779953#M1119812</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-19T13:26:55Z</dc:date>
    </item>
    <item>
      <title>Re: I need a mixture between XSEQUENCE and CSEQUENCE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-a-mixture-between-xsequence-and-csequence/m-p/4779954#M1119813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jose,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the solution was rather simple &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i'm now using data type simple which only allows flat data types plus string and xstring.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside the method i'm checking the type with old fashioned describe statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Nov 2008 07:36:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/i-need-a-mixture-between-xsequence-and-csequence/m-p/4779954#M1119813</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2008-11-20T07:36:58Z</dc:date>
    </item>
  </channel>
</rss>

