Application Development 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: 

ALV BLOCK: status GUI

marcela_martinez
Participant
0 Kudos
271

Hi great people,

I'm figthing with the status GUI of an ALV Block since yesterday.

I have an ALV with 5 blocks. I defined a status GUI with some buttons, and the point is that some of them (as Select and Unselect all) works ok. But there are some of them that when I pressed it ends in a dump.

I debbug them and I noticed that those bouttons that ends in a dump "are refering" to a standard program (SAPLSALV) and not to the Z one. I mean that the parameter I_CALLBACK_PROGRAM, when I press the button, in those cases has the value SAPLSALV and not my Z program. I checked and I'm passing the program name everywhere I have to.

Any idea?

Thanks & regards.

3 REPLIES 3

Former Member
0 Kudos
129

Hi,

Better you can copy the set pf status to ZXXXXXX from standard. So that the function codes will work properly similar to the standard.

You can remove the unnecessary buttons which you don't need in the layout. Save and Activate the Set pf status.

Call the set pf status in your program, so that when debugging it will show your Z set-pf status.

Add the SET-PF-STATUS event into your events lists.

This will solve your issue.

Thanks,

Satheesh

Former Member
0 Kudos
128

Hi,

For that create a form and endform in your program.

No need of perform statment dirctly write form statement.

Form SET_STATUS using status.

set pf_status 'ZSTATUS'.

ENDORM.

Pass the form name SET_STATUS in display function module.

i_call_set_status = 'SET_STATUS'.

Now whatever you maintain in ZSTATUS will trigger.

Hope this helpful for you if you face any prblem revert me back.

Regards,

G.Aditya

0 Kudos
128

Thanks Satheesh and G.Aditya for your answers, but unlikely I can't solve the problem.

For Satheesh... I tried qhet you suggested before and it didn´t work.

Form G. Aditya... that parameter is not in ALV BLOCK append function. I think you are talking about common ALV.

I put a break-pint just before calling REUSE_ALV_BLOCK_LIST_INIT FM, and I noticed that the program doesn't entered inside the FM. I tried BALVBT01 SAP example program and it behaves inthe same way. Do you know if exists a problem with that FM?

Any other suggestion?

Thanks again & kind regards.

Marcela.