How to print "- ve" sign infront of a number during calculation
Hi all
right now i am getting the values in the output like this 1.95 - but i have to get that as - 1.95 instead, how do we get that.
my calculation is *wa_menge * - 1* in the code
hi,
Make the final value as below :
variable = ABS( variable ).
then use CONCATENATE as below :
CONCATENATE '-' variable into variable.
Reward points if its works.
Regards,
Raghu
Similar Messages
-
How To Print Field Value in TOP-OF-PAGE During Line Selection.
How To Print Field Value in TOP-OF-PAGE During Line Selection when double click on field.
(If my memory serves me well (not used for long time ago)
Assign values to system fields sy-tvar0 - sy-tvar9, they will replace the placeholders "&0" through "&9" in the list headers and column headers.
TOP-OF-PAGE DURING LINE-SELECTION.
WRITE: / 'Interactive Report &3'.
WRITE record-vbeln TO sy-tvar3.
Regards,
Raymond -
How to print the itab,and the result number is changeable ?
in the abode ,how to print the itab,or how to print the data that its result number is
changeable ,in the nw04s1 it provide such example ,thanks for you !Hi Yolanda,
I need to do the same in my form. Would you mind let me know if you found any solution. Appreciate if you can share some code.
Thanks in advance,
SekharN -
How to print '≤' or '≥' Signs Through SAP script
Hi Experts,
i am trying to print 'u2264' or 'u2265' from SAP script. but i am not able to print is.
In the final output through printer i am getting '#' printed.
Thanks
Rajpal SehrawatHi,
Firstly, use the unicode MS Word editor as the sapscript editor. Then you need a devcie type that supports these characters. Try to print via windows and unicode device type SWINCF if you have a unicode system.
Regards,
Aidan -
When printing a signed document with Adobe Reader, the comment icons appear. How do I prevent this ?
When printing from Reader, select Document instead of Document and Markups:
-
How to print a specific cell in numbers
how to print a specific cell in numbers?
Copy the cell (contents), Paste onto a page of a separate document, or onto a separate sheet of your Numbers document, Print.
Or insert a single cell table onto your Numbers document, type an = sign in the cell then click on the cell you want to print. Drag the new table to a second sheet, set up your page there, and print.
See the Numbers '09 User Guide for other useful tools and techniques. Download the guide via the Help menu in Nuimbers.
Regards,
Barry -
How to print uspto patent images using Safari and Quicktime
3/18/06
Do you want to know how to print US patent images using Safari? Read on.
When you access the "images" link of a specific patent on the www.uspto.gov/ website using Safari, the page you are viewing is only one small upper left tile of a huge patent image that is not sized to the screen. You can scroll and try to read the page but it's almost impossible. Try to print it out and you only print what's on the screen. Bummer.
The fix:
Place the cursor on the opened image (it may appear blank), hold down the CONTROL key on you keyboard and click on the image. Two instructions come up. Click on the "Save Image to the Desktop" instruction and a DImg.tiff file will be created on your desktop. Click on the .tiff file and it should open in the Preview program, then simply print out the image. Voila!!!!
Click the yellow arrow in the left margin to access page 2 of the patent and repeat the previous instructions to create another .tiff file on your destop. Do every page and you'll have the patent available to print out one page at a time.
You can then rename the files and create a folder for that specific patent so you can access it later without signing onto uspto site.
It's odd that the ever compatible Apple does not provide seamless compatibility to view and print patent images on the US Patent and Trademark Office's website. Where would they be without protecting their own intellectal property? Let's hope the next version of Quicktime includes the appropriate ITU T.6 or CCITT Group 4 (G4) compression language.
Even the "throw it out the Windows" operating system is up to speed on this issue for America's hard working inventors.
Keep on inventing.
Tommy K
imac 400 DV Mac OS X (10.3.9) Cube 450
imac 400 DV Mac OS X (10.3.9) Cube 450Another similar thread on this issue...
http://discussions.apple.com/thread.jspa?messageID=1602391 -
How to print the barcode in a smartform satisfying specific condition
Hi
I have a requirement where I need to print the barcode System Bar code = BC_93
satisfying the following requirement:
The Bar code is made up of the concatenation of code1 , dash character
and code2. The two codes ( that is some field in a custom table) should be
eight char long each (put leading zero if the length of the code is shorter).
This barcode shall be printed always apart from:
a) code1 material type is ZCPF
b )Is a combi order, with no code2 stored in storage location abc
please help with example . its very urgent , points will be rewarded.
ThanksTo Create a Bar code prefix:
1) Go to T-code - SPAD -> Full Administration -> Click on Device Type -> Double click the device for which you wish to create the print control -> Click on Print Control tab ->Click on change mode -> Click the plus sign to add a row or prefix say SBP99 (Prefix must start with SBP) -> save you changes , it will ask for request -> create request and save
2) Now when you go to SE73 if you enter SBP00 for you device it will add the newly created Prefix
Create a character format C1.Assign a barcode to the character format.Check the check box for the barcode.
The place where you are using the field value use like this
<C1> &itab-field& </C1>.
You will get the field value in the form of barcode.
Which barcode printer are you using ? Can you download this file and see.
http://www.servopack.de/Files/HB/ZPLcommands.pdf.
It will give an idea about barcode commands.
Check this link:
http://www.sap-img.com/abap/questions-about-bar-code-printing-in-sap.htm
Check this link:
http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a94c851ea11d189570000e829fbbd/content.htm
Hope this link ll be useful..
http://help.sap.com/saphelp_nw04/helpdata/en/66/1b45c136639542a83663072a74a21c/content.htm
go through these links and cose u r previous threads,
http://www.sap-img.com/abap/questions-about-bar-code-printing-in-sap.htm
smartform - barcode
http://www.erpgenie.com/abap/smartforms.htm
http://sap.ittoolbox.com/groups/technical-functional/sap-basis/print-barcode-with-smartform-634396
http://sap.ittoolbox.com/groups/technical-functional/sap-dev/printing-barcode-733550
Detailed information about SAP Barcodes
A barcode solution consists of the following:
- a barcode printer
- a barcode reader
- a mobile data collection application/program
A barcode label is a special symbology to represent human readable information such as a material number or batch number
in machine readable format.
There are different symbologies for different applications and different industries. Luckily, you need not worry to much about that as the logistics supply chain has mostly standardized on 3 of 9 and 128 barcode symbologies - which all barcode readers support and which SAP support natively in it's printing protocols.
You can print barcodes from SAP by modifying an existing output form.
Behind every output form is a print program that collects all the data and then pass it to the form. The form contains the layout as well as the font, line and paragraph formats. These forms are designed using SAPScript (a very easy but frustratingly simplistic form format language) or SmartForms that is more of a graphical form design tool.
Barcodes are nothing more than a font definition and is part of the style sheet associated with a particular SAPScript form. The most important aspect is to place a parameter in the line of the form that points to the data element that you want to represent as barcode on the form, i.e. material number. Next you need to set the font for that parameter value to one of the supported barcode symbologies.
Re: how to print barcode using smartform and sapscript...? -
How to print the value if a condition is satisfied
Hi,
Please suggest me how to print a text as 'Do not print' when a field in the selection screen is entered.
If in the selection screen (s_field1) we have entered a value as ZESM then the value filed of
wa_vbak-auart should check the the values in s_field1 then it should just print the text "'DO NOT PRINT''.
we have written the folowing code, but the condition is not working.
DATA: V_FIELD1 type z_field1. "(zdata element).
ranges: r_fIELD1 for v_field1.
SELECT-OPTIONS: S_field1 FOR v_field1 default 'ZESM'.
loop at s_field1.
r_field1-sign = 'I'.
r_field1-option = 'EQ'.
r_field1-low = s_field1-low.
append r_field1.
clear r_field1.
endloop.
if wa_vbak-auart in r_field1.
wa_final-v_text = 'DO NOT PRINT'
else.
wa_final-v_text = ' '.
endif.
Please suugest what can be done.
Thanks in advanceHi,
if wa_vbak-auart in r_field1.
wa_final-v_text = 'DO NOT PRINT'
else.
wa_final-v_text = ' '.
endif.
Have you writtent he above code with in loop enloop on the internal table.If yes then simply add append statement after assignment.
if wa_vbak-auart in r_field1.
wa_final-v_text = 'DO NOT PRINT'
append wa_final into it_final.
clear wa_final.
else.
wa_final-v_text = ' '.
append wa_final into it_final.
clear wa_final.
endif.
Hope this will solve your problem.
Pooja -
How to print selected statements
see i have use two internal tables likp and lips.
by using wadat_ist in select option to retrieve
vbeln in the same likp table.by using the same
vbeln in lips i have to retrieve flimg.Even i have
got the answer i cannot able to print the wadat_ist
field in likp table which is kept in select-options?
send the coding plzDo you mean you want to print out the values entered into your select option for WADAT_IST? Your question isn't very clear.
Select-options are just internal tables with a specific format:-
SIGN
OPTION
LOW
HIGH.
You should be able to debug through from your selection screen and see the values and hopefully figure out how to print them.
Gareth. -
How to print Barcode in te SAP SCRIPTS?
Hi All,
Can anyone of you let me know how to print the Barcode in the SAP SCRIPT? This is the first time I'm working on the Barcode. I've to print many fields data into one barcode. Like PO number, Material Number, Plant, Company code..etc..
Best Regards,
Venkatesh Eddala.Hello Venkat,
Creating Bar code:
-->From trans code - SPAD -> Full Administration -> Click on Device Type -> Double click the device for which you wish to create the print control -> Click on Print Control tab ->Click on change mode -> Click the plus sign to add a row or prefix say SBP99 (Prefix must start with SBP) -> save you changes , it will ask for request -> create request and save
--> when you go to SE73 if you enter SBP00 for you device it will add the newly created Prefix
-->Create a character format C1.Assign a barcode to the character format.Check the check box for the barcode.
-->The place where you are using the field value use like this
<C1> &itab-field& </C1>.
You will get the field value in the form of barcode.
Which barcode printer are you using ? Can you download this file and see.
http://www.servopack.de/Files/HB/ZPLcommands.pdf.
It will give an idea about barcode commands.
SAP Barcodes
-->Barcode solution consists of the following:
barcode printer
barcode reader
mobile data collection application/program
A barcode label is a special symbology to represent human readable information such as a material number or batch number
in machine readable format.
There are different symbologies for different applications and different industries. Luckily, you need not worry to much about that as the logistics supply chain has mostly standardized on 3 of 9 and 128 barcode symbologies - which all barcode readers support and which SAP support natively in it's printing protocols.
You can print barcodes from SAP by modifying an existing output form.
Behind every output form is a print program that collects all the data and then pass it to the form. The form contains the layout as well as the font, line and paragraph formats. These forms are designed using SAPScript (a very easy but frustratingly simplistic form format language) or SmartForms that is more of a graphical form design tool.
Barcodes are nothing more than a font definition and is part of the style sheet associated with a particular SAPScript form. The most important aspect is to place a parameter in the line of the form that points to the data element that you want to represent as barcode on the form, i.e. material number. Next you need to set the font for that parameter value to one of the supported barcode symbologies.
for your reference check the below links:
http://www.sap-img.com/abap/questions-about-bar-code-printing-in-sap.htm
http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a94c851ea11d189570000e829fbbd/content.htm
for smart, please check the below link:
http://www.sap-img.com/abap/questions-about-bar-code-printing-in-sap.htm
See the below program forbarcode in sapscript for your reference:
DATA: BAR_CODE1(16) VALUE `ABC01230123A01'
NEW-PAGE PRINT ON IMMEDIATELY `X'.
FORMAT COLOR OFF INTENSIFIED OFF.
If the barcode is the first element on the page, the following Write
statement is needed (otherwise you get a date in the first print
control.
WRITE:/
Turn on the barcode font, print the data, and switch back to the
printer's default font. Be sure to use NO-GAP to avoid unwanted
characters or CR/LF.
PRINT-CONTROL FUNCTION `BCPFX'
WRITE: BAR_CODE1 NO-GAP
PRINT-CONTROL FUNCTION `BCSFX'
Add a Write statement to prevent insertion of CR/LF into the barcode.
WRITE:/
Sample SAPSCRIPT
Variable BAR_CODE1 contains the barcode data, including asterisks.
The & is needed to avoid unwanted spaces or CR/LF characters
/E LINE
/: PRINT-CONTROL BCPFX
= &BAR_CODE1&
/: PRINT-CONTROL BCSFX
Venkat - Please reward points for previous therad if you feel good answer ...
Thanks
Seshu -
How to print a form with digital signatures
I created a form that was signed digitally and submitted electronically. When I look in my summary table, the signature shows, but when I create a pdf of the form, the signature does not show. How can I print the forms with the digital signature showing?
Yu -
There is no need to post the same question repeatedly - this does not affect how quickly we can respond.
Merging with:
How to print a form in a UIX page and
how to print a form in a UIX page?
Andy -
Help! how to add a "0" infront of month?
i am using this method to retrieve current day and month
Calendar c = Calendar.getInstance();
int currMonth = c.get(c.MONTH)+1;
int currDay = c.get(c.DATE);
int currYear = c.get(c.YEAR);
it works well.
but now, i want to insert them into database. and found out that if month or day is single digit, for example, june, it will just insert 6 into the database.
But i actually need 06 instead of 6.
can anyone help me?
how to add a 0 infront?you can use SimpleDateFormat:
http://java.sun.com/j2se/1.4.1/docs/api/java/text/SimpleDateFormat.html
i provide you code example of how to test it: but there i use deprecated method (as i didn't want to use DateFormat for geting new Date object)
so, i beg you, don't you use that deprecated constructor.
import java.text.*;
class SimpleDFTest {
public static void main(String[] args) {
SimpleDateFormat sdf = new SimpleDateFormat("yyyy/MM/dd");
for (int i = 0; i < 13; i++) {
System.out.println("Some date: " + sdf.format(
/* java.util.Date(int,int,int) is deprecated, DON'T use it */
new java.util.Date(/*1900 + */ 103, i, 5 + i)
}to compile it i used javac -deprecation SimpleDFTest.java
note that i print out 13 rows, (month varys from 0 to 12, and day from 5 to 17), that's because i wasn't suer if month should be given as int from 0 to 11 or from 1 to 12.
you may figure out which it is and thenn add 1 to currentMonth, or not.
anyhow, it prints days and months out just the way you need it, with dwo digits. -
Printing Digitally Signed Documents
I need to be able to print digitally signed documents and would like to know if there is a way to restrict the ability to print the documents that have invalidated digital signatures. Essentially, I want to be able to email a document for remote printing and only allow the document to be printed if the digital signature is valid. It would be of additional value to me if there was a way to place a "voided" watermark across the document if the digital signature was invalid. Any thoughts or suggestions would be greatly appreciated.
Thank you.
Is there a tutorial online that would show me how I can do this?
Process Description:
1) Create pdf document from AutoCAD. I generally am required to create one pdf file per drawing sheet so I may have 100 pdf files that I am working with.
2) Assign an RM policy to each file (Could this be a batch process since I may have 100 files I am working with) that would revoke the file if the digital signature was invalid. -
How to print a HTML file in browser look using DocPrintJob
Hello guys,
Does anyone know how to print HTML output/file into browser look?
I'm using DocPrintJob and the DocFlavor set to DocFlavor.INPUT_STREAM.AUTOSENSE.
posted below is my code :
public class BasicPrint {
public static void main(String[] args) {
try {
// Open the image file
String testData = "C:/new_page_1.html";
InputStream is = new BufferedInputStream(new FileInputStream(testData));
DocFlavor flavor = DocFlavor.INPUT_STREAM.AUTOSENSE;
// Find the default service
PrintService service = PrintServiceLookup.lookupDefaultPrintService();
System.out.println(service);
// Create the print job
DocPrintJob job = service.createPrintJob();
Doc doc= new SimpleDoc(is, flavor, null);
// Monitor print job events; for the implementation of PrintJobWatcher,
// see e702 Determining When a Print Job Has Finished
PrintJobWatcher pjDone = new PrintJobWatcher(job);
// Print it
job.print(doc, null);
// Wait for the print job to be done
pjDone.waitForDone();
// It is now safe to close the input stream
is.close();
} catch (PrintException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
static class PrintJobWatcher {
// true iff it is safe to close the print job's input stream
boolean done = false;
PrintJobWatcher(DocPrintJob job) {
// Add a listener to the print job
job.addPrintJobListener(new PrintJobAdapter() {
public void printJobCanceled(PrintJobEvent pje) {
allDone();
public void printJobCompleted(PrintJobEvent pje) {
allDone();
public void printJobFailed(PrintJobEvent pje) {
allDone();
public void printJobNoMoreEvents(PrintJobEvent pje) {
allDone();
void allDone() {
synchronized (PrintJobWatcher.this) {
done = true;
PrintJobWatcher.this.notify();
public synchronized void waitForDone() {
try {
while (!done) {
wait();
} catch (InterruptedException e) {
}the printed ouput for this code will be look like this
<html>
<body>
<div style="page-break-after:'always';
background-color:#EEEEEE;
width:400;
height:70">
testPrint</div>
ABCDEFGHIJK<p>
</p>
</body>
</html>however, the output that i want is the HTML in browser look not HTML code itself.
i've tried to change the DocFlavor into any TEXT_HTML type but it gives error:
sun.print.PrintJobFlavorException: invalid flavor if you guys has any idea or solution, can you share with me... already search in Google but still not found any solution
Thanks in advanced.hi,
do the following
URL url = null;
try
url = new URL("http://www.xyz.com");
catch (MalformedURLException e)
System.out.println("URL not correct " + e.toString());
if (url != null)
getAppletContext().showDocument(url,"_blank"); //shows the page in a new unnamed top level browser instance.
}hope that helpz
cheerz
ynkrish
Maybe you are looking for
-
My iPhone 5 rear camera was not working, now the rear camera is also not working. I have procured the phone in 2012 from San Fransico. USA Can anyone help me, please?
-
HT1386 Syncing problems with iPhone/MacBook
Hi! I wan´t the iphone to be the source of notes, calendars and so on. When I sync the iPhone now, it reinstalls older calendar versions from the computer, erases new notes on the iphone and so on. I can´t find how to let the iphone conduct the proce
-
i am a new owner of lumia 520 , i have problem on store connectivity. when i am download/update/installation of any apps will load error massage is we can't connect to the microsoft at the moment. Please could someone put me out of my misery and tell
-
CUSTOMER SERVICE MODULE-DETAILS
Dear Guys, Presently Iam in PM and my company is expecting project in CS and they want me to handle it.If any of you guys has implemented CS,pl send me the basic details.I appreciate your help in this regard.My mail ID is [email protected] Regards IS
-
Touch screen and swipe problems on brand new iPhone 5S
I brought it to the Apple store and they restored it. It started happening again. So the Apple store gave me a new phone, but used the same microchip. Today, I couldn't tap out of voice messages. I tapped "recents" - nothing. I tapped "contacts"- not