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

Adding Button on application toolbar on ABAP List display screen....

Former Member
0 Likes
2,895

Hello Gurus,

I copied SAP program 'RFBUEB00' into custom program. When I execute the custom report, I see the data lijne by line in ABAP list. I see a deafult 'Select' button on application toolbar.

If I want to add additional custom button on application toolbar on ABAP list display screen, how can I do it ? Please help.

Regards,

Jainam.

Edited by: Jainam Shah on Oct 27, 2009 5:44 PM

1 ACCEPTED SOLUTION
Read only

former_member191735
Active Contributor
0 Likes
1,987

If you set your own PF status... ALV grid options will go away.

What i will do is change the display option to SALV or OOALV (you can find demo examples in the system from se38)... create your own screen and set the PF-status then handle the user command in PAI.

You need to set PF-status in PBO

Hello Gurus,

I copied SAP program 'RFBUEB00' into custom program. When I execute the custom report, I see the data lijne by line in ABAP list. I see a deafult 'Select' button on application toolbar.

If I want to add additional custom button on application toolbar on ABAP list display screen, how can I do it ? Please help.

Regards,

Jainam.

Edited by: Jainam Shah on Oct 27, 2009 5:44 PM

10 REPLIES 10
Read only

Former Member
0 Likes
1,987

use

set pf-status

Read only

former_member191735
Active Contributor
0 Likes
1,988

If you set your own PF status... ALV grid options will go away.

What i will do is change the display option to SALV or OOALV (you can find demo examples in the system from se38)... create your own screen and set the PF-status then handle the user command in PAI.

You need to set PF-status in PBO

Read only

0 Likes
1,987

i guess he is talking about LIST not ALV..

or the program output is ALV??

Read only

0 Likes
1,987

In my case it just rights the data in ABAP screen as follows. I can't use ALV grid and stuff because its on older version.

FORM LISTE_SCHREIBEN.

  check = '@T9@'.

  FORMAT COLOR COL_KEY INTENSIFIED OFF.
  WRITE: / SY-VLINE,
           check,
           BKPF-BUKRS,
           BKPF-BELNR,
           BKPF-GJAHR.
  FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
  WRITE:   BKPF-BLART,
       (8) BKPF-BLDAT DD/MM/YY,
       (8) BKPF-BUDAT DD/MM/YY,
           BKPF-WAERS,
           BKPF-XBLNR,
        80 SY-VLINE.
  XAUSGABE = 'X'.
  HIDE: BKPF-BUKRS, BKPF-BELNR, BKPF-GJAHR, BKPF-BSTAT, XAUSGABE.
  IF BKPF-BKTXT NE SPACE.
    FORMAT COLOR COL_KEY INTENSIFIED OFF.
    WRITE: / SY-VLINE, CHAR4 UNDER BKPF-GJAHR.
    FORMAT COLOR COL_NORMAL INTENSIFIED.
    WRITE:   BKPF-BKTXT UNDER BKPF-BLART,
             80 SY-VLINE.
    HIDE: BKPF-BUKRS, BKPF-BELNR, BKPF-GJAHR, BKPF-BSTAT, XAUSGABE.
  ENDIF.
ENDFORM.

I have to select multiple lines and proces them. For one line I know I can use AT-LINE-SELECTION but this is multiple lines...

Read only

0 Likes
1,987

use

set PF-STATUS 'ABC'.

double click on ABC. it will ask you to create it.. click ok.. and move on..

Read only

0 Likes
1,987

You are right... he was talking about the list.

Unfortunately that report displays only in ALV. .... not sure which SAP version he is on... thanks anyways

Read only

0 Likes
1,987

>

> In my case it just rights the data in ABAP screen as follows. I can't use ALV grid and stuff because its on older version.

>

>

FORM LISTE_SCHREIBEN.
> 
>   check = '@T9@'.
> 
>   FORMAT COLOR COL_KEY INTENSIFIED OFF.
>   WRITE: / SY-VLINE,
>            check,
>            BKPF-BUKRS,
>            BKPF-BELNR,
>            BKPF-GJAHR.
>   FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
>   WRITE:   BKPF-BLART,
>        (8) BKPF-BLDAT DD/MM/YY,
>        (8) BKPF-BUDAT DD/MM/YY,
>            BKPF-WAERS,
>            BKPF-XBLNR,
>         80 SY-VLINE.
>   XAUSGABE = 'X'.
>   HIDE: BKPF-BUKRS, BKPF-BELNR, BKPF-GJAHR, BKPF-BSTAT, XAUSGABE.
>   IF BKPF-BKTXT NE SPACE.
>     FORMAT COLOR COL_KEY INTENSIFIED OFF.
>     WRITE: / SY-VLINE, CHAR4 UNDER BKPF-GJAHR.
>     FORMAT COLOR COL_NORMAL INTENSIFIED.
>     WRITE:   BKPF-BKTXT UNDER BKPF-BLART,
>              80 SY-VLINE.
>     HIDE: BKPF-BUKRS, BKPF-BELNR, BKPF-GJAHR, BKPF-BSTAT, XAUSGABE.
>   ENDIF.
> ENDFORM.

>

>

> I have to select multiple lines and proces them. For one line I know I can use AT-LINE-SELECTION but this is multiple lines...

What is your SAP system version?

It seems to be displayed only in ALV. Well, if you can make it to display in LIST ... you can go with set pf-status.

good luck

Read only

0 Likes
1,987

first create a button using pf-status.

put a check box beside your each line.. mark them and process them using at user-command.

Read only

0 Likes
1,987

I am on 4.5B....

Read only

0 Likes
1,987

that is the reason why i couldnt execute report in list view. Please see Soumyaprakash

reply. That should do it