on 12-14-2006 12:12 PM
How to locate the print program for a SAPScript(form) without an output type?How do we get to know which specific print program is calling a specific form?
Hi Savitha,
Plz check for table TTXFP for selection of print programs.
Give your form name to TDFORM and get the print program in PRINT_NAME.
If an output type is assinged the check in table TNAPR.
Thanks,
Vinay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Actually a custom print program is calling the form.There is no output type using which we can locate it in NACE or TNAPR. The issue is , I need to know which program is calling this form.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
so u might be using SSF_fuctionmodule_name.
so in this FM give ur form name
as given below....
CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
EXPORTING
formname = lf_formname
VARIANT = ' '
DIRECT_CALL = ' '
IMPORTING
fm_name = lf_fm_name
EXCEPTIONS
no_form = 1
no_function_module = 2
OTHERS = 3
.
IF sy-subrc <> 0.
error handling
CF_RETCODE = SY-SUBRC.
PERFORM protocol_update.
ENDIF.
CALL FUNCTION lf_fm_name
EXPORTING
ARCHIVE_INDEX =
ARCHIVE_INDEX_TAB =
ARCHIVE_PARAMETERS =
CONTROL_PARAMETERS =
MAIL_APPL_OBJ =
MAIL_RECIPIENT =
MAIL_SENDER =
OUTPUT_OPTIONS =
USER_SETTINGS = 'X'
is_nast = l_nast
doc = l_doc
IMPORTING
DOCUMENT_OUTPUT_INFO =
JOB_OUTPUT_INFO =
JOB_OUTPUT_OPTIONS =
EXCEPTIONS
FORMATTING_ERROR = 1
INTERNAL_ERROR = 2
SEND_ERROR = 3
USER_CANCELED = 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.
this lf_formname is nothing but variable hloding ur formname
hi.
use TNAPR table entries to find all the print programs and forms..
other way use NACE transaction and select specific output type and get the rquired form details
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 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.