I need a mixture between XSEQUENCE and CSEQUENCE

Hi,
i would like to have a method which accepts XSEQUENCE or CSEQUENCE or to be more exact it should axxept XSTRING or STRING.
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.
So, how can i check if the type is string or xstring?

Hi Rainer,
There might be some other simple way..... but one way is to use RTTI service...
example - an exception is triggered if passed data obj is not of elementary type.
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=>describe_by_data( gv_string ).     " safe
    go_data_ref ?= cl_abap_typedescr=>describe_by_data( gv_xstring ).    " safe
    go_data_ref ?= cl_abap_typedescr=>describe_by_data( gs_struc ).      " triggers exception
    go_data_ref ?= cl_abap_typedescr=>describe_by_data( gt_table ).      " triggers exception
  CATCH cx_sy_move_cast_error.
    BREAK-POINT.  " it is a struc or table
ENDTRY.
Cheers,
Jose.

Similar Messages

  • Need Key Differences between SOA and ESOA

    Hi,
    I am beginner for ESOA. Could any one please let me know the key differences between SOA and ESOA?
    Thanks in advance.
    Regards,
    Gopi.

    Hi Gopinath,
      Please refer the following thread for the important info and Difference between SOA and ESOA.
    What is ESOA?
    Thanks,
    Ram.
    Edited by: Ramakrishna kopparaju on Sep 2, 2008 10:59 AM

  • Need help deciding between i5 and i7 X220

    I am trying to decide between i5 and i7.  The extra money doesn't bother me and I know the i7 isn't that much faster than the i5.
    There are problems with the mSata drives for those with i7/USB3 machines but I don't plan on using mSata yet.
    Some people have had problems with their USB 3.0 ports not providing full speed.   As an aside, you can get newer USB 3.0 drivers from http://downloadcenter.intel.com/Detail_Desc.aspx?agr=Y&DwnldID=19880&keyword=usb+3.0&lang=eng .  There is also new NEC/Renesas firmware at http://www.station-drivers.com/page/nec.htm.  I have used these on my desktop with an add-on NEC/Renesas-based USB 3.0 adapter with success. 
    So the question is, are i7 owners happy with their choice or should i7 be avoided for now?
    Also, any i7 owners have their USB 3.0 working fine with a USB 3.0 hard drive?
    Are there any other issues such as heat or fan noise that are worse on the i7?

    Also, will the batty life be affected by the i7/i5 choice?

  • What  type of plug in do I need to use between weblogic and tomcat please

    Hi,
    Can anybody please tell me what type of plugin do I need to install to communicate between Tomcat4.0 and weblogic6.1 sp2.actually I wanted to use a connection pool from my servlet on my local tomact where connection pool is created on remote weblogic server.........?
    I have no idea what to do. I tried including the weblogic.jar in my local classpath where my tomcat is sitting. This didnot work . I got the following error......
    I want to know is it possible.............?
    javax.naming.NoInitialContextException: Cannot instantiate class: weblogic.jndi.WLInitialContextFactory [Root exception is java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory]
    Your response is very inportant......
    Thnaks

    Thanks a lot for your rely....
    then how could I use the remote connection pool in my
    local Tomcat server.....?If thats is not possible then
    what if organisation have two webservers...? you mean
    thay have to create connection pool in two servers
    rather on one server and use it every where.....?
    Still depends on what you are trying to achieve.
    Most clustered systesm use a connections on each server. They sync the data retrieved between servers, not the connections themselves.
    If you simply one a single connection point then you need to use a driver that proxies requests to and from the real connection point.
    RmiJdbc is free at http://www.objectweb.org/.
    There are commercial drivers available, search at http://industry.java.sun.com/products/jdbc/drivers, which provide an enterprise layer for database access. They are probably more robust and feature rich than the above one.

  • Adobe AIR - is what I need for communication between C++ and Flash?

    Hello,
    We currently have a C++ desktop application running on Windows and Mac. We want to support web-enabled (launching from the web browser) and moving UI into Flash. I am looking for a communication package that can use with VC++ 6.0 and CodeWarrior 8.0 (Xcode later). This communication package will handle messages between C/C++ app (process) and Flash. The communication need to execute fast (no delay).
    I searched online about this and came across LocalConnection class and Adobe AIR but not getting enough info to have an answer. I am hoping posting this message will get more information.
    Thanks,
    -Thanh

    Thanks Kalisto for a kind offer. We are using old compilers, CodeWarrior 8.0 compiler on the Mac and VC++ 6.0 in Windows. It is nice if I can find a package that will work with both compilers (platforms). Since we want to communicate in realtime, AIR is probably a best option to go for Windows. I am still looking for the answer on the Mac side of how to communicate from C++ to Flash. I'll ask for your help on AIR when time come.
    Again, thanks.
    -Thanh

  • Need help deciding between AI and EPS for use in XML

    I am using a non-Adobe XML editing package/publishing engine. The vendor who set it up suggested that we use native AI files for editing and creating images, then export EPS files for use in the XML (it doesn't work with AI). The challenge is to keep the AI and EPS files in sync throughout the revision process.
    My question is around whether we really need to keep the AI files or not. What are the actual elements we would be missing if we skipped the AI and just used the EPS files? Are EPS files less editable? I plan to test this, but I'm looking for issues to keep an eye on through testing.

    I'm not sure whether PDF would be compatible, but I would not be surprised if it was not. If I create an image in Illustrator and save it as a PDF, will I be able to edit the PDF like an AI later? More importantly, is there anything from the AI format that would be missing in the PDF file?
    Bottom line is, I don't want to have to store two files for each figure, but I don't want to compromise the editability or rendering quality.
    Thanks for the quick answer!

  • Need one space between text and border line

    Please, help me.
    Is there any way to offset the text from the border a bit?
    I would like to have a black line around some boilerplate text, but the text is always butted against the border. Is there a way to offset the text a bit ?
    I've been searching in this forum and google and didn't find the answer yet.
    Thanks,
    Lan

    HamidHelal wrote:
    Lan_Desu wrote:
    Please, help me.
    Is there any way to offset the text from the border a bit?
    I would like to have a black line around some boilerplate text, but the text is always butted against the border. Is there a way to offset the text a bit ?
    I've been searching in this forum and google and didn't find the answer yet.
    Hi, Lan
    if yo want to place a line you may choose underline option. Otherwise take a line/draw a line and keep space between the text and line.
    Hope this helps
    HamidIs there a way easily?
    I already know that that solution. But it is troublesome when I face editing later - I have to edit all of it.
    But thanks for the answer :)

  • Need one space between text and line color

    Is there any way to offset the text from the border a bit? I
    would like to have a black line around some boilerplate text,
    but the text is always butted against the border. Is there a
    way to offset the text a bit

    HamidHelal wrote:
    Lan_Desu wrote:
    Please, help me.
    Is there any way to offset the text from the border a bit?
    I would like to have a black line around some boilerplate text, but the text is always butted against the border. Is there a way to offset the text a bit ?
    I've been searching in this forum and google and didn't find the answer yet.
    Hi, Lan
    if yo want to place a line you may choose underline option. Otherwise take a line/draw a line and keep space between the text and line.
    Hope this helps
    HamidIs there a way easily?
    I already know that that solution. But it is troublesome when I face editing later - I have to edit all of it.
    But thanks for the answer :)

  • Appletv needed to airplay between iphone and ipad?

    Hi,
    I'd like to know if it's possible now without having to use an external app.
    iphone > ipad using airplay but no apple tv?
    iphone > ipad with apple tv and airplay?
    When released, will iOS6 change something about this?
    Thanks!!!

    Welcome to the Apple Community.
    You can't AirPlay to a phone or an iPad.

  • Toggling between single and multiple selection in a table

    I am working on ADF faces. I need to switch between single and multiple selection in <af:table based on a button I select.
    I cannot use switcher or rendered property inside <af:table. Only the first one is rendering the second one is not rendering based on the switch
    <f:facet name="selection">
    <af:tableSelectMany autoSubmit="true"
    rendered="#{treeBean.multipleRows}"/>
    </f:facet>
    <f:facet name="selection">
    <af:tableSelectOne autoSubmit="true"
    rendered="#{treeBean.singleRows}"/>
    </f:facet>
    When I use inside the switcher, it doesn't like the parent.
    Any ideas would be greatly appreciated.
    Thanks,
    Vijay.

    I have probably misunderstood what your issue is. I do not know what your version of ADF faces is. Here is some sample code working with my version. Please check if your jdev has "rowSelection" attribute. If it has, please try my sampe code
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:afh="http://xmlns.oracle.com/adf/faces/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces">
    <jsp:directive.page contentType="text/html;charset=utf-8"/>
    <f:view>
    <af:document title="tableSelectMany Demo">
    <af:form>
    <af:panelGroup layout="vertical">
    <af:messages/>
    <af:selectOneChoice value="#{sessionScope.tableSelection}"
    autoSubmit="true"
    id="selType"
    label="Selection Type">
    <af:selectItem label="Single" value="#{null}"/>
    <af:selectItem label="Multiple" value="#{true}"/>
    </af:selectOneChoice>
    <af:table summary="Periodic table"
    binding="#{tableActions.table}"
    partialTriggers="selType"
    rowSelection="#{sessionScope.tableSelection ? 'multiple' : 'single'}"
    value="#{periodicTable.tableData}" var="row" rows="10">
    <af:column>
    <f:facet name="header">
    <af:outputText value="Name"/>
    </f:facet>
    <af:outputText value="#{row.name}"/>
    </af:column>
    <af:column>
    <f:facet name="header">
    <af:outputText value="Symbol"/>
    </f:facet>
    <af:outputText value="#{row.symbol}"/>
    </af:column>
    <af:column>
    <f:facet name="header">
    <af:outputText value="Action Column"/>
    </f:facet>
    <af:commandButton immediate="true" text="Action"
    action="#{row.action}"/>
    </af:column>
    </af:table>
    </af:panelGroup>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>

  • How to customize the link between archivelink and Alfresco

    hi,
    We are using Alfresco as content manager and we want to scan the invoices according to the "Late Storage with Bar Codes in FI" scenario [http://help.sap.com/saphelp_470/helpdata/en/46/c4317ffc4b11d195650000e82deb58/frameset.htm].
    Each scanned invoice will be stored in Alfresco as a pdf file and we want to be able to display it from the sap 'display FI document' transaction (thru 'environment' menu / Additional assignments/object links).
    my question is how to make the bridge between sap archivelink and Alfresco for this display ?
    how to customize link between archivelink and Alfresco ? Is it possible with customizing only or is it necessary to buy third party software ?
    we are working in 4.7.

    Hi,
    Apparently you need an interface between SAP and Alfresco that implements SAP archivelink.
    Once that is in place you can configure a repository in OAC0.
    At the link below you find a link to a PDF
    http://forums.alfresco.com/en/viewtopic.php?f=14&t=13502
    Our company had an own content repository software. It used KGS SAPALINK to make the connection with SAP.
    Furthermore CTAC seems to have done development to connect SAP and Alfresco.
    Currently we are looking for a new repository system as well. A couple of weeks ago management decided that within some departments Alfresco will be the standard DMS. It would be great if we could use it as content server as well.
    Kind Regards
    Edmond

  • Interface between XI and BIZTalk

    Hi Guys,
    Can any help me here In Middleware 
    1. i need some INputs between XI and BIztalk
    like what are XI Futures and BIZTAlk
    2. WHat sort of Adapter need in XI to make a Connectivity between XI and  BIZTALK.
    Advance thanks..
    Thanks
    Raj

    Hi,
    Please check this two documents:
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/a73e8127-0a01-0010-b19f-f72ee1c2403c
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/107c7a27-0a01-0010-be82-92347921ae03
    Regards,
    Wojciech

  • %variance between parent and child hierarchy

    Experts,
          How to calculate a percentage variance between parent and child hierarchy.
    Ex: parent is 80 and child is 20 so I need a %variance between 80 and 20.
    Thanks in advance.

    Hi Nikki
    Create structure and restrict parent hierarchy with one node and child hierarchy with another node and create formula node to calculate the percentage variance between two nodes.assign points if helpfful.
    Regards
    Murali.

  • How to switch between primary and secondary input ...

    Hey guys ,
    I have Nokia 6700 Slide
    I have to write SMS's in two languages so I need to switch between secondary and primary input language put the way I know is boring and inefficient so that if anybody know a shortcut that help to switch between the primary and the secondary input language that will be awesome  .
    thanks

      when writing text ,To change the
    writing language, select Options >
    Input options > Writing language
    or refer to page 28
    http://www.google.ie/url?sa=t&source=web&cd=2&ved=0CB8QFjAB&url=http%3A%2F%2Fnds1.nokia.com%2Ffiles%...
    If  i have helped at all a click on the white star below would be nice thanks.
    Now using the Lumia 1520

  • Tuxera NTFS-3G vs MacDrive / Sharing volumes between Mac and PC

    Hi all,
    I have a number of external hard drives (and am thinking of getting an external RAID array) which I need to share between Windows and Mac OS X. This is not just for backups it is for storing video media and projects (Final cut Pro/Sony Vegas) and working on them. The two sensible solutions seem to be Tuxera NTFS-3G and MacDrive. I'me inclined to go fro NTFS as that is what most of my drives are currently but would like to know what people thing.
    Regards,
    Ben

    Thanks for that,
    Do you know how Paragon and Tuxera NTFS compare.
    In terms of NAS as I am dealing with big video files I dont want to have to transfer everything over a network.
    Ben

Maybe you are looking for

  • How to delete email from iPhone ONLY and not from server?

    Hi. I have a Yahoo! POP mail account.. Can anyone advise me how to setup my iPhone so it ONLY deletes email from the iPhone and NOT the server. So, after I read an email on the iPhone and delete it, the email remains in the INBOX on the server? If no

  • Apex 4.2.1: Region table layout and pagination

    See https://apex.oracle.com/pls/apex/f?p=57688:2 Theme 24, table-based layout. Page template = One Level Tabs, Left Sidebar. All 4 regions are report regions using the report region and 2-column portlet as the region and report templates respectively

  • Nokia 5000d-2 and iSync?

    Hello! Can anyone tell me where I can find update for iSync to support Nokia 5000d-2? Thank's everyone

  • Migrating data from SAP BW to Oracle

    We have a requirement where the exisiting data from SAP BW needs to be migrated into Oracle. What are some of the major differences that we should keep in mind when migrating this data. Our first task is to generate the data model in Oracle. Can we u

  • Why has my iphone 4 downloaded my computer picture files?

    Wen i go to photos i have all my computer albums on there aswell as camera roll! (ALOT of pics) Ive tried deleating the album but theres no option to do so, all i can do is look at the pics or change the order! How has this happened and how on earth