Skip to Content
avatar image
Former Member

Program dumps when using "cl_salv_bs_runtime_info=>get_data_ref()", Table field larger than 255 c

Hi guys, I need some help with the “cl_salv_bs_runtime_info=>get_data_ref()” method I am using this method, to get data from SAPGUI ALV, which is submitted in the background.

Problem: one of the fields of the table, which is used for the ALV has the type “char” with the length “300”. I am not the one who created this table and I am not allowed to change it.

When the “cl_salv_bs_runtime_info=>get_data_ref()” imports the data, it is creating an Structure with field length 255 and the program dumps every time when it tries to assign the imported data to that Structure.

Does anybody know how I can solve this problem without changing the table?

Many thanks in advance

Add comment
10|10000 characters needed characters exceeded

  • This sounds very strange. Why would you want to get data from SALV? You have to put it there to start with so you already have it somewhere in your program(s).

  • Please post the short dump, because your phrasing let us think that the short dump occurs in a standard program, but I think's it's an error in your custom program.

  • Get RSS Feed

2 Answers

  • Dec 29, 2017 at 11:27 PM

    Hi,

    Put that ALV data in some medium that you can fetch from your program. Such as a DB table, ABAP/SAP memory , the suggestions here or any other possibility you see fit.

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 30, 2017 at 10:52 PM

    Did you try GET_DATA instead of GET_DATA_REF (and declare the internal table in your own program with the field defined with 300 characters) ?

    EDIT: Please post the short dump, because your phrasing let us think that the short dump occurs in a standard program, but I think's it's an error in your custom program.

    Add comment
    10|10000 characters needed characters exceeded