Application Development 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: 

How to archive smartform output as PDF and store in External server

Former Member
0 Kudos

Hi,

I have requirement on archiving smartform output.

1.need to archive smartform output as PDF and need to store the PDF in FileNet server.

2.These iPDF need to link to SAP transaction FEBA_LOCKBOX at service for object level.

I know that it can possible through SAP ArchiveLink feature , also aware that i have to enable Archive and Archive print button in the smartform output.

If any body can give me some solutions it will be a great help.

Regards,

Ratheesh BS

3 REPLIES 3

Former Member
0 Kudos

Hi,

First use FM => READ_OTF_FORM_MEMORY then

use Function Module => CONVERT_OTF_2_PDF to convert to PDF.

This link will help you ---

https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/convertSmartformtoPDFformat

Regards

Pinaki

Former Member
0 Kudos

Hi,

DATA: T_SSFCTRLOP TYPE SSFCTRLOP. "FOR SMART FORMS

DATA: T_SSFCRESCL TYPE SSFCRESCL.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING

FORMNAME = 'Smart Form Name'

IMPORTING

FM_NAME = FM_NAME

EXCEPTIONS

NO_FORM = 1

NO_FUNCTION_MODULE = 2

OTHERS = 3

.

IF SY-SUBRC <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

T_SSFCTRLOP-NO_DIALOG = 'X'.

T_SSFCTRLOP-GETOTF = 'X'.

T_SSFCTRLOP-LANGU = 'E'.

CALL FUNCTION FM_NAME

EXPORTING

CONTROL_PARAMETERS = T_SSFCTRLOP

IMPORTING

JOB_OUTPUT_INFO = T_SSFCRESCL

TABLES

G_T_PERNR = G_T_PERNR. "(Internal Table).

IF SY-SUBRC <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

CALL FUNCTION 'HR_EFI_SHOW_PDF_FORM'

EXPORTING

TOP_EDGE = 10

LEFT_EDGE = 15

TABLES

OTF_TABLE = T_SSFCRESCL-OTFDATA.

I355602
Advisor
Advisor
0 Kudos

Hi,

Refer wiki code to convert smartform output to PDF (via OTF).

https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/smartform%252bsend%252bvia%252bemail

Hope this helps you.

Regards,

Tarun