cancel
Showing results for 
Search instead for 
Did you mean: 

Print programm for "FMCA_INVOICE_SAMPLE_PDF"

Former Member
0 Kudos

Hello,

I would like to test/modify the given adobe sample invoice FMCA_INVOICE_SAMPLE_PDF (SFP).

Does anybody know a corresponding print programm in SE38 or better: How can I find the print programm to any (sample) form?

Thanks for help.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello Guy,

i dont now a programm for this formular, but i can tell you how to call it by a own program.

To find the programm maybe try to find a program which use the datatypes on the exportparameter of the interface

***********************************************************************
* Data Definition for Adobeforms BEGIN
DATA: gs_outputparams       TYPE sfpoutputparams.  
DATA: gs_docparams          TYPE sfpdocparams.     
DATA: gs_result             TYPE fpformoutput. 
DATA: e_result              TYPE sfpjoboutput.
DATA: lf_fm_name            TYPE rs38l_fnam.
DATA: lf_formname           TYPE tdsfname.
* Data Definition for Adobeforms END
************************************************************************

lf_formname = 'THE_FORMULAR_NAME"'.

  CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'
    EXPORTING
      i_name                     = lf_formname
       IMPORTING
      e_funcname                 = lf_fm_name
*   E_INTERFACE_TYPE           =
  .

  CALL FUNCTION 'FP_JOB_OPEN'
    CHANGING
      ie_outputparams = gs_outputparams
    EXCEPTIONS
      cancel          = 1
      usage_error     = 2
      system_error    = 3
      internal_error  = 4
      OTHERS          = 5.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.


************************************************************************
* Now call the generated function module
*Please copy the parameter of the invoice interface into Exporting
************************************************************************
  CALL FUNCTION lf_fm_name
    EXPORTING
      /1bcdwb/docparams  = gs_docparams
      v_value            = g_value
....
...
....
....
...
    IMPORTING
      /1bcdwb/formoutput = gs_result
    EXCEPTIONS
      usage_error        = 1
      system_error       = 2
      internal_error     = 3
      OTHERS             = 4.

  IF sy-subrc <> 0.

    DATA: e_adserrstr TYPE string.
    CALL FUNCTION 'FP_GET_LAST_ADS_ERRSTR'
      IMPORTING
        e_adserrstr = e_adserrstr.

    CALL FUNCTION 'FP_GET_LAST_ADS_TRACE'
      IMPORTING
        e_adstrace = e_adserrstr.

    " MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
    "        WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

endif.

CALL FUNCTION 'FP_JOB_CLOSE'
  IMPORTING
    e_result       = e_result
  EXCEPTIONS
    usage_error    = 1
    system_error   = 2
    internal_error = 3
    OTHERS         = 4.
IF sy-subrc <> 0.
  MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.

But if you want only a test program to look how it works you can use programm "FP_TEST_03"

Regards

Edited by: Florian Martin on Jun 28, 2011 8:23 AM

Former Member
0 Kudos

Thank you for your answer.

For me it's clear how I can create a adobe formular and how i can write a print program for it.

I want to create an invoice form and need a print program for the elementary things, so that I don't need to reinvent all the basics. (invoice head, invoice positions etc.)

Can somebody help?

Thanks.

Former Member
0 Kudos

Then i think i can help you.

Try program SD_INVOICE_PRINT01 and adobeform SD_INVOICE_FORM01.

Regards

Former Member
0 Kudos

Thanks.

Do you have an idea why this form and the program doesn't exist in mysystem? I can't find them in SFP and SE38

Br

Former Member
0 Kudos

Hello,

maybe your SAP Version is to old, or you don't have some additional components.

The printprogram is in package VD_PDF.

Try to search in SAP Notes, maybe you find the name of components you don't have installed.

We have SAP ECC 6.0 Basis Release 701

Regards

Answers (0)