cancel
Showing results for 
Search instead for 
Did you mean: 

Finding Driver report for adobe form

Former Member
0 Kudos

Hi Guru's ,

I have a interface and form developed already. There must be a report that is also present that should run this form. Is it possible to find the Driver Prog using the Form name or interface name ?

Please Help me out here.

*URGENT*

Thanks in advance.

Regards,

Syed Monsoor Ahmed M

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Syed...

I tried this ..its working ...check this code.....

*&---------------------------------------------------------------------*

*&      Form  print_form

*&---------------------------------------------------------------------*

*       Subroutine to print the form

*----------------------------------------------------------------------*

FORM print_form .

  DATA : l_fmname TYPE funcname,

         l_params TYPE sfpoutputparams,

         l_docparams TYPE sfpdocparams,

         l_formoutput TYPE fpformoutput.

**** Sets the output parameters and opens the spool job

  CALL FUNCTION 'FP_JOB_OPEN'

    CHANGING

      ie_outputparams = l_params

    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.

**** Get the name of the generated function module

  CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'

    EXPORTING

      i_name                    = 'ZDEMO_AF1'    " Created Form Name

   IMPORTING

     e_funcname                 = l_fmname       " FM Name

*   E_INTERFACE_TYPE   =

            .

*  l_params-getpdf = 'X'.

  l_params-nodialog = ''.

  l_params-preview = 'X'.

**** Fetch the Data and store it in the Internal Table

SELECT * FROM ZEMP INTO TABLE IT_EMP WHERE EMPID = ZEMP-EMPID.

**** Language and country setting (here US as an example)

  l_docparams-langu = 'E'.

  l_docparams-country  = 'US'.

**** Call the generated function module

  CALL FUNCTION  l_fmname

    EXPORTING

      /1bcdwb/docparams  = l_docparams

      *g_regis            = g_regis

      *g_date             = g_date

      *g_frmname          = g_frmname

      *g_comp             = g_comp

    IMPORTING

      /1bcdwb/formoutput = l_formoutput

    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.

**** Close the spool job.

  CALL FUNCTION 'FP_JOB_CLOSE'

* IMPORTING

*   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.

ENDFORM.                    " print_form

Former Member
0 Kudos

Hi Syed,

please try the program name :rs_abap_source_scan



Please execute the program give Z* or Y* for the programs.Put your search string "adobe form name or interface name" on the string tab and click on exceute .It will display you all possible programs where the mentioned string was used.

Let me know whether it was helpful for you.

Regards,

Kannan

Former Member
0 Kudos

I have not personally tried this but here is a tool that is supposed to provide you with a where-used list for your forms

Once again I have not tried this myself.

Former Member
0 Kudos

Hi  Ahmed

  • Please serach table TNAPR-In TNAPR Form Type is 2.
  • NACE transaction->Select the application type, and
    Click Output Types-> Choose the Output type and Click on Processing Routines
    Here you can find the Driver program and and the Corresponding PDF Form
Former Member
0 Kudos

Hi Sankar,

This is not working. There is no table TNAPR-ln or TNAPR

Former Member
0 Kudos

Hi  ahmed,

I am able to see the table TNAPR, please check it once.

Regards,

Sankar