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

screen exit

madhupusala3
Explorer
0 Likes
669

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
Read only

Former Member
0 Likes
626

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
Read only

Former Member
0 Likes
627

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.

Read only

Former Member
0 Likes
626

For the button,

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

Regards,

Ravi

Read only

Former Member
0 Likes
626

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

Read only

varun_maharshi
Active Participant
0 Likes
626

Try using the case directly with sy-ucomm.