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

drill down alv

Former Member
0 Likes
424

hi friends,

this is regarding drilldown alv, when we click on any field the field details should be caught, and respective action must be taken.

i am using the below code, when i am debugging the

the table rs_selfield is showing the value tabname as final_item,

but it is not showing any fieldname value, it is blank.

does any one have a clue.

FORM user_command USING r_ucomm LIKE sy-ucomm

rs_selfield TYPE slis_selfield.

CHECK NOT p_lst IS INITIAL.

IF rs_selfield-tabname = 'FINAL_HEADER'.

READ TABLE FINAL_HEADER INDEX rs_selfield-tabindex.

ELSEIF rs_selfield-tabname = 'FINAL_ITEM'.

READ TABLE FINAL_ITEM INDEX rs_selfield-tabindex.

ENDIF.

  • Billing doc.

IF rs_selfield-fieldname EQ 'VBELN'.

SET PARAMETER ID 'VF' FIELD FINAL_HEADER-vbeln.

CALL TRANSACTION 'VF03' AND SKIP FIRST SCREEN.

  • Sales order

ELSEIF rs_selfield-fieldname EQ 'AUBEL'.

SET PARAMETER ID 'AUN' FIELD FINAL_ITEM-aubel.

CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.

  • Intercomany doc.

ELSEIF rs_selfield-fieldname EQ 'AVBELN'.

IF NOT FINAL_ITEM-avbeln IS INITIAL.

SET PARAMETER ID 'VF' FIELD FINAL_ITEM-avbeln.

CALL TRANSACTION 'VF03' AND SKIP FIRST SCREEN.

ENDIF.

ELSE.

MESSAGE e208(00) WITH 'Please, no click here!'.

ENDIF.

ENDFORM.

3 REPLIES 3
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
406

The FIELDNAME value should be coming if you are double-clicking on that specific cell, are you double clicking on the CELL

Regards,

Rich Heilman

Read only

0 Likes
406

hi rich,

thanks for the reply,

yes i am double clicking on the specific cell,

but still it doesnot have fieldname vale, but has other details

i am using

REUSE_ALV_BLOCK_LIST_APPEND

does this effect .

Read only

0 Likes
406

I"ve only every had it working using the REUSE_ALV_GRID_DISPLAY, or REUSE_ALV_LIST_DISPLAY, I've never tried it with the BLOCK display, so don't know if it works there or not. Not sure that it would, considering it has more than one list inside. Not sure.

Regards,

Rich Heilman