Enumerating structure components and their types

Hello,
  I'm interested in retrieving component names as well as their types:
TYPES: BEGIN OF my_structure,
           field1 LIKE accit-pargb,
           field2 LIKE accit-paobjnr,
         END OF my_structure.
  What I want to achieve is more less below:
  NAME      TYPE                     NAME      TYPE
  field1    accit-pargb      OR      field1    pargb
  field2    accit-paobjnr            field2    paobjnr
What's the most important is to be able to retrieve types in form ACCIT-PARGB/ACCIT-PAOBJNR  OR PARGB/PAOBJNR.
Any clues ?
  Using Runtime Type Services I am able to enumerate components, but not able to get the types in the same form as in declaration of structure.
  So far I did like this:
  Used
cl_abap_structdescr=>describe_by_name('my_structure')
  to get components of structure.
  Then used
LOOP AT components ...
         cl_abap_typedescr=>describe_by_name('my_structure-<component_name>').
         access   r_typedescr->absolute_name.
     ENDLOOP.
  It works for some fields, but not for all of them. For PARGB I am able to get the exact result (absolute_name='\TYPE=PARGB') but for PAOBJNR i get '\TYPE=RKEOBJNR' which is not the expected result(prolly compiler assigned some other base type to it).
Thanks in advance.

Hello Mahendran,
i would recommend this page to you. You can find info and tutorials there.
http://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=4421
Regards,
Tobias

