Problem with printing the sub totals
Hi,
I am having a problem with smart forms in printing the line items of invoice.
I need to print the sub total of each page and need to display the sub total in the footer, with the caption 'Balance C f/w'. It works fine in some cases.
In some cases, the sub total is getting printed wrongly, because its adding the amount of the next page's first line item also. I checked the form page by printing SFSY-PAGE along with the line item's text. It's observed that, the vlaue of SFSY-PAGE for the first line item's displayed in the second page is '1'. Due to this, the amount for this line item also is getting calculated with the sub total of the previous page.
Could you please suggest a solution for this problem?
Thanks & Regards,
John
Hi,
In smartforms, in the general attributes of the FIRST page the Mode for the page counter should be 'Initialize counter' and for the NEXT page it should be 'Increase counter'.
Please check this in your smartform.
Regards,
Ram
Similar Messages
-
Problem with Printing the Billing date...
Hi Experts...
Here im facing the problem in printing the billing date.
The scenario is as follows.
The posting date of Billing is 10.10.2008
The document date of Billing is also 10.10.2008.
At the time of printing the Billing document it is taking another date otherthan 10.10.2008,where it should be 10.10.2008.
What modifications should i do to rectify the problem.
Please advice.
Regards,
Y P.Prasad,
Ask your ABAPer do debug and find out what date (Table-Field) is used in the Invoice Output program. You will know the reason and if you think that the date being used is incorrect, you can ask your ABAPer to change it to VBRK-FKDAT which is the billing date.
Chandan -
Problem with printing the smrtform
Hi experts,
I want to print material number through smartform. i have a internal table containing material number and its quantity. I want to print particular material number for number of quantity times. it means if i have 3 rows in internal table , that means 3 material numbers are there and number of quantity is 50 for each material . so i want to print each material number for 50 times.Hi Rupesh,
You can try following code.
Lets take an example of just one material number in your internal table.
what you can do here is create two similar tables with quantity & material number.
Loop at itab.
here capture the quantity field.
do < quantity times >
append the material numbers to the second internal table.
enddo.
endloop.
This way you can build an internal table with material numbers for total number of quantities.
Then use this table in your smartform.
Hope this helps. -
Problem with printing the correct "ical" pages.
G'day
I have only recently started using "iCal", on the cloud, having upgraded my laptops to "Lion" and my iPhone to "5", so that I have NOT experienced any of the "syncing" problems of which I have read elsewhere.
BUT, I do have an irritating problem, the solution to which, being a long-term Mac user, should be obvious.
The problem stems fronm the fact that I am located on the east coast of Australia, and my laptops know this.
The first, really daft, thing that I did was to create a whole lot of iCal entries, in iCloud, without noticing that the default timezone was "Pacific".
So, OK, I fixed that by going into my ID on iCloud and changing the timezone, and then editing every single event that I had entered at that point in time.
So, I then thought that I had beaten the beast, because I had only been printing "Weekly" calendars, which were OK.
Today, I decided to print some "daily" calendars, and the system WILL NOT PRINT THE CORRECT DATE.
My iCal entries are mainly to do with a trip that that starts on 1st August this year. I bring up iCal on the Mac, go to the print page, select 01 Aug 2012, and it prints 31 July 2012.
This happens whether I tick the "Timezone" preference in iCal on the Mac, or not.
What else should I do?
Dave the DesperateHi Srikanth,
In the second page you can insert a command to set it to goto page 3,and an additional event in the command (only after the end of main window).
As soon as the main window ends in the second page...u will get the third and rest of the pages.
Keep the goto next page in PAge 1 as Page2
and in Page 2 as Page 2. -
Problems with printing the text in JTextPane
Hello
I need to print the text in a text pane. It prints the first page of the text pane and it doesn't print the rest of the text. I don't know what the problem is.
The code I am using, is below. I
Thank you.
LilyLay
import java.awt.*;
import javax.swing.*;
import java.awt.print.*;
public class PrintUtilities implements Printable {
private Component componentToBePrinted;
public static void printComponent(Component c) {
new PrintUtilities(c).print();
public PrintUtilities(Component componentToBePrinted) {
this.componentToBePrinted = componentToBePrinted;
public void print() {
PrinterJob printJob = PrinterJob.getPrinterJob();
printJob.setPrintable(this);
if (printJob.printDialog())
try {
printJob.print();
} catch(PrinterException pe) {
System.out.println("Error printing: " + pe);
public int print(Graphics g, PageFormat pageFormat, int pageIndex) {
if (pageIndex > 0) {
return(NO_SUCH_PAGE);
} else {
Graphics2D g2d = (Graphics2D)g;
g2d.translate(pageFormat.getImageableX(), pageFormat.getImageableY());
disableDoubleBuffering(componentToBePrinted);
componentToBePrinted.paint(g2d);
enableDoubleBuffering(componentToBePrinted);
return(PAGE_EXISTS);
public static void disableDoubleBuffering(Component c) {
RepaintManager currentManager = RepaintManager.currentManager(c);
currentManager.setDoubleBufferingEnabled(false);
public static void enableDoubleBuffering(Component c) {
RepaintManager currentManager = RepaintManager.currentManager(c);
currentManager.setDoubleBufferingEnabled(true);public int print(Graphics g, PageFormat pageFormat, int pageIndex) {
if (pageIndex > 0) {
return(NO_SUCH_PAGE);
} else {if (pageIndex > 0) return (NO_SUCH_PAGE)
prevents printing any more than the first page.
change >0 to >= numPages
Howard Amos -
Problem with printing the code
Hi ,
I m having problems in printing my source code . I use emacs as a text editor. Is there any settings that need to be made before printing . Because when i try to print it didn't print my whole code. And when i try to print it from some where else it gives me error saying printer not found on LPT1. Is it something about the port or what. Plz tell me about it ASAP , because i need to submit my project.
Bye
Waiting for replyHello gotchya11,
If you are using a Unix environment, you can use the "lp" print command to send a document to printer. The "-d <device name>" flag is where you specify which printer to sent the document to. You can do a
"man lp"
from the command line to get more info on how to print. Perhaps you need to specify the destination where the file is to be printed. What you can do if you need to print the doc is to just copy and paste your code into a text editor and print from some other program if you are running Solaris CDE or Windows.
Hope this helps,
Ming
Developer Technical Support
http://www.sun.com/developers/support -
Problem with printing the structure in ECC 6,0
Hi Everybody,
I'm working in upgrade project.
in 4.7 version, directly trying to print the work area and assign to some other fields.
Eg: write: Mara.
text = mara.
but in 6.0, its not allowing to assign directly like this.
\[removed by moderator\]
Thanks in advance.
Regards,
JaganMohan.
Edited by: Jan Stallkamp on Jul 29, 2008 6:54 PMNow, you have to write the individual fields inside the mara stucture.
Regards,
ravi -
Problem with printing the pages due to main window
hi experts ,
in my requirement i have 4 pages in smart form.It takes quotation number as input and dispaly all the contracts.
1 potrait
2 potrait
3 landscape
4 landscape
i have used a main window in the second page contains 2 windows for printing address then
one main window for printing contracts, and systems info in two tables .
i have used a main window in the 4 th page too for printing some item details equipment list.
both main windows having same width.
i am getting 1 st & 2nd pages only as o/p if i mention 2nd page in the next page field of first page .
i am getting 1 st 3 rd , 4th , 5th ........pages if i mention 3 rd page in the next page fileld of first page .
i didn't use any extra page to populate if 2nd page is filled completely .
please guide me .
Thanks & regards.
SrikanthHi Srikanth,
In the second page you can insert a command to set it to goto page 3,and an additional event in the command (only after the end of main window).
As soon as the main window ends in the second page...u will get the third and rest of the pages.
Keep the goto next page in PAge 1 as Page2
and in Page 2 as Page 2. -
Problem in Printing the ALV list
Hi,
I have one problem with printing the ALV list. While printing the ALV list(thro Print Icon on application Tool bar) ,Fist page of my print out contains some other inforamtion.
inforamtions included two tables
first table contains Sort Criteria, Ascdg, Descnd, Subtotal columns.
And second table contains Data statistics , number of
columns.
But from Second page onwards , my alv list printed correctly .
How can i avoid the First page inforamtion and
what is the Reason of coming like this?
Thanks,
Neptune.MI assume you are using function module Reuse_alv_grid_display or reuse_alv_list_display for ALV.
If this is the case, there is a parameter called IS_PRINT that you need to supply while calling the function module.
you can for exapmle declare
data:
printstruc type SLIS_PRINT_ALV.
printstruc-NO_PRINT_LISTINFOS = 'X'.
call function 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
IS_PRINT = printstruc
There are many other flags in is_print structures that you can use to manipulate the printing.
Cheers! -
Problem with Print Preview and Print events
Hello Experts,
We have developed a program, in which, I m trying to display the % values in the Sub Totals and Grand Total lines, The logic and program functionality is performing very well. The report is displaying the output the way end user is willing to see.
The main problem is, the entire % values are going to a toss when we click the Print Preview or trying to print the report, which is not supposed to go that way. I have even tried to debug the program where the problem is evolving in the code, but it is not raised from the code.
Please refer to the screen shots.Before clicking the Print Preview and after clicking the print preview.
Do anybody face the same kind of problem ever?
If so please let me know what could be the best possible solution.
Thanks & Regards
Harish Kumar MKHi Harish,
I have use the below code but not for percentage... I think for percentage you just have to calculate the normal percentage and replace it with a subtotal value.
This is not your complete code it will be better if you mail your complete code so that i can debug and check.
TABLES: vbak.
TYPE-POOLS: slis. " ALV Global types
SELECT-OPTIONS :
s_vkorg FOR vbak-vkorg, " Sales organization
s_kunnr FOR vbak-kunnr, " Sold-to party
s_vbeln FOR vbak-vbeln. " Sales document
SELECTION-SCREEN :
SKIP, BEGIN OF LINE,COMMENT 5(27) v_1 FOR FIELD p_max.
PARAMETERS p_max(2) TYPE n DEFAULT '20' OBLIGATORY.
SELECTION-SCREEN END OF LINE.
DATA:
BEGIN OF gt_vbak OCCURS 0,
vkorg LIKE vbak-vkorg, " Sales organization
kunnr LIKE vbak-kunnr, " Sold-to party
vbeln LIKE vbak-vbeln, " Sales document
netwr LIKE vbak-netwr, " Net Value of the Sales Order
waerk LIKE vbak-waerk, " Document currency
END OF gt_vbak.
INITIALIZATION.
v_1 = 'Maximum of records to read'.
START-OF-SELECTION.
PERFORM f_read_data.
PERFORM f_display_data.
* Form f_read_data
FORM f_read_data.
SELECT * INTO CORRESPONDING FIELDS OF TABLE gt_vbak
FROM vbak
UP TO p_max ROWS
WHERE kunnr IN s_kunnr
AND vbeln IN s_vbeln
AND vkorg IN s_vkorg.
ENDFORM. " F_READ_DATA
* Form f_display_data
FORM f_display_data.
DEFINE m_fieldcat.
add 1 to ls_fieldcat-col_pos.
ls_fieldcat-fieldname = &1.
ls_fieldcat-ref_tabname = 'VBAK'.
ls_fieldcat-do_sum = &2.
ls_fieldcat-cfieldname = &3.
append ls_fieldcat to lt_fieldcat.
END-OF-DEFINITION.
DEFINE m_sort.
add 1 to ls_sort-spos.
ls_sort-fieldname = &1.
ls_sort-up = 'X'.
ls_sort-subtot = &2.
append ls_sort to lt_sort.
END-OF-DEFINITION.
DATA:
ls_fieldcat TYPE slis_fieldcat_alv,
lt_fieldcat TYPE slis_t_fieldcat_alv,
lt_sort TYPE slis_t_sortinfo_alv,
ls_sort TYPE slis_sortinfo_alv,
ls_layout TYPE slis_layout_alv.
m_fieldcat 'VKORG' '' ''.
m_fieldcat 'KUNNR' '' ''.
m_fieldcat 'VBELN' '' ''.
m_fieldcat 'NETWR' 'X' 'WAERK'.
m_fieldcat 'WAERK' '' ''.
m_sort 'VKORG' 'X'. " Sort by vkorg and subtotal
m_sort 'KUNNR' 'X'. " Sort by kunnr and subtotal
m_sort 'VBELN' ''. " Sort by vbeln
ls_layout-cell_merge = 'X'.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
is_layout = ls_layout
it_fieldcat = lt_fieldcat
it_sort = lt_sort
TABLES
t_outtab = gt_vbak.
ENDFORM. " F_DISPLAY_DATA
BR
Sumeet -
Problem with printing ALV lists
Hey Guys,
I have a problem with printing ALV lists ,
I created a report with several ALV lists (not grids) on the same screen but when i attempt to print the report
it prints each alv list on a different page..so if i have 3 alv lists in the same report it will print the report on 3 pages
How can i print them all in one page?
Thanks in advance
Noha Salah.Hey Max,
I tried setting the Layout-list_append before my block_list_append function call
And setting the is_print-NO_NEW_PAGE , it printed the 3 lists on one page the only problem i have
is that the lists are truncated and the list formats has totally been messed up..how can i restore them back
to their original format? -
Problem with print photo 13x18
hi i have a problem with print photo (13x18) size it cut in the end of photo i use hp photo creations but if choose 100%size or full screen same result please what can i do; i am disapoint to buy this printer if photo print so
Cornelia-I, I used "single/image contact sheet" and there is a Lightroom
Template for 2x2 cells. I modified this a little to make the cells smaller
to provide room for the captions and margins for hole punching and binding
the sheets.
No, I surely did not type in each caption. The captions were Title plus
Caption taken from the metadata plus a comma and # sign preceding the
filename which was a date/sequence number. I was printing four different
images on each page and 36 images total so there were nine pages of the
booklet.
I didn't try the idea of switching the Photo Info option off and back on to
the custom package because I had already created a custom preset and as soon
as I discovered that all it needed was to have a period added or removed at
the end of the line each time, it was easy to simply switch back and forth
between the two text presets which was doing the same thing you recommended.
Whole job was simple once I discovered that the problem was simply that I
needed a new version of the text string every time I printed and couldn't
simply keep using the same one over and over. The time wasted was lost
trying to figure out what was causing the lines to suddenly become truncated
when previously they had been there. Which is why I wrote it up so others
need not waste that time if they want to do this. -
HP Officejet Pro 8600 "Problem with Printer or Ink System'
A gander at this forum suggests I am one ofa multitude of people perplexed by this issue. There is a notation beside one enquiry which says 'Problem Solved'.... well it isn't for me. My printer (typical!) is one month out of warranty. I had to replace the black cartridge and, when I did, it came up with this error prompt. I then replaced all the other cartridges. HP suggests removing the printhead and following that they say place it 'upside down on a clean sheet of paper'... NO instructions for cleaning it!! When it is replaced in the printer they suggest you 'rock the printhead left and right to make sure that the printhead fully seats in the carriage' and if THIS doesn't fix things 'try reseating the printhead up to 3 times'... This in itself is an admission of an 'issue' with this product. It doesn't sound like a very scientific engineering 'fix' to me!
A new printhead costs almost what we paid for the printer a year ago. I hate consigning anything to landfill that I can avoid... unfortunately it looks like that is where this unit belongs...Hi @Robin_Perth,
Welcome to the HP Forums!
I am sorry to hear about you getting the problem with printer or ink system error, with your HP Officejet 8600, but I am happy to look into this for you!
I am assuming you have already been through this guide, A 'Problem with Ink System' Error Message Displays on the Control Panel or Computer During Setup.
If this guide does not resolve the issue, please call our technical support at 800-474-6836. If you live outside the US/Canada Region, please click the link below to get the support number for your region. Country-language selector.
This guide, Limited Warranty for HP Ink Cartridges and Customer-Replaceable Printheads for HP Inkjet Supplies, will help you to determine if your printhead is still in warranty or not.
Hope this helps!
RnRMusicMan
I work on behalf of HP
Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
Click the “Kudos Thumbs Up" to say “Thanks” for helping! -
HP 4622 All in One Printer: Problem with Printer or Ink System
Problem with Printer or Ink System Error OXC19a0027.
charleshia wrote:
Thanks so much for replying to my post. I tried the fist suggestions and they did not work. So, I attempted to move on Dow to the cleaning of my printer. I am the the first to admit that I'm not the genius when it come to electronics buys, my printer do not seem to have what is described in the photos. I'd like to upload a photo of my ink cartage but do not know how.
Charleshia, you can upload a photo here to reply. Click Reply, then on the window you'll see the image below..
click the one which has the red box, it's where you insert the photo
Going back on your issue.. the basic step would be.. take out the inks then close the door... what error message you got? If it's saying "Missing Ink Cartridge" just hit OK. Unplug the power cable at back of the printer, plug it back in.. Clean the copper contacts on the ink cartridges using a lint free cloth then reinstall them. Let me know if it resolved it or not.. I can only give basic troubleshooting here -
Hi All,
I'm developing a web application written in J2EE that uses Java Reporting Component (JRC) to display crystal reports from some filters recovered from a jsp and passed to a report .rpt previously designed and invoked just at runtime.
I have a problem with printing a PDF:
I want, after entering the filters in a jsp, to print a report in PDF format (WORD) without opening it
with Adobe Reader (Microsoft Word). The class of API JRC used for export is ReportExportControl.
Can anyone help me?
I wish a great day to You all.Hi Ted Ueda,
sorry for the delay of my answer.
I understand very well the problems related to security.
With the following code that I used to produce a report (PDF) at runtime,
is the PDF created on the server and then sent to the client, or is it directly created on the client as PDF
from RTF previously realized?
ReportExportControl exportControl = new ReportExportControl();
String report = report path;
ReportClientDocument reportClientDoc = new ReportClientDocument();
reportClientDoc.open(report, OpenReportOptions._openAsReadOnly);
Object reportSource = null;
reportSource = reportClientDoc.getReportSource();
//The method setConnectionProperties() stores all the connection parameters in the collection
//ConnectioInfos
ConnectionInfos connInfos = setConnectionProperties(request, reportClientDoc);
exportControl.setEnableLogonPrompt(false);
exportControl.setEnableParameterPrompt(false);
exportControl.setReportSource(reportSource);
exportControl.setDatabaseLogonInfos(connInfos);
//Single method to pass parameters to Crystal Reports. Using classes ParameterFieldController and
//ParameterFieldDiscreteValue
setReportParametersValue(reportClientDoc, reportParameters, subReportParameters);
ExportOptions exportOptions = new ExportOptions();
//Set the export format (PDF)
exportOptions.setExportFormatType(ReportExportFormat.PDF);
PDFExportFormatOptions PDFExpOpts = new PDFExportFormatOptions();
exportOptions.setFormatOptions(PDFExpOpts);
exportControl.setExportOptions(exportOptions);
exportControl.setExportAsAttachment(true);
try {
exportControl.getHtmlContent(request, response, getServletConfig().getServletContext());
} catch (ReportSDKExceptionBase e) {
throw new ApplicationException("error code", ": error message"); }
As, however, I predicted in my previous message about the direct printing on the client,
I read about ActiveX, but I don't know how to use them.
I read this information in the 'Crystal Reports for Eclipse Developer Guide' about "printMode" attribute:
"In ActiveX print mode, an ActiveX control is downloaded to the client machine and the report is send directly to the printer...."
The ActiveX alternative is a java applet that runs on the client and takes the pdf from the server and prints directly onto the clients through the commands that I used in the DOS command line:
1) AcroRd32.exe /p /h FILENAME
where
/p = print
/h = hide window
to print the report and
2) tkill AcroRd32
to close Adobe Reader, because it doesn't end automatically after printing and the command /h is used just to minimize the process.
I hope you can give me advice because I need to print directly on the client. Thank you
Maybe you are looking for
-
Oracle - crystal report problem
Hi, I have a package with few functions in it that returns certain values like name, address, state and zip But while I am passing these valus to get the result on the crystal report viewer on a web browser, I am not getting any special characters li
-
Somehow my settings have changed. When I open an email and there is a link, my computer won't allow it, also when I am doing a search, my computer won't allow certain links to open. What I see is "ALLOW" in the upper right hand corner of the screen,
-
Mixed signal graph : Legend udate problem
When manipulating the graph in diagram window with properety nodes like example "Plot Visible", the legend of the mixed signal diagram will not be updated. Only when refreshing the front panel by scrolling with the mouse up or down, the legend is cor
-
How to add the new Signature Filter to LiveCycle Digital Signatures?
I have been wrote my own plugin for Adobe Reader. This plugin creates signatures by cryptoalgorithm "GOST R 34.10-2001" instead of RSA used in Reader and Livecycle. As a result, I can't validate signatures created by my plugin in the LiveCycle Digita
-
Is there a way to match property or dimension has multiple values?
I have Endeca records indexed from database. Each record will have: ID, Name, CategoryID, CategoryName.... Each record may belong to multiple category. So after reindex, the record looks like the following: ID:0001 Name: Name 1 CategoryID:1 CategoryI