Skip to Content
author's profile photo Former Member
Former Member

SAPscript print program

Hi All

I have the SAPscript form name. I need to find out the name of the print program.

The table TNAPR gives the standard program name attached to the SAPscript.

But, I need to find out the Z* program name associated with the SAPscript.

Pls do help on this.

Thanks,

Zahabia.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    Posted on Dec 04, 2007 at 05:13 AM

    If your SAPScript is attached to any of the output type in the NACE than you can definatly find it out in the TNAPR.

    One other way,

    Open SE71. Open the form in the display mode.

    Form > Check > Text

    Select Include res. Hit enter..

    System will show you one program name. That program might be your calling program of the SAPScript.

    Regards,

    Naimesh Patel

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 05:18 AM

    Hi

    ignore above one

    Hi..

    1. In the Text elements of a Window (in SE71)

    Menu path: TEXT -> CHECK

    this will show the print programs linked.

    2. Table TNAPR stores the FORMS and PRINT PROGRAMS

    reward if Helpful.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 04:01 AM

    Hi Zahabia,

    On the menu bar, click on Form->Check->Texts.

    Then select Include res. on the popup screen.

    This will show you the program name which calls your SAPscript.

    Thanks,

    Dawood.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 04, 2007 at 05:16 AM

    hI

    Sapscripts are client dependend and smartforms are client independet.

    SAPscript are CLient Dependent, SmartForms are Client Independent. The reason why SmartForms are client independent is because when you activate a SMartForm, SAP actually generates a Function Module (which as you know is client independent). The Print Program (or as SAP likes to refer to them these days - Application Program) calls your generated FM.

    In the "smartforms" transaction, when you are viewing a smartform, you can go to the Environment->Function Module Name menu path to see the FM name.

    Look at the "Application Program" for the Invoice SmartForm (RLB_INVOICE):

    • determine smartform function module for invoice

    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.

    ....

    • call smartform invoice

    CALL FUNCTION lf_fm_name

    EXPORTING

    archive_index = toa_dara

    archive_parameters = arc_params

    control_parameters = ls_control_param

    • mail_appl_obj =

    mail_recipient = ls_recipient

    mail_sender = ls_sender

    output_options = ls_composer_param

    user_settings = space

    is_bil_invoice = ls_bil_invoice

    is_nast = nast

    is_repeat = repeat

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

    Difference with SMARTFORMS vs. SapScript (SE71)

    The Following are the differences :-

    a) Multiple page formats are possible in smartforms which is not the case in SAPScripts

    b) It is possible to have a smartform without a main window .

    c) Labels cannot be created in smartforms.

    d) Routines can be written in smartforms tool.

    e) Smartforms generates a function module when activated.

    Contributed by : SAP ABAP/4 Programming, Basis Administration, Configuration Hints and Tips

    f) Unlike sapscripts (RSTXSCRP), you cannot upload/download Smartform to your local harddisk.

    It was said that it was provided in CRM 3.0 version, but not available in R/3. You can download smartforms into Local PC in a XML format. In the same way you can upload this XML format into Smartform. From the smartform editor itself you can call download option, if you are working in CRM 3.0 environment.

    In R3 also, you can download into XML format. However, it's not sure about uploading. Refer to the program 'SF_XSF_DEMO'.

    In 4.7 Enterprise, other have seen this utlity which is completey missing in 4.6c. There is functionality to downlaod a complete form or only a particular node. (Utilities -> Download form). It will create a XML file and save it in the hard disk.

    For others, if you want to download/upload the Smartforms source, you will need the help from the Basis people. What you can do is to create a Transport and then FTP down to your local harddisk. When you need the Smartform source in another system, you have FTP up the Smartforms file back to the SAP server. Finally, the Basis team, will tp it into your system.

    g) The protect and endprotect command in sapscript doesn't work with smartforms. For example on a invoice: First data of position no 80. is printed on page one, other data of position no 80 is printed on page 2. And there's nothing you can do about it. Actually, there is something you can do about it. By using a folder node and checking the 'protect' checkbox, everything in that folder will be page protected.

    i) The main difference is that SAP script is client-dependant, while smartform is independent. Also there are some advanced and intreractive features available in smartforms.

    You can use an External subroutine-call in sapscript editor like:

    /: perform <form_name> in program <program_name>

    /: using <var1>

    /: using <var2>

    .

    .

    /: changing <return1>

    /: changing <return2>

    /:endperform

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.