Read the List output fields

Hi All,
        I want read the line of the interactive.But in that line i nedd only 3 field values so when i try to read the line using the READ LINE ststement and try to assign the read value to a field it is going for the dump and saying conversion problem. So help me on reading a selected line are clicked line in interactive report and take only the required 3 field values from that entire line.Sample code will help a lot.
Thanks in Advance.

hi Shri,
Do not use Read Line statment. instead of that use SY-LISEL, this will have the
entire line which you double clicked row, so in this you will get entire data of that row
other wise, You can use the HIDE technique, so here you need to call the At-USER COMMAND, so you will get the values to the next list level,
here are some of example codes which you want
http://www.guidancetech.com/people/holland/sap/abap/yusrlock.htm
http://www.erpgenie.com/abap/ireports.htm
http://www.planetsap.com/Z_interactive_reporting_1.htm
http://www.planetsap.com/Z_interactive_reporting_2.htm
Regards
Sudheer

Similar Messages

  • How to find out the list of field exists for a particular transaction

    Hi all,
    Can u please help me find out the list of field exits available for a particular Tcode?
    Is it similar to User exit or . . . . ?
    Thanks,
    C.Selvaraj
    SAP-QM

    Create a program and add this code to find user exit
    tables : tstc, tadir, modsapt, modact, trdir, tfdir, enlfdir.
    tables : tstct.
    data : jtab like tadir occurs 0 with header line.
    data : field1(30).
    data : v_devclass like tadir-devclass.
    parameters : p_tcode like tstc-tcode obligatory.
    select single * from tstc where tcode eq p_tcode.
    if sy-subrc eq 0.
      select single * from tadir where pgmid = 'R3TR'
      and object = 'PROG'
      and obj_name = tstc-pgmna.
      move : tadir-devclass to v_devclass.
      if sy-subrc ne 0.
        select single * from trdir where name = tstc-pgmna.
        if trdir-subc eq 'F'.
          select single * from tfdir where pname = tstc-pgmna.
          select single * from enlfdir where funcname =
          tfdir-funcname.
          select single * from tadir where pgmid = 'R3TR'
          and object = 'FUGR'
          and obj_name eq enlfdir-area.
          move : tadir-devclass to v_devclass.
        endif.
      endif.
      select * from tadir into table jtab
      where pgmid = 'R3TR'
      and object = 'SMOD'
      and devclass = v_devclass.
      select single * from tstct where sprsl eq sy-langu and
      tcode eq p_tcode.
      format color col_positive intensified off.
      write:/(19) 'Transaction Code - ',                        "#EC NOTEXT
      20(20) p_tcode,
      45(50) tstct-ttext.
      skip.
      if not jtab[] is initial.
        write:/(95) sy-uline.
        format color col_heading intensified on.
        write:/1 sy-vline,
        2 'Exit Name',                                          "#EC NOTEXT
        21 sy-vline ,
        22 'Description',                                       "#EC NOTEXT
        95 sy-vline.
        write:/(95) sy-uline.
        loop at jtab.
          select single * from modsapt
          where sprsl = sy-langu and
          name = jtab-obj_name.
          format color col_normal intensified off.
          write:/1 sy-vline,
          2 jtab-obj_name hotspot on,
          21 sy-vline ,
          22 modsapt-modtext,
          95 sy-vline.
        endloop.
        write:/(95) sy-uline.
        describe table jtab.
        skip.
        format color col_total intensified on.
        write:/ 'No of Exits:' , sy-tfill.                      "#EC NOTEXT
      else.
        format color col_negative intensified on.
        write:/(95) 'No User Exit exists'.                      "#EC NOTEXT
      endif.
    else.
      format color col_negative intensified on.
      write:/(95) 'Transaction Code Does Not Exist'.            "#EC NOTEXT
    endif.
    at line-selection.
      get cursor field field1.
      check field1(4) eq 'JTAB'.
      set parameter id 'MON' field sy-lisel+1(10).
      call transaction 'SMOD' and skip first screen.
    Rewards if useful........................
    Minal

  • How can i make the input/output field to a multiple lines in ModulePool...

    hi all...
    can any one please let me know, is there any possibility thru Module Pool program where i can make the input/output field to a multiple lines...
    say, when we drag & drop the input/output field on the screen - it'll come with single line display. so, how to make the same field to multiple lines field.
    rather i can say my question like, how to increase the height of the input/output field.
    Desired Functionality:
    • The user wants to display a long text.
    • now the input/output field should not display the record as a single line, now the field has to display the text in multiple lines (something like wrap option in ms excel).
    hope u got my question...
    please help me in this regards...

    hi Rengith, i'm not using Text Field, i'm using Inpu/Output Field to display the long text.
    If u mean text field as input/output field then can u let me know the process for this, how to do the same thru module pool program...
    Edited by: murashali on Mar 18, 2008 1:36 PM

  • Capture the list of fields from Report Explorer?

    Is there a way to readily capture the list of fields used in a given report from the report explorer or field explorer?  I want to streamline my command to only select the fields in use for a given report, and it would be easier if I had a list for each.

    There are usually stored procedures or views available in the database that will list the fields in tables.  I don't think the API is consistent, though, so you should check your database reference.
    The other thing that you could do is use "select *" during development, then note which fields are checked in the field explorer (indicating it's used) and replacing the * with the list of fields once your more or less done with the report.
    Note that if you're not using an SQL command (selected a table instead), I'm pretty sure Crystal only requests the fields from the table that are used by the report.
    HTH,
    Carl

  • Printing the list output.

    Hi All,
    I want to print the output of the report. I am printing it using NEW-PAGE PRINT ON . and concluded by NEW-PAGE PRINT OFF. I am doing this under the usercommand.  The problem is,, when I say print,(user command), I can print the output but the it is leading to the previous screen. I want to be in the same screen after my printing. I am pasting the code also. Can any one suggest me, where I am doing the mistake.
    <b><REMOVED BY MODERATOR></b>
    CASE P_UCOMM1.
        WHEN 'PRINT11'.
          CALL FUNCTION 'GET_PRINT_PARAMETERS'
            EXPORTING
              COPIES         = '1'
              DESTINATION    = 'LOCL'
              IMMEDIATELY    = 'X'
              LINE_COUNT     = 25
              LINE_SIZE      = 132
              NO_DIALOG      = 'X'
              USER           = SY-UNAME
              ABAP_LIST      = 'X'
            IMPORTING
              OUT_PARAMETERS = L_PARAMS
              VALID          = L_VALID.
    &--'REUSE_ALV_HIERSEQ_LIST_DISPLAY'--
          DATA:FLAG(1).
          CLEAR FLAG.
          IF L_VALID <> SPACE.
            NEW-PAGE PRINT ON PARAMETERS L_PARAMS NO DIALOG.
            CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
              EXPORTING
                I_CALLBACK_PROGRAM       = GD_REPID
               I_CALLBACK_PF_STATUS_SET = 'PF_STATUS_SET1'
               I_CALLBACK_USER_COMMAND  = 'EXEC'
                IS_LAYOUT                = M_LAYOUT
                IT_FIELDCAT              = I_FLDCATALOG
                IT_EVENTS                = I_EVENTS
                I_TABNAME_HEADER         = 'I_MHEAD'
                I_TABNAME_ITEM           = 'I_MITEM'
                IS_KEYINFO               = M_KEYINFO
              TABLES
                T_OUTTAB_HEADER          = I_MHEAD
                T_OUTTAB_ITEM            = I_MITEM.
            REFRESH I_FLDCATALOG.
            CLEAR M_LAYOUT.
            CLEAR M_KEYINFO.
            NEW-PAGE PRINT OFF.
            CLEAR L_PARAMS.
            CLEAR L_VALID.
          ENDIF.
          LOOP AT I_HITEM INTO W_HITEM.
            IF W_HITEM-CHECK = 'X'.
              W_HITEM-PFLAG = 'PRINTED'.
              MODIFY I_HITEM FROM W_HITEM INDEX SY-TABIX TRANSPORTING PFLAG
            ENDIF.
          ENDLOOP.
          IF SY-SUBRC = 0.
            LOOP AT I_PFLAG INTO W_PFLAG.
              UPDATE RESB SET WEMPF = 'X'
                          WHERE AUFNR = W_PFLAG-AUFNR
                            AND MATNR = W_PFLAG-MATNR
                            AND DUMPS = 'X'.
              COMMIT WORK.
              WAIT UP TO 1 SECONDS.
            ENDLOOP.
          ENDIF.
      ENDCASE.
    Thanks
    Ramesh.
    Message was edited by:
            Alvaro Tejada Galindo

    Hi,
    When you get the list output .
    click on print button to print it. A dialog box will come.
    In that dialog box, there will be settings button . when you click on this button, you will get many options and the value of those options that can be set defualt for that report output.
    In that there is s option of printer , select that option  and enter a value and then set that as default.
    I hope this will solve your problem.
    For any more help, please revert back.
    Thanks and regards
    Gurpreet Singh

  • How can I extract the list of fields for every view of the material master?

    Hello SAPients,
    Is there a table or a FM where I can extract the list of fields that every view of material master have?
    I need to create a dynamic selection-screen with something like this:
    Basic Data
        mara-matnr
        makt-maktx
        mara-meins
    Sales: Sales Organization Data
        mara-matnr
        makt-maktx
    Thank you in advance.

    Hi
    Try to run the trx OMT3B: this the customizing where the dynpro for the views are defined: perhaps u can find something can help you.
    Max

  • From where does exachk reads the list of stoage nodes that should be checked ?

    exachk automatic tries to check a storage node thats closed. From where does exachk reads the list of stoage nodes that should be checked ?

    Great! you found it and thanks for sharing the location. 
    Did you find it thought script or Google? 

  • Adding value to List and Reading the list on submit

    Hi all,
    I want to create a page where it would have two region.
    Region 1 --> Contain the list of employee (report region)
    This will have a search box with java script enabled to perform search without submitting the page.
    And a link on the employee name, which when clicked the page should add the employee to the second region (List)
    Region 2 --> Contain the employee that is selected/clicked from the Region 1.
    Upon submission (ADD Button clicked) of the page. I will take the employee_ids in the list and add it into a table in the database.
    Does someone has an similar example I can take a look?
    Thanks.
    -Joel

    Hi Andy,
    Thanks for answering. That gives me idea how to deal with List.
    I have decided to go with creating a popup window with the region of list employee.
    when emp name is click it should trigger a page process.
    I took the javascript from Denes example here...
    SUBMIT REQUEST when using a Row link to navigate to a page
    javascript:f_setItem ('P1_HIDDEN_ITEM', #COLUMN_NAME#);doSubmit('SOME_REQUEST') ;
    It works fine if I don't add the 'doSubmit', i can check that the session state value is updated.
    When i do add the doSubmit, my page process is complaining that the item value is NULL which i found is true after i checked the session state value.
    I still don't have idea what's going on.
    Thanks.

  • How to send the edited output fields of an ABAP report into internal table

    Hi,
    I had edited the output fields of an ALV GRID report now how can i again update the fields of the internal table with this edited new data .
    Please suggest me if any method or FM exists for this.
    Thanks in advance
    With Regards
    Ajay

    hi,
    you have to use the following code in the user command
    *&      Form  command
    *       TO HANDLE USER ACTIONS AGAINST PF-STATUS
    *      -->UCOMM      text
    *      -->SELFIELD   text
    FORM COMMAND USING UCOMM LIKE SY-UCOMM SELFIELD TYPE SLIS_SELFIELD.
      DATA : LV_OKCODE TYPE SY-UCOMM.
      LV_OKCODE = UCOMM.
      CASE LV_OKCODE.
        WHEN 'PROCESS'. "button
               selfield-refresh = 'X'.
      ENDCASE.
    ENDFORM.                    "command
    hope this helps
    Regards
    Ritesh

  • Can I export the list output to screen.

    HI,
    My concept is I want to export the output of the list into a screen.
    Can anybody help
    regards
    Mave

    Hi Mave,
    If yours is an ALV list, you can create your own custom button in the application toolbar for Export and using ALV event handling, you can implement the functionality to be incorporated in the custom export button. In the implementation, you can create a screen with table control and then the same internal table data used to display the list can be used to transfer data into the table control.
    Cheers
    sharmistha

  • How do I read the enterprise custom fields in C#?

    Hello,
    At the moment I am stuck trying to read out an enterprise custom field in an office Addin for Project.
    I know I can read out the custom fields for tasks like this and I am also able to get the project name.
    app = this.Application;
    //Custom field of a task
    wbs = app.ActiveCell.Task.Text1;
    //Project name
    projectName = app.ActiveProject.Name;
    But I don't know how I can read an enterprise custom field. 
    I am trying to get the red marked field from the screenshot
    Thx for your help in advance 

    Hi Pascal,
    Following code snippet should help you out:
    MSProject.PjField customField = app.FieldNameToFieldConstant("SAP Project Code");
    app.ActiveProject.ProjectSummaryTask.GetField(customField);
    Hope this helps

  • Refreshing  the  list  output   upon clicking  a  push button

    Hi All,
       How  do i  refresh the <b>list  output(not ALV)</b>  already  displayed  upon  clicking  a  push -button  under  AT  USER-COMMAND ,if  at   all   it  is  feasible ?
        Any  pointers will be rewarded with points.......
    Regards
    jaman
    Message was edited by:
            ABAP Techie
    Message was edited by:
            ABAP Techie
    Message was edited by:
            ABAP Techie
    Message was edited by:
            ABAP Techie

    Hi,
    Try with the method "refresh_table_display". 
    It has the syntax very similar to creating the table. It has two parameters. In the first one, you can mention if you want to refresh only the data (the icons are not refreshed)
    Regards,
    Bhaskar

  • Reading the data from field symbol internal table //

    Hi,
    There are 2 internal tables defined as Fieldsymbols (type any) and I need to retrive data from second internal table based on a field value in first internal table.
    Let's assue the name internal table 1 is <it_itab1>, 2nd internal table name is <it_itab2> and the work areas are <wa_itab1> and <wa_itab2>.
    The existing logic :
    LOOP at <it_itab1> ASSIGNING <wa_itab1>.
      ASSIGN COMPONENT 'XYZ' OF STRUCTURE <wa_itab1> TO l_field6.
      LOOP AT <it_itab2> ASSIGNING <wa_itab2>.
        ASSIGN COMPONENT 'XYZ' OF STRUCTURE <wa_itab2> TO <p_field7>.
        IF <p_field7> = l_field6.
    do the required business.
        ELSE.
          *     do the required business.
        ENDIF.
      ENDLOOP.
    ENDLOOP.
    The requirement of reading second internal table was achieved by putting loop on the internal table but its giving considerable effect on performance !!
    Is there any way to use READ statement in my case OR any way of putting WHERE condition on loop statement of second internal table ??
    Thank you !!

    Use the below Logic.
    Loop at Itab1 into wa_itab1.
        Loop at itab2 into wa_itab2 where p_field7 = wa_itab1-xyz or I_field6.
    do the required business.
        endloop.
        Loop at itab2 into wa_itab2 where p_field7 <> wa_itab1-xyz or I_field6.
    do the required business.
        endloop.
    endloop.
    Hope it is useful...

  • Reading the listi contents from Dbx

    There is one way I can save my optimization initiation with my product. Is there any simple way to associate the register variables to the actual local variables.
    In this scenario which values correspondes to "len" ....
    (dbx) n
    stopped in main (optimized) at line 29 in file "fileex.cc"
    29 int len = ftell(myfp);
    (dbx) listi
    int len = ftell(myfp);
    0x00010fe4: main+0x0084: call ftell [PLT] ! 0x217a8
    0x00010fe8: main+0x0088: mov %l7, %o0
    0x00010fec: main+0x008c: mov %o0, %i0
    Thank you

    In optimized code, there is usually no simple relationship between registers and auto variables. For example, an auto variable might be kept in one register for part of a function, and in another register elsewhere in the function -- or not in any register at all, if flow analysis can eliminate the use of the variable.
    You can usually tell what is happening around a function call if you are familiar with assembler code for the platform, however. Let's consider your sample code.
    On sparc, the instruction after a call or jmp is executed before the call or jmp if it is in the "delay slot". The first function parameter, if it fits in a register, is passed in register %o0. The return value of a function, if it fits in a register, is found in register %o0.
    So in your example, register %i7 is passed to function ftell as the first parameter, so it corresponds to myfp. The returned value is in %o0, and is stored in len. It appears that in this section of code, len is in register %i0.

  • How can I read the PO output status ?

    Hi guys,
    I need to read programatically the exact date/time for PO output (if successful of course).     In other words, I want to keep a record of the exact date/time for those PO's that were successfully sent to the vendor (any medium).
    Is it possible ?
    Thanks for your help!!! =)
    Diego

    Hi Diego,
    Do you try with transaction <b>BBP_TRIGG_PO</b>, the output of this is all the information you need: <i>Status, Doc Type, Doc Number, Generation date, time, Medium</i> or do you need a <b>FM</b>?
    I hope this helps you.
    Regards,
    Jose Luis D.

Maybe you are looking for