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: 

where can i write hide keyword in alv report.

Former Member
0 Kudos
257

hi,

i am displaying the purchase order list using alv_list report,when i double clicks on the po number,corresponding order need to open in ME23N transaction code.

can any one guide me where to write the hide keyword and how to print the corresponding order in transaction code.

i am attaching the code here.

Thanks,

Deepthi.

Moderator message - Very basic question. To the responders i think you should flag this as an abuse rather than replying.

Message was edited by: Suhas Saha

5 REPLIES 5

nabheetscn
SAP Champion
SAP Champion
0 Kudos
199

In this you dont have to use HIDE command. You have to use user command parameter. Search for interactive alv opn scn for more details

Nabheet

Former Member
0 Kudos
199

Hi Deepthi,

Try to write the below code at the end of the report.

FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM

                        RS_SELFIELD TYPE SLIS_SELFIELD.

   READ TABLE IT_FINAL ASSIGNING <STRUC> INDEX RS_SELFIELD-TABINDEX .

   IF SY-SUBRC EQ 0.

     READ TABLE IT_FINAL WITH KEY VBELN = RS_SELFIELD-VALUE.

     ASSIGN_COMPONENT  'PO_NUMBER'.

     SET PARAMETER ID 'BES' FIELD <FIELD>.

     CALL TRANSACTION 'ME23N' AND SKIP FIRST SCREEN.

   ENDIF.

ENDFORM.                    "user_command




Regards,


Anand.

0 Kudos
199

i have tried this but i am getting error like "No callback program passed"  i have seen one post

http://scn.sap.com/thread/2145259

here they are telling to use enhancement.

0 Kudos
199

This message was moderated.

0 Kudos
199

In the function module REUSE_ALV please pass the call back program same as sy-repid it is available as one of importing parameters

For more details check BCALV_TEST_GRID it handles double click and all

Nabheet