Application Development 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: 

REUSE_ALV_GRID_DISPLAY input value

Former Member
0 Kudos

Dear all,

I have having a problem in capturing the input value in ALV report.

I am using the funciton module REUSE_ALV_GRID_DISPLAY and have created a subroutine USER_COMMAND to execute whenever the user presses the button.

I have created a internal table REPORT_ITAB with field CLABS which is suppose to capture the user input value. I have set in the FIELD_CAT-INPUT = 'X" and FIELD_CAT-EDIT = 'X'.

It works find when user is executing the report using F8, but when they type a value in the field CLABS and press on the button, the internal table REPORT_ITAB in subroutine USER_COMMAND only displays 0 as the value, which is the default.

Now I would like to ask how will I be able to capture the INPUT or UPDATED value from the ALV.

Thanks

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

In the FM REUSE_ALV_GRID_DISPLAY ,there is a parameter ls_setting.

you need to pass ls_setting-EDT_CLL_CB = 'X'.

Hope this helps,

Raj

3 REPLIES 3

Former Member
0 Kudos

hi,

I have tried for the same, its working fine. Please try to give me explanation.

Thanks,

Saurin Shah

Former Member
0 Kudos

Hi,

In the FM REUSE_ALV_GRID_DISPLAY ,there is a parameter ls_setting.

you need to pass ls_setting-EDT_CLL_CB = 'X'.

Hope this helps,

Raj

Former Member
0 Kudos

hi,

In user command you have to capture 'OK' function code , and write the code

CALL METHOD <object>->CHECK_CHANGED_DATA
*        IMPORTING
*          E_VALID   =
*        CHANGING
*          C_REFRESH = 'X'
         .

  CALL METHOD CL_GUI_CFW=>FLUSH.

  CALL METHOD CL_GUI_CFW=>DISPATCH.

for reflecting the changes .

Regards

Gaurav