Tuesday, December 21, 2010
We need to set 'X' to NO_DIALOG into SSFCTRLOP(Smart Forms: Control structure) structure. We have to export this structure through Smart Form function module.
REPORT ztest_smartform. DATA:it_nfal TYPE nfal OCCURS 0 WITH HEADER LINE. DATA:fm_name TYPE rs38l_fnam. DATA:ssfctrlop TYPE ssfctrlop. DATA:ssfcompop TYPE ssfcompop. PARAMETERS :p_printr TYPE ssfcompop-tddest DEFAULT 'LP01'. *START-OF-SELECTION. START-OF-SELECTION. "select data SELECT * FROM nfal INTO TABLE it_nfal UP TO 10 ROWS. ssfctrlop-no_dialog = 'X'. "It supresses the Printer dialog. ssfcompop-tddest = p_printr. "Printer from selection-screen "Get Function module name for given smartform CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME' EXPORTING formname = 'ZTEST_SMARTFORM' IMPORTING fm_name = fm_name. "Call Smartform function module. CALL FUNCTION fm_name EXPORTING control_parameters = ssfctrlop output_options = ssfcompop TABLES it_nfal = it_nfal.
Followers
Popular Posts
- ABAP - ALV Report example with steps
- ABAP - Step by step tutorial on Smart Forms - Template Node
- ABAP - Sending email with pdf attachment
- SAP Adobe Form - Steps to create simple ADOBE Form and calling it from ABAP Program
- SAP ABAP - CL_ABAP_CHAR_UTILITIES class usage
- ABAP - Multiple value selection from F4 help for SELECT-OPTIONS
- Execute ABAP Report using SUBMIT statement
- ABAP - Select all or Deselect all in ALV or Check box handling in ALV
- Web Dynpro ABAP ALV - ON_CLICK event
- ABAP - Dynamic WHERE clause
0 comments:
Post a Comment
Your useful comments, suggestions are appreciated.Your comments are moderated.