‎2009 Dec 22 4:33 AM
Hi Friends,
Could you please tell me, how to insert push buttons and status on 3rd secondary list in an ALV Report.If possible provide me sample code for it.
Thanks in Advance.
‎2009 Dec 22 5:41 AM
Hi,
Chk the following code.. Double click on STAT1 to create status & navigate... Create a pushbutton SECLIST1.
for status STAT2 -pushbutton SECLIST2
for status STAT3 - pushbutton SECLIST3.
write:' Basic List'.
SET PF-STATUS 'STAT1'.
AT USER-COMMAND.
CASE SY-UCOMM.
WHEN 'EXIT'.
BACK .
WHEN 'SECLIST1'.
IF sy-lsind = 1.
write: 'FIRST SECONDARY LIST '.
SET PF-STATUS 'STAT2'.
ENDIF.
WHEN 'SECLIST2'.
IF sy-lsind = 2.
write: '2nd SECONDARY LIST '.
SET PF-STATUS 'STAT3'.
endif.
WHEN 'SECLIST3'.
IF sy-lsind = 3.
write: '3rd SECONDARY LIST '. " similarly create pf-status here & insert the puhs-button.
endif.
ENDCASE.
Regards,
Deeba..
‎2009 Dec 22 5:06 AM
You can add your own button in application tool bar of GUI status , you can assign a function code to it .Later you can handel the this in sy-ucomm.Perform desired operation only when you are oon 3rd secondary list.
Hope you understand it.
‎2009 Dec 22 5:23 AM
Hi,
many threads are alredy there in forum.
see this
http://www.sdn.sap.com/irj/scn/advancedsearch?query=pushbuttonininteractivealv
‎2009 Dec 22 5:41 AM
Hi,
Chk the following code.. Double click on STAT1 to create status & navigate... Create a pushbutton SECLIST1.
for status STAT2 -pushbutton SECLIST2
for status STAT3 - pushbutton SECLIST3.
write:' Basic List'.
SET PF-STATUS 'STAT1'.
AT USER-COMMAND.
CASE SY-UCOMM.
WHEN 'EXIT'.
BACK .
WHEN 'SECLIST1'.
IF sy-lsind = 1.
write: 'FIRST SECONDARY LIST '.
SET PF-STATUS 'STAT2'.
ENDIF.
WHEN 'SECLIST2'.
IF sy-lsind = 2.
write: '2nd SECONDARY LIST '.
SET PF-STATUS 'STAT3'.
endif.
WHEN 'SECLIST3'.
IF sy-lsind = 3.
write: '3rd SECONDARY LIST '. " similarly create pf-status here & insert the puhs-button.
endif.
ENDCASE.
Regards,
Deeba..
‎2009 Dec 22 5:54 AM
Hi joy,
You can create PushButton in GUI status's Application tool bar,. by not providing icon name and simply providing text. In order to make this visible in your 3rd interactive report, use the SET PF-STATUS and provide the name of GUI status for sy-lsind value '3'.
Regards,
Prasanna
‎2009 Dec 22 9:16 AM