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

Error in control frame work

former_member216668
Participant
0 Likes
667

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

4 REPLIES 4
Read only

Former Member
0 Likes
615

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.

Read only

Former Member
0 Likes
615

> 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..?

Read only

Former Member
0 Likes
615

Hi,

What is the code inside the Functional moduel doing?

Is it modifying any internal tables, strucutres at run-time?

Vivek.

Read only

0 Likes
615

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.