Similar Messages

  • JSF 2.0: Composite Components and their ID

    I'm using Composite Components with JSF 2.0.
    Template:
    <composite:interface />
    <composite:implementation>
        <h:inputText id="text" />
    </composite:implementation>Template Client:
    <h:form id="form">
        <components:myComponent />
    </h:form>In the rendered result, the h:inputText's id will be "form:j_id1060595728_4b62ee3:text".
    How can I override that default ID?
    I tried to set an id attribute on composite:interface and composite:implementation, however, that doesn't have any effect.
    Using ui:debug, I found that the component with ID "j_id1060595728_4b62ee3" is a UINamingContainer.
    When using my own UINamingContainer implementation, i.e., ...
    <composite:interface componentType="util.jsf.UINamingContainerWithID" />
    @FacesComponent("util.jsf.UINamingContainerWithID")
    public class UINamingContainerWithID extends UINamingContainer {
         private String id = "foo";
         @Override
         public String getId() {
              return id;
         @Override
         public void setId(String id) {
              // this.id = id;
         public void setFooID(String id) {
              this.id = id;
    }... I can prevent the id from being set in setId(String), and h:inputText's id will be "form:foo:text".
    (I have tried to debug but the source code is slightly out of sync.)
    I also tried to add an attribute fooID to composite:interface and composite:implementation, with no effect.
    How do you work with Composite Components and their IDs?
    Thanks

    All composite components are NamingContainers. This is necessary to prevent ID collisions.
    In order to avoid a generated ID on a particulare composite component, specify an ID in the component
    within the using page:
    <h:form id="form">
        <components:myComponent id="c" />
    </h:form>So the client ID of the text component would be: form:c:text.

  • Start sequence of components and process types

    Hi all,
    I would like to know, is there any particular start sequence of the instance components and process-types while using opmnctl startall, or opmnctl startproc ias-component=..., or opmnctl startproc process-type=... ?
    Regards

    You may start looking at these tables-
    RSBKREQUEST    DTP Request
    RSBKREQUEST_V    View of DTP Request
    Process Chain Statistics Tables:
    - RSPCLOGCHAIN, RSPCPROCESSLOG
    Hope it Helps
    Chetan
    @CP..

  • Purpose of defining "components" and their use

    On double clicking the Web Dynpro Component, we see many objects defined under "Used Components and Implemented Interfaces".
    What is the purpose behind these components and how do we use them in our application?

    Hi Abhishek,
    You can use this technique to  add the the elements of the separately defined interface controller to the component controller of the implemented component. For large programming projects, this results in a higher reusability of the interface structures. Go through the [link|http://help.sap.com/SAPHELP_NW04S/helpdata/EN/b9/1c2d4108f08739e10000000a1550b0/content.htm] below to underdstand how you can implement a Web Dynpro Interface definition in your component. You can go through these tutorials for understanding how you can define a component usage in your WebDynpro component:
    [Component re-use of SALV_WD_TABLE for displaying output in ALV format|https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/3439404a-0801-0010-dda5-8c14514d690d]
    [Component re-use of WDR_SELECT_OPTIONS for displaying select-options in WebDynpro ABAP|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c09fec07-0dab-2a10-dbbe-c9a26bdff03e]
    Regards,
    Uday

  • Help on structures and their components

    Folks
    I am trying to know if there is any single point stop for help on all SAP related structures, classes and their respective components and methods in SDN or any other place.
    In specific I am looking for calls made by Function modules to Class Interface - /SAPAPO/CL_PRJ_MAINT_SINGLE so that I can debug the same
    Any ideas on how to check the calss made to a particular Class Interface for keeping a break point ?
    Thanks
    Edited by: COOL GUY on Sep 25, 2008 8:56 PM

    go to se24 , key in class :/SAPAPO/CL_PRJ_MAINT_SINGLE
    than in menu you can see where used list icon -> click on it -> select object in which you want to see where this class is used .
    and enter.
    will list all object in which this class is used.

  • Creating a structure, knowing the name and the type of the components

    hi, following problem:
    i have uploaded an excel file from a different system with the information about the names and the types of the components of several structures.
    how can i create a structure with this informatin on my system?

    ok, i think i have to give you some more details:
    i want to update a table from a table saved on another system using a report.
    (only inserts are important, no updates)
    the problem is, that tables may not have the same components.
    therefore i have created several excel sheets with following content (using mehtod gui_download):
    name1      ; name2        ; name3....                 | name of the component
    typ1         ;  typ2           ; typ3 ...                     | type of the component
    content11 ;  content12   ; content13
    content21 ;  content22   ; content23
    uploading the file into table <uploadtable>
    now need dynamic structure:  let' s say dynamicwa
    name1   typ1
    name2   type2
    then: loop at <uploadtable> into dynamicwa.
                move-corresponding dynamicwa to destinationwa.
                insert destination_wa into destination_table.
            endloop.
    but how can i create this dynamicwa?
    Message was edited by: Michael
            Michael  Dirndorfer

  • Types of special G/L transactions and their relationship to the GL

    Dear all,
    I don't understand about the difference between three types of special GL transaction ( Free offsetting entry, statistical offsetting entry, and Noted items ) and their relationship to the GL.
    Please tell me about accounting entries, accounting process per type and give me some detail examples per type to use in system SAP
    guide me step by step
    and tell me how to configure it
    Thank in advance
    Minh

    Hi,
    Please make Down Payment request and then make Down Payment then make Invoice and then clear the Down Payment. If any balance is left over make incoming payment through F-28 and here u need to select the downpayment document also.
    If no incoming payment is there u use F-03 and clear the documents manually.
    Regards
    balaji

  • Calrification of structure and table type

    hai experts,
    what is the difference between STRUCTURE AND TABLE TYPE?

    Refer this for TABLE TYPE
    http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb35de358411d1829f0000e829fbfe/content.htm
    STRUCTURE
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb2d74358411d1829f0000e829fbfe/content.htm
    SE11, In structre u <b>cant maintain any values</b>. Its just used as a refernce.
    In tables u can maintain values.

  • How to invoke functions and data type( ex. sflight structure ) that is in t

    Hi,experts,
    I create a funcion(zz_test) that return sflight table type data. I need to invoke the function in the Webdynpro for java application.
    I think I would import the funtion to local.
    But I don't know how to import the function and the data type using SAP NetWeaver Developer Studio?
    But I don't know how to invoke functions and data type( ex. sflight structure ) that is in the R/3 in the WDJ?
    Do you give me some hints?
    Thanks a lot!
    Best regards,
    tao

    Hi Wang Tao,
    For achieving this you need to user Adaptive RFC models.
    This link explains you on the same :
    http://help.sap.com/saphelp_nw70/helpdata/EN/6a/11f1f29526944e8580c5e59333d96d/frameset.htm
    Thanks
    Namrata

  • Extract WSDL operations and their parameters types

    Hello,
    I am working in a project and I need to extract information about the operations and their parameters types from a WSDL file
    could you please give me some code example on how to do that
    Thanks,
    labi

    By looking into WSDL4J I could not find how to handle the xml schema elements
    do you have any idea how can I get the complex data types information
    Thanks,
    labi

  • What are different vru types and their functions

              Dear experts,
    what are different vru types and their functions       

    Hi,
    just hit the Help button in "Network VRU Explorer" in ICM Configuration Manager.
    If you wish to see even more details, take a look at the following article:
    http://www.ciscopress.com/articles/article.asp?p=1822061&seqNum=2
    HTH
    G.

  • URGENT........ACTIVITY TYPE AND THEIR ASSIGNEMENT TO WORK CENTER!!!!!!!!!!!

    Hi Friends,
    I have A REAL URGENT REQUIREMENT as far as activity type and assignment to Work Center is concerned.
    I work for a client who is a manufacturer of Paint equipment. I'm responsible for capturing the cost of an assembly activity of spray guns, which is the last step of routing.  However, there are 4 processes/steps of routing which are outsourced to the subcontracting vendors. we recieve the facbricated, anodised guns which are assembled in our factory.
    I need to get the cost of assembly, which I have created as an actvity type in KL01 and planned for the same using KP26. However the system is throwing up errors related to costing, and I'm not sure about the assignment areas in work center.
    And above all I'm not sure of various fields in KP26 like capacity field and what do we assign.
    can anybody help me with the series of steps for me to be able to pick up the cost. or if there is any sort of material in this regards, plz mail it to: __ email removed by moderator
    regards
    sandhya

    Hi,
    You need to do the following:
    1) Create an Activity type for the Assembly activity.
    2) Define a Work Centre in PP (T-Code CR01) which represents the location where the Assembly is carried out.
    3) Define a Cost Centre corresponding to the above Work Centre.
    4) Plan for the Activity quantity for the combination of the Cost Centre and Activity type (KP26)
    5) Plan for the Overhead Costs which are incurred on this Cost Centre which need to be included in the Standard cost of the Assembly.(KP06)
    6) Assign the Cost centre & Acivity type to the Work Centre in CR02.(This is possible only after you do 5 above)
    7) Execute the Plan price calculation (T-code KSPI)
    After you do all of the above, when you do the Costing Run, all the relevant costs will be picked.
    Ofcourse all the relevant master data for PP like BOM, Routing with the relevant assignments of materials to operations, etc should be in place.
    Regards,
    Assign points if useful

  • IDOC Types and their equivalent messages in EDIFACT and ANSI X12

    Hi all, since I only have a list of messages in EDIFACT and ANSI X12 for release 4.6 B, I need to update the list from 6.0 version, but I don't have online support system to get it (OSS), it's note 104606 in OSS.
    Can somebody give me a link to the full new updated list? Will surely give points with your helpful answers
    Regards,

    Hi,
    Please check these perhaps they may help.
    Mapping ANSI X12 to SAP Message Type and IDoc Type:
    204 Motor carrier shipment information
    The logical message is SHPMNT or IFTMIN, the IDoc type SHPMNT03.
    214 Transportation carrier shipment status message
    The logical message is TRXSTA, the IDoc type TRXSTA01. Inbound processing is supported.
    304 Shipping instructions
    The logical message is SHPMNT or IFTMIN, the IDoc type SHPMNT03.
    810 Invoice or billing document (also 880), EDI - Inbound INVOIC posting configuration
    The logical message is INVOIC, the IDoc type INVOIC01.
    812 Credit and debit advice
    The logical messages are CREADV or DEBADV, the IDoc types PEXR2001 and PEXR2002.
    820 Payment order and credit advice
    For the payment order, the logical message is PAYEXT (REMADV), the IDoc types PEXR2001 and PEXR2002.
    For the credit advice (ERS - Evaluated Receipt Settlement), the logical message is GSVERF, the IDoc type GSVERF01.
    823 Lockbox
    The logical message is LOCKBX, the IDoc type FINSTA01. Inbound processing is supported.
    830 Delivery schedule (LAB)
    The logical message is DELINS (from the EDI standard ODETTE) or DELFOR, the IDoc type is DELFOR01.
    832 Price catalog (also 879, 888, 889)
    The logical message is PRICAT, the IDoc type PRICAT01. Outbound processing is supported.
    834 Benefit enrollment and maintenance
    The logical message is BENREP, the IDoc type BENEFIT1. Outbound processing is supported.
    840 Request
    The logical message is REQOTE, the IDoc types ORDERS01 to ORDERS04.
    843 Quotation
    The logical message is QUOTES, the IDoc types ORDERS01 to ORDERS04. Outbound processing is supported.
    850 Purchase order or order (also 875)
    The logical message is ORDERS, the IDoc types ORDERS01 to ORDERS04.
    852 Stock and sale data
    The logical message is PROACT, the IDoc type PROACT01.
    855 Ordering or order response (also 865)
    The logical message is ORDRSP, the IDoc types ORDERS01 to ORDERS04.
    856 Transport and shipping notification (ASN - Advanced Ship Notification)
    For transport in the SAP application, the logical message is SHPMNT or SHPADV, the IDoc types SHPMNT01 to SHPMNT03.
    For delivery in the SAP application, the logical message is DESADV, the IDoc types are DESADV01 (expires) or DELVRY01 and DELVRY02.
    860 Ordering or order modification (also 876)
    The logical message is ORDCHG, the IDoc types ORDERS01 to ORDERS04.
    861 Credit advice (ERS - Evaluated Receipt Settlement)
    The logical message is GSVERF, the IDoc type GSVERF01.
    862 delivery schedule (FAB)
    The logical message is DELINS (from the EDI standard ODETTE) or DELJIT, the IDoc type is DELFOR01.
    864 Text message
    The logical message is TXTRAW, the IDoc type TXTRAW01. Inbound processing is supported.
    940 Shipping order and stock order
    The logical message is SHPORD or WHSORD, the IDOC type DELVRY01.
    945 Shipping confirmation and stock confirmation
    The logical message is SHPCON or WHSCON, the IDoc type DELVRY01.
    997 Functional Acknowledgment
    This is a technical confirmation. This is not exchanged via an individual message but the status report for IDoc processing. The status values used are:
    "22" Shipping OK, acknowledgment has yet to come
    "16" Functional Acknowledgment positive
    "17" Functional Acknowledgment negative
    The status values "14" and "15" are available for the Interchange Acknowledgment accordingly.
    Regards,
    Ferry Lianto

  • In-Place Element Structures, References and Pointers, Compiler Optimization, and General Stupidity

    [The title of this forum is "Labview Ideas". Although this is NOT a direct suggestion for a change or addition to Labview, it seems appropriate to me to post it in this forum.]
    In-Place Element Structures, References and Pointers, Compiler Optimization, and General Stupidity
    I'd like to see NI actually start a round-table discussion about VI references, Data Value references, local variables, compiler optimizations, etc. I'm a C programmer; I'm used to pointers. They are simple, functional, and well defined. If you know the data type of an object and have a pointer to it, you have the object. I am used to compilers that optimize without the user having to go to weird lengths to arrange it. 
    The 'reference' you get when you right click and "Create Reference" on a control or indicator seems to be merely a shorthand read/write version of the Value property that can't be wired into a flow-of-control (like the error wire) and so causes synchronization issues and race conditions. I try not to use local variables.
    I use references a lot like C pointers; I pass items to SubVIs using references. But the use of references (as compared to C pointers) is really limited, and the implementation is insconsistent, not factorial in capabilites, and buggy. For instance, why can you pass an array by reference and NOT be able to determine the size of the array EXCEPT by dereferencing it and using the "Size Array" VI? I can even get references for all array elements; but I don't know how many there are...! Since arrays are represented internally in Labview as handles, and consist of basically a C-style pointer to the data, and array sizing information, why is the array handle opaque? Why doesn't the reference include operators to look at the referenced handle without instantiating a copy of the array? Why isn't there a "Size Array From Reference" VI in the library that doesn't instantiate a copy of the array locally, but just looks at the array handle?
    Data Value references seem to have been invented solely for the "In-Place Element Structure". Having to write the code to obtain the Data Value Reference before using the In-Place Element Structure simply points out how different a Labview reference is from a C pointer. The Labview help page for Data Value References simply says "Creates a reference to data that you can use to transfer and access the data in a serialized way.".  I've had programmers ask me if this means that the data must be accessed sequentially (serially)...!!!  What exactly does that mean? For those of use who can read between the lines, it means that Labview obtains a semaphore protecting the data references so that only one thread can modify it at a time. Is that the only reason for Data Value References? To provide something that implements the semaphore???
    The In-Place Element Structure talks about minimizing copying of data and compiler optimization. Those kind of optimizations are built in to the compiler in virtually every other language... with no special 'construct' needing to be placed around the code to identify that it can be performed without a local copy. Are you telling me that the Labview compiler is so stupid that it can't identify certain code threads as needing to be single-threaded when optimizing? That the USER has to wrap the code in semaphores before the compiler can figure out it should optimize??? That the compiler cannot implement single threading of parts of the user's code to improve execution efficiency?
    Instead of depending on the user base to send in suggestions one-at-a-time it would be nice if NI would actually host discussions aimed at coming up with a coherent and comprehensive way to handle pointers/references/optimization etc. One of the reasons Labview is so scattered is because individual ideas are evaluated and included without any group discussion about the total environment. How about a MODERATED group, available by invitation only (based on NI interactions with users in person, via support, and on the web) to try and get discussions about Labview evolution going?
    Based solely on the number of Labview bugs I've encountered and reported, I'd guess this has never been done, with the user community, or within NI itself.....

    Here are some articles that can help provide some insights into LabVIEW programming and the LabVIEW compiler. They are both interesting and recommended reading for all intermediate-to-advanced LabVIEW programmers.
    NI LabVIEW Compiler: Under the Hood
    VI Memory Usage
    The second article is a little out-of-date, as it doesn't discuss some of the newer technologies available such as the In-Place Element Structure you were referring to. However, many of the general concepts still apply. Some general notes from your post:
    1. I think part of your confusion is that you are trying to use control references and local variables like you would use variables in a C program. This is not a good analogy. Control references are references to user interface controls, and should almost always be used to control the behavior and appearance of those controls, not to store or transmit data like a pointer. LabVIEW is a dataflow language. Data is intended to be stored or transmitted through wires in most cases, not in references. It is admittedly difficult to make this transition for some text-based programmers. Programming efficiently in LabVIEW sometimes requires a different mindset.
    2. The LabVIEW compiler, while by no means perfect, is a complicated, feature-rich set of machinery that includes a large and growing set of optimizations. Many of these are described in the first link I posted. This includes optimizations you'd find in many programming environments, such as dead code elimination, inlining, and constant folding. One optimization in particular is called inplaceness, which is where LabVIEW determines when buffers can be reused. Contrary to your statement, the In-Place Element Structure is not always required for this optimization to take place. There are many circumstances (dating back years before the IPE structure) where LabVIEW can determine inplaceness and reuse buffers. The IPE structure simply helps users enforce inplaceness in some situations where it's not clear enough on the diagram for the LabVIEW compiler to make that determination.
    The more you learn about programming in LabVIEW, the more you realize that inplaceness itself is the closest analogy to pointers in C, not control references or data references or other such things. Those features have their place, but core, fundamental LabVIEW programming does not require them.
    Jarrod S.
    National Instruments

  • Pass the structure name and return the description fields.

    Hi experts!!,
    I would like to know a class and the method that I pass the structure name and return all the description fields.
    Thanks a lot

    Hello Ana
    Have a look at class CL_ABAP_STRUCTDESCR.
    DATA: ls_knb1   TYPE knb1.
    DATA: lo_typedescr    TYPE REF TO cl_abap_typedescr.
    DATA: lo_strucdescr   TYPE REF TO cl_abap_structdescr.
    DATA: lt_dfies            TYPE ddfields.
    lo_typedescr = cl_abap_structdescr=>describe_by_data( ls_knb1 ).
    lo_structdescr ?= lo_typedescr.
    lt_dfies = lo_structdescr->get_ddic_field_list( ).
    " Or check public attribute: lo_structdescr->components   for non-DDIC structures
    Other useful RTTI classes are:
    CL_ABAP_DATADESCR
    CL_ABAP_TYPEDESCR
    CL_ABAP_TABLEDESCR
    CL_ABAP_CLASSDESCR
    Regards
      Uwe

Maybe you are looking for

  • How to make signature field work for reader users? Security settings change when doc is extended???

    I've been struggling to correct a problem all week and am at my wits end. Customer service was no help as the person I spoke with could barely speak english let alone understand the problem as I explained it to him. Hoping someone here can provide so

  • PGI status at delivery header level has not updated

    Dear Friends, We had created deliver, picking was completed and PGI was completed successfully. However when we try to create Billing, an error occurs stating that PGI is not completed. Further when we check the delivery, the Goods Issue status at it

  • Discussion: Application Design

    Hi, Just a small discussion on application design :) Have you ever thought on how you should develop an application, and then when the design is ready you think of a complete different thing on how that application can be developed (and you actually

  • Stored credit card number

    I logged on to an account and when I began to enter the card number it was presented to me by the system. I do not recall ever having said that I wanted this link to remember the number. Is it stored somewhere on my system? Is it in the "Keychain" wh

  • Launcing books on ibooks

    i purchased  book from Appstore, but could not launch it on iBooks. The book kept dissapering as soon as i click on it on the shelf