cancel
Showing results for 
Search instead for 
Did you mean: 

Archiving PDF of Smartform to UNIX Server.

Former Member
0 Kudos

Dear All,

I have a requirement where i have to archive my smartform in pdf format to a folder on the unix server and also archive it to users local desktop if required.

According to my observation when i am viewing the smartform in print preview i can see two buttons

1) Archive 2) Print and Archive in disabled mode.

Please let me know whether i can enable them and do the required coding for conversion of smartform to pdf and saving the files to the unix server.

Suggest me if there is any other solution for the same.

Regards,

Prathima.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi Prathima.,

i have done the similar requirement , but not worked in unix server,,

try like this and try to covnert to unix server .

we can convert the smartform to pdf using this FM

data :it_otfdata type table of itcoo,

it_pdfdata type table of tline,

GV_info type SSFCRESCL..

  • this gv_info is the final table which u r getting from smartform.

it_otfdata[] = gv_info-otfdata[].

CALL FUNCTION 'CONVERT_OTF'

EXPORTING

FORMAT = 'PDF'

MAX_LINEWIDTH = 132

IMPORTING

BIN_FILESIZE = len_out

TABLES

OTF = it_otfdata

LINES = it_pdfdata

.

this is Fm to download the pdf to a particular location ,

CALL FUNCTION 'GUI_DOWNLOAD'

EXPORTING

BIN_FILESIZE = len_out

FILENAME = gv_fullpath

FILETYPE = 'BIN'

TABLES

DATA_TAB = it_pdfdata.