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

Regarding CJ02 Screen Exit Custom fields Addition

Former Member
0 Likes
790

Hi All,

    I have added a screen exit for CJ02 transaction. i have added custom fields with two tabstrips. In one tabstrip i have listbox .when i select the listbox with some value ,another input value must be filled automatically. I have added function code for that. Now when i select the value from listbox i am getting an Error  " Requested function PHR is not available here" . Can you please help how to overcome this.

   Thanks in Advance .

Regards,

Lakshmi.

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
710

Those customer screens are usually subscreens, so they don't actuallly manage pf-status and ok_code field, this one will be passed to main screen (standard) which wont recognize your ok_code.

You could (non-exhaustive list, use your imagination)

  • Trick the system, managing sy-ucomm in PAI of subscreen and changing its value with some cl_gui_cfw=>set_new_ok_code.
  • Use an ok_code already expected by main program (e.g. some kind of enter key?)

Regards,

Raymond

Hi All,

    I have added a screen exit for CJ02 transaction. i have added custom fields with two tabstrips. In one tabstrip i have listbox .when i select the listbox with some value ,another input value must be filled automatically. I have added function code for that. Now when i select the value from listbox i am getting an Error  " Requested function PHR is not available here" . Can you please help how to overcome this.

   Thanks in Advance .

Regards,

Lakshmi.

1 REPLY 1
Read only

RaymondGiuseppi
Active Contributor
0 Likes
711

Those customer screens are usually subscreens, so they don't actuallly manage pf-status and ok_code field, this one will be passed to main screen (standard) which wont recognize your ok_code.

You could (non-exhaustive list, use your imagination)

  • Trick the system, managing sy-ucomm in PAI of subscreen and changing its value with some cl_gui_cfw=>set_new_ok_code.
  • Use an ok_code already expected by main program (e.g. some kind of enter key?)

Regards,

Raymond