ABAP Question
ABAP Question
ABAP Question
sap/script
2) How to select desired paper size in SAP-SCRIPTS?
Ans : Easy - page FRONT lists page CONTACTS as next page and CONTACTS lists
FRONT as next page. Since CONTACTS does not contain a MAIN window, it will print
the contacts info and then continue on to FRONT for the rest of the main items.
Additionally, set print mode on FRONT to D (duplex) and set CONTACTS to 'blank' (for
both resource name and print mode - this is the only way to get to the back of the page).
3)How to add extra functionality to a standard program without touching the print program?
Ans : U can use the subroutines in the script layout.
4) I know NACE transaction code is used for out put type determination, but i need a brief idea,
why and wht is the use of the NACE.
Ans : NACE is the tcode for using the giving interface for the report program/driver porogran and
the layout and then getting pr9int out also and finding the print program .tooo...
if sy-subrc = 0.
read table out_tab index 1.
move scustom-name to out_tab-value.
modify out_tab index sy-tabix.
else.
read table out_tab index 1.
move 'No name' to out_tab-value.
modify out_tab index sy-tabix.
endif.
** You could also fill the ouput parameter table this way
* READ TABLE out_par WITH KEY 'NAME1'.
* out_par-value = l_name1.
* MODIFY out_par INDEX sy-tabix.
endform.
Note that if you use more than one parameter you must use Using or Changing before every
parameter !
/: PERFORM <form> IN PROGRAM <prog>
/: USING &INVAR1&
/: USING &INVAR2&
......
/: CHANGING &OUTVAR1&
/: CHANGING &OUTVAR2&
......
/: ENDPERFORM