cancel
Showing results for 
Search instead for 
Did you mean: 

Adobe output to ArchiveLink

Former Member
0 Kudos

I have configured ArchiveLink and i have test and it works. But when i try archive a document from Adobe nothing happens.

I have filled out the three required fields which are:

GS_DARATAB-SAP_OBJECT = 'PREL'.

GS_DARATAB-AR_OBJECT = 'ZTJ_BEVIS'.

GS_DARATAB-OBJECT_ID = '00010001'.

Below is my code for calling Adobe form:

  • Supress dialog window

IE_OUTPUTPARAMS-NODIALOG = ''.

  • Preview of pdf

IE_OUTPUTPARAMS-PREVIEW = 'X'.

CALL FUNCTION 'FP_JOB_OPEN'

CHANGING

IE_OUTPUTPARAMS = IE_OUTPUTPARAMS

EXCEPTIONS

CANCEL = 1

USAGE_ERROR = 2

SYSTEM_ERROR = 3

INTERNAL_ERROR = 4

OTHERS = 5.

IF SY-SUBRC <> 0.

EXIT.

ENDIF.

CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'

EXPORTING

I_NAME = '/DIGOFF/HR02_TJENESTEBEVIS'

IMPORTING

E_FUNCNAME = I_FUNCNAME.

GS_DARATAB-SAP_OBJECT = 'PREL'.

GS_DARATAB-AR_OBJECT = 'ZTJ_BEVIS'.

GS_DARATAB-OBJECT_ID = '00010001'.

  • GS_DARATAB-FORMARCHIV = 'Z4'.

  • GS_DARATAB-FORM_ID = 'PDF'.

APPEND GS_DARATAB TO GT_DARATAB.

FP_DOCPARAMS-DARATAB = GT_DARATAB.

  • Call the Adobe form

CALL FUNCTION I_FUNCNAME

EXPORTING

/1BCDWB/DOCPARAMS = FP_DOCPARAMS

PERSONDATA = WA_PERSONDATA_ADOBE

KONTRAKTDATA = GT_PLANS_ADOBE

TIMEDATA = GT_TIMER_ADOBE

FIRMADATA = GT_COMPANY_INFO_ADOBE

LOGO = GD_LOGO

FRI_TEKST = GD_STRING_ADOBE

IMPORTING

/1BCDWB/FORMOUTPUT = FP_FORMOUTPUT.

CALL FUNCTION 'FP_JOB_CLOSE'

  • IMPORTING

  • E_RESULT =

EXCEPTIONS

USAGE_ERROR = 1

SYSTEM_ERROR = 2

INTERNAL_ERROR = 3

OTHERS = 4 .

IF SY-SUBRC <> 0.

EXIT.

ENDIF.

And on the dialog i tell that i want to archive the document.

I also referred to the following SAP documentation:

http://help.sap.com/saphelp_nw2004s/helpdata/EN/6d/bd2d828aa04eeb9451aad0d02ae9a0/frameset.ht

m

Am i missing something?

Any help will be appreciated.

Thanks

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Nahman,

I have a requirement where I just need to Archive Adobe form in External repository.

Since you are using the archiveLink functionality.

  

Can you please help me how you did?? What configurations need to be maintained for this?

I am new to this. I did some Rnd on it and found that it can be achieved using HRFORM_HRF02 Business Add-In in the SET_ARCHIVE_INDEX method.

But I have no clue how to do it?

Can you please help me?