‎2006 Jun 08 11:33 AM
Hello,
I have defined the ok_code in the subscreen given as below.
data : ok_code like SY-UCOMM.
CASE ok_code.
WHEN 'MATC'.
PERFORM valid_input_check.
perform get_material_type.
PERFORM call_trxn_mm01.
ENDCASE.
I have created a push button in this subscreen whose function code is 'MATC'.
When I am pressing that push button,I got an error message
'Requested function code 'MATC' is not available from the
standard code of main program.Because this function code 'MATC'is not present in the
table 'T185T' from which the function codes are being selected.So,
the 'Read innernal table' statement is failing resulting the above error message.
Kindly reply me.
‎2006 Jun 08 11:37 AM
Hi Manoj,
Have u activated the screen and all programs??
Rgds,
Prakashsingh
‎2006 Jun 08 1:20 PM
‎2006 Jun 08 1:21 PM
Hi Prakash,
Yes,I have activated screens and all programs.
I am getting the same error.
‎2006 Jun 08 1:41 PM
Manoj,
A simple doubt, have you defined FCode for your button? And OK code in your flowlogic's element list?
Regds
Manohar
‎2006 Jun 08 11:40 AM
OK Codes are attached to the parent/main window ONLY.
you can insert a push bottom on subscreen, in this case the code value'll be assigned to variable of OK-CODE of main dynpro.
Please award points if found helpful
‎2006 Jun 08 1:36 PM
Hi,
Instead of OK_CODE .. use the SY-UCOMM ...
some times this SY-UCOM will not come into OK_CODE .. you need to pass it in the Subscreen Variables.
WHEN SY-UCOMM
CASE 'MATC'.
PERFORM XXX
PERFORM XXX
ENDCASE.
Thanks
Sudheer
‎2006 Jun 08 1:41 PM
Hi Manoj,
is it standrd program or Custom one...?
looks like you are modifying the standard program/screens...?
Regards
vijay
‎2006 Jun 08 1:47 PM