How to calculate the subtotals in smartform
hi all
can any body tell me how can i display teh subtotals in smartform, please tell me the steps how to do that and aslo is there any special events in smartforms that are helpfull in getting and displaying the subtotals in smartforms
thanks in advance
Hi,
For doing subtotal calculation in SMARTFORMS, do like this.
Create one "Program Lines" to your main window table row.
Already you are maintaing "Internal table" for you table in main window.
Before that, sort the particular internal table with key fields through which you want to find out the sub total, now within the program lines code, first identify how many quantity and currency fields are there.
Declare respective temporary variables for each and every quantity and currency field.
then write logic like this.
at new matnr.
v_menge = wa_out-menge + v_menge.
v_netwr = wa_out-netwr + v_netwr
end at.
Also dont forget to declare character variables for quantity and currency fields. We cannot directly display them in smartforms. we need to pass them to the respective quantity and currency fields.
After end at statement write like this,
write: / v_menge decimals 2 to v_mengetext,
v_netwr decimals 2 to v_netwrtext.
after this dont forget to clear,
clear: v_menge, v_netwr.
no populate v_mengetext and v_netwrtext in your text elements.
Regards,
Santosh Kumar M.
Similar Messages
-
Hi frinds ,how to calculate the totals in smartforms
1)how to calculate the totals in smartforms .
Hi,
To calculate totals and sub totals in sap scripts you can use subroutines.
Say if you have to add the unit price (KOMVD-KBERT) then in the main window whereever tat value is picked write this routine
/: DEFINE &TOT_PRICE&
/: PERFORM F_GET_PRICE IN PROGRAM /:USING &KOMVD-KBERT& /:CHANGING &TOT_PRICE& /:ENDPERFORM
Then write the variable where ever you want it to be printed (mostly it will be in footer window)
Then create subroutine pool program and you have to write the code.
FORM F_GET_PRICE tables int_cond structure itcsy
outt_cond structure itcsy. data : value type kbert.
statics value1 type kbert.
Read int_cond table index 1.
value = int_cond-value.
value1 = value1 + value.
Read outt_cond table index 1.
outt_cond-value = value1.
Modify outt_cond index 1.
ENDFORM.
regards.. -
How to calculate the subtotals using reuse_alv_grid_display_lvc
Hi folks,
How to get the subtotals of shipped quantity monthly wise using reuse_alv_grid_display_lvc.
Thanks in Advance
RaoHi,
As per the standard SAP, it is not possible to display the subtotal in a different field. The solution is remove the subtotal field from the internal table.
In the slis_t_sortinfo_alv table pass the kunnr field with subtot = 'X'.
I hope this will solve your query.
Reward all useful answers.
Thank you. -
How to calculate the subtotals in alv for curr field(bsik-wrbtr)
I want to calculate subtotal for netamt for every new lifnr(vendor )
this is my program
REPORT Z23PRAC1.
*& Report ZRFI_AP_AGING_REPORT
TABLES : lfa1,lfb1.
CONSTANTS : gc_linedat(1) TYPE c VALUE 'X',
gc_duedate(1) TYPE c VALUE 'X',
gc_koart(1) TYPE c VALUE 'K',
gc_tname(9) TYPE c VALUE 'GT_OUTPUT'.
TYPE-POOLS: slis.
TYPES: BEGIN OF ty_output,
bukrs TYPE bsik-bukrs, "Company Code
lifnr TYPE bsik-lifnr, "Vendor Account
blart TYPE bsik-blart, "Document Type
name1 TYPE lfa1-name1, "Vendor Name
ktokk TYPE lfa1-ktokk, "Account Group
belnr TYPE bsik-belnr, "Invoice
ebeln TYPE bsik-ebeln, "Purchasing Order
bldat TYPE bsik-bldat, "Document Date
netdt TYPE bsega-netdt, "Due Date
wrbtr1 TYPE bsik-wrbtr, "Aged 1-30
wrbtr2 TYPE bsik-wrbtr, "Aged 31-60
wrbtr3 TYPE bsik-wrbtr, "Aged 61-90
wrbtr4 TYPE bsik-wrbtr, "Aged Over 90
grossamt TYPE bsik-wrbtr, "Gross Amount Due
psskt TYPE regup-psskt, "Discount
netamt(13) TYPE P decimals 2, "Net Amount Due
NETAMT TYPE BSIK-WRBTR,
END OF ty_output.
TYPES: BEGIN OF ty_vendor1,
lifnr TYPE lfa1-lifnr,
name1 TYPE lfa1-name1,
ktokk TYPE lfa1-ktokk,
END OF ty_vendor1.
TYPES :BEGIN OF ty_vendor,
bukrs TYPE bsik-bukrs, "COMPANY CODE
lifnr TYPE bsik-lifnr, "CUSTOMER ACCOUNT
END OF ty_vendor.
TYPES :BEGIN OF ty_ekko,
bukrs TYPE ekko-bukrs, "COMPANY CODE
lifnr TYPE ekko-lifnr, "CUSTOMER ACCOUNT
ebeln TYPE ekko-ebeln,
END OF ty_ekko.
DATA: gt_output TYPE TABLE OF ty_output, "OUTPUT TABLE
gt_lineitem TYPE TABLE OF bapi3008_2, "LINE ITEMS TABLE
gt_custdet TYPE TABLE OF ty_custdet, "CUSTOMER ACCOUNT VALIDATION
gt_fieldcat TYPE slis_t_fieldcat_alv, "FIELD CATALOG
gt_events TYPE slis_t_event, "EVENTS CATALOG
gt_sort TYPE slis_t_sortinfo_alv, "SORT CATALOG
gt_text_top_of_page TYPE slis_t_listheader, "TOP OF THE PAGE
gt_vendor1 TYPE TABLE OF ty_vendor1,
gt_vendor TYPE TABLE OF ty_vendor,
gt_ekko TYPE TABLE OF ty_ekko.
DATA: st_output TYPE ty_output, "OUTPUT WORK AREA
st_lineitem TYPE bapi3008_2, "LINE ITEMS WORK AREA
st_custdet TYPE ty_custdet, "CUSTOMER ACCOUNT VALIDATION
st_faede TYPE faede, "DUE DATE CALCULATION
st_fieldcat LIKE LINE OF gt_fieldcat,
st_events LIKE LINE OF gt_events,
st_sort LIKE LINE OF gt_sort,
st_text_top_of_page LIKE LINE OF gt_text_top_of_page,
st_vendor1 TYPE ty_vendor1,
st_vendor TYPE ty_vendor,
st_ekko TYPE ty_ekko.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECT-OPTIONS : s_lifnr FOR lfa1-lifnr,
s_bukrs FOR lfb1-bukrs,
s_ktokk FOR lfa1-ktokk.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-002.
PARAMETERS : p_astid TYPE rfpdo-allgstid DEFAULT sy-datum.
SELECTION-SCREEN END OF BLOCK b2.
SELECTION-SCREEN BEGIN OF BLOCK b3 WITH FRAME TITLE text-003.
PARAMETERS: p_summed AS CHECKBOX,
p_linedt AS CHECKBOX DEFAULT gc_linedat.
SELECTION-SCREEN END OF BLOCK b3.
SELECTION-SCREEN BEGIN OF BLOCK b4 WITH FRAME TITLE text-004.
PARAMETERS: p_docdat AS CHECKBOX,
p_duedat AS CHECKBOX DEFAULT gc_duedate.
SELECTION-SCREEN END OF BLOCK b4.
START-OF-SELECTION.
SELECT lifnr name1 ktokk FROM lfa1
INTO TABLE gt_vendor1
WHERE lifnr IN s_lifnr.
SELECT bukrs
lifnr
ebeln
FROM ekko
INTO TABLE gt_ekko
WHERE bukrs IN s_bukrs
AND lifnr IN s_lifnr.
IF s_bukrs IS NOT INITIAL AND s_lifnr IS NOT INITIAL.
SELECT bukrs
lifnr
FROM lfb1
INTO TABLE gt_vendor
WHERE bukrs IN s_bukrs
AND lifnr IN s_lifnr.
*LOOP AT GT_OUTPUT INTO ST_OUTPUT.
*endif.
LOOP AT gt_vendor INTO st_vendor.
READ TABLE gt_vendor1 INTO st_vendor1 WITH KEY lifnr = st_vendor-lifnr.
READ TABLE gt_ekko INTO st_ekko WITH KEY lifnr = st_vendor-lifnr
bukrs = st_vendor-bukrs.
CALL FUNCTION 'BAPI_AP_ACC_GETOPENITEMS'
EXPORTING
companycode = st_vendor-bukrs
vendor = st_vendor-lifnr
keydate = p_astid
TABLES
lineitems = gt_lineitem.
LOOP AT gt_lineitem INTO st_lineitem.
st_faede-shkzg = st_lineitem-db_cr_ind.
st_faede-koart = gc_koart.
st_faede-zfbdt = st_lineitem-bline_date.
st_faede-zbd1t = st_lineitem-dsct_days1.
st_faede-zbd2t = st_lineitem-dsct_days2.
st_faede-zbd3t = st_lineitem-netterms.
st_faede-rebzg = st_lineitem-inv_ref.
st_faede-rebzt = st_lineitem-nxt_doctyp.
st_faede-bldat = st_lineitem-doc_date.
CALL FUNCTION 'DETERMINE_DUE_DATE'
EXPORTING
i_faede = st_faede
IMPORTING
e_faede = st_faede
EXCEPTIONS
account_type_not_supported = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
st_output-bukrs = st_vendor-bukrs.
st_output-lifnr = st_vendor-lifnr.
st_output-name1 = st_vendor1-name1.
st_output-ktokk = st_vendor1-ktokk.
st_output-blart = st_lineitem-doc_type.
st_output-belnr = st_lineitem-doc_no.
st_output-ebeln = st_ekko-ebeln.
st_output-bldat = st_faede-bldat.
st_output-netdt = st_faede-netdt.
DATA : lv_date TYPE i.
IF p_docdat = 'X'.
lv_date = p_astid - st_output-bldat.
IF lv_date < 30 .
st_output-wrbtr1 = st_lineitem-amt_doccur.
ELSEIF lv_date < 60 .
st_output-wrbtr2 = st_lineitem-amt_doccur.
ELSEIF lv_date < 90 .
st_output-wrbtr3 = st_lineitem-amt_doccur.
ELSEIF lv_date > 90 .
st_output-wrbtr4 = st_lineitem-amt_doccur.
ENDIF.
ELSE.
lv_date = p_astid - st_output-bldat.
IF lv_date < 30 .
st_output-wrbtr1 = st_lineitem-amt_doccur.
ELSEIF lv_date < 60 .
st_output-wrbtr2 = st_lineitem-amt_doccur.
ELSEIF lv_date < 90 .
st_output-wrbtr3 = st_lineitem-amt_doccur.
ELSEIF lv_date > 90 .
st_output-wrbtr4 = st_lineitem-amt_doccur.
ENDIF.
ENDIF.
DATA : A TYPE BSIK-WRBTR,
C TYPE STRING.
st_output-grossamt = st_output-wrbtr1 +
st_output-wrbtr2 +
st_output-wrbtr3 +
st_output-wrbtr4 .
A = st_output-grossamt - ( st_output-grossamt * st_output-psskt ) / 100.
MOVE A TO C.
MOVE C TO st_output-netamt .
*st_output-netamt = st_output-grossamt - ( st_output-grossamt * st_output-psskt ) / 100.
APPEND st_output TO gt_output.
CLEAR st_output.
ENDLOOP.
ENDLOOP.
SORT gt_output.
END-OF-SELECTION.
PERFORM fill_field_catalog.
PERFORM fill_event_catalog.
PERFORM sort_catalog.
PERFORM display_alv_list.
*& Form fill_field_catalog
text
FORM fill_field_catalog .
*Definition
DEFINE field_cat.
st_fieldcat-tabname = &1.
st_fieldcat-fieldname = &2.
st_fieldcat-ref_tabname = &3.
st_fieldcat-seltext_m = &4.
st_fieldcat-do_sum = &5.
append st_fieldcat to gt_fieldcat.
clear st_fieldcat.
END-OF-DEFINITION.
field_cat gc_tname 'BUKRS' 'BSIK' 'Company Code' ''.
field_cat 'GT_OUTPUT' 'LIFNR' 'BSIK' 'Customer Account' ''.
field_cat 'GT_OUTPUT' 'BLART' 'BSIK' 'Document Type' ''.
field_cat 'GT_OUTPUT' 'NAME1' 'LFA1' 'Vendor Name' ''.
field_cat 'GT_OUTPUT' 'KTOKK' 'LFA1' 'Account Group' ''.
field_cat gc_TNAME 'ALLGSTID' 'RFPDO' 'Key Date' ''.
field_cat gc_tname 'BELNR' 'BSIK' 'Invoice' ''.
field_cat gc_tname 'EBELN' 'EKKO' 'Purchasing Order' ''.
field_cat gc_tname 'BLDAT' 'BSIK' 'Document Date' ''.
field_cat gc_tname 'NETDT' 'BSEGA' 'Due Date' ''.
field_cat gc_tname 'WRBTR1' 'BSIK' 'Aged 1-30' ''.
field_cat gc_tname 'WRBTR2' 'BSIK' 'Aged 31-60' ''.
field_cat gc_tname 'WRBTR3' 'BSIK' 'Aged 61-90' ''.
field_cat gc_tname 'WRBTR4' 'BSIK' 'Aged Over 90' ''.
field_cat gc_tname 'GROSSAMT' 'BSIK' 'Gross Amount' ''.
field_cat gc_tname 'PSSKT' 'REGUP' 'Discount' ''.
field_cat gc_tname 'NETAMT' 'BSIK' 'Net Amount' 'X' .
ENDFORM. " fill_field_catalog
*& Form fill_event_catalog
EVENTS FILLING SUBROUTINE TO FIND THE TOP OF THE PAGE EVENT
FORM fill_event_catalog .
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
i_list_type = 0
IMPORTING
et_events = gt_events
EXCEPTIONS
list_type_wrong = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
READ TABLE gt_events TRANSPORTING NO FIELDS WITH KEY name = 'TOP_OF_PAGE'.
IF sy-subrc EQ 0.
st_events-form = 'FILL_HEADER'.
MODIFY gt_events FROM st_events INDEX sy-tabix TRANSPORTING form.
ENDIF.
ENDFORM. " fill_event_catalog
*& Form FILL_HEADER
FILL HEADER DATA
FORM fill_header .
st_text_top_of_page-typ = 'S'.
st_text_top_of_page-info = sy-mandt.
APPEND st_text_top_of_page TO gt_text_top_of_page.
st_text_top_of_page-info = sy-uname.
APPEND st_text_top_of_page TO gt_text_top_of_page.
WRITE sy-datum TO st_text_top_of_page-info.
APPEND st_text_top_of_page TO gt_text_top_of_page.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = gt_text_top_of_page.
ENDFORM. "fill header
*& Form sort_catalog
text
--> p1 text
<-- p2 text
FORM sort_catalog .
st_sort-up = 'X'.
st_sort-spos = 1.
st_sort-subtot = 'X'.
st_sort-fieldname = 'LIFNR'.
APPEND st_sort TO Gt_sort.
CLEAR st_sort.
st_sort-up = 'X'.
st_sort-spos = '2'.
st_sort-subtot = ''.
st_sort-fieldname = 'NETAMT'.
APPEND st_sort TO gt_sort.
CLEAR st_sort.
ENDFORM. " sort_catalog
*& Form display_alv_list
CREATE THE OUTPUT IN THE ALV LIST FORMAT
FORM display_alv_list .
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
it_fieldcat = gt_fieldcat
it_sort = gt_sort
i_default = 'X'
it_events = gt_events
TABLES
t_outtab = gt_output
EXCEPTIONS
program_error = 1
OTHERS = 2.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM. " display_alv_listHi,
This is the sample report for ALV SUBTOTAL.
REPORT YMS_ALVSUBTOTAL.
*REPORT z_alv_sub_totals .
TYPE-POOLS: slis.
DATA: BEGIN OF it_output OCCURS 0,
var1(8) TYPE n,
var2(10),
var3 TYPE I,
END OF it_output.
DATA: it_fieldcat TYPE slis_t_fieldcat_alv,
t_fieldcat TYPE slis_fieldcat_alv,
it_sort TYPE slis_t_sortinfo_alv,
t_sort TYPE slis_sortinfo_alv,
v_repid LIKE sy-repid.
INITIALIZATION.
v_repid = sy-repid.
START-OF-SELECTION.
PERFORM get_data.
PERFORM sort_fields.
PERFORM fill_fieldcat.
PERFORM list_display.
*& Form GET_DATA
text
--> p1 text
<-- p2 text
FORM get_data.
it_output-var1 = 1000.
it_output-var2 = 'anupama'.
it_output-var3 = '10000'.
it_output-key = 'X'.
APPEND it_output.
CLEAR it_output.
it_output-var1 = 1000.
it_output-var2 = 'siddhu'.
it_output-var3 = '20000'.
APPEND it_output.
CLEAR it_output.
it_output-var1 = 1000.
it_output-var2 = 'chinni'.
it_output-var3 = '100000'.
APPEND it_output.
CLEAR it_output.
it_output-var1 = 2000.
it_output-var2 = 'chicchu'.
it_output-var3 = '10000'.
APPEND it_output.
CLEAR it_output.
it_output-var1 = 2000.
it_output-var2 = 'candy'.
it_output-var3 = '10000'.
APPEND it_output.
CLEAR it_output.
it_output-var1 = 1000.
it_output-var2 = 'anupama'.
it_output-var3 = '10000'.
APPEND it_output.
CLEAR it_output.
it_output-var1 = 4000.
it_output-var2 = 'anupama'.
it_output-var3 = '10000'.
APPEND it_output.
CLEAR it_output.
ENDFORM. " GET_DATA
*& Form fill_fieldcat
text
--> p1 text
<-- p2 text
FORM fill_fieldcat.
PERFORM fill_fields USING: 'IT_OUTPUT' 'VAR1' 'Variable 1' ' ',
'IT_OUTPUT' 'VAR2' 'Variable 2' ' ',
'IT_OUTPUT' 'VAR3' 'Variable 3' 'X'.
ENDFORM. " fill_fieldcat
*& Form fill_fields
text
-->P_0146 text
-->P_0147 text
-->P_0148 text
-->P_0149 text
FORM fill_fields USING value(tabname) TYPE slis_tabname
value(fieldname) TYPE slis_fieldname
value(seltext_m) LIKE dd03p-scrtext_m
value(do_sum) TYPE c.
t_fieldcat-tabname = tabname.
t_fieldcat-fieldname = fieldname.
t_fieldcat-seltext_m = seltext_m.
IF do_sum = 'X'.
t_fieldcat-datatype = 'CURR'.
ENDIF.
t_fieldcat-do_sum = do_sum.
APPEND t_fieldcat TO it_fieldcat.
CLEAR t_fieldcat.
ENDFORM. " fill_fields
*& Form list_display
text
--> p1 text
<-- p2 text
FORM list_display.
CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
EXPORTING
i_callback_program = v_repid
it_fieldcat = it_fieldcat
it_sort = it_sort[]
TABLES
t_outtab = it_output
EXCEPTIONS
program_error = 1
OTHERS = 2
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " list_display
*& Form sort_fields
text
--> p1 text
<-- p2 text
FORM sort_fields.
t_sort-fieldname = 'VAR1'.
t_sort-tabname = 'IT_OUTPUT'.
t_sort-spos = 1.
t_sort-up = 'X'.
t_sort-subtot = 'X'.
APPEND t_sort TO it_sort.
CLEAR t_sort.
t_sort-fieldname = 'VAR3'.
t_sort-tabname = 'IT_OUTPUT'.
t_sort-spos = 2.
t_sort-up = 'X'.
APPEND t_sort TO it_sort.
CLEAR t_sort.
ENDFORM. " sort_fields
Thanks,
Sankar M -
How to calculate the unit for RATE?
Hey All,
I am not sure if there is something standard for this or not.
I am calculating the 'Rate' by using 'Value/Amount' and 'Quantity' as follows -
Rate == Value / Quantity
I need to calculate the unit for the rate as below -
Rate unit == Value unit (Currency) / Quantity unit (Base_uom)
(for example -
if value is 1000 USD and quantity is 10 TO then Rate should come out as 100 USD / TO)
Could anyone please suggest how to calculate the unit in this case?
Many Thanks!
TanuHi,
Go through the below link it may give some idea
http://help.sap.com/saphelp_nw04/Helpdata/EN/19/1d7abc80ca4817a72009998cdeebe0/content.htm
Regards,
Marasa. -
How to calculate the Current APC (Acquisition and Production Cost)
Hi,
Please help me how to calculate the Current APC.
The Current APC (Acquisition and Production Cost) is a calculated value based on Previous Year Acquisition balance plus any value changes up to the time of the report.
The Asset History Report (RAGITT_ALV01) calculates the Current APC value &
The Current APC can also be found in the Asset Explorer (transaction code AW01N) under Country Book 10/ Posted Values tab then the line Acquisition Value and column Posted values.
I suppose that the calculation of Current APC (Acquisition and Production Cost) is getting done in the GET statements in the report RAGITT_ALV01, but unable to find the actual logic.
Please help me.
Thanks in advance,
SatishHi,
you'll find the logic in fm FI_AA_VALUES_CALCULATE
A. -
How to calculate the Current APC
Hi,
Please help me how to calculate the Current APC.
The Current APC (Acquisition and Production Cost) is a calculated value based on Previous Year Acquisition balance plus any value changes up to the time of the report.
The Asset History Report (RAGITT_ALV01) calculates the Current APC value &
The Current APC can also be found in the Asset Explorer (transaction code AW01N) under Country Book 10/ Posted Values tab then the line Acquisition Value and column Posted values.
Thanks in advance,
SatishHi,
I suppose that the calculation of Current APC (Acquisition and Production Cost) is getting done in the GET statements in the report RAGITT_ALV01, but unable to find the actual logic where it is being done.
Please help me.
Thanks in advance,
Satish -
How to calculate the Daily Call Volume
Hello,
Can anyone please advise how to calculate the daily call volume in a contact center - the counts of the calls terminated in ICM ?
Is there any webview report or a SQL query which provides the count ?
Many thanks in advance for the help!
Thanks & Regards,
NareshThe ICM software generates a Termination_Call_Detail record for each call that arrives at the peripheral. From This report you can get the number of calls to ICM as well as the call details.
To get the report run this sql query
select * from dbo.t_Termination_Call_Detail where convert (varchar(10), DateTime, 101) = '12/03/2010' -
How to calculate the variance in PO price history?
hi
i hav standard report ME1P, since i need to do some modifications in this program i copied to Y prgrm,,,'
im getting all the values properly...
but my prblm is im not getting how to calculate the variance? im not getting the logic behid it...
can anybody expln me in breif plz....
Regards
SmithaHi Venu,
there is another way as well, however, you won't be able to see Variance and Variance% as a saperate keyfigure which is not under the period. Thats the reason I didn't mention it earlier.
What you can do is, Drag the period to the columns, Now create a structure that has the two keyfigures std price, moving price. Here if you add Variance and Variance%, Then these CKF's would come under period as well, which you don't need. And the system won't allow you to add these CKF's outside this structure. The reason being because the interpretation of the data then wouldn't make any sense here. You can create a new structure as well with these CKF's but they would become a subpart of your previous structure.
choose the required characteristics in the Rows section. Save it.
Let us know, Sorry man, can't help u much at this problem.
regards,
Sree. -
How to calculate the quota base quantity in quota arrangement?
Hi all,
As we all know, when a new supplier is added in the quota arrangment, we take the help of quota base qunatity so that the new supplier does not get any unfair advantage over the existing suppliers. Would you please help me on how to calculate the quota base quantity or on what basis the quota base quantity is calculated?*
Regards,
RanjanDear,
Quota arrangement divides the total requirements generated over a period of time among the sources of supplied by assigning a quota.
Quota u2013 quota is equal to a number and its represents the proportionate of requirements. Total quota of all the vendors is equal to 100% of requirements.
This quota arrangement is also specific to material and plant level.
Quota rating = quota allocate quantity + quota base quantity / quota.
Quota based quantity used only when a new vendor introduced.
In the as on date situation, the minimum quota ratings will considered as preferred vendor.
The 2 vendors has 2 same quota rating, the vendor who is having the highest quota will considered first.
In the running quota, a new source of supply is included. (In situation of short supply) including a new source not means to reduce the quota for existing.
Regards,
Syed Hussain. -
How to calculate the individual sums of multiple columns in a single query
Hello,
Using Oracle 11gR2 on windows 7 client. I have a question on calculating sum() on multiple columns on different columns and store the results in a view. Unfortunately I could not post the problem here as it keeps on giving error "Sorry, this content is not allowed", without telling where or what it is! So I had to post it in the stack-overflow forum, here is the link: http://stackoverflow.com/questions/16529721/how-to-calculate-the-individual-sums-of-multiple-columns-in-a-single-query-ora
Will appreciate any help or suggestion.
Thanksuser13667036 wrote:
Hello,
Using Oracle 11gR2 on windows 7 client. I have a question on calculating sum() on multiple columns on different columns and store the results in a view. Unfortunately I could not post the problem here as it keeps on giving error "Sorry, this content is not allowed", without telling where or what it is! So I had to post it in the stack-overflow forum, here is the link: http://stackoverflow.com/questions/16529721/how-to-calculate-the-individual-sums-of-multiple-columns-in-a-single-query-ora
Will appreciate any help or suggestion.
ThanksLooks like you want a simple group by.
select
yr
, mnth
, region
, sum(handled_package)
, sum(expected_missing_package)
, sum(actual_missing_package)
from test
group by
yr, mnth, region
order by
yr, mnth, region;I wouldn't recommend storing your data for year / month in 2 columns like that unless you have a really good reason. I would store it as a date column and add a check constraint to ensure that the date is always the first of the month, then format it out as you wish to the client.
CREATE TABLE test
year_month date,
Region VARCHAR2(50),
CITY VARCHAR2(50),
Handled_Package NUMBER,
Expected_Missing_Package NUMBER,
Actual_Missing_Package NUMBER
alter table test add constraint firs_of_month check (year_month = trunc(year_month, 'mm'));
ME_XE?Insert into TEST (year_month, REGION, CITY, HANDLED_PACKAGE, EXPECTED_MISSING_PACKAGE, ACTUAL_MISSING_PACKAGE)
2 Values (to_date('2012-nov-12', 'yyyy-mon-dd'), 'Western', 'San Fransisco', 200, 10, 5);
Insert into TEST (year_month, REGION, CITY, HANDLED_PACKAGE, EXPECTED_MISSING_PACKAGE, ACTUAL_MISSING_PACKAGE)
ERROR at line 1:
ORA-02290: check constraint (TUBBY.FIRS_OF_MONTH) violated
Elapsed: 00:00:00.03
ME_XE?Insert into TEST (year_month, REGION, CITY, HANDLED_PACKAGE, EXPECTED_MISSING_PACKAGE, ACTUAL_MISSING_PACKAGE)
2 Values (to_date('2012-nov-01', 'yyyy-mon-dd'), 'Western', 'San Fransisco', 200, 10, 5);
1 row created.
Elapsed: 00:00:00.01
ME_XE?select
2 to_char(year_month, 'fmYYYY') as year
3 , to_char(year_month, 'fmMonth') as month
4 , Region
5 , CITY
6 , Handled_Package
7 , Expected_Missing_Package
8 , Actual_Missing_Package
9 from test;
YEAR MONTH REGION CITY HANDLED_PACKAGE EXPECTED_MISSING_PACKAGE ACTUAL_MISSING_PACKAGE
2012 November Western San Fransisco 200 10 5
1 row selected.
Elapsed: 00:00:00.01
ME_XE?Then you have nice a nice and easy validation that ensures you data integrity.
Cheers, -
How to protect the lines in smartforms
hi gurus
i want to know how to protect the line in smartforms..
regards
baskarCheck this link.
http://www.saptechies.com/smartforms-protect-lines-in-main-window/
if you are using tables, there are two options for protection against line break: You can protect a line type against page break. You can protect several table lines against page break for output in the main area.
Protection against page break for line types Double-click on your table node and choose the Table tab page. Switch to the detail view by choosing the Details pushbutton. Set the Protection against page break checkbox in the table for the relevant line type. Table lines that use this line type are output on one page.
Protection against page break for several table lines Expand the main area of your table node in the navigation tree. Insert a file node for the table lines to be protected in the main area. If you have already created table lines in the main area, you can put the lines that you want to protect again page break under the file using Drag&Drop. Otherwise, create the table lines as subnodes of the file. Choose the Output Options tab page of the file node and set the Page Protection option. All table lines that are in the file with the Page Protection option set are output on one page
Regards,
Maha -
How to change the language in smartform?
hi
how to change the language in smartform?Hi,
U can't change the language in the smartform, the main language of the smartform is the language used to create it (so the language used for SAP log on.
But u can translate it (by trx SE63) and if u need to print in a new language u have to indicate it when the smartform is called.
U can transfer the language to be used for the print in the parameter CONTROL_PARAMETERS, like structure SSFCTRLOP, here u can indicate the language in the field LANGU.
see this..
Use transaction SE63, after activate your smartform, to translate.
In the First Page of your Smart Forms click on Global Settings under that click Form Attributes
now in the Right side screen Go to Subscreen Language Attributes.
select the Radiobutton Translate To all Languages
from the Translate subscreen out of three radio buttons.
rewaards if useful
regards,
nazeer -
How to calculate the average inventory in ABAP
Dear All,
Please find the below formula and this formula how to calculate the Average inventory at value.Please let me know the abap base tables and the corresponding fields.
Formula
Inventory Turnover = Cost of Goods Sold (COGS) / Average Inventory at value.
Thanks
Regards,
SaiHi Arivazhagan,
Thanks for your quick response .
The field MBEWH from the table is fulfill the average inventory at value.
For Eg :I want to calculate Inventory Turnover = Cost of Goods Sold (COGS)/
Average Inventory at value.
so shall i take Inventory Turnover = Cost of Goods Sold (COGS)/MBEWH
The above formula will meet my requirement to find the average inventory Turnover.
Thanks
Regards,
Sai -
How to calculate the number of sent/received emails of a certain domain
Thank you for what you have helped me with!
How to calculate the number of sent/received emails of a certain domain in a certain period? It is Messaging Server 5.2, Directory Server 4.2. Is there a log option for this?
Thank you.Not sure where you find, "LOG_MESSSAGE_ADD". I don't actually find this option in the documentation.
The domains that mails are coming from and being sent to are certainly logged in the normal mail.log, so why mess with additional logging options? If you're talking about "LOG_CONNECTION", I actually see no additional data that is useful to you.
If you decide to change the option.dat, you do indeed need to
imsimta cnbuild (note, it's not cnrebuild)
imsimta restart
If I were facing the same issue, I'd be looking at the log parsing perl script, and simply modifying it to do what I wanted.
Maybe you are looking for
-
Mail provider - Network Solutions ISP - Comcast Anti-Virus - Kaspersky Internet Security 2013 OS - Windows 7 Home Premium, Service Pack 1 Outgoing Server SMTP settings attached. I can receive messages and can send them directly from Network Solutions
-
New feedback Channel: Got a suggestion for App-V?
Add or vote on suggestions here. User Experience Virtualization (UE-V) Senior PM @ Microsoft Corporation ----- More info on UE-V: http://aka.ms/UE-V_Info ----- UE-V 2.0 Admin guide: http://aka.ms/UE-V20_AdminGuide
-
Open account payable invoice migration
Hi All, We have a scenario where we have to migrate open account payable invoice from legacy system to sap system .Please share relevant knowledge if anyone has worked on the same scenario. Thanks in advance. regards, Twinkle
-
Alright, the problem is that from a cold boot, the systems hangs with loading an OS at 166fsb. The cpu usually runs at 166x10.5 but dropping it down to 166x10 or 9.5 does no good so I know it is not the processor. The ram is 2-512MB sticks of PC3500
-
Resizing to tv, larger icons/font please?!?
Hi All, I just got a my mini today, Fusion drive 1tb/ i7/ 4gb ram(haven't been to fry's yet) and I love it. Though being a windows user don't know how to properly change the font/ icons on the desktop so that I can read them. I plan on making this my