Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

General

Hey Folks,

I have a problem in the hierarchical list.

i have included the form for user command.

whenever i double click on particular order its not pointing to that order.

for example if i click on order 1 its not displaying order 1 instead next order.

following is the code written for it, please correct me .

----


***INCLUDE ZSDB_BACKORDERS_USER_COMMANF03 .

----


&----


*& Form USER_COMMAND

&----


  • Form used for double click option in ALV

----


form USER_COMMAND using GV_UCOMM type SY-UCOMM

GV_SELFIELD type SLIS_selfield.

case GV_UCOMM.

when '&IC1'.

sort GT_FINAL1 by VBELN.

read table GT_FINAL1 into GS_FINAL1 index GV_SELFIELD-tabindex.

set parameter id 'AUN' field GS_FINAL1-VBELN.

*check whether the user has authorization to change the billing document

authority-check object 'V_VBAK_VKO'

id 'VKORG' field VBAK-VKORG

id 'VTWEG' field VBAK-VTWEG

id 'SPART' field VBAK-SPART

id 'ACTVT' field '02'.

authority-check object 'V_VBAK_AAT'

id 'AUART' field VBAK-AUART

id 'ACTVT' field '02'.

if SY-SUBRC eq 0.

call transaction 'VA02' and skip first screen.

else.

  • if the user doesn't have authorization then display the billing document

call transaction 'VA03' and skip first screen.

endif.

clear GV_UCOMM.

endcase.

endform. " USER_COMMAND

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question