How to read table fields form a table  having length of 7 characters

HI all,
could you please tell me how to read table fields from a table having length 7 characters, i have requirement that in my ztable i have 30 fields out of which 20 fields are location fields, i want to select 20 fields which have 7 characters length.
please could any body suggest me on this issue.
thanks,
sre.

hi,
try like this
create a data variable of type i as
data: len type i.
create internal table for 20 fields as
data:begin of itab,
           fld 1 type .......
        end of itab.
data:itab type itab1 occurs 0 with header line.
loop at itab2. // original internal table which all fields.
read table itab2 with index sy-tabix.
len = strlen (itab2-fld).
if len eq 7.
      move itab2 itab1.
      append itab1.
endif.
endloop.
if helpful reward some points.
with regards,
Suresh.A

Similar Messages

  • How to read the field value from Table Control

    Hello Experts,
    I am creating my first Table Control Screen. Basically I have to create a screen (102) with a table control which has 2 fields: A_QTY, B_QTY and 2 Buttons: SAVE, EXIT.
    When Clicked on 'SAVE' the data (MATNR) from a previous screen (101)  and the data (A_QTY, B_QTY) from the new screen (102) should be saved into a Z-table.
    Internal table t_data has 3 fields.
    MATNR
    A_QTY
    B_QTY.
    Table Control TC_RACK was declared like this:
    controls tc_rack type tableview using screen 0102.
    I/0 Fields:
    A_QTY type ZQTY.
    B_QTY type ZQTY.
    The screen Flow Logic:
    process before output.
    module status_0102.
      loop at t_data into w_data with control tc_rack.
      endloop.
    process after input.
      module exit_0102 at exit-command.
      loop at tc_rack.
      endloop.
    module user_command_0102.
    module status_0102output.
      set pf-status 'STATUS_102'.
      set titlebar 'TITLE_102'.
      describe table t_rack lines tc_rack-lines.
    endmodule.                 "status_0102 output
    process after input.
    module user_command_0615 input.
    case ok_code.
       when 'SAVE_RK'.
       when others.
    endcase.
    endmodule.                 "user_command_0102 input
    Now for eg, when the users enter values for A_QTY and B_QTY like this:
    A_QTY     B_QTY
    1000         2000
    3000         4000
    How can I read these values and pass them to T_DATA so that I can save it into Z-table?
    I greatly appreciate your help.
    I've gone through some previously posted threads and could not understand because my knowledge in this area is preliminary.
    Thanks a lot.
    Could you please let me know
    Edited by: dev a on Jan 13, 2010 2:46 PM

    Hi dev a
    You should use
      DATA: lv_name(30) TYPE c.
      FIELD-SYMBOLS: <QTY> type ZQTY.
    GET CURSOR FIELD lv_name.   "Get the field name in table control
    check sy-subrc = 0.
    assign  (lv_name) to <QTY>.  "Here you get the value in <QTY>
    check sy-subrc = 0.
    Also use <your table control>-current_line to get the table index uo're currently on.
    Hint: Do not use GET CURSOR LINE if you want to get table index since this gives you the line relative to dialog screen
    Good luck
    Dean Q.
    Edited by: Dean Q on Jan 13, 2010 11:11 PM

  • How to read specific fields from BW table  into ABAP?

    Hi Experts,
    Can someone help me how to use to FM: RFC_READ_TABLE to read specific fields from a BW  table '/bic/zcust_chO01' which DOESN't EXIST IN ABAP.
    I am getting an error in OPTIONS & DATA parameters.
    Any help would be higly appreciated with points.
    Thanks
    Dan

    Dan,
    FM: RFC_READ_TABLE is a RF FM so by providing BW system's RF destination you can get the values from required table.
    TRY this:
    CALL FUNCTION RFC_READ_TABLE destination <BW_RF_destination>
    Susanth.

  • How to read Editable field in a table

    Dear friends,
    i have a table with 5 columns( one column is editable field ( Amount column)) pls check the below screen shot, , its binded with an internal table , now i want to edit the amount columns ( for eg 100 ), could any one pls let me know how to capture the editable value ( ie 100 ), when i am trying to read amount field , i am getting the old value ( ie 15,000),
    Thanks
    Vijaya

    Hi Laxmi,
    I am able to read the values before edited and after editing. Code i have written is in the ONENTER action method. I have simply read the Table node values.
    1. Applicaiton data
    2. Values In Debugging mode by clicking on Enter button on the second row.
    3. Edit second value and click on Enter
    Regards,
    Ravikiran.K

  • How to add additional field into output table for RFIDYYWT(Generic Withholding Tax Reporting)

    Hi Experts,
    How to add additional field into output table VENDORS/WH TAX TYPES AND CODES in RFIDYYWT(Generic Withholding Tax Reporting).
    I have no idea how to start with, please give some advice.
    Thanks!
    Ice

    Dear Ice,
    Use Append structure, see given link:
    https://help.sap.com/saphelp_nw04s/helpdata/en/cf/21eb61446011d189700000e8322d00/content.htm
    Regards,
    Abbas.

  • Read LRAW field CLUSTD of table PCL2

    Hi All,
    I want to read LRAW field CLUSTD of table PCL2 .
    Pls suggest me how to read it.
    Regards,
    Anuj

    thanks,
    But like STXL table for  read LRAW data we use READ_TEXT fm.Is there also any FM by using this we can read PCL2 lraw data.
    regards,

  • How to update the field ZLSPR of table BSEG

    HI Friends,
    Can anyone tell me how to update the field ZLSPR of table BSEG? I've a 700 line abap program and I should include some logic in this program to make an entry into BSEG-ZLSPR. Is there any FM/BAPI available? Is BDC a healthy approach?. My team lead do not want me to use UPDATE statement....please help.
    Thanks in advans,
    Varsha.

    Hi,
    Hi ,
    You will need to group that radiobuttons so that SAP knows they are linked together. To do this using the grahical layout editor simply select all the radiobuttons and then right click on them, Now choose define group. Once you have done this you should not need any of the "clear" or "='X'" statements SAP should control it all for you.
    hope this helps
    Reward if found helpfull...
    Venkoji Babu.

  • How to read data from an internal table into a real table?

    Hello experts,
    I'm relatively new to ABAP and I'm trying to figure out how to read data from an internal table into a table that I created.  I'm trying to use the RRW3_GET_QUERY_VIEW_DATA function module to read data from a multiprovider.  I'm trying to read data from the e_cell_data and e_axis_data tables into a table that I've already created.  Please see code below.
    TABLES MULTITAB.
    DATA:
      query_name TYPE RSZCOMPID,
      s_cubename TYPE RSINFOPROV,
      t_cell_data TYPE RRWS_T_CELL,
      t_axis_data TYPE RRWS_THX_AXIS_DATA,
      t_axis_info TYPE RRWS_THX_AXIS_INFO,
      wa_t_cell_data like line of t_cell_data,
      wa_t_axis_data like line of t_axis_data,
      w_corp_tab like line of t_cell_data.
    s_cubename = 'CORP_MPO1'.
    query_name = 'Z_corp_test'.
        CALL FUNCTION 'RRW3_GET_QUERY_VIEW_DATA'
           EXPORTING
             i_infoprovider           = s_cubename
             i_query                  = query_name
            i_t_parameter            = query_string_tab
           IMPORTING
             e_cell_data              = t_cell_data
             e_axis_data              = t_axis_data
             e_axis_info              = t_axis_info.
    If anyone has any information to help me, I would greatly appreciate it.  Thanks.

    Hi,
    <li>Once you call the function module RRW3_GET_QUERY_VIEW_DATA, lets say data is available in the corresponding tables e_cell_data e_axis_data which you have mentioned.
    <li>Modify your internal table defined for other purpose, with data from e_cell_data e_axis_data like below.
    LOOP AT t_cell_data INTO wa_t_cell_data.
      "Get the required data from t_cell_data.
      MOVE-CORRESPONDING wa_t_cell_data TO it_ur_tab.
      "Modify your internal table wih data
      MODIFY it_ur_tab TRANSPORTING <field1> <field2> <field3>.
    ENDLOOP.
    LOOP AT t_axis_data INTO wa_t_axis_data.
      "Get the required data from t_cell_data.
      MOVE-CORRESPONDING wa_t_axis_data TO it_ur_tab.
      "Modify your internal table wih data
      MODIFY it_ur_tab TRANSPORTING <field1> <field2> <field3>.
    ENDLOOP.
    Thanks
    Venkat.O

  • How to pick the fields of ABC table in Payslip

    How to pick the fields of ABC table in Payslip, So i want to add the calender days(absent days) in my payslip

    You can do it through PE51_CHECKTAB
    Yogesh

  • How to read a current line in table control in dialoug program ?

    How to read a current line in table control in dialoug program ?
    this code required to provide F4 help.

    Hi,
    You can use the variable <tablecontrol>-Currentline as Ebus says but there is a problem with this.Suppose there are 10 records in the table control with only 5 records visible then when u press a page down and press F4 the first record in page 2,  <tablecontrol>-Currentline will have value of 1 instead of 6.So you will need to write a small logic for that.
    index = ( <tablecontrol>-topline - <tablecontrol>-currentline ) + 1.
    read internal table itab at index.
    Hope this helps.
    Regards,
    Vivek

  • How to read XML message present in Table using PL/SQL?

    Hi,
    How to read XML content present in Table using PL/SQL .And is it possible to parse the xml uisng xslt and insert xml output in same table again ?
    Thanks!

    Late reply, but hopefully better late than never.
    You can possibly do it all via a single SQL statement, such as {message:id=4232077}
    XMLTable Syntax can be found at http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions228.htm#CIHGGHFB (for 10.2 users) else find your correct version at http://www.oracle.com/technology/documentation/index.html

  • How to print out the Forms and Table fields relationship, data mapping?

    I create a forms and tables relationship inside the Form Developer 11g, once I created the Data relationships between the form data field and the Table column name. I don't have any command to print it out, such as Layout Wizard.
    Are there any programs on Windows platform can print it out?

    hi all,
    i have try to do this
    public static void Readbinary() throws Exception
              String file = "D:\\05-09.190501+0800";
              DataInputStream dis = new DataInputStream(new FileInputStream(file));
              //but then how to read the content ??????can you give me more hint ?????
    i have find the netflow v5 structure by C
    struct NFHeaderV5{
    uint16_t version; // flow-export version number
    uint16_t count; // number of flow entries
    uint32_t sysUptime;
    uint32_t unix_secs;
    uint32_t unix_nsecs;
    uint32_t flow_sequence; // sequence number
    uint8_t engine_type; // no VIP = 0, VIP2 = 1
    uint8_t engine_id; // VIP2 slot number
    uint16_t reserved; // reserved1,2
    struct NFV5{ 
    ipv4addr_t srcaddr; // source IP address
    ipv4addr_t dstaddr; // destination IP address
    ipv4addr_t nexthop; // next hop router's IP address
    uint16_t input; // input interface index
    uint16_t output; // output interface index
    uint32_t pkts; // packets sent in duration
    uint32_t bytes; // octets sent in duration
    uint32_t first; // SysUptime at start of flow
    uint32_t last; // and of last packet of flow
    uint16_t srcport; // TCP/UDP source port number or equivalent
    uint16_t dstport; // TCP/UDP destination port number or equivalent
    uint8_t pad;
    uint8_t tcp_flags; // bitwise OR of all TCP flags in flow; 0x10
    // for non-TCP flows
    uint8_t prot; // IP protocol, e.g., 6=TCP, 17=UDP, ...
    uint8_t tos; // IP Type-of-Service
    uint16_t src_as; // originating AS of source address
    uint16_t dst_as; // originating AS of destination address
    uint8_t src_mask; // source address prefix mask bits
    uint8_t dst_mask; // destination address prefix mask bits
    uint16_t reserved;
    but how to translate the structure to java,then get the data from the file ?
    Edited by: 903893 on Dec 21, 2011 10:52 PM

  • How  to set some fields of a table, not fields form ..

    Hi,
    I have a form based on a table with a few fields and others fields on the same table whose don't appear in the form.
    I want to set the others fields of this table and i use the following code (ex) :
    p_session.set_value(
    p_block_name => 'DEFAULT',
    p_attribute_name => '_REMARQUSER',
    p_value => PORTAL.WWCTX_API.GET_USER );
    I had put this code in the advanced plsql section but it DOES NOT WORK.
    after form :
    Erreur interne (WWC-00006)
    Une erreur inattendue s'est produite : ORA-06502: PL/SQL : erreur numérique ou erreur sur une valeur (WWV-16016)
    Une erreur inattendue s'est produite : ORA-06502: PL/SQL : erreur numérique ou erreur sur une valeur (WWV-16016)
    (WWV-00000)
    ORA-01007: la variable n'est pas dans la liste SELECT (WWV-11230)
    Le chemin de la préférence n'existe pas : ORACLE.WEBVIEW.PARAMETERS.3137_LRCWEB_REMARQUES_571188203 (WWC-51000)
    before processing :
    Erreur interne (WWC-00006)
    Une erreur inattendue s'est produite : ORA-06502: PL/SQL : erreur numérique ou erreur sur une valeur (WWV-16016)
    (WWV-00000)
    after processing :
    Erreur interne (WWC-00006)
    Une erreur inattendue s'est produite : ORA-06502: PL/SQL : erreur numérique ou erreur sur une valeur (WWV-16016)
    (WWV-00000)
    I would appreciate any help on the problem.
    Thanks, Pat

    Did you try modifying the package body?
    I tried this code in my package body and it worked fine

  • How to do an interactive form with tables

    I've been asked to recreate an interactive form that was created using several tables. The tables are made up of cells that contain labels of what information is required, followed by blank cells where the user can put the information (text fields). A few of the cells are to contain drop down menus that will contain a list of answers to choose from (combo boxes). I kind of like the idea of doing it in a table just because it keeps everything lined up automatically.
    I am a Lynda.com subscriber, and I found a course on that site that shows how to create interactive forms with InDesign, but it just breezes past doing it with tables. It says you can do it, but doesn't show how. The problem is, one table can contain all three types of cells that I plan to use. I can select the whole table and then choose "Type" in the Buttons and Forms panel, but I would think that would turn the whole table into just one type of field. I can't seem to figure out how to select individual cells of the table to choose different types.
    Is there a way to do that?

    This is work around
    1- Draw a rectangle frame, and without release mouse use up and right arrow key to define rows and columns count and use Ctrld+ down arrow key to reduce space between rows and Ctrl+left arrow key to reduce space between column.
    2- Covert frames to Buttons.

  • How to deactivate the fields in a table control of a standard screen

    Hi,
       I have an requirement to deactivate the fields in a table control of a standard screen in ME22n transaction.I am using a BADI "ME_PROCESS_PO" and in item mathod i am looping at screen for the screen field name in the table control.But it is not working. Can anyone give me the possible solution . Thanx in advance.
    With Regards,
    Ajit.

    >
    Vivek Joshi wrote:
    > Hello Router ,
    >                      I do not want to set the focus , I want to get focus . User can click on any cell in the table and then press a button in the toolbar . Now in the event handler of the button i want to under which column User has set the focus .
    > I hope , I am clear now .
    > Thanks for your help
    > Regards
    > Vivek
    An yet you keep getting suggestions of how to set the focus.   I looked through the API documentation and I don't see anything that would suggest you can request to see where the current focus is.  Perhaps someone might still come along with a solution, but my hopes wouldn't be too high at this point.  I can pass the requirement onto Product Definition, as the use case does seem interesting.  Perhaps it is something we have even considered in the past. 
    But for now, there might be a better way to solve your problem.  It will probably mean redesign the interaction.  What exactly are your requirements?  Do you need to be able to get the data in a particular cell of table when a button is clicked?  Just throwing out some ideas here, but maybe just use the lead selection to select the row, but then have a button choice to choose the action associated with the column you want. A hack for sure - but it might work.  Also it doesn't help you right now, but in the near future update to NetWeaver 7.0, WDA does have a onColSelect event for the table.

Maybe you are looking for

  • Built-in isight just absolutley not working.

    Hello everybody. I have been racking my brains now for about a week over the lack of fuctionality of my isight camera. I bought my MacBook at the end of January, and then, on the 21st March, the camera just stopped working. In PhotoBooth I get the me

  • Placed PNG images which are made in 3ds max are not shown correctly in Ilustrator

    Hello, Why placed PNG images (renders) which are made in 3ds max (and then photoshoped) are not shown correctly in Ilustrator. Images appear very noise so you can't see almost a thing. the same pictures (renders) made in Revit appear ok. Is there a s

  • Trash not working correctly

    I do not have the finder options "Empty Trash" or "Secure Empty Trash". Everything I delete is emptied immediately. I do not have the finder option "Empty Trash Securely" checked. Can anyone help me with this issue?

  • Flex 3 Beta 3

    I have installed Flex 3 latest Beta. Now, when I am working in class editor it colors same words shown on the screen. How can I get rid of this? Thanks

  • Upgrading from 1.4.2_04 to 1.4.2_06, 1.4.2_07 or 1.4.2_08 ?

    I am in need to upgrade my JMV from 1.4.2_04 due to known JVM issues solved in 1.4.2_06 and newer. I seek the most stable version and therefore need to pick between 06, 07 or the latest 08. Which version is considered the less risky more used and mor