Skip to Content

Need to read the values from the screen?

Hi Guys,

im in a need to read the vales from the scerren and display it in a table.

:---->

need a tool to call the transaction in background and read the values it(the transaction) displays in background.

into my internal table and display the same in the form of table.

Could any one suggest how could i do this...

thanks & regards

chinta

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    Posted on Jun 02, 2012 at 01:47 PM

    Hi Satish,

    as you are quite new to SAP, please let me explain:

    SAP has (mainly) 2different ways of visible output:

    1 - List. This is a list that can be printed and can be retrieved via EXPORTING LIST TO MEMORY

    Online you will see a plain grey background with black characters if not changed by program

    2 - Screen. A collection of input and output fields and further screen elements. This can not be

    read except online on your screen. In background, screen output is not created because a

    screen needs a SAPGUI. On a screen you may have GUI controls as i.e. ALV grids, trees,

    pictures.

    If a data table is created using ALV technique, it is converted into ALV list in background. You can

    Gain Programmatic Access to Data of SAPGUI ALV Reports

    as shown here.

    Regards

    Clemens

    Add a comment
    10|10000 characters needed characters exceeded

    • Hi Clemens,

      Thank you for the link, it was really helpful to me.

      i did as it said, i successfully got the data form the list 'IH06'.

      Now, i wd like to display the same data in the out-put tables of the function module.

      i dont know how to transfer data from field-symbols to internal tables and then to the OutPut table Structures.

      once again thank you verymuch.... for the link.

      regards

      chinta

  • Posted on Jun 01, 2012 at 10:55 AM

    Hi,

    You should first export the report output to memory using below statement.

    SUBMIT report EXPORTING LIST TO MEMORY

    AND RETURN.

    and then you can read it from there using below funciton module.

    CALL FUNCTION 'LIST_FROM_MEMORY'

    TABLES

    listobject = list_tab

    EXCEPTIONS

    not_found = 1

    OTHERS = 2.

    IF sy-subrc = 0.

    CALL FUNCTION 'WRITE_LIST'

    TABLES

    listobject = list_tab.

    ENDIF.

    Regards,

    Rajesh Akarte

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 01, 2012 at 11:17 AM

    Hello Satish, can you please tell us why you want to read data from background screen

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 02, 2012 at 02:49 AM

    Hi,

    Your requirement is not clear. Is this what you want?

    - read the inputted values of any all screens in any transaction ?

    - this will be in background reading?

    - then you want to fetch those values to your internal table then insert into a database table?

    It seems like it is same as saving of logs?

    Thanks,

    Jake

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 06, 2012 at 01:35 PM

    Thank you all specailly to Clemens. i did successfully fetched the data from the list transaction IH06.

    Clemens thank you for the blog link and i also moved data from field-symbols to the out-put stucture using the code below.

    data it_datar type xxx "(out-put table structure).

    loop at <lt_data> assigning <it_data>.

    move-corresponding <it_data> to it_datar.

    append it_datar to OUTPUT_TABLE.

    endloop.

    thank you all once again for your help and im closing this thread.

    thanks & regards

    chinta

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.