Let me know how to use different layout set for a single driver program.
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.
in print program, we declare TABLES which are used for extracting data in declaration part.
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 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.
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.
Use CONTROL_FORM to pass SAPscript control statements to the form.
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.
You have to use the different OPEN_FORMs and to each Open_form you have to pass one Layout name each and to use.
You can call any number of forms in driver program, but before you call a new form be sure you close the old one.
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.