Smartform - Subtotal on each page - Reset on new page
Hi Experts,
I am using table calculation tab to calculate my subtotal.
I want to rest this subtotal to zero for every new page. I want page wise subtotal.
Can anyone suggest how do I go about it. I have included a program lines and checked for a change in the page number and tried to clear the subtotal. But it does not work.
if page ne sfsy-page.
clear: subdebit, subcredit.
page = sfsy-page.
endif.
The first line of the second page is getting missed out in the subtotal.
Regards,
Abdullah
Hi,
Calculate subtotal by placing program lines node in Table after displaying the Line items. Display the subtotal field in Footer Node of table. It automatically reset for every new page.
If it is not working then try with Sort of Begin and Sort of end events which are available in Table node.
Clear Subtotal field value in Sort of begin node and display the Subtotal in Sort of End node. It is working just like Control break statement in Reports.
Similar Messages
-
Error on Subtotal in Each Page ?
Hi all,
I have problem in displaying subtotal on each page, the problem is that the sub-total takes sum of all line items of the current page plus the first line item of the next page. I tried changing page initialise counter, increase counter etc but nothing
working.
smartform design :
Main Window : inside main window -
Table 1 (here no internal table) -
> Main Area -
> i created a loop.
LOOP ( here internal table present ) ->FOLDER(page protected)--> item tab line & another tab line
What can be done to solve this problem ?
Thanks,
SivaHi,
My code:
loop at itab into wtab.
subtotoal = wtab + subtotal.
endloop.
in the footer display subtotal.
so in the first page - first page sub total.
in second page - first page + second page subtotal and so on..........
Thanks,
Siva -
How to carry forward subtotal to other page in smartforms
Hi all,
My requirement is to calculate the subtotal of a particular page and to print that subtotal
at the end of each page.And this subtotal has to be carry forwarded as the first item of the next page(say page2).
And again at the end of this page(page2) I have to print the subtotal and needs to carry forward this subtotal again on to
the first item of the page3..
My problem is I am doing it in a table.I am calculating the subtotal and displaying the subtotal at the footer of the table..
In the footer again I am redefining table work area values with the text 'Subtotal' and subtotal Amount so that thinking
that it would print as first line item on the next new page....
But the problem is I am getting subtotal as 2'nd line item on each new page instead of first line item of each page.........
Can anyone resolve this issue.........
I dont want this subtotal to be printed on the last page since I am getting Total of all these subtotals.....
Below is my required structure
Page 1.
Desc Amount
x 100
y 200
Subtotal 300
Page2.(Required page2)
Desc Amount
a 100
b 200
Subtotal 600
Page2.(But getting as below,which I dont require )
Desc Amount
a 100
Subtotal 300
b 200
Subtotal 600
Page3.(Required page3)( I dont require Subtotal here on the last page)
Desc Amount
a 100
b 200
Total 900
Any suggestions pls
This is in Smartform
Thanks,
ChinnuHi ,
First define the global variable for subtotal & grand total
In the first page display the table data normally and if you dont want to print the headers of the table check the condition in the header AT START OF TABLE
calculate the grand totals (Ex. g_tot = g_tot + wa_vbap-kwmeng)
Ex. page1 layout (Note : next page as page2)
Header window
main window
final window
In the final window create an alternative node (in flow logic )
for alternative node put the condition as
sfsy-page = sfsy-formpages
if true
print the data as TOTAL &g_tot&
else (False node)
print the data as SUBTOTAL &g_tot&
Out put will be
page1 o/p
sales order material orderqty
1 M10 10
2 M11 20
3 M12 30
sub total 60 (g_tot value )
page2 onwards o/p
4 M13 30
5 M14 20
6 M15 15
Total 125 (g_tot value )
Let me know if any concerns ......... -
Subtotal at the bottom of each page Reports
Hi, i have a report group type report and i need display subtotal at the bottom of each page, and in the next page the first row must be the subtotal of the previous page Example:
page 1
subtotal page 1 ( 10 ) "sent"
page 2
come from page 1 (10)
subtotal page 2 (15)
thanksHi ,
try to do a reset of the sum at the page ( on the property sheet) of that column.
and you may need another column to show the grand total.
also guess you can make use of the formula column and reset it each time..
Just my idea, it has been long I worked on 6i reports... -
Post Author: tadj188#
CA Forum: Formula
Needed: Sum of LineCount Including Groups and Detail Data On Each Page Used To Generate New Page If TotalPageLineCount > 28
Background:
1) Report SQL is created with unions to have detail lines continue on a page, until it reaches page footer or report footer, rather than using subreports. A subreport report is now essentially a group1a, group1b, etc. (containing column headers and other data within the the report with their respective detail lines). I had multiple subreports and each subreport became one union.
Created and tested, already:
1) I have calculated @TotalLineForEachOfTheSameGroup, now I need to sum of the individual same group totals to get the total line count on a page.
Issue:
1) I need this to create break on a certain line before, it dribbles in to a pre-printed area.
Other Ideas Appreciated:
1) Groups/detail lines break inconveniently(dribble) into the pre-printed area, looking for alternatives for above situation.
Thank you.
Tadjexport all image of each page try like this
var myDoc = app.activeDocument;
var myFolder = myDoc.filePath;
var myImage = myDoc.allGraphics;
for (var i=0; myImage.length>i; i++){
app.select(myImage[i]);
var MyImageNmae = myImage[i].itemLink.name;
app.jpegExportPreferences.jpegQuality = JPEGOptionsQuality.high;
app.jpegExportPreferences.exportResolution = 300;
app.selection[0].exportFile(ExportFormat.JPG, File(myFolder+"/"+MyImageNmae+".JPEG"), false);
alert(myImage[i].itemLink.name) -
Print each page range double sided as new task
Hi All,
I have that problem. I would like to double sided print some pages from pdf file - let's say pages 1 to 5. But I want them to print like this - pages 1-2 on the first sheet of paper, page 3 on the second sheet (the other side of this sheet I want to be blank) and pages 4-5 on the third sheet.
If I type page ranges 1-3,4-5 when printing the result will be the same if I would type page range 1-5, so pages 1-2 will print on first sheet, pages 3-4 on the second sheet and page 5 on the third sheet. That's not what I want.
The only solution is to first print pages 1-3 and then open printing dialog box again and print pages 4-5 so they would be two separate tasks for printer. But this is very time consuming when working with large files.
I do not have Adobe Acrobat to insert blank page after each section that is odd numbered so this is no solution for me.
Could you please help? Any ideas how to work this out? Is there any printing set up to print each page range as separate task?
Or maybe there is a way to double sided print odd numbered page ranges with an additional blank page at the end so that the next range would start on new sheet?
Thank you in adavncedear ,
check ur printer settings , bcos u are using std.program , so i cannt say SAP is doing wrong , better to check ur printer settings
Regards
prabhu -
I am new to mac and am trying to understand how to do something i did in Word. In Word you can set up document so that you have 2 pages per 8.5 x 11 landscape page. Each page is treated as a separate page. Can this be done in word for mac 2008?
Suggest you ask on the Microsoft Mac forums since it's their software you have a question about:
http://answers.microsoft.com/en-us/mac -
SMARTFORMS: 2 columns (each column consist 1 table) in 1 page
Hi...,
I've got problem that there is requirement to development smartforms as below format:
Page 1
column "A" column "B"
No. Description Qty Amt | No. Description Qty Amt
1. Desc1 1 100 | 5. Desc5 5 500
2. Desc2 2 200 | 6. Desc6 6 600
3. Desc3 3 300 | 7. Desc7 7 700
4. Desc4 4 400 | 8. Desc8 8 800
Page 2
column "A" column "B"
No. Description Qty Amt | No. Description Qty Amt
9. Desc11 11 110 | 13. Desc15 15 510
10. Desc12 12 210 | 14. Desc16 16 610
11. Desc13 13 310 |
12. Desc14 14 410 |
It means that in one page consist of 2 column, A and B. Each column has each own table which is identically each other. After writing line item in column "A", then automatically go to column "B" until finished.
My question is how to solve it in smartforms?
What I did before, I created internal table which is already containing the data like above then just pass through table in smartforms like usual.
Is there any solution?
Thanks a lot in advance.Hi Herlina,
maybe you have to solve this problem like in Abap code. You know the number of column that you could set on your page, for example 4.
So create a table with col_A and col_B, use the number 4 to set data into this table.
Like that.
loop at it_x.
w_num = sy-tabix / 4.
perform p_test_odd using w_num changing w_odd.
if w_odd eq 'X'.
* move in col_b
else.
* move in col_a
endif.
endloop.
(w_num is a type n)
I didn't test the code, but I hope that will help you.
Regards
Frédéric -
How to bring each lable in each page in smartform output
Hello Experts,
I have a requirement to develope a smartforms based on tcode LM55 ,So think is there after executing that smartform driver program it will generate storage bin number with barcode but my requirement is if multiple storage bin number is there then it should come each storage bin in each page.So any one can help me for this.
Thanks.Hi Ram,
You can add you coding in command. -
Subtotal at end of each page..help needed
Hi,
I have a requirment like:-
I have to display subtotal (sum of amount) at the end of each page,for some organization unit.
but the problem i am facing is:=e.g.
I have to dispaly three columns department number,employees and salary.
if for organization unit=10,
there exist ten departments and the hole data for that org. unit is going beyond one page, then at the end of first page for that organization unit subtotal should be displayed.
My logic is:-
I have applied format trigger on subtotal,which will dispaly subtotal filed after every 10 department number (This is like hardcoded logic)work fine for most of the org unit.
but the problem comes when number of employees for some department increases to the level that count of department=10 comes at next page so subtotal will be displayed in between the second page.
Can anyone suggest me the logic for same...it's really very urgent.
Thanking you
Edited by: user599509 on Sep 6, 2008 10:53 PMPlease don't post such hard to read posts.
Pages will thread inline tables from page to page but not if the cells are larger than the page.
Tables break on cell boundaries.
Floating objects are those that are not part of the text. that is they are free to move on the page. There is not complete compatibility between Pages and Word and differences will occur.
Peter -
Subtotal at the bottom each page
Hi, i have a report group type report and i need display subtotal at the bottom of each page, and in the next page the first row must be the subtotal of the previous page Example:
page 1
subtotal page 1 ( 10 ) "sent"
page 2
come from page 1 (10)
subtotal page 2 (15)
thanksadd a field in the margins area of the report that refers to your total (assuming this is a report level total).
-
I just opened an "old" project in a newer version of iPhoto and the pages in the book doubled in number with the seam in the middle of each page. Suggestions?
Start with Try the following:
1 - delete the iPhoto preference file, com.apple.iPhoto.plist, that resides in your
User/Home/Library/ Preferences folder.
2 - delete iPhoto's cache file delete the contents the following folder:
User/Library/Containers/com.apple.iPhoto/
Data/Library/Caches/com.apple.iPhoto
3 - reboot, launch iPhoto and try again.
NOTE: For Mavericks, 10.9, go to your Home folder and use the View ➙ Show View Options menu to bring the this window:
where you can check the Show Library Folder checkbox.
If that doesn't help continue with:
1 - launch iPhoto with the Command+Option keys held down and rebuild the library.
2 - Run Option #4, Rebuild Database.
Happy New Year -
OCI bowser generates new session with each page load
Here is a summary of my problem:
I am trying to implement the SAP Open Catalog Interface (OCI) with our eCommerce software, but I am having issues with the Web browser that OCI uses.
Our eCommerce software utilizes the browser session id to identify the user. Our issues is that the OCI browser supplies a new session id with each page load.
The weird part is that if I open a standard instance of IE, access the site, and then access the site though OCI the same session is shared by both the OCI browser and the IE browser. The OCI browser is now able to maintain the session ID as the user browses the site.
Thanks.Thank you for your quick response.
I understand that session IDs are always unique, and should only last for as long as the instance of the browser is open.
What I have seen happen is that the session ID will get recreated with each page load with in a single instance of the OCI browser.
When the site is opened in OCI it logs the user in, and then redirects them to the homepage. The problem is that the load of the login page, and the load of the homepage have different session IDs. If the user then clicks on a link on the homepage that page load will again have a different page load. This causes the eCommerce system to see them as separate users.
As I described when I open an instance of IE first it seems to work. This leads me to believe that the OCI browser can read the cookie information, but can't write or create.
I am trying to figure out why the OCI browser keeps generating new Session IDs. -
How to display a header on each page of the smartform?
Hi,
I have a main window with a header and a table.I want my header to be displayed on each page of the form when the table streches on several pages.In my case,my header is a template and i want it to be displayed every time my table is longer than the first page.
thanksHi
Yes,i know that the header is displayed on every page,but i cannot insert a template into the table.
I also cannot use a flag,because only the content of the table is processed until all the data from the table is displayed.I have to force that window to be displayed on each page if the table has overflow.
Any other ideas?
later edit:
I gues the option Sravathni gave me,is the only possibility.I have to declare rows exactly like the one from the template and move the whole template into the header of the table.
But isn't there an easier way to do that?
Edited by: seba seba on May 18, 2009 12:16 PM -
Prior to updating my iPhone5 to the "new and improved" ios.7, I used to be able to go to my Notes app and scroll through the various categories until I found the item I was looking for. Now, under the "improvements" I have to open each page, one at a time, until I find the desired category. This strikes me as a big step backword. Any solutions in the community?
Have you tried restarting or resetting your iPhone?
Restart: Press On/Off button until the Slide to Power Off slider appears, select Slide to Power Off and, after It shuts down, press the On/Off button until the Apple logo appears.
Reset: Press the Home and On/Off buttons at the same time and hold them until the Apple logo appears (about 10 seconds).
Also consider deleting and reinstalling the Mail Account in question.
Maybe you are looking for
-
What are the mistake in this JSP program?
Hi,all. I am a newcomer to learn JSP, and I sincerely hope somebody help me. the following is a JSP program, and I want it extract data from my database and show them on webpage as XML. But there always have some mistakes I cann't found it. Could som
-
Error 1 Configuration VIs while Passing Refnum through Shift Register on Mac
All, I am using LabVIEW 2013 SP1 with Mac OS X (Mavericks). I have a simple shift register VI that initializes a .ini file, reads/writes, and closes. I've done this plenty times on windows with no problem. I wrote a quick VI on Mac and I get Error 1.
-
Lock the Welcome & FAQ's Forum
From what I can see there, virtually every post gets moved to another forum. Just close/lock it and only let Mods and Admins post in there, we really don't want to say 'hello' to every Tom, **bleep** and Harry who happen to post there.
-
Export file list from collection/subfolder in collection window
i would find it very helpful to be able to export the file names of files contained in one a collection as a .txt or similar list. there are scripts and complicated things to do this out of folders, but there doesn't seem to be a way to do this with
-
Parsing field data into mailto:
Is there any way to pull field data, like with a variable %TextField2%, so it can be used somewhere else in the form? What I'm trying to setup is a form that will take the data from TextField2 so I can use it to prepopulate the subject of the mailto