How to find Screen element names in a program programatically

Hi Experts,
  I have to find out all the table control names in a program. I am able to find all the screen numbers for a program from the table D020S. Is there any functionality to find out the table controls in a program or atleast screen elements in a program?
Thanks and regards,
venkat.

Hello
You can get the information  by calling the below two FM's. First call the FM IAC_GET_DYNPRO_INFO by passing the program name and screen number. This will return an internal table with all the screen elements of structure D021S.
Next loop through this internal table and pass the structure to FM RS_SCRP_GET_FIELD_TYPE_TEXT to know what kind of screen element it is.
Also, if the FILL parameter of the first FM is 'T', then it is a table control.
Regards
Ranganath

Similar Messages

  • How to find the group name for a section programatically?

    I have these display formulas that are being repeated in each group footer.  The only thing that changes are the group names.
    How can I find the group name for the current section?
    The bolded(or starred) items are what I'm trying to create a generic function for.
    Ontario
         Bob
                   1000     Sales     Other
                   2000     Random     Billing
                   200     Phone     Billing
         *Total for Bob*      3200
         Sally
                   2000     Sales     Client
                   1000     Random     Billing
                    300     Cell     Billing
         *Total for Sally* 3300
    *Total for Ontario*       6500
    Thanks in advance,
    J

    I'm not sure if the GroupingLevel or GroupNumber fuctions will help.  (There description in the on-line help leaves much to be desired, IMHO...)
    If not, you could try adding formula fields to each level that sets a global variable to tell your other formula fields what level it is on.  If you only have one or two other formulas, and only one or two groups, this really wouldn't be a whole lot easier.  But if you had a lot of groups or a lot of formula fields that you want to make "group independent" it could help.
    So for each footer, create a formula field like (basic syntax):
    WhilePrintingRecords
    global geoupLevel as String
    groupLevel = "Province"
    formula = ""
    (changing the name given to groupLevel for each footer).  Then in your "generic" formula you could put something like:
    WhilePrintingRecords
    global groupLevel as string
    select case groupLevel
      case "Province"
        formula = "Total for " + {Province}
      case "Name"
        formula = "Total for " + {Name}
      else
        Formula = "Totals"
    end select
    HTH,
    Carl

  • How to find out query name using Elements of the query builder.

    Hi SDNers,
    how to find out query name using Elements of the query .
    thanks,
    satyaa

    Hi,
    For having a look at the relation between BEx tables,check the link below:
    http://wiki.sdn.sap.com/wiki/display/BI/ExploretherelationbetweenBEx+Tables
    -Vikram

  • Find screen by name

    I want to write a method that find screen by name: however it
    seems that screen doesn't have a property or method that returns
    its instance name...
    in the following code:
    for(var i=0;i<root.numChildScreens;i++){
    var cat=root.getChildScreen(i);
    trace(cat.instanceName); //undefined
    trace(cat.label); //undefined
    trace(cat.name);//undefined
    trace(cat); //valid
    I know how to reference a screen by just doing
    parentScreen.childInstanceName, by I want to do it dynamically,
    hence the reason for the code above.
    please help!
    thanks!

    Hello Abhijeet,
    Here's what I think you're looking for -
    tables spfli.
    parameters     : p_test   like spfli-carrid.
    select-options : s_carrid for  spfli-connid.
    DATA:
      descr_ref TYPE ref to cl_abap_elemdescr.
    START-OF-SELECTION.
      descr_ref ?= cl_abap_typedescr=>describe_by_data( p_test ).
      WRITE: / 'Typename     :', descr_ref->absolute_name.
      WRITE: / 'Kind         :', descr_ref->type_kind.
      WRITE: / 'Length       :', descr_ref->length.
      WRITE: / 'Decimals     :', descr_ref->decimals.
      WRITE: / 'Output Length:', descr_ref->output_length.
      WRITE: / 'Help ID      :', descr_ref->help_id.
    Kind------> data type (C , I , etc.,)
    Help ID---> data element (usually).
    There are other classes in ABAP of the form CLABAPDESCR which can provide you with other information. These classes all belong to what is called RTTI (Run Time Type Identification). However, these are available only from 46c. You can explore the other classes, as I think they would be very interesting and useful in the future.
    Regards,
    Anand Mandalika.

  • How to find the form name  from VA02 T.code

    how to find the form name  from VA02 T.code

    Hi Rajyam,
    I guess you are looking out for the formname which prints sales related documents.
    If this is what you want,then go to the T-code NACE and select the option K1Sales activities and click on the Output Types button on the top.The new window has all the types of Output types listed.Select the most appropriate and double click on the Processing routines button in the left side screen.
    The new window lists the program names and the forms associated with that output type.
    In case you have any further clarifications,do let me know.
    Regards,
    Puneet Jhari.

  • In ME29n (PO appr), error "Cannot Find Screen Element shell in Replay Mode"

    In ME29n (PO approval), in the header I pressed on the release button, the recording went well. and while executing the script  it worked well.  Problem is When there is any change in the ME29n HEADER screen (e.g. expanding header and collapsing header: specially if header is in Collapsed mode) , ecatt is giving error "Cannot Find Screen Element shell in Replay Mode" "Error in eCATT command SAPGUI".
    Please help me how to avoid this error either in recording phase or in SAP settings.
    Also discuss how to make ecatt script independent of the system settings like HEADER is in collapsed mode or expanded mode.
    Thanks in advance.

    Hello Srinivas,
    Once the value is retrieved into the variable , based on whether you need collapse or not you can put ur SAPGUI recording inside the loop and continue ur operation.
    eg:
    say currently its collapse and u need collapse to carryout ur process
    IF ( RC = "COLLAPSE HEADER CTRL+F5" ).
    your process (SAPGUI recording)
    ELSE (if its expanded and u need collapse)
    call the script to collapse or you can record to collapse and the continue your process
    ENDIF.
    Hope this answers your question , let me know if not.
    Thanks & Best regards,
    Ajay

  • Discoverer Report: How to find Business Area name from Report Name.

    Hi
    I opened a report in Disco Desktop 4 -> Resonsibiolity --> Report Name.
    So I know Report name but don’t know which Business Area it belongs to.
    How to find Business Area Name from Report Name?
    Cheers
    Vijay

    Hi,
    There is no relationship between reports and business areas. Each report can be built from many folders. Each folder can be in many business areas.
    However you can try the following SQL which may give you the result you want for an v5 EUL. You will have to modify for Discoverer 4 EUL:
    select distinct doc_name, obj.obj_name folder_name, bas.ba_name
    from eul_us.eul5_documents doc
    , eul_us.eul5_elem_xrefs xref
    , eul_us.eul5_expressions exp
    , eul_us.eul5_objs obj
    , eul_us.eul5_ba_obj_links bol
    , eul_us.eul5_bas bas
    where xref.ex_from_id = doc.doc_id
    and doc.doc_name = &your_report
    and xref.ex_to_id = exp.exp_id
    and obj.obj_id = exp.it_obj_id
    and bol.bol_obj_id = obj.obj_id
    and bas.ba_id = bol.bol_ba_id
    Rod West

  • How to find out server name in reports9i

    hi all
    how to find out server name in reports9i
    i need the report server name to call a report
    thanks
    Edited by: vikas singhal on Nov 5, 2008 1:02 AM

    You do not need to do anything, if your Report server is on the same machine as the Forms server (which is usually the case) you simply use the url as
    /reports/rwservlet?report=myreport' and the server will automatically use the default report server.
    then you simply use
    web.show_document('/reports/rwservlet?userid=scott/tiger@orcl&report=myreport&desformat=htmlcss&desname=test.html'Tony
    Try it now
    Edited by: Tony Garabedian on Nov 5, 2008 2:00 PM

  • How to find the File name using the FTP Adapter

    hi all,
    how to find the File name using the FTP Adapter with BPEL.
    Regards

    Found the solution for this.
    First In the mediator's routing rule use assign property $in.property.jca.file.FileName to $out.property.jca.file.FileName
    In the BPEL's receive activity go to the properties tab and get the property to a BPEL variable. That should do it.
    Thanks for the posts

  • How to find the column name and table name with a value

    Hi All
    How to find the column name and table name with "Value".
    For Example i have value named "Srikkanth" This value will be stored in one table and in one column i we dont know the table how to find the table name and column name
    Any help is highly appricatable
    Thanks & Regards
    Srikkanth.M

    2 solutions by Michaels (the latter is 11g upwards only)...
    michaels>  var val varchar2(5)
    michaels>  exec :val := 'as'
    PL/SQL procedure successfully completed.
    michaels>  select distinct substr (:val, 1, 11) "Searchword",
                    substr (table_name, 1, 14) "Table",
                    substr (t.column_value.getstringval (), 1, 50) "Column/Value"
               from cols,
                    table
                       (xmlsequence
                           (dbms_xmlgen.getxmltype ('select ' || column_name
                                                    || ' from ' || table_name
                                                    || ' where upper('
                                                    || column_name
                                                    || ') like upper(''%' || :val
                                                    || '%'')'
                                                   ).extract ('ROWSET/ROW/*')
                       ) t
    --        where table_name in ('EMPLOYEES', 'JOB_HISTORY', 'DEPARTMENTS')
           order by "Table"or
    SQL> select table_name,
           column_name,
           :search_string search_string,
           result
      from cols,
           xmltable(('ora:view("'||table_name||'")/ROW/'||column_name||'[ora:contains(text(),"%'|| :search_string || '%") > 0]')
           columns result varchar2(10) path '.'
    where table_name in ('EMP', 'DEPT')
    TABLE_NAME           COLUMN_NAME          SEARCH_STRING        RESULT   
    DEPT                 DNAME                ES                   RESEARCH 
    DEPT                 DNAME                ES                   SALES    
    EMP                  ENAME                ES                   JONES    
    EMP                  ENAME                ES                   JAMES    
    EMP                  JOB                  ES                   SALESMAN 
    EMP                  JOB                  ES                   SALESMAN 
    EMP                  JOB                  ES                   SALESMAN 
    EMP                  JOB                  ES                   PRESIDENT
    EMP                  JOB                  ES                   SALESMAN 
    9 rows selected.

  • How to find the technical name

    Hai,
    How to find the technical name of a data source for General Ledger: Balances – Period Breakdown
    Thanks

    Hai
    my question is in General Ledger: Balances – Period Breakdown
    the link is showing General Ledger : Balances , Leadingledger
    I got this link in queries for General Ledger: Balances – Period Breakdown
    http://help.sap.com/saphelp_nw70/helpdata/en/2d/955a73da4d6d41a0a6128caf274ce8/frameset.htm
    But here technical name of info cube is given.But i dont know how to find the technical name of the data source.This might be simple question i think but i am new to SAP
    Thanks

  • How to find the form name attached to AR Open item list

    How to find the form name attached to AR Open item list
    FBL5N -> Correspondance
    Thanks
    Ganesh

    You can find out in SPRO.
    Go to tcode SPRO
    Financial Accounting (New)
    Financial Accounting Basic Settings (New)
    Correspondence
    Define Form Name for Correspondence Print
    Here you will find the form attached to the program.
    To find the attached program to the Correspondence type.
    Go to tcode SPRO
    Financial Accounting (New)
    Financial Accounting Basic Settings (New)
    Correspondence
    Assign programs for the Correspondence Types
    Regards,
    Naimesh Patel

  • How to find the machine name

    How to find the machine name from which the table is created ?
    Yogesh

    Turn on DDL auditing.
    http://www.oracle-base.com/articles/10g/Auditing_10gR2.php outlines some uses ... i'm sure you can find more with a google search.

  • How to find the query name using infoset name

    Hi Experts
           Iam new to the sap queries(SQ01,SQ02), some queries already created.
          now i want to do some modification, my problem is i am not able to find the query name.
          I know the infoset name, can you tell me how to find the query name using the infoset name, is ther any table for this.
    i tried in sq01 also, but its confusion, pls advice me on this.
    thanks in advance.
    regards
    rajaram

    Hi
    try like this..
    SQ02 --> go to --> Query Directory..
    from there you can get all the queries belong to a Infoset.

  • How to find current user name on a LAN machine....

    how to find current user name in a remote machine in LAN .
    how to find current user name on a local machine in LAN .

    how to find current user name in a remote machine in
    LAN .Many users may be logged on concurrently on the remote machine.
    how to find current user name on a local machine in
    LAN .The user who is running the code in the process would be obtainable via:
    System.getProperty("some property goes here");
    I leave it to you to look at the API documentation for System.getProperties() to see what property name you would retrieve.

Maybe you are looking for

  • About PO and PR

    Hi all , Can anyone tell me that how can i trace "when requisition is copied to the PO". OR can any one elaborate me the sentence, "The three fields need to copy from the requisition to the PO when a requisition is copied to the PO". Thank you. Sidd.

  • Creating Universes from a SQL Server 2008 Database....Options?

    Needing to create a Universe from a SQL Server 2008 DB, I am of course finding it difficult at best to get the ball rolling. Support tells me the only option I have is to use Designer, and to not use the "Automated Detection" features because they ar

  • RSS feeds in Mountain Lion

    How can I get RSS feeds in Mountain Lion? I have just installed ML on my Macbook pro & can't get any feeds in mail.

  • Is it possible to restore iPod without plugging into iTunes?

    Hello - having great difficulty doing anything to my iPod through iTunes. Is there anyway in which I can restore my iPod without going through iTunes? (iTunes already re-installed) Thanks

  • Layout error - ergonomic violation

    Hi, I have designed a screen of type: modal dialog box. This consists of a box and a custom control within it. The functionality of this screen is working perfectly. But in the screen, I am getting a layout error saying "Frame encloses ALL fields of