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

interactive alv

Former Member
0 Likes
1,693

hai friends,

i got struck with one prob.

i hav 3 secondary lists..when i click on last secondary lists it should pop up a message that " end of drill down"

plz tell me how to do this in detail??

2) Also I wnt to add an icon "save list as" such that when i click on this icon on the tool bar ..it shows the options (unconverted, html format, spreadsheet, rich text format ) ??

For this ..i copied the standard gui (se41)...but this icon is not there.

Please help me.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,678

hai friends..

plz give me some idea...

its very urgent.

thankx

your help is appreciated.

16 REPLIES 16
Read only

Former Member
0 Likes
1,678

Hi Hari,

Why don't you have a flag or counter? When the user does a drill down, increment the counter with 1.. when they go back, decrement the counter by 1.. This way when you reach the last screen and try to drill down again, you can check the counter and give a popup message.

Why do you want custom "save list as" button? Isn't this available from system -> List -> Save as?

Read only

0 Likes
1,678

They only mentioned that the report should be saved.

They gave one diagram..in that 4 radio buttons are there. unconverted, spreadsheet, richtext, html format.

For this i hav to code anything in the program ??

2) u told toset the flag inc and decrement...can u give coding for this.??

Read only

Former Member
0 Likes
1,679

hai friends..

plz give me some idea...

its very urgent.

thankx

your help is appreciated.

Read only

0 Likes
1,678

Hari, are you able to see 'System' menu option in your output list?

How are you calling the secondary screens? Can you give me the code for that? i can show where it needs to be added...

Read only

0 Likes
1,678

Hi Hari,

1. SY-LSIND

This is for this purpose only.

2. If sy-lsind = 3.

Message

endif.

3. for showing to print in 5 optins,

this facility is already provided in alv.

Ctrl + Shift + F9

There is already one Icon in the toolbar,

which gives this facility.

regards,

amit m.

Message was edited by: Amit Mittal

Read only

0 Likes
1,678

Thanks Amit.. that just skipped my mind..

Read only

0 Likes
1,678

hi amit..

Just now I got this..when i m searching in menus.

thanks a lot.

full points to u.

where should i write sy-lsind=3. message??

also plz tell me..when i click on printer icon...it should by default set to user windows default printer

Read only

0 Likes
1,678

Whereever you have coded your drill down logic to go to the next screen (user-command subroutine)..

Read only

0 Likes
1,678

Hi again,

1 I have 3 secondary lists..when i click on last secondary lists it should pop up a message that " end of drill down"

your requirement is like above, hence

write sy-lsind=3.

2. SY-LSIND is a system variable

which keeps TRACK of the secondary lists.

For 1st secondary list - SY-LSIND = 1.

For 2st secondary list - SY-LSIND = 2.

For 3st secondary list - SY-LSIND = 3.

3. also plz tell me..when i click on printer icon...it should by default set to user windows default printer

For such purpose,

ie. default printername, not only in alv,

but other transactions also,

Goto this menu : from any sap screen

System --> User Profile --> Own Data

A new window will come :

4. There is one tab : DEFAULTS

5. In that u can specify OUTPUT DEVICE.

regards,

amit m.

Read only

0 Likes
1,678

ok.. thank u my friend.

can u give some idea...on my question.(clicking on printer icon..should set by default to user windows printer)

Read only

0 Likes
1,678

Hi again,

1. I have already answered.

2. It is based upon users profile

3. How to set it

that i have mentioned in my previous reply.

regards,

amit m.

Read only

0 Likes
1,678

Hi Hari,

Is sy-lsind is working.., In alv you sy-lasind = 0 always. it cannot tell you where you are( i mean in which list you are ) do you know this..

check it...

Vijay

Read only

0 Likes
1,678

Hi ..

sorry for wrong information.

I thought it is working (SY-LSIND)

It is not showing any information at the end of the list.

Read only

0 Likes
1,678

it won't ,

and you don't have any control on sy-lsind.

you need to look for alternatives.

vijay

Read only

Former Member
0 Likes
1,678

Hi again,

1. How are u detecting the double click

on alv.

2. I suppose using call back mecahnicsm.

ie. CALL FUNCTION REUSE_ALV_LIST_DISPLAY

I_CALLBACK_PROGRAM = SY-REPID I_CALLBACK_USER_COMMAND = 'ITAB_USER_COMMAND'

AND USING

FORM ITAB_user_command USING whatcomm TYPE sy-ucomm whatrow TYPE

slis_selfield.

3. So in this Form (meant for the 3rd secondary list)

write your code for message.

*----


PS:

4. IF SY-UCOMM = '&IC1'.

MESSAGE ...

ENDIF.

'&IC1' = DOUBLE CLICK / PICK

regards,

amit m.

Message was edited by: Amit Mittal

Message was edited by: Amit Mittal

Read only

0 Likes
1,678

Hi,

I will suggest one thing, since you have three lists.

we can proceed with what ever i suggest.

for each list you increment/decrement one gloabal int variable

based on your flow on lists.

then based on the variable value you can give the messsage.

becareful when incrementing/decrementing the variable.

using this you can achieve your requirement.

in the user-command.

v_index = 0.

when '&IC1'.

v_index = v_index + 1.

call another list.

in the user command of the first secondary list

when '&IC1'.

v_index = vindex + 1.

when 'BACK'.

v_index = v_index - 1.

--end of first secondary list.

similarly others...

this is one of the way to handle lists.,