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: 

screen exit

madhupusala3
Explorer
0 Kudos

Hi,

I have one main screen. which is created by sap.i have created one subscren, in this i created one push button.

i have wrote the code under PAI of this screen like this

CASE ok_code.

WHEN 'BM'.

perform get_material_type.

ENDCASE.

ok_code is defined in topinclude.

when clicking on the pushbutton of the subscreen.

it is giving the error message like this "Requested Function Code 'BM' is not available.

we are getting the value in ok_code.

plese let me know why ok_code not taking.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

hi madhu,

how did u declare the ok_code and check whether the function code assigned to the button is 'BM' or not.

data: ok_code like sy-ucomm.

ok_code = sy-ucomm.

thanks,

priya.

4 REPLIES 4

Former Member
0 Kudos

hi madhu,

how did u declare the ok_code and check whether the function code assigned to the button is 'BM' or not.

data: ok_code like sy-ucomm.

ok_code = sy-ucomm.

thanks,

priya.

former_member181962
Active Contributor
0 Kudos

For the button,

Did you assign a FCODE in se51 screen painter(Layout)?

Regards,

Ravi

former_member188685
Active Contributor
0 Kudos

Hi,

is that Button is active or Did you assign the Fucntion code(OKCODE) to that Button.

please check it, and also make sure it will be active.

Regards

vijay

varun_maharshi
Active Participant
0 Kudos

Try using the case directly with sy-ucomm.