‎2007 May 21 6:20 PM
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
‎2007 May 21 6:26 PM
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.
‎2007 May 21 6:53 PM
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.
‎2007 May 21 7:52 PM
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
‎2007 May 21 7:59 PM
changed the code, but geting the same error. Remeber the code i have is in screen exit PAI module.