Carried forward of total in sapscript
Hi Expert:
For a multiple-page invoice, I want to print the current total as carry forward amount or subtotal on the current page and on the subsequent page.
Please note down I am talking about SAPSCRIPT only.
Eventhough I tried to do it by using summing but it gives short dump .
Appreciation for your urgent reply and thanks in advance.
Regards
Shashi
hi shashi,
just check this ..
Summing a Program Symbol: SUMMING The SUMMING command is used for accumulating a total value for a program symbol. The command should be specified just once. Then, each time the specified program symbol is formatted, its current value is added into the total symbol. Several program symbols may all be added into a single total symbol. Syntax: /: SUMMING program_symbol INTO total_symbol SAPscript cannot create the field for the total dynamically. The symbol used must be defined in a TABLES structure in the calling program.
For details on summing and carrying forward, see Summing and Carrying Forward is Incorrect. 6.21.1 Summing and Carrying Forward is Incorrect Assume that for a multiple-page invoice, you want to print the current total as carry forward amount or subtotal on the current page and on the subsequent page. However, the carry forward amount is incorrect or missing. The following causes are possible: You do not use program symbols with Dictionary reference for totalling. You place the carry forward amount into the BOTTOM area. SAPscript processes the BOTTOM area at the beginning of a page; therefore it is not suited for carry forward amounts. If you place the carry forwards amount into the TOP area of the main window on the subsequent page, the carry forward amount may be higher than it should be: This happens if the last part of text of the previous page does not fit onto the page, but the text is held together, for example, by a PROTECT command. In this case, a local text symbol must receive the carry forward amount. You must place the carry forward amount on the current page into a window of type VAR. On the subsequent page, use a local text symbol to print the amount in the TOP area of the main window: 1. At the beginning of the form main text (before printing the first text element), define the amount variable and the total variable (both must be program symbols or Dictionary amount fields). In the example below, we use the SUMMING command to determine that for each output of &SUMTAB-AMOUNT& the system automatically sums up the amount in the total variable &SUMTAB-TOTAL&. At the end of the page, &SUMTAB-TOTAL& contains the carry forward amount of the current page or the grand total, respectively. In this example, we also define a local symbol &LASTPAGE& to print the grand total on the last page.
/: SUMMING &SUMTAB-AMOUNT& INTO &SUMTAB-TOTAL& /: DEFINE &LASTPAGE& =
2. At the end of the form main text (when printing the last text element of the main window), set the local textsymbol &LASTPAGE& to a different value, such as X:
/: DEFINE &LASTPAGE& = X
3. To print the carry forward amount in the TOP area of the subsequent page including the pre-text 'Carry forward' and a tab, we use the local text symbol &CARRY. The corresponding text element is also defined in the main window:
/E CARRY
&Carry forward:,,CARRY&
(CALL FUNCTION WRITE_FORM EXPORTING ELEMENT = CARRY TYPE = TOP) 4. Define the carry forward window on the current page as type VAR and position it at the end of the main window of the page. Print the carry forward amount there and define the local text symbol &CARRY& to print the amount again in the TOP area of the subsequent page. Use the local text symbol &LASTPAGE& to print the grand total on the last page. The carry forward window then contains the following text (define it as paragraph T1 with tab):
/: IF &LASTPAGE& = X T1 <H>Grand total:,,&SUMTAB-TOTAL&</> /: ELSE T1 <H>Carry forward:,,&SUMTAB-TOTAL&</> /: DEFINE &CARRY& = &SUMTAB-TOTAL& /: ENDIF
hope this helps
regards,
vijay
Similar Messages
-
Want to carry forward page total.
Dear all,
I am using report 6i and want to print total on each page n carry forward previous page total to next page. i.e.
first page:
empname sal.
AA 1000
BB 3000
Page Total 4000
Second Page:
empname sal.
carry forward : 4000
CC 1000
DD 3000
Page Total 8000
How to do this?
Thanks in AdvanceHello,
I have uploaded an example here : ftp://ftp.oracle.com/support/outgoing/dsegard/cumul_haut_bas_page.rdf
The example is based on the table EMP (Script to create the table and populate it are available in ORACLE_HOME\tools\dbtab\demobld.sql)
Regards -
Dear friends,
I would like to carry forward the balances to fiscal year 2006.I have closed the posting period and the run the T.code FAGLGVTR-Carry forward Gl accounts. When I do F.07 C/f of drs and crs, it shows no items are selected. I would like to see the vendors balances of previous years in the FBL1n in the Line items selection-ALL items - posting data-1/4/2006. What should I do?
Thanks in advance
UmaHi Uma,
I would suggest you check your selection criteria. Specify the <b>company code</b>, the new <b>fiscal year</b> (in your case, this would be <b>2006</b>), tick the boxes "<b>Select Customers</b>" and "<b>Select Vendors</b>", "<b>Test Run</b>" and "<b>Detail Log</b>". The would show you the figures that would be carried forward. If you're satisfied with this, then go ahead and <b>untick</b> the "<b>Test Run</b>" and re-execute to run in Productive mode.
Below is a full explanation of what would happen.
<u><b>Carry Forward Receivables/Payables</b></u>
Description
This program calculates the balance carried forward for customers and/or vendors.
The balances of the previous year are carried forward to the new year. If the account has not yet been posted in the new year and no balance carried forward has been carried out for this account, the account is opened inthe new year with the 1st balance carried forward; otherwise, the balance carried forward of the account is stored in the new year if changes result.
When posting into a previous year, the system carries forward the balance automatically. This is independent of whether the program has already run or not. "posting to a previous year" means that the posting date of the document has an earlier year than the entry date. This automatic carrying forward also occurs accumulatively over several years that means a posting in January 1993 with the posting date December 1991 changes the balance carried forward for 1992 and 1993.
SAP recommends that the program is run at the beginning of the new fiscal year. If the program is already run at the end of the last fiscal year, postings which are posted after this to the last fiscal year, do not result in automatic adjustment of the balance carried forward because it is not a "posting to a previous year". In such a case, it is necessary t let the program run again after these postings to carry forward the postings entered later.
<b>The program can be started as often as desired.</b>
Nevertheless, you can post to the new year if the program has not yet run. When posting, the accounts, however, with a balance carried forward of greater than zero are opened. Postings in the previous year do increase this balance carried forward, but do not carry forward the total of the items already posted in the old year to the new year; the balance carried forward only has the items posted by the new year into the previous year, but not the items posted in the previous year itself.
Requirement : None
<u><b>Output</b></u>
<b>Part 1:</b> Statistics - number of accounts to be carried forward is sorted according to company code, account type and special G/L indicator
<b>Part 2:</b> Detail log - information for each account to be carried forward on the amount to which the balance carried forward is to be changed (in the test run) or was changed (in production run)
The output of the detail log can be deselected on the selection screen.
I hope the above helps.
Do not forget to award the points please.
Regards,
Jacob -
BY SELECT * FROM EMP QUERY ,I GENERATED ONE REPORT.AND SUPPOSE THAT I HAVE 10 PAGES OF OUTPUT. WHAT I WANT IS ,I WANT TOTAL PER EACH PAGE.OK I GOT THAT AND THAT SHOULD BE FORWARDED TO NEXT PAGE AND NEXT PAGES TOTAL SHOULD BE DISPLAYED
assume you have 2 groups, if you dont have create a dummy group
An eg:
First group
1.Department
2.CS_1 -> summary col on salary reset at Page
3.C S_2->summary col on salary reset at report
4.cf_1-> formula col which returns return(:cs_2 - :cs_1)
5.cf_2->formula col return(:cf_1 + :cs_1)
Second group
1.Emp_name
2.Salary
The cf_1 gives the carry forward to nxt page, cf_2 give grand total on that pageSet the format triggers for the fields displaying cf_1 to not to get displayed in the first page
Edited by: Dora on Dec 15, 2009 5:22 PM -
Financial reporting and balance carry forward at Line item level
Hello
We are in the process of implementing a new GL and using it to create Balance Sheet and P&L statements in BW.
We have installed the new datasource for GL line items 0FI_GL_14 and loaded the data to a DSO. Installed the 0FI_GL_10 (totals infosource) as well.
Also we created a custom infocube on the line items DSO and want to use it to report against a Financial Statement Version. In order to do that we created a
virtual cube with the FM and added the necessary Financial Statement Item and other key figures in the virtual infocube.
Now I want to know is it the correct way to create financial reports?
Can we load totals and Line items to the same infocube? Do we have to load totals to a different DSO/Cube or same Cube?
How do we address the Balance Carry Forward on the Line items cube? Since the balance carry forward is done on totals only, and the cube I created is a detailed cube is it possible to carry forward balances at that level?
Also can someone let me know what is the best approach to create financial reports and give drill down capability at the document level?
Thanks in Advance
Raju KosuruNow I want to know is it the correct way to create financial reports?
NO .. Its not.
Can we load totals and Line items to the same infocube?
NO
Do we have to load totals to a different DSO/Cube or same Cube?
Yes.. SAP has delivered C10 for Totals and O14 for line items... No point in creating cube for line items i.e. on top of O14.
Balance carry forward can be done on totals only (that is how totals extractor _10 is designed), U can not do that on the Line items. Pls contact functional consultant for clarification
Best approach is RRI (Jump targets) for _10 report to _14 report to give drill down capability at the document level. -
Absence Quota Carry Forward without Time Evaluation (TQTR)
Dear Experts,
The client requires the left over from 2 quota types to be carry forward to 1 quota type next years.
e.g. from Annual Leave and Casual Leave is to be carry fowarded to following year's Annual Leave. As well as the total quota for Annual Leaves cannot exceed 60.
Now the problem is, if we were using Time Evaluation here, i know i couldve done it through TQTR, which woudve been very convinient. But we arnt generating quotas through the rule, neither are using TM00 or TM04.
Your help and input in this regard would be highly appreciated.
Thanks
S.N.http://scn.sap.com/docs/DOC-35168
for #1..assuming your quota follows calendar year 01/01 to 12/31. Refer to above link for more details. The idea is to do the following 3 steps in order to generate a carry forward quota bank.
1. Setup a quota type "17" in the quota configuration and attach a daily balance time type to this quota type. E.g ZQ17
2. Write a custom PCR...to read remaining balance for current year's quota ban on 12/31..and store this in a different time type. ZREM
3. in the same PCR...on 01/01 (next day)...read the previous days balance in ZREM using HRS=LZREM...and assign this balance to ZQ17...this will generate you quota bank for 17 for the next year.
for #2...
instead of update program locking the previous years quota banks...its better for update program to create a IT2013 adjustment to 0 out the balance of the previous years quota. This can be an LSMW upload. You can get remaining balances of current quota banks for all applicable employees and then load IT2013...with reduce entitlement as radio button option. -
Best practices when carry forward for audit adjustments
Dear experts,
I would like to know if someone can share his best practices when performing carry forward for audit adjustments.
We are actually doing legal consolidation for one customer and we are facing one issue.
The accounting team needs to pass audit adjustments around April-May for last year.
So from January to April / May, the opening balance must be based on December closing of prior year.
Then from May / June to December, the opening balance must be based on Audit closing of prior year.
We originally planned to create two members for December period, XXXX.DEC and XXXX.AUD
Once the accountants would know their audit closing balance, they would have to input it on the XXXX.AUD period and a business rule could compute the difference between the closing of AUD and DEC periods and store the result on an opening flow.
The opening flow hierarchy would be as follow:
F_OPETOT (Opening balance Total)
F_OPE (Opening balance from December)
F_OPEAUD (Opening balance from the difference between closing balance of Audit and December periods)
Now, assume that we are in October, but for any reason, the accountant run a carry forward for February, he is going to impact the opening balance because at this time (October), we have the audit adjustments.
How to avoid such a thing? What are the best practices in this case?
I guess it is something that you may have encounter if you did a consolidation project.
Any help will be greatly appreciated.
Thanks
Antoine EpinetteCookman and I have been arguing about this since the paleozoic era. Here's my logic for capturing everything.
Less wear and tear on the tape and the deck.
You've got everything on the system. Can't tell you how many times a client has said "I know that there was a better take." The only way to disabuse them of this notion is to look at every take. if it's not on the system, you've got to spend more time finding the tape, and adding "wear and tear on the tape and the deck." And then there's the moment where you need to replace the audio for one word from another take. You can quickly check all the other takes (particularly if you've done a thorough job logging the material - see below)_.
Once it's on the system, you still need to log and learn the material. You can scan thru material much faster once it's captured. Jumping around the material is much easier.
There's no question that logging the material before you capture makes you learn the material in a more thorough way, but with enough selfdiscipline, you can learn the material as thoroughly once it's been captured. -
Balance not carried forward when changing fiscal year in Report Painters
Hello guys,
Im using report painter (FGI3) to create my financial statement report, when i change to fiscal year 2009, the balance in my balance sheet is not carried forward to year 2009, its only shows the the movement.
Assume, the total asset in dec 2008 is 10million, transaction in januari is -900.000,
the total asset in januari 2009 should be 9.1 million, but it only shows -900.000
Sorry my english not so good
Anyone can help..
Thanks.
Edited by: rama dazkia on Feb 2, 2009 3:16 AMThanks for the reply,
I've already doin the year-end activities, if i see the balance in F.01 it is correct
but in my report painters especially in january 2009, it only shows the difference
FYI, i using report painters FGI3, FGI5
Thank you -
Time Management: Carry Forward.
Hi Experts,
Fine below the issue i have in TM
There is a configuration for the max number of days carried forward to the next year, 2012 as 6 days.
HR have made an exception this year, due to many employees not having taken most of their leave.
they would like the full balance of leave accumulated in 2011 to be carried forward to 2012, January and must be consumed by March 31st 2012 (end of our financial year)
This applies only to Annual Leave earned at the rate of 2.5 days per month so 30Days by end of December in any calendar year.
Appreciate your response.
Regards
Rajesh.N.SIn this case use Quota corrections better As you told Exception only not changing business process right..
If changes in total business you can change configuration or any PCR already writen...Exceptional case you have to use Quota corrections (IT2013) only... -
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 ......... -
Balance carry forward not happening for new entity
Hello Gurus,
We added mid 2009 a new entity to be consolidated.
The balance carry forward assigns the last year results to retained earnings, this is the same accross all entities.
When executing the task in the monitor, there is no error message but it does no work, results end-up on a difference elimination item.
For all other entities, it works fine.
I wonder if there is a configuration that I overlooked.
Many thanks for you inpput.
Alex-So you are saying that for all other consolidation units, the Balance CarryForward (BCF) was successful?
but for only one unit is was not successful?
- I suggest to you that one of the following has occurred;
1. there is no data against the balance sheet items for that unit (go to totals records to confirm YTD balance last year for all Balance Sheet items for that cons unit)
2. there is only data against a specific item that has been set to carryforward to the "elimination" item that you mentioned (check the BCF items to be carried forward confgiuration)
3. there is only data against Balance Sheet items that have been configured NOT to be carried forward (check the BCF config)
4. you have configured some items incorrectly as Item Type; Income Statement or Statistical instead of Balance Sheet.
5. You have missed the consolidation unit from the hierarchy for p1, 2010 (please also check the combinations if it is a matrix consolidation unit) so the BCF is not running for that unit at all
Checking these 5 should get you closer to the answer -
Commitment Carry Forward in the year end closing!
Hi All,
We have a lot of open PRs and POs against Internal orders and WBS at the year end and we also have the budget control activated. Now we are going to do the year end closing. My question is:
1. Who should do the commitment carry forward, supply chain or FI team?
2. If supply chain will do the PR or PO carry forward, will FI team also need to run the commitment carry forward (KOCF or CJCF) from FI side at the same time or not necessary?
Thanks,
TingHi Abhinay,
Thanks for the answer.
When you say they have to perform year end activities like checking PO and PR, what actually they are doing? Do they just need to check whether those PO or PR are required (if not, close them) or they need to do something more? . As far as I know, no steps like checking PO and PR are required here. So I am wondering whether we have missed anything or not. Can you give me some details about that step?
Also, if we are using only Total value for the budget, not annual value, I don't need to do the budget carry forward closing step. In this case, do I need to do the commitment carryforward step?
Thanks,
Ting -
Sales and purchase journal - balance carry forward to next page
Hi all,
When we run sales and purchase journals in transaction S_ALR_87012357 (Belgium) and print it we want a summary per page and balance carry forward to next page.
The paging is correct by selecting "statistical info not printed" in output control but we don´t want only summary on last page, instead on every page and a total summary on last page.
Does anyone knows how to mangage this?
Best regards LisaWith a developer implement a the BADI FI_TAX_BADI_010
-
Carry-forward Calculating Data, but not Updating
Currently having difficulty in getting results to generate for the Balance Carryforward in BPC 7.0M version. Receiving the following in the log message after the logic is executed:
Executing SPCOPYOPENING [FINANCE], [ACTUAL], [LC], [SPSCOPE_808950], [SPLOG_926445]
SPCopyOpening Version 7.0.112
336 Rows Calculated
0 Rows Updated
Questions:
- Why only 336 rows Calculated?
- Why 0 rows Updated?
Background:
- Loaded 453 records of data into Time member 2007.012 for Actual category u2013 all records are related to balance sheet accounts.
- Added DIMLIST property to Account dimension and specified u2018BSu2019 for all base level balance sheet accounts and u2018ISu2019 for all income statement accounts.
- Actual category dimension member has OPENING_YEAR property with value of u20182007u2019 and OPENING_PERIOD property with value of u20182007.012u2019
- Configured Carry-forward Business Rules for the following:
o Source Account: u2018BSu2019 (in reference to all balance sheet accounts via the DIMLIST property of account)
o Source Flow: u2018TotalActivityu2019
o Destination Account: I left this blank as help documentation suggests that by doing so, the account will remain the same once carried forward
o Destination Flow: u2018OpenBalu2019
o Reverse Sign: I left this as unchecked
o Data Source Type: Input only (data was loaded into an Input data source)
o Same Period: I left this as unchecked
o Apply to YTD: I left this as unchecked (have also tried to run with this checked and obtain the same results as above)
- Input the following logic into Default.lgx:
*SysLib Stored_Procedure_wrapper.lgl
RunCopyOpening (FINANCE, LC, ACTUAL, 2008.001, 1001)
(Have also tried RunCopyOpening (FINANCE, LC, ACTUAL, [%SCOPETABLE%], [%LOGTABLE%]) and received the same results)
- Executed the logic via Data Manager package and selected the following parameters:
o Category: Actual
o Entity: 1001 (the only entity for which data was loaded)
o Period: 2008.001
I have reviewed the ['How-To'|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b026be43-40cf-2b10-6cae-ed8900ace7f9] document on setting up the Carryforward and also a few other postings on this board related to carry-forward and have tried suggestions in those threads to no avail.
I would be grateful for any assistance you can provide and please let me know if you need any further details.
Regards,
Jim LinkKranthi,
Thank you for the reply. I understand what you are saying; however, when I run a report for 2008.Total, the balances that were loaded in 2007.012 and subsequently carried-forward are not showing up in the report. I'm assuming that the beginning balances should be showing up on this report, correct? I am running the report for all members of each dimension in the application, so I don't believe its an issue with my current view.
Regards,
Jim -
Table Balance Carry Forward per Trading Partners
Dear all,
Currently, I need to build a report that list detail Trading Partners per G/L Account transactions and per equity type also.
But I have a problem in retrieving amount Balance Carry Forward per Trading Partners.
I have checked through Table JVTO1 but it only retrieve total Balance Carry Forward and cannot be detailed per Trading Partners.
Could you please advice me any tables for Balance Carry Forward that can be detail listed by Trading Partners (or can be linked to Trading Partners)?
Thank you!
Thanks,
JohnWe faced the same issues before and we had 2 environments i) still on R/3-GLT0 ii) with New GL -FAGLFLEXT . On the R/3 environment we created a new Special Purpose Ledger and activated the summary updates only key fields- sort of like an extended version of GLT0. The R/3 environment worked quite well.
Whereas on the New GL we thought it was working but it seems we need to activate and Assign Scenarios and Customer Field to Ledgers using Scenario FIN_CONS(filed RASSC) and assign to ledger 0L.
The problem that we had with New GL-FAGLFLEXT was that unlike Special Purpose Ledger we are not able to recalculate and repopulate the field RASSC Trading partner since it was a std table. Therefore if you want to look at historical postings then this solution will have this drawback , it can only keep track of future updates of RASSC-Trading Partner in FAGLFLEXT.
We tried to activate the Special Purpose Ledger in NewGL but it was not easy due to the Doc Splitting rule and a hosts of other OSS notes that need to be tested and implemented. Good luck trying to implement Special Purpose Ledger in NewGL.
Maybe you are looking for
-
IOS 5 & Making E-mail adjustments under settings......
I have iPad 2 running iOS 5 and when I attempt to change password under one of my e-mail accounts which I set up on iOS 4.x (Settings> Mail, Contacts, Calendars>), it locks up. How do I remedy this problem?
-
[PS CS5] Install fails very early on with this error...
Hi all, I am trying to install the CS5 trial but when the install.app runs it goes for a few seconds and then kicks this error up into the console: Process: Install [4823] Path: /Volumes/Adobe Photoshop CS5/Adobe Photoshop CS5/Inst
-
Locking transaction from modifying table
Hi All, We have a transaction. This transaction is used to modify the data in certain tables. Currently multiple users can open the transaction in 'Change Mode'. We have to put a lock if one 'Change Mode' is open for transaction, it should say other
-
At one time I had done the "right" actions so that the location drop down contained a list of around 20 of my most frequently accessed websites. Now I have a new computer and cannot figure out how to configure this new installation of Firefox so that
-
Serious problem with Xcode 4.3.2 - no GNU make
There is a SERIOUS problem with Xcode 4.3.2. I just installed it and when I click the downloaded package I jsut get a Xcode.app. No longer does it allow me to install packages. Instead I get nothing but an Xcode.app to drag and drop into /Applicatio