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

Message in interactive ALV

Former Member
0 Likes
528

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

4 REPLIES 4
Read only

Former Member
0 Likes
500

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.

Read only

Former Member
0 Likes
500

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.

Read only

0 Likes
500

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

Read only

Former Member
0 Likes
500

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