Dynamic Tray Selection
Hi All,
When the print out is issued from the SMARTFORM, it should automatically determine the tray for the paper (based on a pre-defined logic):
The trays can be:
Tray 1
Tray 2
Manual Feed
I tried sending Dynamic Value in RESOURCE NAME field of Smartform Page. The Value i tried in TRY1, TRY2. But printer is not selecting according to the value passed at runtime in field RESOURCE NAME. Could someone please let me know about the exact name to be specified in RESOURCE NAME as the field is 20 characters long.
If GET_PRINT_PARAMETERS is to be used, please let me know where should i pass the internal table which i get from GET_PRINT_PARAMETERS FM.
Thanks,
Best regards,
Prashant
Hai prashant,
Do you want to define the tray statically?.
Then you can mention the tray at the page level.
Select the page and select 'output options' tab.
There you can mention the tray name with the resource field.
if you want to select the tray dynamically then ,refer the OSS note 367128 and apply the OSS note which is applicable for release 4.6 C.
Implement the program correction. Afterwards, you can also enter a field (for example, ) in field 'Resource'. This field must be defined in a global manner (the type must be RSPORESNAM). You must set the value of this field before you call up the page. That is, you must either supply the value on the first page via the interface or you must set it during the initialization. If you call a page via an explicit page break, you must have set the value before the page break.
I hope this should resolve your issue.
You can even try using cal functions.
CALL FUNCTION 'GET_PRINT_PARAMETERS'
GET_PRINT_PARAMETERS
Regards,
Srikanth.
Please reward points If it is helpful
Similar Messages
-
Dynamic tray selection - SAPScript
Hi,
I need to dynamically select a tray to print a form using SAPScript, depending on some condition.
Need to know how to do this?
Thanks in advance!
regards,
KarenThere are 2 options. The first one I have not used before but I think it is the better way.
Example: You want print out an invoice on different paper.
In SAPscript you have in this invoice 2 pages: "FIRST" and "NEXT"
Salesorganization 1000 = TRY01
Salesorganization 2000 = TRY02
**************************************************************************************** 1st option
1st option: (As mentioned in this thread): Create not 2 but 4 pages:
F_01 and N_01 both with Resource Name = TRY01
F_02 and N_02 both with Resource Name = TRY02
Page F_01: in field "Next page": N_01
Page N_01: in field "Next page": N_01
Page F_02: in field "Next page": N_02
Page N_02: in field "Next page": N_02
In the print-program you have to decide if you want to have page F_01 and N_01 or F_02 and N_02.
For this reason call function "OPEN_FORM" without the name of the form (SAPscript) because in
call function START_FORM you can export the page.
data: GV_STARTPAGE type TDPAGE.
if vbdkr-vkorg = '1000'.
GV_STARTPAGE = 'F_01'.
endif.
if vbdkr-vkorg = '2000'.
GV_STARTPAGE = 'F_02'.
endif.
call function START_FORM
FORM = name of form
LANGUAGE = nast-spras
STARTPAGE = GV_STARTPAGE
and so on
call function WRITE_FORM
call function WRITE_FORM
call function WRITE_FORM
call function END_FORM.
call fuction CLOSE_FORM.
**************************************************************************************** 2st option
Short description:
Normal SAPscript only FIRST and NEXT, both with same tray.
ABAP: Do not print, only get OTF-data.
Change the tray in OTF-data.
Print OTF-data.
I have done this before and I know it works. But I think the 1st option is better.
You can change the field for the "Recource name" from TRY01 to TRY02 in the print program but only with a trick.
Do not print out in a normal way (Open_form; write_form; close_form).
Solution:
In function OPEN_FORM set field OPTIONS-TDGETOTF to 'X'.
This means: The function CLOSE_FORM will not print into spool and maybe from spool to the printer but the print data will only be stored into a table.
In SAPscript you have 2 Pages. FIRST and NEXT; both with Recource name = 'TRY01'.
At the end nn CLOSE_FORM you can receive the table OTFDATA.
data: GS_OTFDATA type ITCOO,
GT_OTFDATA type standard table of ITCOO.
call function CLOSE_FORM
tables OTFDATA = GT_OTFDATA.
* Up to now no data have been sent to spool.
* If you have a look now into table GT_OTFDATA (field TDPRINTPAR) you will
* find in the first lines "TRY01"
* You can change this
If vbdkr-vkorg = '2000'.
loop at GT_OTFDATA into GS_OTFDATA.
* Find the pattern "TRY01" in GS_OTFDATA-TDPRINTPAR
* with commands FIND or SEARCH or something like that.
* Change the pattern "TRY01" in GS_OTFDATA-TDPRINTPAR to "TRY02"
* and take over this change to table GT_OTFDATA with command "MODIFY".
* Please notice: In table GT_OTFDATA the pattern "TRY01" can occure more than 1 time.
modify GT_OTFDATA from GS_OTFDATA.
endloop.
endif.
* Now print the OTF-Data
call function PRINT_OTF
* the paramters are PRINTOPTIONS (same as in OPEN_FORM)
* and tables OTF = GT_OTFDATA.
Ok, I know the problem and the thread are very old but maybe someone wants to have a more detailed solution.
Keywords in English: SAP ABAP SAPscript Resource Name ITCTG-TDPAPERRES from program dynamically dynamic dynamically
TRAY TRY01 TRY02 TRY03
Keywords in German: SAP ABAP SAPscript Resourcenname ITCTG-TDPAPERRES vom Programm aus dynamisch TRAY TRY01 TRY02 TRY03 Druckerschacht Schachtsteuerung Druckerschachtsteuerung verschiedenes Papier
best regards
Norbert Zanders -
Dynamic Tray Selection in Smartforms
Hi all,
I am looking for a solution, to set the tray in a Smartform dynamically.
It is not sufficient to set the Tray statically on the "Output Options" tab -> Ressource Name.
Can anybody help me?!?
Thanks and best regards,
SteCeeNormally, tray selection is done using GET_PRINT_PARAMETER FM.
Refer to these threads, may be helpful -
Print to different output tray in SAPscript/Print Workbench
Automatic tray selection for printing
Regards,
Amit -
Smart form dynamic tray selection on printing
Hi Experts,
I have a requirement in smart form that need to output the a particular invoice to a particular tray a printer. For e.g. tray 2.
I have added TRY02 to the resource name of the pages in the smartform, but still the invoice is being printed to the default tray of the printer.
I have done a test to that printer by printing the SAPCRIPT-TRAYTEST from SO10, and the output is being printed correctly i.e. to the different trays. So I guess the printer has been configured correctly.
Is there any additional configurations that need to be done for smart forms for the tray selection works correctly? And, is it correct the way I implemented the functionality in the smart form?
Can someone help please?
Thanks in advance
Regards,
ZaheedHi Experts,
I have a requirement in smart form that need to output the a particular invoice to a particular tray a printer. For e.g. tray 2.
I have added TRY02 to the resource name of the pages in the smartform, but still the invoice is being printed to the default tray of the printer.
I have done a test to that printer by printing the SAPCRIPT-TRAYTEST from SO10, and the output is being printed correctly i.e. to the different trays. So I guess the printer has been configured correctly.
Is there any additional configurations that need to be done for smart forms for the tray selection works correctly? And, is it correct the way I implemented the functionality in the smart form?
Can someone help please?
Thanks in advance
Regards,
Zaheed -
SAPScript and dynamic tray selection
Hi,
A customer of mine has 2 identical SAPScript layout sets defined with 1 minor difference - within the page attributes a different printer tray has been defined (attribute called resource name) in order to choose a different printer tray ...
I was wondering wether this value could not be dynamically set by the SAPScript output program (when opening the layout set or using a specific command) ?
I didn't really find any special function or parameter in the open_form function module ... I find it a shame that only for the tray functionality we have to maintain 2 layout sets ...
Or can this be achieved in a total different way?
Thanks,
StevenI am not sure if you can change Tray attribute on a page dynamically from print program.
But I have a suggestion, Why don't you create two pages identical in one single SAPScript just with the Tray different on each one. And call appropriate page while printing dynamically from your program using Function "CONTROL_FORM".
Advantage in this approach is, you do not need to maintain two different SAPScripts. And all code maintenance in SAPScript is common to both the pages, so do not need to make changes twice.
Limitation is if you resize any window in one page need to do the same on the other page too. This is still OK because usually you do not resize as often as you make changes in the code.
Shashi Reddy -
Can we change tray selection dynamically?
Hello experts,
is it possible to change the tray selection dynamically? That is to say, via the driver program.
For example the default tray on the SAPscript form is TRY02. So if there are less than 20 lines on a form, it'll use TRY02 containing paper with pre-printed text. However, if there are more lines, then, I would like it to use TRY03 containing blank paper, for the rest of the information.
Is this possible via programming or any other way for that matter?
Your help is greatly appreciated.
Edited by: Goharjou ardavan on Oct 29, 2008 11:07 AMHi,
Tray Options are available in the Output Device. You can't control it from the SAP Script. In Output device Tray's will be defined, But there is no option to shift the Tray based on the lines.
But If you guys can define two output device, one with tray TRY02 and other device with tray TRY03. Then in the program based on the how many lines, Pass the Respective Output device to the Spool structures in the program. -
Wrong automatic paper tray selection in HP LaserJet M3035 printer.
Hello,
I have a printer (this one http://h10010.www1.hp.com/wwpc/us/en/sm/WF06b/18972-18972-3328064-12004-3328083-2512333-2512337-3435... ) shared in Active Directory by several users (running Windows XP machines). The thing is that no matter how many times I try to set the source paper tray to a specific one, it seems it doesnt apply/store the changes, and it comes back to Auto tray selection (and it always selects tray #1, which is the one im trying to avoid), causing an issue which needs to be solved by hand.
Thanks a lot in advance.1. Go into your SETUP MENU on your printer.
2. Choose PREFERENCES
3. Choose DEFAULT TRAY.
Try it and let me know what happens, thanks.
**Click the KUDOS star on the left to say 'Thanks'**
Please mark a reply "ACCEPTED AS SOLUTION" if it solved your problem, so others can find it. -
Does the Officejet 8600 Pro Premium N911n printer perform auto tray selection?
I have an Officejet 8600 Pro Pemium N911n printer, CN577A with two trays. My Operating Sysem is Win8,64bit,there are no error messages, no system changes.
The HP Officejet Pro 8600 e-All-in One series User Guide states that By default, the printer draws media from Tray1.If Tray1 is empty, the printer draws media from Tray2(if it is installed and loaded with media. I have Tray lock disabled ,Tay1 the default Tray and Automatic Tray Selection enabled.Prior to making these selections,I contacted HP support via email to report that this option was not working. I received a response that there is no method that will automatically select a tray when one tray is empty. The User 's manual states otherwise..This option might not work but it is part of this series of printers. I have both trays loaded and I will determine if it works after Tray1 is empty. Does anyone have one of these printers and the auto Tray function works? Thanks.
This question was solved.
View Solution.Hello wardell1,
Please take a look at this document and let me know if the troubleshooting steps help resolve your issue.
Good luck!
↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓ -
Dynamic bandwidth selection for PPPoE over Ethernet/VLAN
Hello all, hope you are doing great.
I'm planning to deploy PPPoE Server (Cisco Router 7609) for a ISP. This ISP will provide Internet connection for customer over Ethernet.
I have to provide a solution to assign bandwidth to each customer by RADIUS and I find some clues that Dynamic Bandwidth Selection (DBS) should be the answer. Unfortunately, DBS only support PPPoA or PPPoE over ATM.
If you have any experience with equivalent function, please help me. Thank you very much.
Regards,
Hiep Nguyen.Hiep,
I think I have figured this out. Here is the test config on my PPPoE server:
int lo1
ip address 172.25.25.25 255.255.255.255
ip radius source-interface Loopback1
aaa new-model
radius-server host 172.16.1.55 auth-port 1812 acct-port 1813 key cisco$$$
aaa group server radius RADIUS-ACT
server 172.16.1.55 auth-port 1812 acct-port 1813
aaa authentication login default group RADIUS-ACT local
aaa authorization exec default group RADIUS-ACT local
aaa accounting exec default start-stop group RADIUS-ACT
aaa accounting delay-start
aaa authentication ppp default if-needed group RADIUS-ACT local
aaa authorization network default group RADIUS-ACT local
aaa accounting network default start-stop group RADIUS-ACT
aaa accounting update periodic 5
bba-group pppoe global
virtual-template 1
interface fa0/1
pppoe enable group global
ip address 172.30.0.1 255.255.0.0
no shut
interface Virtual-Template1
mtu 1492
ip unnumbered FastEthernet0/1
peer default ip address pool GLOBALPOOL
ppp authentication chap
ip local pool GLOBALPOOL 172.30.0.2 172.30.127.255
policy-map POLICE-128K
class class-default
police 128000
policy-map POLICE-512K
class class-default
police 512000
Here are the attributes on the radius server, for a group the PPPoE customer belonged to:
Service-Type = Framed
Framed-Protocol = PPP
cisco-avpair="ip:sub-policy-In=POLICE-128K"
cisco-avpair+="ip:sub-policy-Out=POLICE-512K"
Here is the show policy-map on the virtual-access interface the client connected on:
sho policy-map int virtual-a 3
Virtual-Access3
Service-policy input: POLICE-128K
Class-map: class-default (match-any)
1000 packets, 1402000 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any
police:
cir 128000 bps, bc 4000 bytes
conformed 799 packets, 1120198 bytes; actions:
transmit
exceeded 201 packets, 281802 bytes; actions:
drop
conformed 0 bps, exceed 0 bps
Service-policy output: POLICE-512K
Class-map: class-default (match-any)
911 packets, 1137746 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: any
police:
cir 512000 bps, bc 16000 bytes
conformed 799 packets, 1136178 bytes; actions:
transmit
exceeded 0 packets, 0 bytes; actions:
drop
conformed 0 bps, exceed 0 bps
I was able to generate enough traffic with ping to meet the exceed action in and have it drop packets. -
Dynamic Date selection inactive
Hi,
I am not able to give dynamic date selection in a variant. (D: Dynamic date calculation).The traffic light is displayed in red and there is no options such as
current date etc. is there any need to do some settings to get these options.Hi,
have a look at the below link.. ( they have mentioned the steps of customer exit variable fassigning for reporting agent)
https://websmp110.sap-ag.de/~form/sapnet?_FRAME=CONTAINER&_OBJECT=011000358700003598422003E
Regards,
Siva. -
Dynamic parameter selection from infoview not storing the sql password
We are having the problem of dynamic parameter selection from infoview not storing the sql password as it does for the actual report. We are using Crystal Reports XI Release 2 version 11.5.3.438 (Not sure of SP level, asked in separate thread).
To be more specific.
We have created a report that dynamically populates the parameters of the report by pulling the records from the Informix sql database and allowing selection from there.
In the Central Management Console for the report object we have set as follows:
Process - Database:
Use original database logon information from the report - the sql username and pw etc
Use same database logon as when report is run
Process - Parameters
In selecting a default selection there is the option to put in the sql password, however, this does not stick and clears after update.
As such the end result is that every time this report is run from infoview and a user chooses a parameter (there are 5), crystal goes through some timeout for about a minute or so and then requests the sql password, if a user then selects the next parameter, the same timeout and password dialog appears.
We need the crystal report to handle to the sql password for fetching the parameters as well as for the database section of running the report, however, the parameters insists on the end user always putting the password in.
This is 100% replicatable on our system.
Any way that we can fix this?
Will an update fix this issue? If so could you please advise which one?
ThanksHi,
I am having the exact same problem. Any help?
And what does "Use same database logon as when report is run" mean? For me that would be that no prompt is needed for getting values in a dynamic parameter...
Regards
Magnus -
I am building a radio list dynamically in TOOL code based upon certain
criteria. I can get the list built no problem. But, I want to "select" a
certain element based on an attribute I check on the object. So the element
I want to appear selected may be element 2 or element 5 or element x. Has
anyone ever done this? I can't seem to find anything in the Forte help that
will allow me to do this?? Any help would be greatly appreciated.
Thanks!!
Doug Scurr
HealthPartners
8100 34th Avenue South
Minneapolis, MN 55440-1309
(612)883-7317
[email protected] <[email protected]>Dale,
I knew it would be something easy!! I obviously can't read very well!!
Thanks for the help!!
Doug Scurr
HealthPartners
8100 34th Avenue South
Minneapolis, MN 55440-1309
(612)883-7317
[email protected] <[email protected]>
-----Original Message-----
From: Dale V. Georg [SMTP:[email protected]]
Sent: Tuesday, April 27, 1999 2:34 PM
To: [email protected]
Cc: [email protected]
Subject: Re: Dynamic RadioList selection
> [email protected] wrote:
>
> I am building a radio list dynamically in TOOL code based upon
certain
> criteria. I can get the list built no problem. But, I want to
"select" a
> certain element based on an attribute I check on the object. So
the element
> I want to appear selected may be element 2 or element 5 or element
x. Has
> anyone ever done this? I can't seem to find anything in the Forte
help that
> will allow me to do this?? Any help would be greatly appreciated.
> Thanks!!
This should be as simple as setting the IndexValue of the radio list
to
the item that you want to have selected. For example:
self.<theRadioList>.IndexValue = 2;
to select the second item. Make sure your window is already open
when
you do this, though. ie, make sure self.Open() has already been
called. The Open() method initializes a lot of the widget
information
on the window, and it may well set the index value of the radio list
back to 1.
Hope this helps,
Dale
===================================
Dale V. Georg
Senior Systems Analyst
Indus Consultancy Services
[email protected]
===================================
To unsubscribe, email '[email protected]' with
'unsubscribe forte-users' as the body of the message.
Searchable thread archive <URL:http://pinehurst.sageit.com/listarchive/> -
How-to Dynamic Hierarchy Selection.
Hi guys,
does anyone know how to implement "Dynamic Hierarchy Selection"? I have a main hierarchy but would like to filter it further while loading the hierarchy.
E.g. I have a financial statement verison with both Balance Sheet and P/L items, i would like to separate the main into two new hierarchies, one BS and P/L hierarchies instead, apparently the infopackage allows you to write small codes to dynamically select which hierarhcy you want.
Cheers.Hi,
We donot have this type selection at the time of upload. The thing we can do is upload both versions into BIW and in the report we can use Hierarchy variable to have dynamic selection of hierarchy.
with rgds,
Anil Kumar Sharma .P -
Tray selection with LOCL in sapscript
I want to print the document from Tray 2 always and so I set the resource name in the sapscript to TRY02. When I put the printer name in, it works fine and prints from tray 2. But when I put LOCL as the output device, it always prints from the default tray. Does anyone have a solution to this?
I think this is because of your local printer configuration
Please find the documentation related to this-> this documentation i found in start> printer and faxes>select your default printer> right click> properties> help> index --> find tab > type tray> Selecting paper by type or source
If your application supports printing by paper type or source, make the selections from your application. Application settings override printer driver settings.
You can configure the printer to select paper by Type (such as Plain or Letterhead) or Source (such as Tray 1 or Tray 2). If you frequently use several different kinds of paper, once trays are set up correctly from the printer control panel, you do not have to check which paper is loaded in each tray before you print.
Your paper trays must be configured from the printer control panel before you can print by type. To configure your paper trays, see the printer user guide.
a® -
After upgrading to Leopard I had this problem: printing to any of my printers (Xerox Docucolor 12, Docucolor 2240, Docucolor 3535, Phaser 8500, Develop 5510id), *in the print dialog window I select a tray (i.e. tray 2), and the printer uses the tray "before" that (in this case tray 1).*
So I can no more print from my "last trays" (typically the bypass tray) because there are no more trays after them in the tray selection tab. The only thing I can do is to leave "automatic selection" of the tray, but this don't work in all occasions (for example when I have to print from bypass on heavyweight paper which has the same size of the paper present in another tray).
What kind of problem can this be? Maybe a PPD corruption problem (but the corruption of ALL the PPDs is not so easy...)I experienced the same problem with our Canon imageRUNNERs on Leopard using the Canon PPD's. If I used the Canon PS driver the same symptom did not occur, however for some apps it was necessary to use the ppd's only.
The only workaround I found was to print via paper type rather than paper source. By selecting to print via paper type, this meant that if A3 heavy card stock was loaded in the stack bypass, as well as A3 80gsm plain paper in one of the trays, only the paper from the bypass was selected.
I don't believe it is ppd corruption. It has more to do with CUPS not parsing the ppd data correctly. For the drivers that do not rely on CUPS, such as the Canon PS driver and the new imagePASS (Fiery) drivers, the same issue does not occur.
PaHu
Maybe you are looking for
-
i am running a report from my Oracle 9i Application( Developer Suite 9i). I am calling the report from the form. The report which has to open in a new IE browser window is not opening which was happening about 3 days back. The applet instance blinks
-
To identify the user running the job at runtime
Hi All, My requirement is to develop a program which need to send mail only if a particular user runs the job. I need to read the user who runs the job at runtime, i tried with SY-UNAME but it holds the user name of the person who created the job at
-
Online lessons or book for Adobe After Effects
Any book or online lessons for Adobe Premiere Pro? I already know how to operate Adobe Photoshop and I have used Windows Movie Maker a couple of times in the past to edit my video game clips. Thanks!
-
Hello guys, I have a BIG problem. This is what my display currently looks like : Uploaded with ImageShack.us This happened after an ordinary upgrade with "pacman -Syu" and a restart, because among upgraded packages there were kernel 2.6.37 and nouvea
-
[SOLVED]installation: partition size FAIL, too small /var
Yeah, I managed to make a mess again. I thought I had given the /var 15 GB and it turned out to be 1.5 GB, now I'm facing this situation: [tomislav@shakenbake ~]$ df -h Filesystem Size Used Avail Use% Mounted on /dev/sda2 14G 2.5G 11G 19% / udev 10M