on 06-08-2007 3:39 AM
Hi All,
I have a requirement in smartform wherein i have to disable the area where we enter number of copies in the Print dialog box, which comes when we execute the program.
In the print dialog box we usually enter the output device and can choose various options in Spool Control, Number of Copies, etc.
So here my requirement is that even if user enters more than 1 in Number of copies, in the output it should take only as 1.
Kindly let me know how to do this..
Thanks,
Hi Ashwani,
You need to do an implicit enhancement for this requirement.
Program : SAPLSTXBC
Include : LSTXBCFOP
Form : PBO_FRONTEND
Code :
LOOP AT SCREEN.
IF SCREEN-NAME = 'SSFPP-TDCOPIES'.
SCREEN-INPUT = '0'.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
Regards,
Lohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This is simple : Use Structure SSFCOMPOP
p_out-tdnoprev = 'X'.
p_out-tdnoprint = 'X'.
p_out-tdnoarch = 'X'.
p_out-tddelete = 'X'.
p_out-tddest = p_dest.
p_out-tdnewid = ''.
p_out-tdimmed = ' '.
p_out-tdcopies = 1.
p_out-tddataset = sy-repid.
p_out-tddelete = ' '.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Seshu,
Thanks for the reply.
But if i do by the way u told Number of copies will be 1 but if the user changes it to 2 in the Print dialog box, then it will change to 2 and it won't remain as 1.
I want to override user's value. Whatever user enters in number of copies, my program should take it as 1 only.
Plz let me know on this.
Thanks,
User | Count |
---|---|
81 | |
24 | |
11 | |
9 | |
7 | |
5 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.