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

SAVE push button

Former Member
0 Likes
2,694

Hi all,

The requirement is that 'SAVE' button should be on the application tool bar instead of the standard tool bar & should save the following fields : serial number , material,delivery date, status included & plant for report RIEQUI21.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,797

Hi,

Set the user GUI ststus using SET PF-STATUS. The standard 'SAVE' will be disabled.

Then in ur user defined GUI status create a button with 'SAVE' function code.

After that in report in the event 'AT USER-COMMAND' write the what ever code u want for 'SAVE' button...

Sreedhar

9 REPLIES 9
Read only

Former Member
0 Likes
1,798

Hi,

Set the user GUI ststus using SET PF-STATUS. The standard 'SAVE' will be disabled.

Then in ur user defined GUI status create a button with 'SAVE' function code.

After that in report in the event 'AT USER-COMMAND' write the what ever code u want for 'SAVE' button...

Sreedhar

Read only

0 Likes
1,797

This is the logic iam following

SELECTION-SCREEN: FUNCTION KEY 1,

FUNCTION KEY 2.

INITIALIZATION.

sscrfields-functxt_01 = 'SAVE'.

sscrfields-functxt_02 = 'EXIT'.

AT SELECTION-SCREEN.

CASE sscrfields-ucomm.

WHEN'FC01'.

CODE....

WHEN 'FC02'.

CODE.....

ENDCASE.

Read only

dani_mn
Active Contributor
0 Likes
1,797

Hi,

Open your GUI status with SE41 and create your 'SAVE' button in 'APPLICATION TOOL BAR'. assign a code to it and also icon.

Disable the standard save button.

Activate the status again.

And write your Logic in 'PAI' module for saving.

CASE ok_code.

WHEN 'SAVE'.

do saving.

ENDCASE.

Regards,

Wasim Ahmed

Read only

Former Member
0 Likes
1,797

Hi,

In GUI status(SE41) disable standard SAVE button & create your 'SAVE' button in 'APPLICATION TOOL BAR'. assign a code to it and also icon.

And write your Logic in 'PAI' module for saving.

CASE ok_code.

WHEN 'SAVE'.

ENDCASE.

Regards

Abhishek

Read only

0 Likes
1,797

The report RIEQUI21 has one selection screen

Read only

Former Member
0 Likes
1,797

Hi AS,

When you create SETPFSTAUS and double click on it than on application tool bar it may be possible that your SAVE function code is not generated That may be the problem that you write 'save' instead of 'SAVE' when your AT-USSER-COMMAND is triggered that take save not SAVE.

Regards.

Ankur Garg.

Read only

Former Member
0 Likes
1,797

Try this code as a example....

TABLES SSCRFIELDS.

DATA FLAG.

SELECTION-SCREEN BEGIN OF SCREEN 500 AS WINDOW TITLE TIT.

SELECTION-SCREEN FUNCTION KEY 1.

SELECTION-SCREEN FUNCTION KEY 2.

SELECTION-SCREEN END OF SCREEN 500.

AT SELECTION-SCREEN.

CASE SY-DYNNR.

WHEN '0500'.

IF SSCRFIELDS-UCOMM = 'FC01'.

FLAG = '1'.

ELSEIF SSCRFIELDS-UCOMM = 'FC02'.

FLAG = '2'.

ENDIF.

ENDCASE.

START-OF-SELECTION.

SSCRFIELDS-FUNCTXT_01 = 'Button 1'.

SSCRFIELDS-FUNCTXT_02 = 'Button 2'.

TIT = 'Buttons'.

CALL SELECTION-SCREEN 500 STARTING AT 10 10

ENDING AT 10 11.

IF FLAG = '1'.

WRITE / 'Button 1 was clicked'.

ELSEIF FLAG = '2'.

WRITE / 'Button 2 was clicked'.

ENDIF.

Regards

Abhishek

Read only

Former Member
0 Likes
1,797

Hi AS,

Unless the standard PF status is not over written by user defined GUI status, u can't do this...

Aa i said earlier craete one GUI ststus

AND TRY THIS,

INITIALIZATION.

SET PF-STATUS < name >.

Sreedhar

Read only

Former Member
0 Likes
1,797

hi,

use menu painter to create pushbuttons on application tool bar,to create menu bar,to create function keys,etc,

SET PF-STATUS 'ZMATERIAL'.

check out this in the PBO event of a transaction,

best of luck,

regards,

kcc