Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

alv grid question

adel_adel
Participant
0 Likes
555

Hi all,

I m trying to print the content of an internal table as a alv grid , but i miss the F1 documentation of the field component:

I have the following code :

Types :

BEGIN OF ty_s_temp,

application TYPE char20,

component LIKE t512e-lgart,

END OF ty_s_inrichting,

DATA :

it_temp like table of ty_s_temp.

...

After defining the fieldcatalog .. i use the function

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

i_callback_program = gd_repid

is_layout = gd_layout

it_fieldcat = fieldcatalog[]

it_sort = gt_sort

i_save = 'X'

TABLES

t_outtab = it_temp.

Can someone tell me what i m doing wrong ?

regards,

Hi all,

I m trying to print the content of an internal table as a alv grid , but i miss the F1 documentation of the field component:

I have the following code :

Types :

BEGIN OF ty_s_temp,

application TYPE char20,

component LIKE t512e-lgart,

END OF ty_s_inrichting,

DATA :

it_temp like table of ty_s_temp.

...

After defining the fieldcatalog .. i use the function

CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'

EXPORTING

i_callback_program = gd_repid

is_layout = gd_layout

it_fieldcat = fieldcatalog[]

it_sort = gt_sort

i_save = 'X'

TABLES

t_outtab = it_temp.

Can someone tell me what i m doing wrong ?

regards,

4 REPLIES 4
Read only

Former Member
0 Likes
531

Hi,

Just check didi you put this stmt.

gd_repid = sy-repid.

reward if helpful.

Regards

Azad.

Read only

0 Likes
531

Before calling this Fm put that stmt.

edited by azad.

Read only

Former Member
0 Likes
531

Hi Adel,

give the reference fieldname in the fieldcatalog for that field and also roll name and checkout if it works

wa_fieldcat-rollname = 'LGART'.
wa_fieldcat-ref_fieldname = 'LGART'.

Read only

adel_adel
Participant
0 Likes
531

Hi,

Sorry but the 2 options (gdrepid + rollname ) is not working.

What i want if every time i touch the F1 (help functionality) a text will be shown ,