Skip to Content
avatar image
Former Member

SAP Script Layout Set


Let me know how to use different layout set for a single driver program.


Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    avatar image
    Former Member
    Jul 20, 2007 at 08:41 AM


    it is possible to assign multiple layout sets for single driver program but the output type should be the same.

    I mean, the functionality of all the layout sets should be the same then only possible to assign a single driver program(without modification or add extra statements using subroutine program). You need to discuss with your functional people to get the related information and in the transaction NACE you can do it manually.

    award points useful.

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member


      in print program, we declare TABLES which are used for extracting data in declaration part.

      you write the SELECT statement for extracting data before calling the script function modules....

      these are the function modules which are freequently used in print program.


      The function module OPEN_FORM opens form printing. You must call this function module before you can use any other form function (WRITE_FORM, START_FORM, CONTROL_FORM...).

      You need not specify a form name. If you omit the name, you must use the function module START_FORM to open a form before starting the output.

      You must end form printing by using the function module CLOSE_FORM. Otherwise, the system does not print or display anything.

      Within a program, you can use several OPEN_FORM.. CLOSE_FORM pairs. This allows you to write output to several different spool requests from within one program.




      FORM = ' ' " specifies the form name




      The function module closes the form opened using OPEN_FORM. The system executes any terminating processing steps for the last opened form.

      You must use this function module to close form printing. Otherwise, no output appears on printer or screen.


      there is no mandatory parameters to this function module.


      In-between the function modules OPEN_FORM and CLOSE_FORM, you can use different forms. This allows you to combine several different forms into one print output. However, you can combine only those forms that have the same page format.

      To switch forms, use the function module START_FORM. If another form is still open, you must close it first using END_FORM.



      FORM = < > "specifies the form name

      LANGUAGE = < > "specifies the language

      STARTPAGE = ' ' "specifies the page name which you

      " want print


      END_FORM ends the currently open form and executes the required termination processing. After calling this function module, no more form is active. For further output, you must start a new form using START_FORM.



      The system outputs the form element specified in parameter ELEMENT into the currently opened form.

      In the parameter WINDOW you can specify the name of a window for the output. Remember that the form element must be defined in this window.



      ELEMENT = < > "specifies the element name

      WINDOW = < > " name of the window

      TYPE = 'BODY' "specifies the output location


      Use CONTROL_FORM to pass SAPscript control statements to the form.



      COMMAND = < > "specifies the name of the control command

      follow this sequence.






      Reward all helpfull answers



  • avatar image
    Former Member
    Jul 20, 2007 at 08:02 AM


    After completion of the development of driver program and layout sets we need to inform to the functional consultants. They will assign that driver program and layout sets basing on output types through NACE transaction.

    Syn:- <output type > <driverprogram> <layoutset>

    Ex:- ZL04 zvaddn zlayout

    ZL01 zvaddn zlayout1

    ZL02 zvaddn zlayout2

    Reward points!!

    Thanks & Regards,

    Vasudeva Rao

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 20, 2007 at 09:05 AM


    Welcome to SDN

    You have to use the different OPEN_FORMs and to each Open_form you have to pass one Layout name each and to use.

    if it is a Zcustom Program you design 2 to 3 layouts and call like this and see

    <b>Reward points for useful Answers</b>



    Add comment
    10|10000 characters needed characters exceeded

  • Jul 20, 2007 at 09:40 AM

    You can call any number of forms in driver program, but before you call a new form be sure you close the old one.


    Function modules,

    OPEN_FORM "1st form

    CLOSE_FORM "Close of 1st form

    OPEN_FORM "2st form

    CLOSE_FORM "Close of 2st form



    Reward points if useful.



    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 25, 2007 at 01:58 PM

    Hi Sharad,

    I think this is what you are looking for:

    In the output type definition (Trx NACE - Output Types) you define the most common Program and (Smart)Form that is used.

    E.g. output type ZQ01 connects to program RLB_INVOICE and SmartForm ZLB_BIL_INVOICE.

    Then you can set up condition records for a numerous options, for example the document type. In this condition record, you select a document type and press the button Communication.. In this page, you can set a different SapScript of SmartForm to overrule the settings you made in the output type. The Print Program wil stay the same.

    e.g. For document type IV (InterCompany), you can set SmartForm ZLB_BIL_INVOICE_INTERCOMP.

    In this way, you won't have to use a Z-program, and you can use the same print program with different layout forms.

    Please award points if this helps.

    With kind regards,

    Dave Verkoelen

    Add comment
    10|10000 characters needed characters exceeded