on 04-25-2014 11:30 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ahmed
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.