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

Function Code of Push Button on a Subscreen

Former Member
0 Likes
2,213

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.

8 REPLIES 8
Read only

Former Member
0 Likes
1,179

Hi Manoj,

Have u activated the screen and all programs??

Rgds,

Prakashsingh

Read only

0 Likes
1,179

Hi Prakash,

Yes,I have activated screens and all programs.

Read only

0 Likes
1,179

Hi Prakash,

Yes,I have activated screens and all programs.

I am getting the same error.

Read only

0 Likes
1,179

Manoj,

A simple doubt, have you defined FCode for your button? And OK code in your flowlogic's element list?

Regds

Manohar

Read only

rahulkavuri
Active Contributor
0 Likes
1,179

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

Read only

Former Member
1,179

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

Read only

Former Member
0 Likes
1,179

Hi Manoj,

is it standrd program or Custom one...?

looks like you are modifying the standard program/screens...?

Regards

vijay

Read only

Former Member
0 Likes
1,179

Hi manoj,

i hope this will give you an idea in case you are copying the standard one and modifying it.

Regards

Vijay