‎2008 Jan 25 10:31 AM
Hi all,
I need to display an information message when i click on the secondary list that there are no more lists to display.
I have a basic list. when i click on a field, i get the second list. now there are no more lists.
For this i need code and where to write it.
thank you
‎2008 Jan 25 10:35 AM
Hi Srikanth,
Good!
after clicking in the second list. it will call the event AT LINE-SELECTION.
check the sy-dynnr if it is second list. then disply information message.
Let me know if u r not clear.
Thanks,
Sunil.
‎2008 Jan 25 10:40 AM
Hi Srikanth,
currection.
Good!
after clicking in the second list. it will call the event AT LINE-SELECTION.
check the SY_LSIND if it is second list. then disply information message.
Let me know if u r not clear.
Thanks,
Sunil.
‎2008 Jan 25 10:48 AM
Hi Sunil,
Code is
FORM USER_COMMAND USING R_UCOMM LIKE SY-UCOMM
RS_SELFIELD TYPE SLIS_SELFIELD.
CASE R_UCOMM.
WHEN '&IC1'.
PERFORM I_F_CATALOG.
PERFORM INT_LISTDISPLAY2.
ENDCASE.
ENDFORM.
This is ALV report.
So I do not understand how to give the code and where to give.
If it is normal interactive , what you told can be worked out.
Here, in the code after performing listdisplay2, i need to give the message.
Try to help me.
thank you
Srikanth
‎2008 Jan 25 10:48 AM
hi,
u can write this in the user_Command of second list...
FORM user_command1 USING u_com1 LIKE sy-ucomm sel_field TYPE slis_selfield.
CASE u_com1.
WHEN '&IC1'.
MESSAGE 'No List' TYPE 'S'.
OR
MESSAGE 'No List' TYPE 'I'.
ENDCASE.
ENDFORM. "user_command
By this u will get message at status bar
reward if usefull....
Edited by: Dhwani shah on Jan 25, 2008 11:49 AM