06-07-2006 4:50 PM
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.
06-07-2006 4:53 PM
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.
06-07-2006 4:53 PM
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.
06-07-2006 4:56 PM
For the button,
Did you assign a FCODE in se51 screen painter(Layout)?
Regards,
Ravi
06-07-2006 4:57 PM
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
06-07-2006 5:12 PM