cancel
Showing results for 
Search instead for 
Did you mean: 

Finding Print program

Former Member
0 Kudos

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?

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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

Former Member
0 Kudos

hi using TTXFP u get scripts but not smartforms

Former Member
0 Kudos

Thanks Vinay and Durgaprasad. Got it.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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