Quantcast
Channel: SCN: Message List - ABAP Development
Viewing all articles
Browse latest Browse all 10425

Re: Set pf-status for creating CREATE , CHANGE ,DISPLAY buttons not working ?

$
0
0

Hi Reddy.

 

  *** Find the sample code.

 

TABLES: SSCRFIELDS.

 

SELECTION-SCREEN BEGIN OF BLOCK block1 WITH FRAME
TITLE text-001.
PARAMETERS: p_ktopl TYPE ktopl.
* Add button to application toolbar
SELECTION-SCREEN FUNCTION KEY 1. "Will have a function code of 'FC01'
SELECTION-SCREEN FUNCTION KEY 2. "Will have a function code of 'FC02'
* .....
SELECTION-SCREEN END OF BLOCK block1.

INITIALIZATION.

* Add displayed text string to buttons
MOVE 'Application button 1' TO sscrfields-functxt_01.
MOVE 'Application button 2' TO sscrfields-functxt_02.

************************************************************************
AT SELECTION-SCREEN.

IF sscrfields-ucomm = 'FC01'.
MESSAGE 'HI' TYPE 'I'.
ELSEIF sscrfields-ucomm = 'FC02'.
MESSAGE 'Bye' TYPE 'I'.
ENDIF

.

 

<text removed>

 

Message was edited by: Matthew Billingham


Viewing all articles
Browse latest Browse all 10425

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>