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

Work Order Screen Exit Error

Former Member
0 Likes
603

Hello All,

I added a additional tab subscreen to work order using screen exit 'IWO10018' . I added a pushbutton on screen with function code 'CV03N' and in work order display mode I call transaction CV03N. This is working fine but when I get back to Work Order screen, I am getting error message <b>'Requested function CV03N is not available here</b>'. I have no idea why I am getting this error. What do I need to do here?

I guess it's something with the Fcode.

Anybody can help me out?

Thanks,

Chandra

4 REPLIES 4
Read only

Former Member
0 Likes
565

Try to change Function code like CV03 and keep the break point at ur sy-ucomm.

recomended function code is 4 char.. but i am not sure ..why you are getting this error. can you please send ur code.

Read only

0 Likes
565

I changed to 'CV03', but still getitng the same error.

code looks like this:

MODULE user_command_0900 INPUT.

CLEAR wa_drad.

SELECT SINGLE * FROM drad INTO wa_drad WHERE dokob = 'AUFK' AND objky = v_objkey.

IF sy-ucomm = 'CV03'.

IF wa_drad-doknr IS INITIAL.

MESSAGE i111(26).

ELSE.

CALL FUNCTION 'CV141_SHOW_LINK_DOCUMENT'

EXPORTING

ps_drad_objky = v_objkey

ps_drad_dokob = 'AUFK'.

ENDIF.

ENDMODULE.

Read only

0 Likes
565

data : v_flag.

MODULE user_command_0900 INPUT.

CLEAR wa_drad.

clear : v_objkey.

SELECT SINGLE * FROM drad INTO wa_drad WHERE dokob = 'AUFK' AND objky = v_objkey.

if v_flag = ''.

IF sy-ucomm = 'CV03'.

IF wa_drad-doknr IS INITIAL.

MESSAGE i111(26).

ELSE.

v_flag = 'X'

CALL FUNCTION 'CV141_SHOW_LINK_DOCUMENT'

EXPORTING

ps_drad_objky = v_objkey

ps_drad_dokob = 'AUFK'.

ENDIF.

endif.

ENDMODULE.

See the above code and let me know.

Message was edited by:

Seshu Maramreddy

Read only

0 Likes
565

changed the code, but geting the same error. Remeber the code i have is in screen exit PAI module.