How to print a invoice in silent mode
Dear Developers,
I would like to know how can I push the OK button on Printing windows dialog after SBO_Application.ActivateMenuItem ("520") in code. I'm working on a alternative printing wizard and need help on it.
Thank you in advance.
Cheers,
Nghia
Nghia,
Please note, you can automatically print invoices when you add them (there is a customizing option when you press the add button you can print out the invoice) our you can use document printing wizard.
This stuff is not easy, but try the following:
Logic:
You should implement a multi-threaded program, which is looking for the operating system actual window, and compares with the SAP B1 Window ID. If differs, then you can send an enter key. (click on default button).
You can build up thread safe procedure with custom code, but i have used there a timer, which starts when you send the printing, and stops when enter has been sent.
Add the following code to your addon variables declare section:
Private Declare Function GetForegroundWindow Lib "user32.dll" () As IntPtr
Dim _timer As New System.Timers.Timer
Dim lCurHwnd As Integer
When you activating the Print Menu, add the following code
' SAP B1 Window ID via Windows API Call
lCurHwnd = GetForegroundWindow()
_timer.Interval = 100
AddHandler _timer.Elapsed, New System.Timers.ElapsedEventHandler(AddressOf Me.Timer1_Elapsed)
_timer.Enabled = True
'RockAndRoll
SBO_Application.ActivateMenuItem("520")
Now impement the timer eventhandler (thread safe, you can send any keys like ENTER which closes the print dialog box and ESC when you would like to cancel
Private Sub Timer1_Elapsed(ByVal sender As System.Object, ByVal e As System.Timers.ElapsedEventArgs)
Dim lHwnd As Integer = GetForegroundWindow
If lCurHwnd = lHwnd Then Exit Sub
' Send enter key to Commit the dialog window
System.Windows.Forms.SendKeys.SendWait("{ENTER}")
'Stop timer
_timer.Enabled = False
End Sub
Regards,
J
Similar Messages
-
How to print the script in condensed mode
Hi to all,
Pls help me.
How to print the script in condensed mode and particular window only print in the condensed mode.Hi,
Hi
It will remove the blank spaces in front of the variable
and if you use the extension NO-GAPS
It will remove all the blank spaces in the variable field.
DATA: ws_val1 type char12.
ws_val1 = ' 100 123'.
Condense ws_val1.
Write / ws_val1.
Condense ws_val1 no-gaps.
write / ws_val1.
It will give output as
100 123
100123
The CONDENSE statement deletes redundant spaces from a string:
CONDENSE c NO-GAPS.
This statement removes any leading blanks in the field c and replaces other sequences of blanks by exactly one blank. The result is a left-justified sequence of words, each separated by one blank. If the addition NO-GAPS is specified, all blanks are removed.
Please check this link for sample code.
http://help.sap.com/saphelp_nw2004s/helpdata/en/fc/eb33e6358411d1829f0000e829fbfe/content.htm
Regards,
Raj. -
How to print Excise invoice?
Hello Experts,
I have not worked on Excise invoice.
How to print excise invoice ? Kindly tell me the path /t-code to print single excise invoice.
ThanksMoved from SAP ERP Sales and Distribution (SAP SD) to Internationalization and Unicode.
As indicated already, whenever you want any information related to CIN, please post here. Moreover, being an old member, you should be aware of forum rules where it has been clearly indicated not to post basic or repeated query here. Please search the forum or Google it, take the inputs and still if you face, post here
G. Lakshmipathi -
How to turn ipad 2 in silent mode?
How to turn ipad 2 in silent mode?
1. Double-click the Home button
2. Swipe Task Bar to the right
3. Tap the speaker to mute your iPad.
http://i1224.photobucket.com/albums/ee374/Diavonex/6d3191ba.jpg -
How to install photoshop CS6 in silent mode with a serial number on Win7?
I have a serial number. Now I have to install photoshop CS6 in silent mode with this serial number in command line. How?
Check the deployment guides in the developer center.
Mylenium -
How to install Oracle 10g Database (Silent Mode) on Ms. Windows
Hello,
I need to find out how to run a silent mode installation for Oracle 10g Database. I could perform such an installation for Oracle EX because I could found the installation guidelines.
I need some document to guide me from scratch, how to write response files, etc.
Thanks in advance!!Hi,
this would help;
http://tinyurl.com/ybzvg4v -
How do console apps run in "silent" mode?
i have developed an app that is supposed to run all the time - does such an app qualify to be called a service? This is a console app (no GUI) - it actually takes the place of a middleware system.
Gimbal2: thanks for recommending the Java Service Wrapper - my application is actually quite simple and im not sure if want to add the kind of complexity that comes with the wrapper.
What i would like to know is how i can have my application run in the background ("silent") - this is what i mean ->
when i start my service (on the console) it should first output initialising progress... and once it has started and running i would like the app to run in the background, AND RETURN BACK THE COMMAND PROMPT to the terminal - so another command may be run to stop the application or even exit that terminal. (by the way, is that what is called a "faceless" app?)
Many unix applications have been designed to run like this, i would like similar behaviour of my app.
Thanks.yes i actually need the program to run even when the user who started it logs out - so yes it should be a service.
DrClap: this service will be deployed on HP unix machines as well as some SOLARIS, and as for now, im still experimenting the program -and thats in Windows!!
so is javaw the only way to run this service in the background and in 'silent' mode?
Faz. -
How to print my invoice, for my captivate's subscription ?
I still can't print the invoice I pay each month. For creative cloud, I just have to clieck on the little print button, in my account history, but in Captivate, it does'nt exist ? How can I do ? Thanks... - its not the first time I ask The question -
Hi there,
Are you able to view your Invoices under your Adobe Account at all?
If you are able to view then, you can print that browser window.
You can also contact Adobe Chat support and get help in printing your invoices: http://helpx.adobe.com/contact.html?product=captivate&topic=managing-my-membership-subscri ptions-and-online-services
Thanks. -
How to print a report in draft mode from oracle ids 9i?
Hi...
I m using oracle ids 9i.i want to print the report in draft mode.Is there any option in reports developer or forms developer to print report in draft mode?
Please anyone help me?
Regards...
KSIKaji,
try the Reports forum: Reports
Frank -
How to print the invoice(Billing document) using program RSNAST00
Hi,
I want to print the invoice using the program RSNAST00,
but when i fill in selection screen with the following details,
Output Application : V3
Object Key : Billing Document Number
Output Type : ZPFM
Transmission Medium : 1
But it is throwing an Information Message "0 outputs were processed in total (0 successfully,0 incorrectly)
So please guide me, what are settings i have to do and what abap code i have to write to overcome this error.
Regards,
Shasiraj.CHi,
As you told I am using the function module RV_MESSAGE_DIALOG in my program when I directly execute my program its not printing invoice,but when i keep the break point and execute a pop up comes in which i click on the PRINT button that time it is printing the invoice.
But I dont want to click on Print button manually, my code should automatically take care of printing also.
Can guide me in this issue.
Regards,
Shasiraj.C -
How to install authorware player in silent mode
hi, I'm looking to install the authorware player in silent
mode for several computer in an organization, I would like to have
an installer (.exe or .msi) for internet explorer, does anyone
could help me with that? tahnks!There is no MSI (nor .exe) for the Authorware web player.
It's only
available as a .cab. However, of course, you could unpack the
can and
create your own MSI if you have the proper tool (i.e
InstallShield).
Someone (in China?) did that a couple years ago. Searching
the archives
of this group on Google, or perhaps the A'ware Listserve, may
reveal...
Erik
ersatyle wrote:
> hi, I'm looking to install the authorware player in
silent mode for several
> computer in an organization, I would like to have an
installer (.exe or .msi)
> for internet explorer, does anyone could help me with
that? tahnks!
>
Erik Lord
http://www.capemedia.net
Adobe Community Expert - eLearning
http://www.adobe.com/communities/experts/
http://www.awaretips.net -
Authorware Tips! -
Installer command line switches or "How to install Flash Player in silent mode"
Please note that all browser windows must be closed before executing either the installer or uninstaller. The following document describes the different parameters:
Silent install command line argument doesn't work | Flash Player 10.1There is no MSI (nor .exe) for the Authorware web player.
It's only
available as a .cab. However, of course, you could unpack the
can and
create your own MSI if you have the proper tool (i.e
InstallShield).
Someone (in China?) did that a couple years ago. Searching
the archives
of this group on Google, or perhaps the A'ware Listserve, may
reveal...
Erik
ersatyle wrote:
> hi, I'm looking to install the authorware player in
silent mode for several
> computer in an organization, I would like to have an
installer (.exe or .msi)
> for internet explorer, does anyone could help me with
that? tahnks!
>
Erik Lord
http://www.capemedia.net
Adobe Community Expert - eLearning
http://www.adobe.com/communities/experts/
http://www.awaretips.net -
Authorware Tips! -
How to print a report in landscape mode?
Hello everybody,
I have a task where in i need to print a report in LANSCAPE format.
I have tried to print the report output but i could not found an option to set LANDSCAPE mode and also how to change the font size.
Can anybody suggest me the approach?
Helpful answers will surely be rewarded.
Thanks in advance.
Sanghamitra.Hi
If you are using the command MEW-PAGE PRINT ON
then we can give this layout options
like
NEW-PAGE PRINT ON
DESTINATION <printer name>
immediately 'X'
KEEP IN SPOOL 'X'
LAYOUT 'X_65_132' (OR X_65_255)
RECEIVER SY-UNAME
NO-DISPLAY.
OTHERWISE WHEN YOU SELECT THE PRINTER
IN THE PRINTER PROPERTIES/SETTINGS BASICS-> PAPER
you will have this facility to select LANGSCAPE/PORTRAIT
use that and print
Reward points for useful Answers
Regards
Anji -
How to print an invoice + multiple copies in VF01
Hello, when i create an invoice through VF01, it calls the windows default printer and 1 copy is generated.How do i create 1 original + 3 duplicata?thanks
In t.code VV32, enter the output type and execute. Then highlight the condition record, then click on communication button on the top. There is a field called number of message. Enter 4 here and save. When you print next time, you can get four print outputs.
Regards, -
How to print Japanese Invoice?
Hi all,
I am able to see the print preview of a script which is a Japanese invoice. Now i want to download the form into PDF and print Japanese characters.
Currently i am trying to send the form output to spool and print from there, but only junk characters are bing printed. How to take the print of japanese characters?
Need ur inputs on this.
Thanks,
SubbaCheck with the basis team or local adminstrative team... ask whether the printer is unicode enabled or not... it is quite easy for them to enable unicode... only thing they need is to install unicode drivers in the printer... check printer manual for enabling unicode.
No way you can print JP character without enabling unicode.
Reward if useful...
Regards,
SaiRam
Maybe you are looking for
-
How do i convert a pdf file into a editable word
how do i convert a pdf file into a editable word
-
I'm new to this Adobe thing. What i did was deleted Adobe Reader 7. and Acrobat 4.? from my system that came pre-loaded. Please don't ask why. I'm Dumb and Dumber i guess I have Window's Media Center 2005 XPSP 2 Pro. So i went ahead and downloaded th
-
URGENT HELP:I want that the query should return in the same way
I have a query select id from tableid where id in(350,241,251) This returns me in 241,251,350 I want that the query should return in the same way as specified in "in" clause. ie output should be in 350,241,251. I would really appreciate if anyone can
-
What is an alternate to Thread.Sleep()?
What is an alternate to thread.sleep? The reason being, my action listener won't let me throw exceptions so I need an alternative to thread.sleep, anything?
-
After installing my ink cartidges the carrier does not automatically shift. when trying to print the papers all jam, any suggestions?