cancel
Showing results for 
Search instead for 
Did you mean: 

Error in Control Framework in smart forms programms

Former Member
0 Kudos

IN VF02 smartforms ENTRY form , I add a function about save PDF at local PC. When I print the smartfomrs,There is ERROR message in update modules.

IN SM13 can see the ERROR message.

Function Module: RV_MESSAGE_UPDATE

Status :Update was terminated

Error details: FES 022: Error in Control Framework

THE CODE:

FORM processing USING proc_screen

CHANGING cf_retcode.

.......

.......

******I ADD THE CODE

PERFORM DOWNLOAD_AS_PDF USING lf_fm_name

ls_control_param

ls_composer_param

ls_bil_invoice

nast

repeat

ls_bil_invoice-HD_ORG

ls_spoolid

CHANGING cf_retcode

.

.......

.......

ENDFORM.

IN DOWNLOAD_AS_PDF FORM ,I USE FUNCTION : P_fm_name(smartforms function) CONVERT_OTF GUI_DOWNLOAD

WHY the UPDATE MODULE have ERROR MESSAGE???

How do I solve this problem???

Accepted Solutions (1)

Accepted Solutions (1)

david_liu1
Advisor
Advisor
0 Kudos

Hello,

Your error message is related to GUI_DOWNLOAD, which is a frontend function.

You simply cannot use it in background, because it puts a file on the

frontend PC where you start the function (WS = WorkStation).

Note that GUI_DOWNLOAD is intendted to be used for dialog user

and will not run at BACKGROUND.

You can review SAP Library: ABAP Programming (BC-ABA)

->Saving Data Externally

->Working with Files

->File Handling in ABAP

Regards,

David

Former Member
0 Kudos

Hi,David

Which Function have same function With GUI_DOWNLOAD function Compared,but it can run BACKGROUND?

TKS!

david_liu1
Advisor
Advisor
0 Kudos

Hi,

The only option is the create a share on the application server and

to save the files via OPEN DATASET statement.

Have a look at the following link:

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/fc/eb3c7f358411d1829f0000e829fbfe/frameset.htm

Regards,

David

Former Member
0 Kudos

Hi,

I try the open dataset satement. the file is in application sever.but i need the file download in local PC.

I dont know how to transport the file from Application sevet to PC. IS it like FTP?

There is any other way to solve it?

Former Member
0 Kudos

Try TA AL11 to see your file on aplication server.

Answers (0)