How to get the line type of a table type

Hi,
  i want to indetify the line type of a table type dynamically in my program. how to do?
For example:
data: lv_ttype type type ROLLNAME value 'PRXCTRLTAB'.
how to identify line type of lv_ttype in the program.
Thanks,
johnney.

Hello Johnney,
try like this...
types: begin of ty_itab,
            matnr like mara-matnr,
            werks like marc-werks,
            maktx like makt-maktx,
          end of g_t_itab.
data: g_t_itab type table of ty_itab.
data: <b>wa_itab like line of g_t_itab.</b> " This is line type... so called work area.
Reward If Helpful.
Regards
Sasidhar Reddy Matli.

Similar Messages

  • How to get the line in the template (smartform) with out using under score

    Hi,
         How to get the line in the template (smartform) with out using under score,
         and how to print the box (line the check box - small squre box (which is used ot mark the tick by the user in front of the item).
         Please provide the valueble answer as early as possible.
    Thanks,
    Ravi

    Hi Ravi,
    Line -
    Use a SMATSTYLE for this purpose.in the smartstyle create a paragraph or character with underline atribute.Then call the smartstyle in the text.
    Search SDN with Key <b>UNDERSCORE</b>.. will get few more posts on the same.
    For Checkbox - refer link
    Re: Quick Question on Smartforms
    Re: putting tick mark into check box in smartform
    Reward points if this Helps.
    Manish
    Message was edited by:
            Manish Kumar

  • How to get the Reports of Change Tracking Table in MDM?

    Hi!
    Please tell me how to get the reports of Change Tracking Table in MDM which is a System table, directly from MDM without using any interface.
    Thanks in advance for the reply.
    With Best Regards
    Devendra Pandey

    Hi Devendra,
    MDM can track changes on tables and fields. <u>The level of change tracking, and which tables/fields to track, are configurable in the MDM Console</u>. MDM opens a new database on the same database engine as the MDM repository and writes all change records to this database.
    For information of various steps you can visit
    <a href="http://help.sap.com/saphelp_mdm550/helpdata/en/45/c7b20339ee570ae10000000a114a6b/content.htm">this URL</a>
    Regards,
    Krutarth

  • How to get the list of top 10 tables grown last week or last few days

    Hi All,
    Please let me know, how to get the list of top 10 tables grown last week or last few days
    Thanks

    Please let me know, how to get the list of top 10 tables grown last week or last few days1.Oracle Version and OS info please ... ALWAYS
    2.Do you have licensing options (Tuning and/or Diagnostics Pack) ?
    3.Have you ran AWR/Statspack in last week or last few days
    1.Because Oracle do not store auto tack the history of tables growth. See below link where one user has showed the possible way of manual track of table(s) growth :
    Re: oracle tables growth
    2.MOS Note for How To Get Table Growth History Information? [ID 1395195.1]
    3.If you are in 10g than EM of 10g has something called Segmnet Statistics which can show you the growth of your table.
    4.Other clue :
    SQL> select * from table (dbms_space.object_growth_trend('SCOTT','EMP','TABLE'));
    TIMEPOINT                                                                   SPACE_USAGE SPACE_ALLOC QUALITY
    17-SEP-12 11.06.20.228000 AM                                                       1593       65536 GOOD5.A good script by Mice Ault for historical growth of segments within AWR:
    http://www.dba-oracle.com/t_table_growth_reports.htm
    Regards
    Girish Sharma

  • How to get the line information when double click the ALV line?

    LOOP AT it_outr.
        AT END OF vornr.
          REFRESH it_out.
          CLEAR it_out.
          LOOP AT it_outt WHERE nplnr = it_outr-nplnr
                            AND vornr = it_outr-vornr.
            MOVE-CORRESPONDING it_outt TO it_out.
            APPEND it_out.
          ENDLOOP.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          i_callback_program       = g_repid
          i_callback_pf_status_set = 'HANDLE_EVENT_PF_STATUS'
          i_callback_user_command  = 'HANDLE_EVENT_USER_COMMAND'
          is_layout                = ls_layo
          it_fieldcat              = lt_fcat
          it_events                = lt_evts1
          is_print                 = ls_prnt
        TABLES
          t_outtab                 = it_out
        EXCEPTIONS
          program_error            = 1
          OTHERS                   = 2.
        ENDAT.
    When we double click a field, how do we get the line information with the field?
    READ TABLE it_out INDEX rs_selfield-tabindex. is not worked, because the table it_out is changing.

    hi
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
    *   I_INTERFACE_CHECK                 = ' '
    *   I_BYPASSING_BUFFER                = ' '
    *   I_BUFFER_ACTIVE                   = ' '
         I_CALLBACK_PROGRAM                = SY-REPID
    *   I_CALLBACK_PF_STATUS_SET          = ' '
         *I_CALLBACK_USER_COMMAND           = 'USER_COMMAND'*
    *    I_CALLBACK_TOP_OF_PAGE            = ''
    *   I_CALLBACK_HTML_TOP_OF_PAGE       = ' '
    *   I_CALLBACK_HTML_END_OF_LIST       = ' '
    *   I_STRUCTURE_NAME                  =
       I_BACKGROUND_ID                   = 'ALV_BACKGROUND'
    *   I_GRID_TITLE                      =
    *   I_GRID_SETTINGS                   =
         IS_LAYOUT                          = LAYOUT
         IT_FIELDCAT                        = RT_FIELDCAT
    *   IT_EXCLUDING                      =
    *   IT_SPECIAL_GROUPS                 =
    *   IT_SORT                           =
    *   IT_FILTER                         =  'X'
    *   IS_SEL_HIDE                       =
         I_DEFAULT                         = 'X'
         I_SAVE                            = 'A'
         IS_VARIANT                        = G_VARIANT
         IT_EVENTS                         = XT_EVENT
    *   IT_EVENT_EXIT                     =
    *   IS_PRINT                          =
    *   IS_REPREP_ID                      =
    *   I_SCREEN_START_COLUMN             = 0
    *   I_SCREEN_START_LINE               = 0
    *   I_SCREEN_END_COLUMN               = 0
    *   I_SCREEN_END_LINE                 = 0
    *   I_HTML_HEIGHT_TOP                 = 0
    *   I_HTML_HEIGHT_END                 = 0
    *   IT_ALV_GRAPHICS                   =
    *   IT_HYPERLINK                      =
    *   IT_ADD_FIELDCAT                   =
    *   IT_EXCEPT_QINFO                   =
    *   IR_SALV_FULLSCREEN_ADAPTER        =
    * IMPORTING
    *   E_EXIT_CAUSED_BY_CALLER           =
    *   ES_EXIT_CAUSED_BY_USER            =
        TABLES
          T_OUTTAB                          = IT_FINAL
       EXCEPTIONS
         PROGRAM_ERROR                     = 1
         OTHERS                            = 2
      IF SY-SUBRC <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    CASE U_UCOMM.
        WHEN '&IC1'.
          READ TABLE IT_FINAL INDEX US_SELFIELD-TABINDEX INTO WA_FINAL.
          CHECK SY-SUBRC EQ 0.
          CASE US_SELFIELD-FIELDNAME.
            WHEN 'VBELN'.
              SET PARAMETER ID: 'VF' FIELD WA_FINAL-VBELN.
              CALL TRANSACTION 'VF03' AND SKIP FIRST SCREEN.
          ENDCASE.
          ENDCASE.
    regard,
    nawa

  • How to get the value of String in integer type

    how to get the value of String in integer

    {color:#0000ff}http://java.sun.com/javase/6/docs/api/java/lang/Integer.html#parseInt(java.lang.String)
    http://java.sun.com/javase/6/docs/api/java/lang/Integer.html#valueOf(java.lang.String){color}

  • How to get the data from a cluster table to BW

    Dear All,
    I want to extract the data from R/3 to BW by using 2 tables and one Cluster B2.
    Actually my report contains some fields from PA2001, PA2002 and one cluster table B2 (Table ZES). Can I create View by using these 3 tables? If it is not possible how can I get the data from the cluster? Can I create generic datasource by using cluster tables directly?
    In SE11 Transaction the Cluster (table ZES) is showing invalid table.
    I referred some Forums, but no use.
    Can any body tell me procedure to get the data from a cluster (table ZES) ?
    Waiting for you results.
    Thanks and regards
    Rajesh

    HI Siggi,
    Thank you for your reply..
    I am also planning to do FM to get the data. But it is saying that the Cluster table ZES does not exist (ZES is the the standard table, in SE11 also).
    How can I use the Fields from the that table.?
    What can I do now, can you please explain me about this point.
    Waiting for your reply.
    Thanks and Regards
    Rajesh
    Message was edited by:
            rajesh

  • How to delete the line for 300SAP* in table USR02 in SQL Management studio

    Hello
    I used to delete the line for 300SAP* in table USR02 in SQL Enterprise Manager. After I could log on with “pass”.
    I wander how to delete it in SQL Management studio. When I expand tdatabase it takes so long time and it is uncontrollable

    Hello,
    you have to delete the row by a sql statement.
    Open a new query and run a script like this:
    use <Your SID DB>                 -- e.g. use PRD
    setuser 'your sid in lowercase'  --- e.g. setuser 'prd'
    delete from USR02 where MANDT = '300' and BNAME = 'sap*'
    go
    Run a complete backup before deleting data manually.
    Regards
      Clas

  • How to get the selected rows in a table

    Hi,
    How to get the ids of all the selected rows. On Page load a query is executed that shows the data in a table with a checkbox in the first column to select the rows and delete. Now if a user select multiple rows how do I get the ids of selected rows in the backend code.
    Thanks

    Please search the forum before posting questions.
    refer following thread for table selection.
    Re: Record selection with MessageCheckBox and print the selected record.
    --Prasanna                                                                                                                                                                                                                                                                                                                                                                           

  • How to get the complete definition of a table using SQL?

    How to get the complete definition code of a table using SQL?

    Something like this ?
    SQL> set long 10000
    SQL> set pages 200
    SQL> select dbms_metadata.get_ddl('TABLE','EMP') from dual;
    DBMS_METADATA.GET_DDL('TABLE','EMP')
      CREATE TABLE "SCOTT"."EMP"
       (    "EMPNO" NUMBER(4,0),
            "ENAME" VARCHAR2(10),
            "JOB" VARCHAR2(9),
            "MGR" NUMBER(4,0),
            "HIREDATE" DATE,
            "SAL" NUMBER(7,2),
            "COMM" NUMBER(7,2),
            "DEPTNO" NUMBER(2,0),
             CONSTRAINT "PK_EMP" PRIMARY KEY ("EMPNO")
      USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "USERS"  ENABLE,
             CONSTRAINT "FK_DEPTNO" FOREIGN KEY ("DEPTNO")
              REFERENCES "SCOTT"."DEPT" ("DEPTNO") ENABLE
       ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
      STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
      PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
      TABLESPACE "USERS"
    SQL>Amardeep Sidhu

  • How to get the row reference of inner table of an advance table

    Hi Gurus,
    Using R12.1.3, How to get the handle of inner table row reference of an advance table in controller.
    Regards,
    Zakir

    The javadoc for oracle.jbo.Key is really helpful.
    getAttributeNames()
    getAttributeValues()
    etc

  • How to get the segment  detials of IDoc message type.

    Dear Friends,
    I  want to write function module , which takes the IDOC  message type  as an input and returns all the segment fields in response.
    Basically I want to get the XML schema of a IDOC message type and need to expose these details toa 3rd party application to use.
    Dear experts ,Please do give me some ideas how to achieve this .
    like tables from where i can get these details or u feel any other goos way of doing the same.
    thx,
    jeevan

    Hello experts,
    Please participate .........
    To redefine my objective I will say:--
    I am trying to do some thing very similar that is there in XI .
    You might have seen the way IDOCs are shown while mapping an idoc structure.
    Its like you select a message type and u get all the list of  Idoc Structure shown .
    I am really relying on you people.
    thx ,
    jeevan

  • How to get the IDOC name attached with message type (IDoc at receiver end)

    Hello Friends,
    I have configured the Order Confirmation Idoc.And the port used is XML_HTTP. in this port generally the idocs are sent to a java servlet.
    So there the idocs are being created with name  :- Idoc_no.XML
    but i need to get the IDoc name prefixed or attached with the message type name, that the particular idoc uses.
    waiting for your replies .
    thanks,
    jeevan

    Hi Jeevan,
    I am sorry for the confusion, the solution i provided is used when we go for XML FILe port. But when we go for XML HTTP port, this option is not available in SAP. So we need to check with the target system, whether there is any option available to read the file contents before saving , so that we can save the idoc with the required file name .
    With my knowledge i assume why this option is not there for XML HTTP port is when we use XML HTTP port the idoc will be converted into XML and will be transported over HTTP protocol to an remote system which may be any type like XI, Java Servlet, Business connector, .Net etc. So in that case all the systems may not support the file name what we propose from the SAP. This is my assumption.
    Please go through the help provided by SAP for XML Port types
    http://help.sap.com/saphelp_nw04/helpdata/en/21/e9c975eb1911d6b2ea00508b6b8a93/frameset.htm
    Please check with the Java guys who are working at the target end, whehter they may help you to resolve.
    Thanks & Regards
    Vijayanand Poreddy

  • How to get the Max value of elements of type datetime

    Hi All ,
    I wanted to get the latest timestamp value ( datatype as datetime) from node list. I have following xml. In this xml, i want to get the modifydate element which has latest timestamp through xquery/xpath, it should return me following result 2011-09-29T17:21:17+10:00
    <CustomerList>
    <CustomerDetails>
    <name> Test 1</name>
    <status>active</status>
    <modifyDate>2011-08-20T17:21:17+10:00</modifyDate>
    </CustomerDetails>
    <CustomerDetails>
    <name> Test 2</name>
    <status>cancel</status>
    <modifyDate>2011-08-29T17:21:17+10:00</modifyDate>
    </CustomerDetails>
    <CustomerDetails>
    <name> Test 3</name>
    <status>active</status>
    <modifyDate>2011-09-29T17:21:17+10:00</modifyDate>
    </CustomerDetails>
    </CustomerList>
    i tried to use the
    //CustomerList/CustomerDetails/modifyDate[not(. <=../preceding-sibling::CustomerList/CustomerDetails/modifyDate) and not(. <=../following-sibling::CustomerList/CustomerDetails/modifyDate)]
    But it is not working on datetime datatype.
    Any help in this regard is much appreciated.
    Regards
    Edited by: user6736659 on Sep 5, 2011 6:15 AM

    Hi,
    The following XQuery should give you what you want :
    max(
    for $i in /CustomerList/CustomerDetails/modifyDate
    return xs:dateTime($i)
    )For instance, using Oracle SQL :
    SQL> var xmldoc varchar2(4000)
    SQL> begin
      2   :xmldoc := '<CustomerList>
      3  <CustomerDetails>
      4  <name> Test 1</name>
      5  <status>active</status>
      6  <modifyDate>2011-08-20T17:21:17+10:00</modifyDate>
      7  </CustomerDetails>
      8 
      9  <CustomerDetails>
    10  <name> Test 2</name>
    11  <status>cancel</status>
    12  <modifyDate>2011-08-29T17:21:17+10:00</modifyDate>
    13  </CustomerDetails>
    14 
    15  <CustomerDetails>
    16  <name> Test 3</name>
    17  <status>active</status>
    18  <modifyDate>2011-09-29T17:21:17+10:00</modifyDate>
    19  </CustomerDetails>
    20  </CustomerList>';
    21  end;
    22  /
    PL/SQL procedure successfully completed
    SQL> select xmlquery('max(
      2   for $i in /CustomerList/CustomerDetails/modifyDate
      3   return xs:dateTime($i)
      4  )'
      5  passing xmltype(:xmldoc)
      6  returning content
      7  )
      8  from dual
      9  ;
    XMLQUERY('MAX(FOR$IIN/CUSTOMER
    2011-09-29T17:21:17.000000+10:00

  • How to get the line number of source file?

    Hi,
    What is the equivalent in Java of the __LINE__ and __FILE__ macros in C? I want to print out the line number and the file name where the instruction is being executed.
    Thanks,

    If you are doing this because you're implementing your own debug logging, have a look at Log4J.
    You can configure it to log classnames, method names and line numbers of the code you're executing.

Maybe you are looking for

  • Is it possible to record the output of a Windows Laptop in iMove to create training videos?

    I have been asked by my company to look at creating some training videos of the software we make. The software itself runs on a windows platform. So I am looking for a way to capture the video from my work windows 7 laptop and import this into iMovie

  • Excise Register in Return Delivery

    Hi Experts, When we return the excisable material to vendor against Return delivery (122 movement), we make excise invoice thru T-code J1IS and excise transaction type MATD. When we see this excise entry in part 2 table J_1IPART2. Register Type is co

  • Mpeg, avi, flv in AIR app

    Hello, I've created an adobe AIR application which currently utilizes the flv playback component. What I would like to know is, is it possible to somehow add functionality to play other types of video such as mpeg2 and avi as well as flv. I would lov

  • Date format in essbase

    Hi all, I need some help in loading dates in my measures. My cube is deployed successfully but , my dates were of the format : *"yyyy/mm/dd hh24:mi:ss"* but essbase only loaded *"yyyy/mm/dd"* . We need to load the timestamp as well. Please help.

  • Restoring music from external HD to iTunes

    My old hard drive crashed. I have all the music backed up to an external hard drive. How do I get it on to new system? Just drag and drop into my music?