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

Transposed ALV with input help

martin_pichlo
Participant
0 Likes
708

Hi Guys,

I've a request which is a litte complex. May some of you could help.

What we need is a editable ALV with F4 input help. So far no problem. But we want to "transpose" the alv what means that the title's should be in the first column and all values in the second column and so on.

I had hoped that this is a available as special layout option. But it seems that this is not possible. So we have to transpose the alv at our own like explained in the following articel: http://saptechnical.com/Tutorials/ALV/Transposed/Demo.htm.

Ok, no problem neither. But in that case we have all values of the first dataset in the second column of the alv. But as far as I know the input help could only be set by the fieldcatalog (LVC_S_FCAT-F4AVAILABL) - which means that is would only possible to set one input help  for every value. Is there any option avaiable to set the input value per cell  or per raw/line instead of setting per column?

Does anybody have an alternative approach?

PS: Same questions regarding the option to make an column editable. This is controlled by LVC_S_FCAT-EDIT. Is there an option to set only selected rows/lines to editable?

Regards

Martin

Hi Guys,

I've a request which is a litte complex. May some of you could help.

What we need is a editable ALV with F4 input help. So far no problem. But we want to "transpose" the alv what means that the title's should be in the first column and all values in the second column and so on.

I had hoped that this is a available as special layout option. But it seems that this is not possible. So we have to transpose the alv at our own like explained in the following articel: http://saptechnical.com/Tutorials/ALV/Transposed/Demo.htm.

Ok, no problem neither. But in that case we have all values of the first dataset in the second column of the alv. But as far as I know the input help could only be set by the fieldcatalog (LVC_S_FCAT-F4AVAILABL) - which means that is would only possible to set one input help  for every value. Is there any option avaiable to set the input value per cell  or per raw/line instead of setting per column?

Does anybody have an alternative approach?

PS: Same questions regarding the option to make an column editable. This is controlled by LVC_S_FCAT-EDIT. Is there an option to set only selected rows/lines to editable?

Regards

Martin

2 REPLIES 2
Read only

sai_krishna24
Active Participant
0 Likes
620

HI,

I'm not sure whether it will help or not.

if you are using CL_GUI_ALV_GRI then we can Dynamically set F4 help value using the event ONF4.

check this method REGISTER_F4_FOR_FIELDS also.

Cheers,

SaiKrishna

Read only

Former Member
0 Likes
620

      

Hello Martin,

  

I would try to  create a custom search-help.  In this custom search-help you can define the display order of the columns. Then
on event 'F4', call this search-help is the fieldname is the "target" field.

  

As for your second question about editing at cell level, you need to add the structure LVC_T_STYL to your grid-table.

Please refer to these threads for populating LVC_T_STYL:

http://scn.sap.com/docs/DOC-10353

http://wiki.sdn.sap.com/wiki/display/Snippets/A+Simple+Program+for+Editable+ALV+grid+control

There is a mountain of information on ALV grids in the ABAP forum.  If my advice does not help you, please search SCN.

Best regards,

Kim