2011 Apr 13 2:37 PM
Dear sirs,
I am using fm REUSE_ALV_COMMENTARY_WRITE to display some information in ALV grid : REUSE_ALV_GRID_DISPLAY.
no user command is available there.
how can I do that?
Thanks,
Roxani
2011 Apr 13 9:35 PM
Have you seen the documentation of these two FM's?
In reuse_alv***** fm
you can use field catalog type slis_t_fieldcat_alv to set hotspot and
I_CALLBACK_USER_COMMAND is there to handle the event.
This thread will be locked before you even see this. Better check the demo programs.... BCALV_DEMO*
2011 Apr 13 10:01 PM
@Sampath Kumar -does FM REUSE_ALV_COMMENTARY_WRITE use the field catalog?
Rob
2011 Apr 14 9:04 AM
Hi Rob,
yes you are right, no field catalog is used in REUSE_ALV_COMMENTARY_WRITE.
is there any other way?
Thank you,
Roxani
2011 Apr 14 10:06 AM
Hi Roxani,
May I ask what is the purpose of your requirement? Depending on that I can suggest to create the ALV with an Object Oriented approach and for the header use class CL_DD_DOCUMENT.
Regards,
Ernesto.
2011 Apr 14 10:31 AM
Hi Ernesto,
They need to double click to header information to call a transaction.
For now I just gave them solution in doulble clicking one of the items in the records of the table underneath.
how if this CL_DD_DOCUMENT work? should I change the DISPLAY GRID FM?
Thanks,
Roxani
2011 Apr 14 10:37 AM
Hi,
I usually clicked a row or a field and then called a Transaction. I think that is the best solution. Anyway, CL_DD_DOCUMENT allows you to add several objects to the header, like a URL for example, but you'll have to rebuild your ALV. Another one, that you can try is Class CL_DD_BUTTON_ELEMENT to add a button. This last one I haven't used it yet.
Why it has to be the title and not a button added to the toolbar?
Regards,
Ernesto.
2011 Apr 14 12:38 PM
Hi Ernesto,
the header should display a contract account number , hich in double click should call transaction fpl9.
so it would be great if I could display this field as hotspot.
is there any functionality like that in CL_DD_DOCUMENT ?
Thanks,
Roxani