Application Development 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: 

push button on sub-screen

Former Member
0 Kudos

Hi,

i have created a sub-screen and put a pushbutton on it and want to perform some pai event on pressing of pushbutton.

but when i press the pushbutton ; following error appears:

Requested function DISP is not available here

Message no. V0104

any suggestions?

thanks!

11 REPLIES 11

Former Member
0 Kudos

Is function code provided for the push button

Former Member
0 Kudos

Hi Harsh,

You have created the button with pf-status right. So in the pf-status you might have missed the function code 'DISP' or may be its typed incorrectly. Just make a check on your pf-status.

Much Regards,

Amuktha.

Former Member
0 Kudos

Hi,

we have creating a function code(PUSH) for that push button, for that push button you have to write code in PAI event, like

WHEN 'PUSH'.

write logic

Regards,

Bhupal.

Former Member
0 Kudos

Hi,

Once you check the pf-status,so that the issue can be solved.

Thanks,

B.Sunil Reddy.

Former Member
0 Kudos

no i have not used pf-status just a simple button on the screen.

0 Kudos

hi ,

did you write the coding in PAI of subscreen if so write it in the PAI of the normal screen where you have attached this subscreen.

or

check in the layout if you have given the function code to the pushbutton...

Regards,

Sid

0 Kudos

check the attributes for Push button , going to attributes of push button and give function code as DISP.

Later in PAI check the function code SY-UCOMM or OK_CODE = DISP

0 Kudos

Hi Harsh,

go to screen layout double click on the Push button.

and add FCT code to the Push button..

and write code for the Push button in the PAI or PBO.

Prabhu

Former Member
0 Kudos

kindly ignore

Former Member
0 Kudos

in PAI :

Ex for prgram: SAPMIEQ0

and ok code: rm63e-fcode

If sy-comm eq 'DISP'

Code for your button ...

And After : Delete okcode_

DATA: OK_CODE LIKE SY-UCOMM VALUE '(SAPMIEQ0)rm63e-fcode'. "#EC NOTEXT

FIELD-SYMBOLS: <OK_CODE> TYPE ANY.

ASSIGN (OK_CODE) TO <OK_CODE>.

IF SY-SUBRC EQ 0 AND <OK_CODE> IS ASSIGNED.

CLEAR <OK_CODE>.

ENDIF.

Regards,

Eric.

Former Member
0 Kudos

Check have you assigned the function code to the push button attributes.