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 error while enabling/disabling Check box

Former Member
0 Likes
810

Hi,

I get an error because of a function code added to a check box in a screen. The requirement is to enable a field if the check box is ticked and disable it while its not. I created a function code for this.

When i execute the transaction and tick the check box, i get this error

Requested Function ABCD is not available here.

Note: I have not written any code in PAI or PBO yet and this is a customer exit enhancement on a standard transaction. This check box is mapped to dictionary structure.

Could anybody suggest on this?

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
653

Usually those dynpros are subscreen, so don't manage the OK_CODE field, only main screen manages it. In your case, as you don't intercept the code, it is received in main dynpro PAI which raise an error.

Trick: Manage sy-ucomm in subscreen PAI.

Regards,

Raymond

2 REPLIES 2
Read only

RaymondGiuseppi
Active Contributor
0 Likes
654

Usually those dynpros are subscreen, so don't manage the OK_CODE field, only main screen manages it. In your case, as you don't intercept the code, it is received in main dynpro PAI which raise an error.

Trick: Manage sy-ucomm in subscreen PAI.

Regards,

Raymond

Read only

0 Likes
653

Thankyou Raymond.

But I have played around with the SY-UCOMM. It does not work.

I forgot to mention that I am using IW51 transaction. Seems like there are other methods to manage the IW transactions which are different from normal transactions with respect to screens. I tried to maintain the Function Codes and Program name in T185F and T185* tables and this has finally worked.