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

PUSH BUTTON

Former Member
0 Likes
832

Hi all,

In the interactive alv report,

In the second screen how to Keep a push button,

7 REPLIES 7
Read only

Former Member
0 Likes
808

Hi Ravi,

Refer std prog:

BCALV_GRID_05

BCALV_GRID_08

<b><REMOVED BY MODERATOR>

Manish</b>

Message was edited by:

Alvaro Tejada Galindo

Read only

Former Member
0 Likes
808

Hi,

u can set pf-status

by simply writing the following code:

SET PF-STATUS 'GUI'.

double click on GUI and define all the functions n keys u need.

below is the example code .


TABLES: spfli, sbook.

DATA: num TYPE i,
dat TYPE d.

START-OF-SELECTION.
num = 0.
SET PF-STATUS 'FLIGHT'.

GET spfli.
num = num + 1.
WRITE: / spfli-carrid, spfli-connid,
spfli-cityfrom, spfli-cityto.
HIDE: spfli-carrid, spfli-connid, num.

END-OF-SELECTION.
CLEAR num.

TOP-OF-PAGE.
WRITE 'List of Flights'.
ULINE.
WRITE 'CA CONN FROM TO'.
ULINE.

TOP-OF-PAGE DURING LINE-SELECTION.
CASE sy-pfkey.
WHEN 'BOOKING'.
WRITE sy-lisel.
ULINE.
WHEN 'WIND'.
WRITE: 'Booking', sbook-bookid,
/ 'Date ', sbook-fldate.
ULINE.
ENDCASE.

AT USER-COMMAND.
CASE sy-ucomm.
WHEN 'SELE'.
IF num NE 0.
SET PF-STATUS 'BOOKING'.    " This is for the Secondary List
CLEAR dat.
SELECT * FROM sbook WHERE carrid = spfli-carrid
AND connid = spfli-connid.
IF sbook-fldate NE dat.
dat = sbook-fldate.
SKIP.
WRITE / sbook-fldate.
POSITION 16.
ELSE.
NEW-LINE.
POSITION 16.
ENDIF.

Regards

Sudheer

Read only

abdulazeez12
Active Contributor
0 Likes
808

When you call the basic list using REUSE_ALV_GRID_DISPLAY or list_display, in the importing parameters, you will have I_CALLBACK_PF_STATUS_SET and I_CALLBACK_USER_COMMAND.

Create a pf-status with the pushbutton you want to add in the routine and give name of the routine to I_CALLBACK_PF_STATUS_SET.

Write the code in a routine and assign the name to the parameter I_CALLBACK_USER_COMMAND.

Read only

Former Member
0 Likes
808

If u r displaying the data is a container,

use the fn mod,

<b>ADD_PUSH_CONTAINER</b>

<b><REMOVED BY MODERATOR></b>

Message was edited by:

Alvaro Tejada Galindo

Read only

Former Member
0 Likes
808

HI

go to menu painter

make a menu for the program and attach the button on application toolbar.

use the menu by writting

SET PF STATUS "your pf status"

<b><REMOVED BY MODERATOR></b>

vivekanand

Message was edited by:

Alvaro Tejada Galindo

Read only

Former Member
0 Likes
808

Hi,

For the 2nd screen ,u will be calling the FM "REUSE_ALV_GRID_DISPLAY'.

in that pass the partemeter " I_CALLBACL_PF_status_set" = y_pf <--- routine.

Form y_pf using extab type slis_extab.

set pf-status stat2 excluding extab.

endform

double clik on stat2 and create push buttons.

<b><REMOVED BY MODERATOR></b>

Revert back if any issues.

Regards,

Naveen

Message was edited by:

Alvaro Tejada Galindo

Read only

hymavathi_oruganti
Active Contributor
0 Likes
808

I_CALLBACK_PF_STATUS_SET. pass value to this in the function module, where ever u call.