Skip to Content
-1

Two interactive options set pf-status and user command on ALV Reports.

Jun 20, 2017 at 10:49 AM

129

avatar image

Hi Team,

Can I use the two interactive options set pf-status and user_command action on the ALV Report output.is it possible.please suggest me.

Regards,

Kiran

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Richard Harper Jun 20, 2017 at 02:25 PM
1

Which ALV type ? Object or Function module.

The answer to both is yes you can, but the way you do it is different. Object is via event handlers, Function groups via call back routines. this is all fairly well documented.

Show 7 Share
10 |10000 characters needed characters left characters exceeded

throught function modules "ALV_REUSE_HIER_LIST_DISPLAY".When i used set pf-status..then.i_call_back_user_command .routine is not triggered,while checking in debugging.

How can I achieve this.

Regards,

kiran

0

The only existing released function module for displaying an ALV as a hierarchical-sequential list is REUSE_ALV_HIERSEQ_LIST_DISPLAY.

The feature of setting your own GUI status should work, the buttons should trigger the subroutine defined in I_CALL_BACK_USER_COMMAND parameter (+ in the program defined in I_CALLBACK_PROGRAM parameter), so please give your code. Have a look at demo program BCALV_TEST_HIERSEQ_LIST_EVENTS, maybe it contains a part for demonstrating own GUI status. Did you define the subroutine as per the instructions in ABAP documentation? I think it should be :

FORM nom
USING
R_UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
...
ENDFORM.
0

Hi Sandra,

i have to do two interactive actions here.when select the check box and click on Reprocess ..it is working fine.and I want another interactive is when click on delivery number '600016749'.it should go to the t-code VL03N.

Second interactive is not working.

code :

lv_layout-box_fieldname = 'CHECKBOX'.

CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
EXPORTING
i_callback_program = sy-repid
i_callback_pf_status_set = 'SET_PF_STATUS'
I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
is_layout = lv_layout

FORM user_command USING value(fp_ucomm) LIKE sy-ucomm
fp_selfld TYPE kkblo_selfield.

DATA: lr_docnum TYPE RANGE OF edidc-docnum,
lr_status TYPE RANGE OF edidc-status,
ls_docnum LIKE LINE OF lr_docnum,
ls_status LIKE LINE OF lr_status,
ls_header TYPE tp_header,
ls_params TYPE pri_params,
lv_valid.
DATA :wl_item TYPE tp_item.
CASE fp_ucomm.
WHEN 'REPROC'.

........this code triggers for SET-PF STATUS

WHEN '&IC1'.

I have written code here to navigate to T-code VL03N..when we click on delivery number.

But This code hasn't triggered..help me out here.

Endform.

asn.png (12.8 kB)
0
I don't have my crystal ball, could you please tell us what code you use for calling VL03N, which "doesn't work" ? Did you debug to make sure that your code is called ?
0

The first 'reprocess' is a user command. The second would be a hotspot which are two different events.

0

Hi Richard,

I want to know .how to work that hotspot on ALV Report for interactive,kindly help me out.

0

read the documentation on the other alv grids

0