cancel
Showing results for 
Search instead for 
Did you mean: 

Store Smartform as PDF on invoice

jakob_steen-petersen
Active Participant
0 Kudos

Hi

Could anyone tell me how to pass parameters of Function Module CONVERT_OTF_AND_ARCHIVE in order to store a Smartform print on an invoice (MIR4)?

I need information on the ARC_P and ARC_I parameters...

Accepted Solutions (0)

Answers (1)

Answers (1)

alexander_bolloni
Contributor
0 Kudos

Hi Jakob,

CONVERT_OTF_AND_ARCHIVE is, to my knowledge, an internal FM of SAP. If you want to format a SmartForm and send it (as PDF) to Optical Archive (BC-SRV-ARL) you call the generated SF function module,  and to specify that this is for output channel "Archive", you set field TDARMOD of the OUTPUT_OPTIONS input structure to value '2' (means, only archive, no print, see domain SYARMOD).

You also need to fill archive-related parameters ARCHIVE_INDEX, ARCHIVE_PARAMETERS (which have the same types as for the internal FM, because they go into archiving API  ARCHIV_CREATE_OUTGOINGDOCUMENT)  .

As for these parameters, maybe search SCN for the DDIC structure like ARC_PARAMS, you will find posts there, e.g. http://scn.sap.com/thread/726599

Regards,

  Alex