Disabling printer selection screen
Hi All,
I have developed a smartform which will be printed throug a normal report.
When i am executing the report, i am getting the pop up screen for selecting the output device, etc...i want to disable this screen, so that after executing the report, i can directly see my output with out this printer selection pop up screen.
Thanks,
Raju
Hi Raj,
here is a piece of code.
DATA:
W_INPUT TYPE SSFCOMPIN,
W_CONTROL TYPE SSFCTRLOP.
W_INPUT-DIALOG = 'X'.
CALL FUNCTION 'SSFCOMP_OPEN'
EXPORTING
INPUT = W_INPUT
EXCEPTIONS
ERROR = 1.
LOOP AT IT_FINAL INTO WA_FINAL.
W_CONTROL-NO_OPEN = 'X'.
W_CONTROL-NO_CLOSE = 'X'.
CALL FUNCTION FNAME
EXPORTING
CONTROL_PARAMETERS = W_CONTROL.
ENDLOOP.
CALL FUNCTION 'SSFCOMP_CLOSE'
EXCEPTIONS
ERROR = 1.
The above can be also used for Single spool generation.
Thanks & regards,
Dileep .C
Similar Messages
-
How to disable the Selection screens of LDB's ?
Hi,
How to disable the Selection screens of LDB's when we r using the predefined LDB for our executable pgm ? and how to include the predefined LDB can u write the Code for including LDb or if possible give an example of a Pgm using a Predefined LDB?
Thanks & Regards,
Gopi.Hi Gopi,
Go through the link,
http://www.sapdevelopment.co.uk/hr/hrhome.htm
Regards,
Azaz Ali. -
Printing Selection-Screen while printing ALV Grid output display
Hi,
I have a requirement wherein I want to print the Selection Screen also while printing the output in simple ALV grid Display.
Currently when I print the ALV output report, only the header and the Body of the ALV is getting printed. But the requirement is that I also want to print Selection screen along with this.
If anyone has faced a similar situation, plz let me know what needs to be done in order to print the selection screen also while printing the ALV report output.
Rgds,
NitinHi,
You can use given function module to print your
selection screen
RS_REFRESH_FROM_SELECTOPTIONS
>This will get Current contents of selection screen
RS_LIST_SELECTION_TABLE
>This will Generates list according to values in selection table(RSPARAMS)
Sample
CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
EXPORTING
curr_report = p_repid
TABLES
selection_table = it_int_tab
EXCEPTIONS
not_found = 1
no_report = 2
OTHERS = 3.
IF sy-subrc EQ 0.
WRITE:1 'Selection Criteria'(i19),
/1 sy-uline(18),
/1 'Variant Name'(i21),
23 sy-slset.
*-- This function module lists the Selection Screen contents
CALL FUNCTION 'RS_LIST_SELECTION_TABLE'
EXPORTING
report = p_repid
seltext = 'X'
newpage = space
TABLES
sel_tab = it_int_tab
EXCEPTIONS
sel_tab_empty = 1
OTHERS = 2.
Mark all helpful answers -
Need help to disable input selection-screen - very urgent
Hi SAP experts,
I have a requirement where in I need to disable ( Grey out ) the input fileds on the selection screen .
My problem is as I am using ABAP query I am not able to use any events ( AT SELECTION-SCREEN OUTPUT ).
My selection screen looks like this
MATERIAL NUMBER ( SELECT-OPTIONS)
MATERIAL TYPE ( PARAMETERS )
Now I want to add one more check box below the above fields on the selection-screen.When I click on the check-box,the MATERIAL NUMBER must be greyed out and MATERIAL TYPE should remain the same.
Please let me know the coding for the same. All answers would be rewarded.
Thanks in Advance,
Suresh.Hi,
Check out these codes.
1.
TABLES : mara, makt.
parameter: p_matnr type mara-matnr,
p_maktx type makt-maktx.
at selection-screen output.
select single maktx
from makt
into p_maktx
where matnr = p_matnr
and spras = 'EN'.
loop at screen.
if screen-name = 'P_MAKTX'.
screen-input = 0.
modify screen.
endif.
endloop.
2.
TABLES : mara, makt.
TYPES:BEGIN OF tp_maktx,
maktx TYPE makt-maktx,
END OF tp_maktx.
DATA:t_maktx TYPE STANDARD TABLE OF tp_maktx,
wa_maktx TYPE tp_maktx.
SELECT-OPTIONS: s_matnr FOR mara-matnr.
SELECT-OPTIONS: s_maktx FOR makt-maktx.
INITIALIZATION.
REFRESH s_maktx[].
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF screen-name = 'S_MAKTX-LOW' or screen-name = 'S_MAKTX-HIGH'.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
REFRESH s_maktx[].
if s_matnr[] is not initial.
SELECT maktx FROM makt
INTO TABLE t_maktx
WHERE matnr IN s_matnr
AND spras = 'EN'.
endif.
LOOP AT t_maktx INTO wa_maktx.
s_maktx-low = wa_maktx-maktx.
APPEND s_maktx.
CLEAR:wa_maktx.
ENDLOOP.
3.
TABLES : mara, makt.
parameter p_cb1 type c as checkbox.
parameter p_cb2 type c as checkbox.
parameter p_cb3 type c as checkbox.
initialization.
loop at screen.
if screen-name = 'P_CB3'.
screen-invisible = 1.
modify screen.
endif.
endloop.
at selection-screen output.
*loop at screen.
*if screen-name = 'P_CB3'.
*screen-invisible = 1.
*modify screen.
*endif.
*endloop.
loop at screen.
if p_cb1 = 'X'.
if screen-name = 'P_CB2'.
screen-invisible = 1.
modify screen.
endif.
if screen-name = 'P_CB3'.
screen-invisible = 0.
modify screen.
endif.
endif.
if p_cb2 = 'X'.
if screen-name = 'P_CB3'.
screen-invisible = 1.
modify screen.
endif.
if screen-name = 'P_CB1'.
screen-invisible = 0.
modify screen.
endif.
endif.
if p_cb3 = 'X'.
if screen-name = 'P_CB1'.
screen-invisible = 1.
modify screen.
endif.
if screen-name = 'P_CB2'.
screen-invisible = 0.
modify screen.
endif.
endif.
endloop.
Reward if helpful..
Regards. -
How to Print Selection-Screen along with ALV Report output
Hi,
I have a requirement wherein i need to also print the Selection Screen of a report when I print the ALV report output.
Basically i need to print the ALV output along with selection screen.
Could you plz suggest me the way.
Regards,
NitinHi,
My selection Screen is a very big one. It contains around 30 select-options.
So is their any standard method in which you can choose whether you want to take the output printout with or without Selection screen.
Regards,
Nitin -
Print Selection Screen Parameters in ALV report only once
Does anyone know how to print the selection screen within a ALV report.
I've tried everything. I have the code to capture the selection parameters into a internal table. I can use top_of_page but I only want it printed once.Hi,
If you have captured the selection screen entries in an internal table, then you could display it once by using the BLOCK LIST ALV.
Check the function module.
REUSE_ALV_BLOCK_LIST_DISPLAY
Using this function module more than 1 alv could be display in the report.
In our case ..there will be two alvs ...one for the selection screen n other for the main report output.
Check the following example on the block List ALV....
<b>BALVBT01</b>.
Regards,
Vara -
Disable a selection screen field
Hi All,
I have 2 selection screen fields if enter any value in field 1 another field should be disabled with out pressing enter on the selection screen. am able to do disable by pressing enter onc i give the value in field 1.
Please do needful.
Thanks in advance.
Thanks,
Ramu.Hi Ramu,
As far as i know its not possible without pressing enter/Execute or any action on selection screen.
This is because report programming is event driven. So without any event i don't think we can achieve this.
Probably u can search in SDN/Google as well. If u r lucky enough some one has found some thing for you. But at the same time don't forget to update this thread if u find some thing:-)
Thanks,
Vinod. -
How to disable the selection screen element?
Hello Colleague,
I have a report which has a checkbox in the selection screen. Currently I need to create two transaction codes for the report. When Tcode1 is executed, the program will execute in normal way. When Tcode2 is executed, the checkbox should be selected and greyed (not ready to input).
To implement the requirement, I think I should control the screen in the INITIALIZATION event according to the SY-TCODE. But when I tried to use LOOP AT SCREEN, I find SCREEN is empty.
I search a lot of threads. They all introduce the selection control after screen is displayed.
Can any expert help me on the problem?
Thansk & Regards, Yongbo.I think you can use Screen Variants T.Code SHD0.
-
How do i get print to pdf option in MS programs under printer select screen?
Hello there how do i install the print to PDF option in printer select box within MS programs
Are you a subscriber to Adobe PDF Pack?
-
Disable printing selection criteria in SAP reports
Hi,
Is it possible to disable the print of the selection criteria when i print an report from SAP.
Now i always get an extra print and that is not usefull.
thx
MarkHi,
Are u refering to The serial number and batch management report if so that can be disable by print prefernces....
Try it.
Regards
Chidambaram -
Selection screen dynamic enable and disable
HI all,
I have one requirement like
on selection of redio button my selection screen hould be enable and disable
Like if i select rediobutton tfile then my selection screen block B2 should enable and Block B3 hould be disable
If redio button selscr is selected then my block B3 should be enable and Block B2 should disable
my selection screen code is below
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-005.
PARAMETERS: tfile RADIOBUTTON GROUP g1 DEFAULT 'X'.
PARAMETERS: selscr RADIOBUTTON GROUP g1.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-001.
SELECT-OPTIONS : s_matnr FOR marc-matnr,
s_fkdat FOR vbrk-fkdat OBLIGATORY.
SELECTION-SCREEN END OF BLOCK b2.
SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-002.
PARAMETERS : filename TYPE rlgrap-filename.
SELECTION-SCREEN END OF BLOCK b3.
How to do that.
Help me here its urgent tnx in advance.Hi Lalit,
Check the below code.
TABLES: marc, vbrk.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-005.
PARAMETERS: tfile RADIOBUTTON GROUP g1 DEFAULT 'X' USER-COMMAND rusr.
PARAMETERS: selscr RADIOBUTTON GROUP g1.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-001.
SELECT-OPTIONS : s_matnr FOR marc-matnr MODIF ID abc,
s_fkdat FOR vbrk-fkdat MODIF ID abc.
SELECTION-SCREEN END OF BLOCK b2.
SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-002.
PARAMETERS : filename TYPE rlgrap-filename MODIF ID def.
SELECTION-SCREEN END OF BLOCK b3.
AT SELECTION-SCREEN OUTPUT.
*Note: To disable the fields use the below one.
LOOP AT SCREEN.
IF screen-group1 = 'DEF'. "Name field
IF selscr = 'X'.
screen-input = 1.
ELSE.
screen-input = 0.
ENDIF.
MODIFY SCREEN.
ENDIF.
IF screen-group1 = 'ABC'. "Name field
IF selscr = 'X'.
screen-input = 0.
ELSE.
screen-input = 1.
ENDIF.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
*Note: To hide the screen use the below one.
LOOP AT SCREEN.
IF screen-group1 = 'DEF'. "Name field
IF selscr = 'X'.
screen-active = 1.
ELSE.
screen-active = 0.
ENDIF.
MODIFY SCREEN.
ENDIF.
IF screen-group1 = 'ABC'. "Name field
IF tfile = 'X'.
screen-active = 1.
ELSE.
screen-active = 0.
ENDIF.
MODIFY SCREEN.
ENDIF.
ENDLOOP. -
Hi ,
How to omit few fields in data selection period of pnp selection screen.You can disable the selection screen element in at selection screen output event.
Ex: The following code has been written for one of the FI related ldb.
Check the field names of pnp ldb in debugging mode and use it.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF SCREEN-GROUP3 = 'IXS'.
SCREEN-ACTIVE = '0'.
SCREEN-INVISIBLE = 1.
MODIFY SCREEN.
CONTINUE.
ELSEIF SCREEN-GROUP4 = '023'.
SCREEN-ACTIVE = '0'.
SCREEN-INVISIBLE = 1.
MODIFY SCREEN.
CONTINUE.
ELSEIF SCREEN-NAME = 'DD_BUKRS-LOW'.
SCREEN-REQUIRED = '1'.
MODIFY SCREEN.
CONTINUE.
ELSEIF SCREEN-NAME = 'DD_BUKRS-HIGH'.
SCREEN-ACTIVE = '0'.
SCREEN-INVISIBLE = 1.
MODIFY SCREEN.
CONTINUE.
ELSEIF ( SCREEN-GROUP3 = 'VPU'
AND SCREEN-GROUP4 = '007' ).
SCREEN-ACTIVE = '0'.
SCREEN-INVISIBLE = 1.
MODIFY SCREEN.
CONTINUE.
ELSEIF SCREEN-NAME = 'DUEDATE1'.
SCREEN-INPUT = 0.
MODIFY SCREEN.
CONTINUE.
ENDIF.
ENDLOOP. -
How to remove an selection screen element at the event
hi,
can any one tell me how to remove / Disable an selection screen element at the runtime after an event occurs like selection of Value from a parameter.
Thanks and Regards
Guhapriyan SubrahmanyamTABLES : BKPF.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETERS : P_BUKRS LIKE BKPF-BUKRS OBLIGATORY.
"Company code
SELECT-OPTIONS : S_BELNR FOR BKPF-BELNR MODIF ID M01.
"Accounting Doc No
PARAMETERS: P_GJAHR LIKE BKPF-GJAHR MODIF ID M02.
"Fiscal year
SELECTION-SCREEN END OF BLOCK B1.
AT SELECTION-SCREEN ON S_BELNR.
IF S_BELNR IS NOT INITIAL.
LOOP AT SCREEN.
IF SCREEN-GROUP1 = 'M02' .
SCREEN-INVISIBLE = '1'.
MODIFY SCREEN .
ENDIF.
ENDLOOP.
ENDIF. -
Display list on selection-screen
Hello everyone,
I've got a question concerning selection screen. I want to know, if there is a way to display list/table on selection screen after user input. Specifically, when user enters for example 30 invoice numbers into select-options, I need those 30 numbers displayed on the same selection screen.
Thanks in advanceinstead u can print selection screen....along with output.....
for this....
You can use given function module to print your
selection screen
RS_REFRESH_FROM_SELECTOPTIONS
>This will get Current contents of selection screen
RS_LIST_SELECTION_TABLE
>This will Generates list according to values in selection table(RSPARAMS)
Sample
CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
EXPORTING
curr_report = p_repid
TABLES
selection_table = it_int_tab
EXCEPTIONS
not_found = 1
no_report = 2
OTHERS = 3.
IF sy-subrc EQ 0.
WRITE:1 'Selection Criteria'(i19),
/1 sy-uline(18),
/1 'Variant Name'(i21),
23 sy-slset.
*-- This function module lists the Selection Screen contents
CALL FUNCTION 'RS_LIST_SELECTION_TABLE'
EXPORTING
report = p_repid
seltext = 'X'
newpage = space
TABLES
sel_tab = it_int_tab
EXCEPTIONS
sel_tab_empty = 1
OTHERS = 2. -
How to Display my Form in the selection screen.(without print format)
Hi all,
I did one gate pass form and i want to view the form in my selection screen or output screen(just in monitor) as a display by giving one Z-code.
i.e, we can view the form thru Print preview...the same preview, i want to display after i give my parameter in the selection screen.
For example.ZGPOUT if i enter as a t-code.
it should ask my Gate Pass number in the Selection screen...if its right then my Form will come out to the display screen. (instead of going by Print method).,
Pls post ur comment and reply me with examples,if possible.
thanks & regards
sankar.Hi Prasad,
Pls refer the below link.
<< Moderator message - Point begging removed >>
http://wiki.sdn.sap.com/wiki/display/Snippets/Displayimagesontheselection-screen
Thanks
Arjun
Edited by: Rob Burbank on Aug 17, 2011 2:24 PM
Maybe you are looking for
-
Hi All, Can we create Process chains in R/3.If means how? Can we call process chains in R/3 means Background scheduling? Please give information regarding this? Thanks, Mahesh
-
Triple Monitor setup for e9270t
I have two 24-inch monitors running at 1920x1200 on my e9270t with GTX260 (1792MB), W7 64-bit. I have an unused 23-inch monitor I'd like to use. I didn't think I could just slap any old video card in. Recommendations? This is not a gaming rig, I just
-
When in Bridge iselect image try goto Photoshop then choose Batch it looks like its going to work. Photoshop opens up then halfway through it just stops and will not open. i have tryed Command Option,Shift and nothing looked at the preferances, and
-
XBox and Media Center on Boot Camp
My PC just died so I installed Windows 7 on one of my macs and really all I use it for it Windows Media Center to stream movies to my XBox 360. I went through the windows 7 install and all was good. When I tried to get my XBox to see the media center
-
Help. I purchased some ringtones and when I go to assign to a contact I do not see them. I only see the ringtones that came with the phone. In settings I can see the new ringtones, but not when I try to assign to a contact. Any suggestions?