Skip to Content
avatar image
Former Member

Problem fetching data from table into ABAP Code

Hello all,

I've created a BRF+ application that fetches a record from Database through a dblookup table and stores it in Sal_table(which is a table created from data object).Now i want to retrieve this data in my ABAP Program.I'm confused about how to retrieve this table into my ABAP program's Internal table.

Thanks for your help. :-)

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Sep 09, 2017 at 03:40 AM


    i want to some clarifiacations that data object means

    create data lo_data type standard table of vbak.

    field_symbols:<lt_table> type standard table.

    assign lo_data->* to <lt_table>.

    like above code u can get data into ur abap program internal table.

    Add comment
    10|10000 characters needed characters exceeded

    • please correct my guess.

      table 'lt_tab' should be export to ur abap report and

      there u want import. right?

      for i will suggest two ways. use any one of below ways

      way1: in above report that table 'lt_tab' can be send to application server AL11

      using some coding technics like open dataset.

      after u export this table to application server and another ur abap report

      u write code for reading table from application server.

      which is one way to export and import to table.

      may be it takes some time.

      way2: use shared memory object technic.

      u can search in scn and study the how to use shared memory.

      u can easy get solution.

  • avatar image
    Former Member
    Sep 25, 2017 at 03:05 PM

    Hi Silent Viewer,

    I was facing kind of the same problem. My business requirement was to trigger an application message and give either an error or a warning to the user in the transaction to request a decision.

    For the purpose of triggering a message the action “log message” is available in BRFplus. This action results in an application log entry.

    If however the requirement is to show a message to the user in the application and to request a decision (i.e. warning message or information message) the action “log message” will not be sufficient.

    In this particular case the requirement can be fulfilled by creating an expression in form of a decision table. The result of the decision table can be defined as a structure containing elements like a message ID, message number and message type from the decision table.

    The same structure can be defined as the result data object in the BRFplus function. After the implementation of the BRFplus code template in the ABAP code the BRFplus function will return the structure as <la_any>. In the application ABAP code the returned structure can be utilized for message processing in the application.

    In my particular example I had the challenge to decide whether to show a warning message or an error message depending on the user group of the user running the application.

    Therefore I first used a database lookup action to get the actual user group from the database. Then I used a Boolean expression to determine if the user should see the message type “warning (W)” or “error (E)” depending on the identified user group.

    For the purpose of message processing I created a new message via SE91.

    I think that you should be able to use the result from the BRFplus function returned to the ABAP code as <la_any> for working with it during the runtime of your ABAP program.

    Hopefully this helps.

    Best regards,


    Add comment
    10|10000 characters needed characters exceeded