Skip to Content
1

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

Jan 31, 2017 at 08:42 AM

286

avatar image
Former Member

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

10 |10000 characters needed characters left 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).

0

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.

0
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Iftah Peretz
Dec 29, 2017 at 11:27 PM
0

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.

Share
10 |10000 characters needed characters left characters exceeded
Sandra Rossi Dec 30, 2017 at 10:52 PM
0

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.

Share
10 |10000 characters needed characters left characters exceeded