‎2008 Sep 24 12:00 PM
Hi experts,
While calling a subroutine inside a custom function module attached to TCode ME22N, i'm getting the following dump which is seen in SM13.
"FES 22 error in control frame work".
Any input as how to resolve this issue is highly appreciated.
Cheers,
K
‎2008 Sep 24 12:09 PM
May be the routine u r using that routine uses sap control's function stored in the PC. After the call may be u need to call the flush method to avoid this issue.
‎2008 Sep 24 12:12 PM
> calling a subroutine inside a custom function module
The Routine might show some screens which are associated with some controls./
what is the perform you are calling..?
‎2008 Sep 24 12:13 PM
Hi,
What is the code inside the Functional moduel doing?
Is it modifying any internal tables, strucutres at run-time?
Vivek.
‎2008 Sep 24 12:37 PM
Hi friends,
The function module is ZZ_ME_PRINT_PO, a copy of the standard function module
ME_PRINT_PO, inside this function module, after the close form, i call a subroutine download_sh.
The subroutine is as follows,
form download_sh using p_nast structure nast
p_spoolid.
CONSTANTS:
c_path(40) TYPE c VALUE '
md1as017\SAPshare\TEST\ECMP3189\',
c_sep TYPE c VALUE '_' ,
c_ext(4) TYPE c VALUE '.PDF'.
DATA: v_filename LIKE rlgrap-filename,
v_po(10) TYPE c,
v_date(8) TYPE c,
v_spool LIKE tsp01-rqident.
v_po = p_nast-objky.
v_date = sy-datlo.
v_spool = p_spoolid.
CONCATENATE c_path v_po c_sep v_date c_ext INTO v_filename.
call function 'ZZ_PO_SAVE_LOCAL'
exporting
spoolno = v_spool
p_file = v_filename
The function module ZZ_PO_SAVE_LOCAL is a similar module to RSTXTPDF4 program for PDF conversion. My subroutine gets the spoolid and passes it to save locally.