Calculation of VAT on PO Sub Total
Hi Friends,
We have requirement to calculate VAT on Basic+Customs Duty, As per TAXID (TAx Calculation Procedure for Indonesia) system is VAT on Basic Amount (First condition record) in PO. But we want on Basic +Customs, Can anybody suggest if way out for the same.
Regards,
Friends,
For aching the same i made some change in My Tax Procedure mentioned below.
100 0 BASB Base Amount
105 0 J1AA VAT Disc. Customs 100
109 0 Subtotal 100 105
110 0 MWAS Output Tax 100 MWS
120 0 MWVS Input tax 109 VST
140 0 MWVN Non-deduct.Input Tax 100 NAV
150 0 MWVZ Non-deduct.Input Tax 100 NVV
160 0 MWID Luxury Tax 100 LUX
In above procedure i have added condition 105 and 109. For condition 120 i have change base from 100 to 109.
Now while creating the Tax code for the same system giving error as "Define the tax code on level 109"
Can antone help me on the same.
Regards,
Similar Messages
-
How to calculate Sub-Totals/Grand Totals on repeating row.
I have a this form that I need to calculate to produce a Sub-Total.... An end user can keep adding a line item but I would like to be able to add the amounts entered to calculate in a sub-total field. So basically, I need help with the actual script that would total the amount calculated from a Quantity*Amount which is -->"Sub Total" column then taking all of those to a new calculating script down to the "Sub-Total" field below it. I probably should rename them because its too similar.. I've tried the recommended scripts from the forums but just could not get it to work.
Excuse my editing...but this is what it looks like. If i need to clean it up so it looks more consistent please let me know if you have any advice. I just started working on acrobat forms 2 days ago and my eyes have gone blurry from reading the help forums
and here's the javascript on my "Sub-Total" (Which should probably be renamed to "Total" and my "Total" to "Grand Total". Any help would be much appreciated. Thanks!Try the LiveCycle Designer forums...
-
Calculation of Vat On total amt(Basic price+Exices duty+Freight condition)
Dear friends,
My client requirement is that the Vat should calculate on total amount including freight condition while creating PO that is
Basic price=100
ED 10%=10
cess on ED 2%=2
Total amount=112
Freight=20
Total amount after adding Freight=132
Vat 4% should calculate on total amount=5.28
Total amount=137.28Hi Mallinath,
Actually in PO it will not calculate including freight. i suggest do not change the pricing. instead wat u can do is add freight in PO and at the time of Bill verification, choose goods/services & planned dely costs. system wil give a seperate line for delivery costs(freight), put a seperate tax code ( VAT 4%) and simulate. you wil get the results as per ur requirement.
Regards,
Girish -
Sub-totals and Totals calculations....?
How to Calculate the Sub-totals and Grand totals in ABAP Programs.
Hi Bhaskar,
In my opinion this can be acheived in two ways:
1. Using ALV GRID DISPLAY
2. Using AT NEW , ON CHANGE OF , etc events.
1. In the ALV field catalogue u create entries for all the fileds to b
displayed in the output list.
Here, we need to put DO_SUM = 'X' .
eg
****************fieldcatalog*********************
data:anytab type slis_t_fieldcat_alv with header line.
**************pgm name**********************
data:anypgnm type sy-repid.
**************events*************************
anytab-fieldname = 'MATNR'.
anytab-seltext_m = 'Material Number'.
anytab-col_pos = 0.
anytab-outputlen = 20.
anytab-emphasize = 'X'.
anytab-do_sum = 'X' . <----
here it is.
append anytab to anytab .
clear anytab .
Now wen u call the fm REUSE_ALV_GRID_DISPLAY , plz pass anytab ie fieldcatalog and the tabel with records to b displayed .
this would sum the fields at the end.
2. Alternately ....for SUb-totals ;
Sort itab in an ascending manner.
Data : wa_itab like line of itab,
wa_subtotal type i.
" fieldname1 in itab is the key field
" fieldname2 is the value field
LOOP at itab into wa_itab .
wa_subtotal = wa-subtotal + itab-<fieldname2>.
AT END OF <fieldname1> .
" your programming logic for subtotal
Write :/ wa_itab-fieldname1 , wa_subtotal.
Clear wa_subtotal.
ENDAT.
" write :/ ....if u need to write any lofgic values ....
ENDLOOP .
Note : plz sc if a field in itab that is left of fieldname1 changes
the AT END OF event is triggered.
Therefoe , see that pur key fields towards left in itab.
FYI : u can try ON CHANGE OF....ENDON....
AT NEW .....ENDAT
AT LAST....ENDAT
AT FIRST ......ENDAT events for ur own understanding
i hope this helps u.
Regards
panakj -
Hi Friends,
I need to design pricing procedure as given below.
Basic price
+ Taxes = Sub total 1
Sub total 1+ Octroi = Sub total 2
Sub total 2 + Freight = Total
I am facing problem in octroi calculation part. System is not calculating Octroi on Taxes. I am using NAVS & NAMV. My client takes set off against VAT so need to put the VAT amount in different G/L (VAT clearance a/c). Hence NAVS & NAVM are not useful.
I am using JVRD with JP5.
System is not calculating Octroi on VAT.
Need your help in solving this issue.
regards,
Anand.HI,
You can have a condition type for octroi in the tax procedure just below the Subtotal. and the from and too step will be that of the subtotal 1.
And then for the cess part which is calulated on the ED. you can take a copy of this ED total and make a step on this you can calculate your remaining taxes such has cess and HS cess.
Thanks & Regards,
Kiran -
Hi gurus,
I have a problem, please help me out.
Iam doing an report program with alv display. In that iam calculating the AVG for the workcenter wise for the field TAT.
please observe my below o/p in general ALv format.
work center-- TAT- Tat(Yes/no)
qm0010------ 1 -- yes
qm0010-------2 -- yes
qm0010------ 4 -- yes
qm0010------ 7 -- No (because >5)
Subtotal(qm0010)--3 (avg caluculated)
qm0020-- 4 --- yes
qm0020-7-- No (because >5)
qm0020--10 - No (because >5)
qm002010- No (because >5)
Subtotal(qm0020)-- 7 (avg caluculated).
this is the rough o/p iam getting . this is acheived by programming the Field catalog for TAT field i.e... do_sum = 'C'.
then giving the sort table to REUSE_ALV_GRID_DISPLAY.
Now my problem is:
I want the avg to be calcuted by the business formula which is:
avg = sum of(TAT within 5 days) / total no of the entries .
Ex:
work center-- TAT- Tat(Yes/no)
qm0010------ 1 -- yes
qm0010-------2 -- yes
qm0010------ 4 -- yes
qm0010------ 7 -- No (because >5)
Subtotal(qm0010)---*7/4=2 (avg caluculated for tat<5)*
qm0020-- 4 --- yes
qm0020-7-- No (because >5)
qm0020--10 - No (because >5)
qm002010- No (because >5)
Subtotal(qm0020)--4/4=1 (avg caluculated for tat<5).
How can i acheive the above, since in field catalog and alv, i think we cannot pass any conditions(like for TAT which is less than 5). So is there any other way to acheive the above.
Please understand the problem and give me(please directly dont suggest any programs , since iam not a expert to understand)..
Please explain me in detail. Points will be duly rewarded.
Thanks in advance........Chaitu
Edited by: chaitanya on May 30, 2008 12:33 PM
Edited by: chaitanya on May 30, 2008 12:38 PM
Edited by: chaitanya on May 30, 2008 12:39 PMHi Chaitanya,
You can display in your report with totals and sub-totals using alv, but not average. That functionality has not provided by sap. Do one thing add one more extra column Average in your output, do the calculation for average and pass the value in the coding itself. Then last display your report with Average field.
Rgds,
Bujji -
SUB Totals within a Dynamic Data Column
Has anyone ever calculated SUB Totals in a Layout with a Dynamic Data Column?
The TOTAL for all data is expressed on the Data Column tab of the Layout as C(1):C(1) - 0FISCPER / Posting Period is the Dynamic Characteristic. When the system actually displays the 12 columns of data for the Year, the formula for TOTAL is also adjusted - no problem here. But the user also wants SUB Totals, by Quarter, within the Year.
Any insight or suggections are appreciated !
Thanks,
LyleHello,
use variables Q1, ..., Q4 for the quarters and create
data colums as follows
1 Q1 dynamic = X
2 Total C(1)
3 Q2 dynamic = X
4 Total C(3)
5 Q3 dynamic = X
6 Total C(5)
7 Q4 dynamic = X
8 Total C(7)
9 Year Total C(2)C(4)C(6)+C(8)
Regards,
Gregor -
Hiding sub total values in the ALV o/p
Hi,
I have a requirement wherein i have to display some fields for sub total based on the sorting field.
I my report, i have G/L Account, GR value, IR value, Amt in Doc Curr and Doc currency.
Initially, i have to do the subtotal based on G/L account. For e.g. If we have two G/L account 1 and 2, then after the G/L account 1 and G/L account 2, i have to display the subtotals for GR value and IR value. This part is aboslutely working fine.
Now, In one G/L account, we are having multiple currencies. Suppose G/L account 1 has USD and EUR. Now within the G/L account 1, i have to display the subtotal for Amt in Doc Curr based on the currency key, but when i am passing this field to slis_sortinfo_alv, it is calculating the subtotals for GR value, IR value, Amt in Doc Curr.
Here, i need to hide the subtotal values for GR value, IR value.
Any pointers to this will be highly appreciated.
Thank you.Hi,
I have a requirement wherein i have to display some fields for sub total based on the sorting field.
I my report, i have G/L Account, GR value, IR value, Amt in Doc Curr and Doc currency.
Initially, i have to do the subtotal based on G/L account. For e.g. If we have two G/L account 1 and 2, then after the G/L account 1 and G/L account 2, i have to display the subtotals for GR value and IR value. This part is aboslutely working fine.
Now, In one G/L account, we are having multiple currencies. Suppose G/L account 1 has USD and EUR. Now within the G/L account 1, i have to display the subtotal for Amt in Doc Curr based on the currency key, but when i am passing this field to slis_sortinfo_alv, it is calculating the subtotals for GR value, IR value, Amt in Doc Curr.
Here, i need to hide the subtotal values for GR value, IR value.
Any pointers to this will be highly appreciated.
Thank you. -
hi gurus,
In my report program i have a monthly report displaying the data for that month.
1. Now in my ALV grid i want The SUB-TOTALS for the work center wise data for a field of the alv. there are many workcenters data in my report. So after the end of each work center , i want the subtotal of a calculated TAT field.
2. At the end of the report, I want the average TAT(field calculated by my report program) for that month.
So how can i make the coding for the above.
Iam a fresher to this field, so give me in detail.
regards,
chaitanyaHi
i am giving a sample example for subtotals of alv.
REPORT z_alv_subtotal.
*& Table declaration
TABLES: EKKO.
*& Type pool declaration
TYPE-POOLS: SLIS. " Type pool for ALV
*& Selection screen
SELECT-OPTIONS: S_EBELN FOR EKKO-EBELN.
*& Type declaration
Type declaration for internal table to store EKPO data
TYPES: BEGIN OF X_DATA,
EBELN TYPE CHAR30, " Document no.
EBELP TYPE EBELP, " Item no
MATNR TYPE MATNR, " Material no
MATNR1 TYPE MATNR, " Material no
WERKS TYPE WERKS_D, " Plant
WERKS1 TYPE WERKS_D, " Plant
NTGEW TYPE ENTGE, " Net weight
GEWE TYPE EGEWE, " Unit of weight
END OF X_DATA.
*& Internal table declaration
DATA:
Internal table to store EKPO data
I_EKPO TYPE STANDARD TABLE OF X_DATA INITIAL SIZE 0,
Internal table for storing field catalog information
I_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
Internal table for Top of Page info. in ALV Display
I_ALV_TOP_OF_PAGE TYPE SLIS_T_LISTHEADER,
Internal table for ALV Display events
I_EVENTS TYPE SLIS_T_EVENT,
Internal table for storing ALV sort information
I_SORT TYPE SLIS_T_SORTINFO_ALV,
I_EVENT TYPE SLIS_T_EVENT.
*& Work area declaration
DATA:
WA_EKKO TYPE X_DATA,
WA_LAYOUT TYPE SLIS_LAYOUT_ALV,
WA_EVENTS TYPE SLIS_ALV_EVENT,
WA_SORT TYPE SLIS_SORTINFO_ALV.
*& Constant declaration
CONSTANTS:
C_HEADER TYPE CHAR1
VALUE 'H', "Header in ALV
C_ITEM TYPE CHAR1
VALUE 'S'.
*& Start-of-selection event
START-OF-SELECTION.
Select data from ekpo
SELECT EBELN " Doc no
EBELP " Item
MATNR " Material
MATNR " Material
WERKS " Plant
WERKS " Plant
NTGEW " Quantity
GEWEI " Unit
FROM EKPO
INTO TABLE I_EKPO
WHERE EBELN IN S_EBELN
AND NTGEW NE '0.00'.
IF SY-SUBRC = 0.
SORT I_EKPO BY EBELN EBELP MATNR .
ENDIF.
To build the Page header
PERFORM SUB_BUILD_HEADER.
To prepare field catalog
PERFORM SUB_FIELD_CATALOG.
Perform to populate the layout structure
PERFORM SUB_POPULATE_LAYOUT.
Perform to populate the sort table.
PERFORM SUB_POPULATE_SORT.
Perform to populate ALV event
PERFORM SUB_GET_EVENT.
END-OF-SELECTION.
Perform to display ALV report
PERFORM SUB_ALV_REPORT_DISPLAY.
*& Form sub_build_header
To build the header
No Parameter
FORM SUB_BUILD_HEADER .
Local data declaration
DATA: L_SYSTEM TYPE CHAR10 , "System id
L_R_LINE TYPE SLIS_LISTHEADER, "Hold list header
L_DATE TYPE CHAR10, "Date
L_TIME TYPE CHAR10, "Time
L_SUCCESS_RECORDS TYPE I, "No of success records
L_TITLE(300) TYPE C. " Title
Title Display
L_R_LINE-TYP = C_HEADER. " header
L_TITLE = 'Test report'(001).
L_R_LINE-INFO = L_TITLE.
APPEND L_R_LINE TO I_ALV_TOP_OF_PAGE.
CLEAR L_R_LINE.
Run date Display
CLEAR L_DATE.
L_R_LINE-TYP = C_ITEM. " Item
WRITE: SY-DATUM TO L_DATE MM/DD/YYYY.
L_R_LINE-KEY = 'Run Date :'(002).
L_R_LINE-INFO = L_DATE.
APPEND L_R_LINE TO I_ALV_TOP_OF_PAGE.
CLEAR: L_R_LINE,
L_DATE.ENDFORM. " sub_build_header
*& Form sub_field_catalog
Build Field Catalog
No Parameter
FORM SUB_FIELD_CATALOG .
Build Field Catalog
PERFORM SUB_FILL_ALV_FIELD_CATALOG USING:
'01' '01' 'EBELN' 'I_EKPO' 'L' 'Doc No'(003) ' ' ' ' ' ' ' ',
'01' '02' 'EBELP' 'I_EKPO' 'L' 'Item No'(004) 'X' 'X' ' ' ' ',
'01' '03' 'MATNR' 'I_EKPO' 'L' 'Material No'(005) 'X' 'X' ' ' ' ',
'01' '03' 'MATNR1' 'I_EKPO' 'L' 'Material No'(005) ' ' ' ' ' ' ' ',
'01' '04' 'WERKS' 'I_EKPO' 'L' 'Plant'(006) 'X' 'X' ' ' ' ',
'01' '04' 'WERKS1' 'I_EKPO' 'L' 'Plant'(006) ' ' ' ' ' ' ' ',
'01' '05' 'NTGEW' 'I_EKPO' 'R' 'Net Weight'(007) ' ' ' ' 'GEWE' 'I_EKPO'
ENDFORM. " sub_field_catalog
*& Form sub_fill_alv_field_catalog
*& For building Field Catalog
*& p_rowpos Row position
*& p_colpos Col position
*& p_fldnam Fldname
*& p_tabnam Tabname
*& p_justif Justification
*& p_seltext Seltext
*& p_out no out
*& p_tech Technical field
*& p_qfield Quantity field
*& p_qtab Quantity table
FORM SUB_FILL_ALV_FIELD_CATALOG USING P_ROWPOS TYPE SYCUROW
P_COLPOS TYPE SYCUCOL
P_FLDNAM TYPE FIELDNAME
P_TABNAM TYPE TABNAME
P_JUSTIF TYPE CHAR1
P_SELTEXT TYPE DD03P-SCRTEXT_L
P_OUT TYPE CHAR1
P_TECH TYPE CHAR1
P_QFIELD TYPE SLIS_FIELDNAME
P_QTAB TYPE SLIS_TABNAME.
Local declaration for field catalog
DATA: WA_LFL_FCAT TYPE SLIS_FIELDCAT_ALV.
WA_LFL_FCAT-ROW_POS = P_ROWPOS. "Row
WA_LFL_FCAT-COL_POS = P_COLPOS. "Column
WA_LFL_FCAT-FIELDNAME = P_FLDNAM. "Field Name
WA_LFL_FCAT-TABNAME = P_TABNAM. "Internal Table Name
WA_LFL_FCAT-JUST = P_JUSTIF. "Screen Justified
WA_LFL_FCAT-SELTEXT_L = P_SELTEXT. "Field Text
WA_LFL_FCAT-NO_OUT = P_OUT. "No output
WA_LFL_FCAT-TECH = P_TECH. "Technical field
WA_LFL_FCAT-QFIELDNAME = P_QFIELD. "Quantity unit
WA_LFL_FCAT-QTABNAME = P_QTAB . "Quantity table
IF P_FLDNAM = 'NTGEW'.
WA_LFL_FCAT-DO_SUM = 'X'.
ENDIF.
APPEND WA_LFL_FCAT TO I_FIELDCAT.
CLEAR WA_LFL_FCAT.
ENDFORM. " sub_fill_alv_field_catalog
*& Form sub_populate_layout
Populate ALV layout
No Parameter
FORM SUB_POPULATE_LAYOUT . CLEAR WA_LAYOUT.
WA_LAYOUT-COLWIDTH_OPTIMIZE = 'X'." Optimization of Col width
ENDFORM. " sub_populate_layout
*& Form sub_populate_sort
Populate ALV sort table
No Parameter
FORM SUB_POPULATE_SORT .
Sort on material
WA_SORT-SPOS = '01' .
WA_SORT-FIELDNAME = 'MATNR'.
WA_SORT-TABNAME = 'I_EKPO'.
WA_SORT-UP = 'X'.
WA_SORT-SUBTOT = 'X'.
APPEND WA_SORT TO I_SORT .
CLEAR WA_SORT.
Sort on plant
WA_SORT-SPOS = '02'.
WA_SORT-FIELDNAME = 'WERKS'.
WA_SORT-TABNAME = 'I_EKPO'.
WA_SORT-UP = 'X'.
WA_SORT-SUBTOT = 'X'.
APPEND WA_SORT TO I_SORT .
CLEAR WA_SORT.
ENDFORM. " sub_populate_sort
*& Form sub_get_event
Get ALV grid event and pass the form name to subtotal_text
event
No Parameter
FORM SUB_GET_EVENT .
CONSTANTS : C_FORMNAME_SUBTOTAL_TEXT TYPE SLIS_FORMNAME VALUE
'SUBTOTAL_TEXT'.
DATA: L_S_EVENT TYPE SLIS_ALV_EVENT.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
I_LIST_TYPE = 4
IMPORTING
ET_EVENTS = I_EVENT
EXCEPTIONS
LIST_TYPE_WRONG = 0
OTHERS = 0.
Subtotal
READ TABLE I_EVENT INTO L_S_EVENT
WITH KEY NAME = SLIS_EV_SUBTOTAL_TEXT.
IF SY-SUBRC = 0.
MOVE C_FORMNAME_SUBTOTAL_TEXT TO L_S_EVENT-FORM.
MODIFY I_EVENT FROM L_S_EVENT INDEX SY-TABIX.
ENDIF.
ENDFORM. " sub_get_event
*& Form sub_alv_report_display
For ALV Report Display
No Parameter
FORM SUB_ALV_REPORT_DISPLAY .
DATA: L_REPID TYPE SYREPID .
L_REPID = SY-REPID .
This function module for displaying the ALV report
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = L_REPID
I_CALLBACK_TOP_OF_PAGE = 'SUB_ALV_TOP_OF_PAGE'
IS_LAYOUT = WA_LAYOUT
IT_FIELDCAT = I_FIELDCAT
IT_SORT = I_SORT
IT_EVENTS = I_EVENT
I_DEFAULT = 'X'
I_SAVE = 'A'
TABLES
T_OUTTAB = I_EKPO
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2.
IF SY-SUBRC <> 0.
MESSAGE i000 WITH 'Error in ALV report display'(055).
ENDIF.ENDFORM. " sub_alv_report_display
FORM sub_alv_top_of_page
Call ALV top of page
No parameter
FORM SUB_ALV_TOP_OF_PAGE. "#EC CALLED
To write header for the ALV
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
IT_LIST_COMMENTARY = I_ALV_TOP_OF_PAGE.
ENDFORM. "alv_top_of_page
*& Form subtotal_text
Build subtotal text
P_total Total
p_subtot_text Subtotal text info
FORM SUBTOTAL_TEXT CHANGING
P_TOTAL TYPE ANY
P_SUBTOT_TEXT TYPE SLIS_SUBTOT_TEXT.
Material level sub total
IF P_SUBTOT_TEXT-CRITERIA = 'MATNR'.
P_SUBTOT_TEXT-DISPLAY_TEXT_FOR_SUBTOTAL
= 'Material level total'(009).
ENDIF.
Plant level sub total
IF P_SUBTOT_TEXT-CRITERIA = 'WERKS'.
P_SUBTOT_TEXT-DISPLAY_TEXT_FOR_SUBTOTAL = 'Plant level total'(010).
ENDIF. -
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,
JohnHi,
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 -
How to change sub total value in ALV Grid.
Hi All,
Can u please explain how to change SUBTOTAL Value in ALV Grid display based on another field value.
EX; F1 subtotal is initial then we have to modify the F2 sub total to 9999.9.
Thanks
Radha.Hi Radha,
I doubt if that can be changed....because the event that i was referring to in my previous post works with ALV List display...But in any case you can try that.....
There is an event in SLIS....(As i told you, i dont remember the name and currently i dont have access to SAP system, so i am not able to verify and let you know that event name).....
Other thatn TOP and END of PAGE events, there is an event for sub-total text......i think it would start with "SUBTOTAL"...
you need to use that event in your events table and pass it to ALV Grid display.
Then create a sub-routine with that name (As you do for TOP-OF-PAGE event)....and in this event you can change the values in runtime (PROVIDED, this event gets triggered for ALV GRID).....
If this does not work, i think calculating sub-totals while you build the internal table would be a better option....(If you have time constraint....else you can do some more research on the same)........
Best Regards,
Ram. -
How do I make a sub total not count in the TOTAL?
My totals add the sub total figure as though it were an item.
How do I get the sub total to not be calculated?Kyd wrote:
I find with Numbers one really needs to re-think the spreadsheet as there can be much better ways to do the layout than with older spreadsheets.
Hello
Glad to read that.
The structure used by Numbers is not new but it's the first tool delivering this one to a large public.
Yvan KOENIG (from FRANCE mercredi 16 avril 2008 11:34:10) -
Add another column under sub total column in alv
hi guys,
is there any way i can add a new column under sub total column in alv function and have my own calculation for itHi Radha,
I doubt if that can be changed....because the event that i was referring to in my previous post works with ALV List display...But in any case you can try that.....
There is an event in SLIS....(As i told you, i dont remember the name and currently i dont have access to SAP system, so i am not able to verify and let you know that event name).....
Other thatn TOP and END of PAGE events, there is an event for sub-total text......i think it would start with "SUBTOTAL"...
you need to use that event in your events table and pass it to ALV Grid display.
Then create a sub-routine with that name (As you do for TOP-OF-PAGE event)....and in this event you can change the values in runtime (PROVIDED, this event gets triggered for ALV GRID).....
If this does not work, i think calculating sub-totals while you build the internal table would be a better option....(If you have time constraint....else you can do some more research on the same)........
Best Regards,
Ram. -
Hi Guys,
I have 3 KFs in my report- C1, C2, C3.
Values in the all the KF are as follows -
c1 - 13.21 , 15.53
c2 - 35.21, 46.24
c3 - 64.23, 45.23
I want to calcuate the average sub total of all the records under KFs, based on the
following Condition ...
the decimal part of the value should not be more than 59 after the total. if its more than 59 it should add up to the before value.
say in the c1 case : 13.21 + 15.53 = 28.74. but by the above condition, the correct value is 28.24.
can i write the above condtion in my BEx report.
plz help.
thanks - praHi pra.
I have read your question several times, but cannot understand clearly enough what you are saying, particularly the paragraphs:
the decimal part of the value should not be more than 59 after the total. if its more than 59 it should add up to the before value.
say in the c1 case : 13.21 + 15.53 = 28.74. but by the above condition, the correct value is 28.24.
What does 'after the total' mean? total of what, or do you mean decimal point? And how is the 28.24 calculated?
Patrick -
Unable to calculate the Sub totals
Hi,
Currently we are in BI7. I had created a query based on aging buckets. it has all the calculations in the columns section. I have to calculate the sub totoals based on a particular info object Customer. For that I made the Result rows of the reamining info objects in the query to Always supress and for the info object Customer (based on which I have to show subtotals) I made it as Always Display.
When I execute the query, I get 0 in the subtotals. Can any one let me know how do I get the sub totals correctly instead of 0's.
Thanks in AdvanceHi Kartikey,
Thanks for the response. I am not calculating the subtotals at the in the query definition and the sub totals are based on the info object 0customer's setting in the query designer to suppress the result rows. In RSRT also I am unable to get the sub totals.
If I remove the calculations (aging buckets) and display direct key figure in the columns, I am able to get the sub totals.
Is there any specific reason why the sub totals can not be calculated if the columns are calculated key figures/new formula.
Can any one let me know how to fix the sub totals.
Thanks
Maybe you are looking for
-
Problem with Thread in JApplet
Hi, I am working on a project on pseudo random functions, and for that matter I have written a problem. Now I am working on a user interface (JApplet) for my program. Because some heavy calculations can occur, I want to keep track of the progress, an
-
Content Server - number of documents stored.
Hello, I am not sure if this is the correct forum, however, does anyone know how I can count the number of documents that are stored in a MAXDB / SAP Content server database? I don't think it can be done at the database level. Thanks, Philip.
-
"AppleMobileDeviceHelper.cab is corrupt" when trying to install iTunes 7.7
I'm getting ready to purchase iPod Touch 2.0 software update. It requires iTunes 7.7 (and I'm running 7.6). I download 7.7.043 and when I install, it gives the message "Cabinet AppleMobileDeviceHelper.cab may be corrupt" so I cancel the install. I am
-
In early November I decided to make the move from my 6 year old PC to the Mac world. I used to build my own high end PC's for years, never really had any issues at all, hardware or software, but decided a giant black dust collecting box was no longer
-
Hi guys, I hope that you are doing great these days. How can I colour the data in a column in Interactive Report.? How can I colour the header of a column in Interactive Report.? -- I do not mean doing it with Highlight in Action menu Best Wishes, Fa