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 Report

Former Member
0 Likes
773

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
720

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..

5 REPLIES 5
Read only

Former Member
0 Likes
720

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.

Read only

Former Member
0 Likes
720

Hi,

many threads are alredy there in forum.

see this

http://www.sdn.sap.com/irj/scn/advancedsearch?query=pushbuttonininteractivealv

Read only

Former Member
0 Likes
721

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..

Read only

prasannakrishna_mynam
Contributor
0 Likes
720

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

Read only

0 Likes
720

cant we keep maintain SY-LSIND in procedure.