cancel
Showing results for 
Search instead for 
Did you mean: 

Archiving smart forms with additional informations

Former Member
0 Kudos

Hello,

I'm archiving invoices via smart forms. This functionality already works.

Now I want to add additional informations to the archived pdf.

For example: company code, text and so on.

I have heard that it is possible to add these informations to the TOA_DARA table at the processing of the form (call function).

Unfortunately I haven't found any further informations about that.

Can anyone help me?

Thanks for every information!

Kind regards,

Wolfgang

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Go through the link to know about TOA_DARA.

http://help.sap.com/saphelp_nw70/helpdata/en/4f/9938e5446d11d189700000e8322d00/content.htm

https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/80dd00f9-7671-2910-99bb-e5a004a8...

Here is an example. Try it similarly.


 DATA: BEGIN OF XOBJID, 
          OBJKY  LIKE NAST-OBJKY, 
          ARCNR  LIKE NAST-OPTARCNR, 
        END OF XOBJID. 
  DATA: XOJ_NAME LIKE TOA_DARA-SAP_OBJECT. 
  DATA: XOBJKY   LIKE NAST-OBJKY. 
  
  CHECK NAST-TDARMOD = '2' 
    OR  NAST-TDARMOD = '3'. 
  XOBJKY = NAST-OBJKY. 
  CALL FUNCTION 'WFMC_GET_ARCHIVE_OBJECT_TYPE' 
       EXPORTING 
            PI_KAPPL       = NAST-KAPPL 
       IMPORTING 
            PE_OBJECT_TYPE = XOJ_NAME 
       CHANGING 
            PC_OBJKY       = XOBJKY. 
  IF XOJ_NAME = SPACE. 
    MESSAGE A049 WITH NAST-KAPPL. 
  ENDIF. 
  PERFORM T685B_LESEN USING NAST-KAPPL NAST-KSCHL. 
  
  CALL FUNCTION 'NUMBER_GET_NEXT' 
       EXPORTING 
            NR_RANGE_NR = '01' 
            OBJECT      = 'NA_OPT_ARC' 
       IMPORTING 
            NUMBER      = NAST-OPTARCNR. 
  XOBJID-OBJKY = XOBJKY. 
  XOBJID-ARCNR = NAST-OPTARCNR. 
  TOA_DARA-MANDANT    = NAST-MANDT. 
  TOA_DARA-SAP_OBJECT = XOJ_NAME. 
  TOA_DARA-AR_OBJECT  = T685B-ARCOBJART. 
  TOA_DARA-OBJECT_ID  = XOBJID. 
  
  ARC_PARAMS-SAP_OBJECT = XOJ_NAME. 
  ARC_PARAMS-AR_OBJECT  = T685B-ARCOBJART. 
  ARC_PARAMS-MANDANT    = NAST-MANDT. 
  
  IF NAST-TDRECEIVER NE SPACE. 
    ARC_PARAMS-ARCUSER    = NAST-TDRECEIVER. 
  ELSE. 
    ARC_PARAMS-ARCUSER    = NAST-USNAM. 
  ENDIF. 
  ARC_PARAMS-PRINTER    = NAST-LDEST. 
  ALARC_PAR1-SAP_OBJECT = XOJ_NAME. 
  ALARC_PAR1-AR_OBJECT  = T685B-ARCOBJART. 
  ALARC_PAR1-MANDANT    = NAST-MANDT. 
  ALARC_PAR1-ARCUSER    = NAST-USNAM. 
  ALARC_PAR1-PRINTER    = NAST-LDEST. 
  
ENDFORM. 

Regards

Former Member
0 Kudos

Hi,

thanks for your quickly reply!

The archiving works perfectly. I'm using standard reports - therefore the toa_dara is filled correctly.

What I want to do is fill more informations to one pdf, so I can read these index files by the archive software.

Any ideas?

Regards,

Wolfgang

Former Member
0 Kudos

Hi  Wolfgang 

I was searching on sdn for this requirement and saw this thread ...

I  need to add ( invoice archive  functionality  with smarforms  ) so   user can use tcode VF03 and  after giving  billing document details  he can  archive   invoice for a particular  output type ..

how to achive this  functionality    please guide me 

Thanks in advance

Regards

Meeta