Timeline usage : To display value at the end of timeline values
Hi Team,
In my current project, I want to implement functionality given below. All records are present in one single table.
Table has columns as (City,Date,Positive,Negative,CountOfItems)
I have created data model as given below.
I need to design Power View Report for which Date will act as "Timeline", so when I select DAte as "2010-10-01" to "2010-11-01" then It should show me report having data on "2010-11-01 because it is latest data I am having.
Final report should look like as below.
But as I have used "Sum" function, it shows me wrong result.
My actual meaning is that, on every date of selected window in timeline, value at the last day of selected window should be displayed at report.
Can anyone help me to do db design and report formulation.
It looks like this was answered in your other thread...
Display value at the end of timeline range selection: http://social.msdn.microsoft.com/Forums/en-US/sqlkjpowerpivotforexcel/thread/20ce91d4-9cc1-4680-be71-6172c64e4da7/#20ce91d4-9cc1-4680-be71-6172c64e4da7
In the future, please try to avoid creating multiple threads for the same problem :)
Regards,
Michael
Please remember to mark a post that answers your question as an answer...If a post doesn't answer your question but you've found it helpful, please remember to vote it as helpful :)
Similar Messages
-
Imac CPU Usage insane, Freezing regularly, is the end nigh for my mac?
Hi, i wonder if anyone can help?
My imac is not happy at all, it is freezing all the time even when opening the dock and changing font sizes etc! It can't cope with having more than 2 applications open at once.
When i look in activity monitor, it is always pushed to as near 100% as possible, mostly only for one application such as today Safari is taking 92% CPU and the fans are whirring away like mad.
I think my computer may be dying, i'm not sure bit i want to try and prolong its life until i can afford another.
I have a full backup on external just in case.
Have run tech tool pro and disk utility and all looks fine - though keep getting told there is an 'allocation overlap' by tech tool pro.
Any suggestions would be so helpful,
Look forward to your responsesSince you have a full backup, performing an Archive and Install should clear the problem up. If you have Disk Warrior, try to rebuild your Directory before the A&I. However, TTP does give false readings, and since DU says thinks are OK, I would try t DW rebuild first. If you don't have DW, just do the A&I.
-
How do you lock the end of the project
This has been frustrating me for years using different versions of Logic. I just want to make sure I'm not missing anything in case it's changed with Logic 10.1.
If I want a 3 minute project, I can drag the end locator to the 3 minute mark. But if I add any audio that exceeds that mark, the locator is pushed to some seemingly random point way down the timeline (even with Auto Set unchecked). Isn't there any way to lock the end locator in place so that any audio added simply gets cut off at that point? It's a royal pain to have to keep finding that locator then dragging it back in place. I can't find any option to lock it, and I haven't seen any discussions about it.In the transport window below the tempo display you find the End point of your project. Maximum project length is 13 hours equaling 21601 Bars at tempo 120 or 901 bars at tempo 5.
-
Display totals on the first line in ALV grid and ALV LIST
Generally we wll display totals at the end..
bu the requirement is to display it in the first line of the column.
how to display the totals in the first line?
I have used ALV GRID and ALV LIST (choice) using function modules.
Plz help me
.for example : Po qty : Should display total po qty on the first line of the Po line item.IN LAYOUT
ILAYOUT-totals_before_items = 'X'.
REGARDS
SHIBA DUTTA -
Is it possible to easily view the actual (not displayed) value of a cell?
Is it possible to easily view the actual value of a cell calculated by a formula, not the displayed value after it has been rounded off?
For instance, if you enter the number 1.23456789 and display it rounded to 3 decimal places, you can still see the full, actual value in the formula bar:
The problem arises when you reference that number in a formula: you can't see the underlying value (even though it's obviously known to Numbers):
Is there a way to get the formula bar (or a tooltip) to show the full, unrounded value? Changing the display to more decimal places is not very convenient, especially on big spreadsheets. Maybe it could be done via AppleScript?
A related issue arises when you try to look at the sum or average of a number: if the numbers being summed have the same number of rounded decimals, the sum displayed is rounded too. I find this very annoying: I want to see the actual value, not how my spreadsheet may be displaying it in that cell.
Although, curiously, rounding to any number of decimals as long as they are not all the same displays the full, correct underlying values:
Has anyone come up with workarounds for these issues?I did it with an AppleScript.
Now any time I have a cell or cell range selected, I do one click (AppleScript menu > Display Value at Full Precision), and it shows me a popup alert that simply reads:
rowname : columnname
value
Here's the script:
tell application "Numbers"
try
set selectedTables to (tables of sheets of front document whose selection range is not missing value)
repeat with selectedTable in selectedTables -- tables of each sheet
if contents of selectedTable is not {} then -- the list is not empty, it's the selected sheet
set selectedCells to cells of selection range of (get item 1 of selectedTable)
repeat with i in selectedCells -- each selected cell
set {selectedRow, selectedColumn, selectedVal} to {row, column, value} of i
-- display alert "value of " & name of selectedRow & " : " & name of selectedColumn & " (" & address of selectedRow & ":" & address of selectedColumn & ")" message selectedVal
display alert name of selectedRow & " : " & name of selectedColumn message selectedVal
end repeat
return
end if
end repeat
on error eMsg number eNum
display alert eMsg
end try
end tell
( Props to Jacques Rioux who posted code to get me started at https://discussions.apple.com/thread/3964938 ) -
Total Text Display at the end of the ALV
Hi,
I want to display the text 'TOTAL' in my ALV at the end of my report.I am pasting my code, So please any one help me in this issue.
*& Report ZFIR0011_O2C_TAX_GL_SUMMARY
REPORT zfir0011_o2c_tax_gl_summary.
TYPE-POOLS slis.
TABLES: faglflexa.
Column positions to pass to field catalog
CONSTANTS : c_pos_1 TYPE sy-cucol VALUE '1', " position of the columns
c_pos_2 TYPE sy-cucol VALUE '2',
c_pos_3 TYPE sy-cucol VALUE '3',
c_pos_4 TYPE sy-cucol VALUE '4',
c_pos_5 TYPE sy-cucol VALUE '5'.
*Field names for Field Catalog
CONSTANTS : c_h TYPE c VALUE 'H',
c_s TYPE c VALUE 'S',
c_slash TYPE c VALUE '/',
c_colon TYPE c VALUE ':',
c_top_of_page TYPE slis_formname VALUE 'TOP_OF_PAGE',
c_top_of_page_split TYPE slis_formname VALUE 'TOP_OF_PAGE_SPLIT',
c_txjcd TYPE slis_fieldname VALUE 'TXJCD', "Tax Jurisdiction
c_region TYPE slis_fieldname VALUE 'STATE', "State
c_currb TYPE slis_fieldname VALUE 'CURR_BAL', "Current Balance
c_perch TYPE slis_fieldname VALUE 'PER_CHNG', "Period Change
c_prbal TYPE slis_fieldname VALUE 'PRI_BALA', "Prior Balance
c_total TYPE slis_fieldname VALUE 'TOTAL'. "Total
CONSTANTS : c_table_name TYPE slis_tabname VALUE 'IT_FINAL', "For Field Catalog
c_spras TYPE spras VALUE 'E', "Language
c_buzei TYPE c VALUE '1',
c_zp TYPE bset-mwskz VALUE 'ZP',
c_zr TYPE bset-mwskz VALUE 'ZR'.
Types Declaration.
TYPES: BEGIN OF ty_faglflexa,
ryear TYPE gjahr,
bukrs TYPE bukrs,
belnr TYPE belnr_d, "Document Number
poper TYPE poper, "Posting Period
budat TYPE budat, "Posting Date
buzei TYPE buzei, "Document line item
racct TYPE racct, "G/L Account no.
END OF ty_faglflexa,
ty_t_faglflexa TYPE STANDARD TABLE OF ty_faglflexa.
TYPES: BEGIN OF ty_bset,
belnr TYPE belnr_d,
buzei TYPE buzei,
mwskz TYPE mwskz, "Tax code
hkont TYPE hkont,
shkzg TYPE shkzg, "Debit/Credit Indicator
txjcd TYPE txjcd, "Tax Jurisdiction
h2ste TYPE h2ste, "Tax Amount
h2bas TYPE h2bas_bses, "Tax Amount
END OF ty_bset,
ty_t_bset TYPE STANDARD TABLE OF ty_bset.
TYPES: BEGIN OF ty_skat,
spras TYPE spras,
ktopl TYPE ktopl,
saknr TYPE saknr,
text TYPE txt20_skat,
END OF ty_skat,
ty_t_skat TYPE STANDARD TABLE OF ty_skat.
TYPES: BEGIN OF ty_custom,
geo_state TYPE char2,
geo_county TYPE char3,
country TYPE char2,
description TYPE char40,
END OF ty_custom,
ty_t_custom TYPE STANDARD TABLE OF ty_custom.
TYPES : BEGIN OF ty_budat,
sign TYPE char_01,
option TYPE char2,
low TYPE budat,
high TYPE budat,
END OF ty_budat,
ty_t_budat TYPE STANDARD TABLE OF ty_budat.
TYPES: BEGIN OF ty_txjcd,
geo_state TYPE char2,
geo_county TYPE char3,
END OF ty_txjcd,
ty_t_txjcd TYPE STANDARD TABLE OF ty_txjcd.
TYPES: BEGIN OF ty_inter,
ryear TYPE gjahr,
bukrs TYPE bukrs,
txjcd TYPE txjcd, "Tax Jurisdiction
racct TYPE racct, "G/L Account no.
h2ste TYPE h2ste, "Tax Amount
poper TYPE poper, "Posting Period
belnr TYPE belnr_d, "Document Number
shkzg TYPE shkzg, "Debit/Credit Indicator
END OF ty_inter,
ty_t_inter TYPE STANDARD TABLE OF ty_inter.
TYPES: BEGIN OF ty_final,
txjcd TYPE bset-txjcd, "Tax Jurisdiction
state TYPE char40, "State
curr_bal TYPE bset-h2ste, "Current Balance
per_chng TYPE bset-h2ste, "Period Change
pri_bala TYPE bset-h2ste, "Prior Balance
END OF ty_final,
ty_t_final TYPE STANDARD TABLE OF ty_final.
Internal Tables Declaration.
DATA : it_faglflexa TYPE ty_t_faglflexa,
it_bset TYPE ty_t_bset,
it_skat TYPE ty_t_skat,
it_custom TYPE ty_t_custom,
it_txjcd TYPE ty_t_txjcd,
it_inter TYPE ty_t_inter. "Intermediate table for storing data
DATA : it_final TYPE ty_t_final. "#EC NEEDED
*Fieldcatalogue Internal Table Declaration
DATA : it_fieldcat TYPE slis_t_fieldcat_alv,
wa_fieldcat TYPE slis_fieldcat_alv,
it_alv_top_of_page TYPE slis_t_listheader,
gs_line TYPE slis_listheader.
*Field-symbols and Work Area Declarations
FIELD-SYMBOLS : <fs_faglflexa> TYPE ty_faglflexa,
<fs_bset> TYPE ty_bset,
<fs_inter> TYPE ty_inter.
DATA : wa_faglflexa TYPE ty_faglflexa, "#EC NEEDED
wa_bset TYPE ty_bset,
wa_skat TYPE ty_skat,
wa_custom TYPE ty_custom,
wa_txjcd TYPE ty_txjcd,
wa_inter TYPE ty_inter,
wa_final TYPE ty_final. " #EC NEEDED
Variables Declaration.
DATA : v_current_year TYPE i,
v_poper TYPE poper,
v_saknr TYPE saknr, "#EC NEEDED
v_ktopl TYPE ktopl,
v_konts TYPE saknr,
v_bukrs TYPE bukrs,
v_buzei(2) TYPE n VALUE '0',
v_sum_val TYPE h2ste,
v_sum_val1 TYPE h2ste,
v_sum_val2 TYPE h2ste,
v_h2ste TYPE string,
v_desc TYPE char40,
v_title TYPE char40,
v_start_date TYPE char10. "Temp Added
SELECTION-SCREEN
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: p_bukrs TYPE faglflexa-rbukrs OBLIGATORY, " Company Code
p_gjahr TYPE faglflexa-gjahr OBLIGATORY. " Fiscal Year
SELECT-OPTIONS: s_budat FOR faglflexa-budat OBLIGATORY
NO-EXTENSION
NO INTERVALS.
PARAMETERS: p_racct TYPE faglflexa-racct OBLIGATORY.
SELECTION-SCREEN END OF BLOCK b1.
SELECTION-SCREEN VALIDATIONS.
*Company Code Validation.
AT SELECTION-SCREEN ON p_bukrs.
SELECT SINGLE bukrs INTO v_bukrs
FROM t001
WHERE bukrs = p_bukrs.
IF sy-subrc NE 0.
MESSAGE text-002 TYPE 'E'.
ENDIF.
Fiscal Year Validation. It should not be more than Current.
AT SELECTION-SCREEN ON p_gjahr.
v_current_year = sy-datum+0(4).
IF p_gjahr > v_current_year.
MESSAGE text-003 TYPE 'E'.
ENDIF.
*G/L Account Validation.
AT SELECTION-SCREEN ON p_racct.
SELECT SINGLE saknr INTO v_saknr
FROM skb1
WHERE saknr EQ p_racct
AND bukrs EQ p_bukrs.
IF sy-subrc EQ 0.
SELECT SINGLE ktopl FROM t001
INTO v_ktopl
WHERE bukrs = p_bukrs.
SELECT SINGLE konts FROM t030k
INTO v_konts
WHERE ktopl = v_ktopl
AND konts = v_saknr.
IF sy-subrc NE 0.
MESSAGE text-004 TYPE 'E'.
ENDIF.
ELSE.
MESSAGE text-004 TYPE 'E'.
ENDIF.
START-OF-SELECTION.
PERFORM get_data USING p_bukrs
p_gjahr
s_budat[]
p_racct CHANGING it_final.
*Display report in ALV grid
IF it_final IS NOT INITIAL.
*Build Top of the page table.
PERFORM comment_build USING it_skat CHANGING it_alv_top_of_page.
*Build Field catalog table for ALV
PERFORM build_field_catalog CHANGING it_fieldcat.
*Display report
PERFORM display_alv USING it_final.
ELSE.
*No data found for the selection criteria/period.
MESSAGE text-018 TYPE 'I'.
ENDIF.
*& Form GET_DATA
text
-->P_P_BUKRS text
-->P_P_GJAHR text
-->P_P_BUDAT text
-->P_P_RACCT text
<--P_IT_FINAL text
FORM get_data USING fp_bukrs TYPE bukrs
fp_gjahr TYPE gjahr
fp_budat TYPE ty_t_budat
fp_racct TYPE racct
CHANGING fp_it_final TYPE ty_t_final.
DATA : v_date(2) TYPE c VALUE '01',
v_month(2) TYPE c VALUE '01',
v_start_date TYPE datum.
*concatenate p_gjahr v_month v_date into v_start_date. " separated by c_slash.
SELECT ryear
rbukrs
belnr "Document Number
poper "Posting Period
budat "Posting Date
buzei "Document line item
racct "G/L Account no.
INTO TABLE it_faglflexa
FROM faglflexa
WHERE rbukrs EQ p_bukrs
AND gjahr EQ p_gjahr
AND budat LE s_budat
AND racct EQ p_racct.
*selecting the Tax Jurisdiction, Tax amount from BSET
IF it_faglflexa IS NOT INITIAL.
SELECT belnr
buzei
mwskz
"hkont
shkzg "Debit/Credit Indicator
txjcd "Tax Jurisdicaiton
h2ste "Tax Amount
h2bas "Tax Amount1
INTO TABLE it_bset
FROM bset
FOR ALL ENTRIES IN it_faglflexa
WHERE belnr EQ it_faglflexa-belnr
AND gjahr EQ p_gjahr "it_faglflexa-ryear
AND buzei EQ c_buzei. "Line item
ENDIF.
IF sy-subrc EQ 0.
SORT it_bset BY txjcd ASCENDING.
ENDIF.
*Selecting the G/L Account Long Text from SKAT
IF it_faglflexa IS NOT INITIAL.
SELECT spras " Language key
ktopl " Chart of Accounts
saknr " G/L Account Number
txt20 " G/L Account Long Text
INTO TABLE it_skat
FROM skat
FOR ALL ENTRIES IN it_faglflexa
WHERE spras = c_spras
AND saknr = it_faglflexa-racct.
ENDIF.
*Selecting the Description from Custom table
LOOP AT it_bset ASSIGNING <fs_bset>.
wa_txjcd-geo_state = <fs_bset>-txjcd+0(2).
wa_txjcd-geo_county = <fs_bset>-txjcd+2(3).
APPEND wa_txjcd TO it_txjcd.
CLEAR wa_txjcd.
ENDLOOP.
IF it_txjcd IS NOT INITIAL.
SELECT geo_state
geo_county
country
description
INTO TABLE it_custom
FROM ztfi_tgl_summary
FOR ALL ENTRIES IN it_txjcd
WHERE geo_state = it_txjcd-geo_state
AND geo_county = it_txjcd-geo_county.
ENDIF.
LOOP AT it_faglflexa ASSIGNING <fs_faglflexa>.
MOVE-CORRESPONDING <fs_faglflexa> TO wa_inter. "#EC ENHOK
*Read Tax Jurisdiction and Tax Amount from BSET Table.
READ TABLE it_bset INTO wa_bset WITH KEY belnr = <fs_faglflexa>-belnr.
IF sy-subrc EQ 0.
wa_inter-shkzg = wa_bset-shkzg.
wa_inter-txjcd = wa_bset-txjcd.
ENDIF.
*If BSET-MWSKZ = ZP or ZR then pick H2BAS as Tax Amount.
IF wa_bset-mwskz = c_zp.
wa_inter-h2ste = wa_bset-h2bas.
ELSEIF wa_bset-mwskz = c_zr.
wa_inter-h2ste = wa_bset-h2bas.
ELSE.
wa_inter-h2ste = wa_bset-h2ste.
ENDIF.
*Check it is credit entry or debit entry ('H' or 'S').
IF wa_inter-shkzg EQ 'H'.
wa_inter-h2ste = wa_inter-h2ste * -1.
ENDIF.
APPEND wa_inter TO it_inter.
CLEAR: wa_inter, wa_bset.
ENDLOOP.
IF sy-subrc EQ 0.
SORT it_inter BY bukrs ryear txjcd ASCENDING.
DELETE it_inter WHERE txjcd EQ space.
ENDIF.
v_poper = s_budat-low+4(2).
LOOP AT it_inter INTO wa_inter.
*Read the Text maintained in the custom table based on the GEO_STATE = First two digits of TXJCD
*and GEO_COUNTY = Next three digits of TXJCD. If this is blank pick based on First two digits of TXJCD.
READ TABLE it_custom INTO wa_custom WITH KEY geo_state = wa_bset-txjcd+0(2)
geo_county = wa_bset-txjcd+2(3).
IF sy-subrc NE 0.
READ TABLE it_custom INTO wa_custom WITH KEY geo_state = wa_bset-txjcd+0(2).
ENDIF.
IF sy-subrc = 0.
wa_final-state = wa_custom-description.
ENDIF.
AT NEW txjcd.
CLEAR: v_sum_val, v_sum_val1, v_sum_val2.
ENDAT.
Period Change
IF wa_inter-poper EQ v_poper.
v_sum_val1 = v_sum_val1 + wa_inter-h2ste.
ENDIF.
Prior Balance
IF wa_inter-poper LT v_poper.
v_sum_val2 = v_sum_val2 + wa_inter-h2ste.
ENDIF.
AT END OF txjcd.
wa_final-txjcd = wa_inter-txjcd.
wa_final-per_chng = v_sum_val1. "Period change
wa_final-pri_bala = v_sum_val2. "Prior Balance
wa_final-curr_bal = v_sum_val1 + v_sum_val2. "Current Balance
APPEND wa_final TO it_final.
CLEAR wa_final.
ENDAT.
ENDLOOP.
ENDFORM. " GET_DATA
*& Form COMMENT_BUILD
text
-->P_IT_SKAT text
<--P_IT_ALV_TOP_OF_PAGE text
FORM comment_build USING fp_it_skat TYPE ty_t_skat
CHANGING fp_it_alv_top_of_page TYPE slis_t_listheader.
DATA: v_budat_low TYPE c LENGTH 10,
v_budat_high TYPE c LENGTH 10,
v_butxt TYPE butxt.
CLEAR gs_line.
*Report Title
CONCATENATE text-005 p_bukrs INTO v_title SEPARATED BY space.
gs_line-typ = c_h.
gs_line-key = ' '.
gs_line-info = v_title.
APPEND gs_line TO fp_it_alv_top_of_page.
CLEAR gs_line.
*Account Number
gs_line-typ = c_s.
gs_line-key = text-006.
gs_line-info = p_racct.
APPEND gs_line TO fp_it_alv_top_of_page.
CLEAR gs_line.
*G/L Account Description
READ TABLE it_skat INTO wa_skat WITH KEY ktopl = v_ktopl.
IF sy-subrc EQ 0.
v_desc = wa_skat-text.
ENDIF.
gs_line-typ = c_s.
gs_line-key = text-007.
gs_line-info = v_desc.
APPEND gs_line TO fp_it_alv_top_of_page.
CLEAR gs_line.
*Fiscal Year from selection
IF NOT p_gjahr IS INITIAL.
gs_line-info = p_gjahr.
gs_line-typ = c_s.
gs_line-key = text-008. "Fiscal Year
APPEND gs_line TO fp_it_alv_top_of_page.
CLEAR gs_line.
ENDIF.
*Posting Date
CONCATENATE s_budat-low4(2) s_budat-low6(2) s_budat-low+0(4) INTO gs_line-info SEPARATED BY c_slash.
gs_line-typ = c_s.
gs_line-key = text-009. "Posting Date
APPEND gs_line TO fp_it_alv_top_of_page.
CLEAR gs_line.
*Company Code Description from selection
IF NOT p_bukrs IS INITIAL.
SELECT SINGLE butxt FROM t001
INTO v_butxt WHERE bukrs EQ p_bukrs.
gs_line-info = v_butxt.
gs_line-typ = c_s.
gs_line-key = text-010. "Company Code Description
APPEND gs_line TO fp_it_alv_top_of_page.
CLEAR gs_line.
ENDIF.
Printed Date
gs_line-typ = c_s.
gs_line-key = text-011. "Printed Date
CONCATENATE sy-datum+4(2)
sy-datum+6(2)
sy-datum(4) INTO gs_line-info SEPARATED BY c_slash. "todays date
APPEND gs_line TO fp_it_alv_top_of_page.
CLEAR: gs_line.
Printing Time
gs_line-typ = c_s.
gs_line-key = text-012. "Printing Time
gs_line-info = sy-uzeit.
CONCATENATE sy-uzeit(2)
sy-uzeit+2(2)
sy-uzeit+4(2) INTO gs_line-info SEPARATED BY c_colon. "current time
APPEND gs_line TO fp_it_alv_top_of_page.
CLEAR: gs_line.
ENDFORM. " COMMENT_BUILD
*& Form BUILD_FIELD_CATALOG
text
<--P_IT_FIELDCAT text
FORM build_field_catalog CHANGING fp_it_fieldcat TYPE slis_t_fieldcat_alv.
TAX JURISDICTION
wa_fieldcat-col_pos = c_pos_1.
wa_fieldcat-reptext_ddic = text-013. "TAX JURISDICTION
wa_fieldcat-fieldname = c_txjcd.
wa_fieldcat-tabname = c_table_name.
wa_fieldcat-outputlen = '15'.
APPEND wa_fieldcat TO fp_it_fieldcat.
CLEAR : wa_fieldcat.
STATE
wa_fieldcat-col_pos = c_pos_2.
wa_fieldcat-reptext_ddic = text-014. "STATE
wa_fieldcat-fieldname = c_region.
wa_fieldcat-tabname = c_table_name.
wa_fieldcat-outputlen = '40'.
APPEND wa_fieldcat TO fp_it_fieldcat.
CLEAR : wa_fieldcat.
CURRENT BALANCE
wa_fieldcat-col_pos = c_pos_3.
wa_fieldcat-reptext_ddic = text-015. "CURRENT BALANCE
wa_fieldcat-fieldname = c_currb.
wa_fieldcat-tabname = c_table_name.
wa_fieldcat-do_sum = 'X'.
wa_fieldcat-datatype = 'CURR'.
wa_fieldcat-outputlen = '17'.
APPEND wa_fieldcat TO fp_it_fieldcat.
CLEAR : wa_fieldcat.
PERIOD CHANGE
wa_fieldcat-col_pos = c_pos_4.
wa_fieldcat-reptext_ddic = text-016. "PERIOD CHANGE
wa_fieldcat-fieldname = c_perch.
wa_fieldcat-tabname = c_table_name.
wa_fieldcat-do_sum = 'X'.
wa_fieldcat-datatype = 'CURR'.
wa_fieldcat-outputlen = '17'.
APPEND wa_fieldcat TO fp_it_fieldcat.
CLEAR : wa_fieldcat.
PRIOR BALANCE
wa_fieldcat-col_pos = c_pos_5.
wa_fieldcat-reptext_ddic = text-017. "PRIOR BALANCE
wa_fieldcat-fieldname = c_prbal.
wa_fieldcat-tabname = c_table_name.
wa_fieldcat-do_sum = 'X'.
wa_fieldcat-datatype = 'CURR'.
wa_fieldcat-outputlen = '17'.
APPEND wa_fieldcat TO fp_it_fieldcat.
CLEAR : wa_fieldcat.
ENDFORM. " BUILD_FIELD_CATALOG
*& Form DISPLAY_ALV
text
-->P_IT_FINAL text
FORM display_alv USING fp_it_final TYPE ty_t_final.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER = ' '
I_BUFFER_ACTIVE = ' '
i_callback_program = sy-repid
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
i_callback_top_of_page = c_top_of_page
i_callback_html_top_of_page = c_top_of_page_split
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
I_GRID_TITLE =
I_GRID_SETTINGS =
IS_LAYOUT =
it_fieldcat = it_fieldcat
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
i_save = 'A'
IS_VARIANT =
IT_EVENTS =
IT_EVENT_EXIT =
IS_PRINT =
IS_REPREP_ID =
I_SCREEN_START_COLUMN = 0
I_SCREEN_START_LINE = 0
I_SCREEN_END_COLUMN = 0
I_SCREEN_END_LINE = 0
I_HTML_HEIGHT_TOP = 0
I_HTML_HEIGHT_END = 0
IT_ALV_GRAPHICS =
IT_HYPERLINK =
IT_ADD_FIELDCAT =
IT_EXCEPT_QINFO =
IR_SALV_FULLSCREEN_ADAPTER =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
t_outtab = fp_it_final
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
*& Form top_of_page
Top of the page for ALV
FORM top_of_page. "#EC CALLED
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = it_alv_top_of_page
I_LOGO =
I_END_OF_LIST_GRID =
I_ALV_FORM =
ENDFORM. "top_of_page
*& Form top_of_page_split
text
FORM top_of_page_split USING r_top TYPE REF TO cl_dd_document."#EC *
TYPES: BEGIN OF ty_text,
text TYPE sdydo_text_element,
END OF ty_text.
TYPES: BEGIN OF ty_text1, "AAAAAAAA
text1 TYPE sdydo_text_element,
END OF ty_text1.
DATA: s_tab TYPE sdydo_text_table,
c_area TYPE REF TO cl_dd_area,
text TYPE sdydo_text_element,
c_area1 TYPE REF TO cl_dd_area, "AAAAAAA
text1 TYPE sdydo_text_element,
s_tab1 TYPE sdydo_text_table.
DATA: it_text TYPE TABLE OF ty_text,
wa_text TYPE ty_text.
DATA: it_text1 TYPE TABLE OF ty_text1,
wa_text1 TYPE ty_text1.
DATA: v_title TYPE string,
v_accts_desc TYPE string,
v_year TYPE string,
v_comp_code TYPE string,
v_desc TYPE char40,
v_budat TYPE char10,
v_budat1 TYPE char10,
v_butxt TYPE butxt,
v_time TYPE char10,
v_comma TYPE c VALUE ','.
CALL METHOD r_top->initialize_document.
CALL METHOD r_top->vertical_split
EXPORTING
split_area = r_top
split_width = '31%'
IMPORTING
right_area = c_area.
IF sy-subrc EQ 0.
*MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
*WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
*G/L Account Description
READ TABLE it_skat INTO wa_skat WITH KEY ktopl = v_ktopl.
IF sy-subrc EQ 0.
v_desc = wa_skat-text.
ENDIF.
*Company code Description
IF NOT p_bukrs IS INITIAL.
SELECT SINGLE butxt FROM t001
INTO v_butxt WHERE bukrs EQ p_bukrs.
ENDIF.
CONCATENATE text-005 p_bukrs INTO v_title SEPARATED BY space.
wa_text1-text1 = v_title.
APPEND wa_text1 TO it_text1.
s_tab1 = it_text1.
CALL METHOD c_area->add_text
EXPORTING
text_table = s_tab1
fix_lines = 'X'
sap_fontsize = cl_dd_document=>large
sap_emphasis = cl_dd_document=>strong. "AAAAAA
CONCATENATE text-006 p_racct v_comma text-007 v_desc INTO v_accts_desc SEPARATED BY space.
CONCATENATE s_budat-low4(2) s_budat-low6(2) s_budat-low+0(4) INTO v_budat SEPARATED BY c_slash.
CONCATENATE text-008 p_gjahr v_comma text-009 v_budat INTO v_year SEPARATED BY space.
CONCATENATE text-010 v_butxt INTO v_comp_code SEPARATED BY space.
wa_text-text = v_title.
APPEND wa_text TO it_text.
wa_text-text = v_accts_desc.
APPEND wa_text TO it_text.
wa_text-text = v_year.
APPEND wa_text TO it_text.
wa_text-text = v_comp_code.
APPEND wa_text TO it_text.
s_tab = it_text.
CALL METHOD c_area->add_text
EXPORTING
text_table = s_tab
fix_lines = 'X'
sap_fontsize = cl_dd_document=>medium
sap_emphasis = cl_dd_document=>medium.
CALL METHOD r_top->new_line.
CALL METHOD r_top->new_line.
CALL METHOD r_top->new_line.
CALL METHOD r_top->add_gap
EXPORTING
width = 0.
CONCATENATE sy-datum4(2) sy-datum6(2) sy-datum+0(4) INTO v_budat1 SEPARATED BY c_slash.
CALL METHOD r_top->add_text
EXPORTING
text = text-011
sap_emphasis = 'STRONG'.
CALL METHOD r_top->add_gap
EXPORTING
width = 1.
text = v_budat1.
CALL METHOD r_top->add_text
EXPORTING
text = text.
sap_style = 'KEY'.
CALL METHOD r_top->new_line.
CALL METHOD r_top->add_text
EXPORTING
text = text-012
sap_emphasis = 'STRONG'.
CALL METHOD r_top->add_gap
EXPORTING
width = 1.
CONCATENATE sy-uzeit(2)
sy-uzeit+2(2)
sy-uzeit+4(2) INTO v_time SEPARATED BY c_colon. "current time
text = v_time.
CALL METHOD r_top->add_text
EXPORTING
text = text.
sap_style = 'KEY'.
ENDFORM. "top_of_page_split
Thanks & Regards,
RamanaHi,
try to declare alv layout and in that
FORM t_layout USING i_layout TYPE slis_layout_alv.
i_layout-colwidth_optimize = 'X'.
i_layout-zebra = 'X'.
p_i_layout-totals_text = 'GRAND TOTAL ='.
p_i_layout-subtotals_text = 'Sub Total'.
p_i_layout-DEF_STATUS = ' '.
p_i_layout-info_fieldname = 'LINE_COLOR'.
ENDFORM. " T_LAYOUT
hope this helps you.
Thanks & Regards,
Y.R.Prem Kumar -
Minus sign at the end of the value, Need to get Preceeding minus sign.
Hello gurus,
I am using following code in web dynpro to get data from a FM and downloading it to excel.
for the numeric values I am getting minus sign at the end of the value in excel. but If I display the value in alv, it is coming fine. Please let me know where I am going wrong.
ex: 4568-
CALL FUNCTION 'Z_EXTRACT'
EXPORTING
extract = z_extract
TABLES
it_data = tab_et.
DESCRIBE TABLE tab_et.
IF sy-tfill GT 0.
CLEAR: text, xtext.
DATA : v_fore9ldepl(17) TYPE n.
LOOP AT tab_et INTO rec_et.
MOVE:
WRITE: rec_et-fore9ldepl TO v_fore9ldepl DECIMALS 3.
CONCATENATE text '1'
rec_et-z0g_cwwter
v_fore9ldepl
cl_abap_char_utilities=>newline INTO text SEPARATED BY ','.
cl_abap_char_utilities=>newline INTO text SEPARATED BY
cl_abap_char_utilities=>horizontal_tab.
ENDLOOP.
CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
EXPORTING
text = text
IMPORTING
buffer = xtext.
CLEAR: filename, wa_files.
CONCATENATE 'EXTRACT' '.XLS' INTO filename.
wa_files-content = xtext.
wa_files-filename = filename.
APPEND wa_files TO files.
DATA izip TYPE REF TO cl_abap_zip.
DATA output_file TYPE xstring.
CREATE OBJECT izip.
LOOP AT files INTO wa_files.
izip->add( name = wa_files-filename
content = wa_files-content ).
ENDLOOP.
output_file = izip->save( ).
CALL METHOD cl_wd_runtime_services=>attach_file_to_response(
EXPORTING
i_filename = 'TEST.ZIP'
i_content = output_file
i_mime_type = 'ZIP/APPLICATION'
i_in_new_window = abap_false
i_in_new_window = abap_true
i_inplace = abap_false ).Hi,
In the Context attribute tyr to use the properties of formatting where you can have the MINUS sign in the front of the value..
If this is working fine then when you use any standard export of ALV the same (AS iS) is shown in Excel right...
Regards,
Lekha. -
How to obtain the value at the end of quarter
Hi,
I am new to CR2008. I need to obtain the value of a particular field (say inventoryEndValue) at the end of each quarter, and use it as the starting value (say inventoryStartValue) for the next quarter. I want to show these values (the end value of a quarter and the beginning value for the next quarter, though both values are same) in both the charts and cross tabs.
Can you please help me how to solve this?
Thanks,
Roshan.Hi Roshan,
For creating manual running total, please follow the below steps:
RESET->The Reset formula initializes the variable and assigns it an initial value. This formula is typically placed in a headers section, such as, Page Header, Report Header, or Group Header.
WhilePrintingRecords;
Global NumberVar nRT := 0;
EVALUATE->The Evaluate formula updates the value of the variable. This formula is typically placed in the Details section.
WhilePrintingRecords;
Global NumberVar nRT := nRT + (value);
DISPLAY->The Display formula shows the current value of the variable on the report. This formula is typically placed in a footer section, such as, Page Footer, Report Footer, or Group Footer.
WhilePrintingRecords;
Global NumberVar nRT;
Hope this helps you!
Regards,
Anindita -
How to display the total at the end of the column in the report.
Hi all,
Could any one please intimate, how to display the total at the end of the column. For example, i have a column, "sales" as the Key figure, and it has the data for all the transactions. Now, i would like to display the total at the end of the report, below the same column.
Similarly, for all the other columns in the report, i need to display the total for all the columns in the report.
Thanks & Regards,
A.V.N.RaoHi All,
Thanks for many suggestions. I tried by providing the "Total" under "Calculate Results as" and also "Counter for all detailed values" under "Calcuate Single Values as", in the "Calculations" tab of the key figure, but i am unable to get the information. Again, i am providing the requirement below:
CHAR - A CHAR - B TIME CH. - 1 KF -1 KF- 2 KF - 3
1 RAM 2012 1 50 50
2 SAM 2012 2 100 200
Result 3 150 250
Assume KF -1 as "Qty." KF-2 as "Price" KF-3 as "Sales".
Please intimate the solution.
Thanks & Regards,
A.V.N.Rao. -
How to display the information message in the end in BDC
Dear All,
I have been submitting a BDC for FB01, in a dialog program of mine.
The BDC gets executed successfully but it does not display the 'Documnet No....generated' information message in the end.
I have even written the following code in the BDC, after call transaction, to accomplish this, by assigning the value of genno (variable) to sy-msgv1, but it's not working.
call transaction 'FB01' using bdcdata1 mode 'E'.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
genno = sy-msgv1.Hi,
try this its easy .
create an internal table e_report for sucess with the fields you want to display .like the same for F_tab for failure .
so finally u will be having the success record in e_report and the failure in f_itab.
call transaction 'FB09' using bdcdata MODE 'N' MESSAGES INTO IT_ERROR.
IF sy-subrc eq 0.
E_report-status = 'Sucessfully Updated'.
e_report-belnr = itab-belnr.
e_report-year = fiscalyear.
APPEND E_report.
else .
F_tab = itab.
F_tab-year = fiscalyear.
F_tab-status = 'FAILED'.
APPEND F_tab.
finally print this
sort e_report by belnr ascending.
LOOP AT E_report.
at FIRST .
WRITE:/'**********SUCCESSFUL RECORDS ARE **********'.
FORMAT COLOR 6.
WRITE:/ 'Document Numer',20 'Year',35'Status',54 ''.
ENDAT.
FORMAT COLOR 3.
write:/ E_report-belnr,20 E_report-year ,35 E_report-status.
FORMAT COLOR OFF.
at LAST.
write:/ 'Total No.Of Successful Records:',sy-tabix.
FORMAT COLOR OFF.
ENDAT.
RESERVE 20 LINES.
ENDLOOP.
IF F_tab is initial.
FORMAT COLOR 1.
WRITE:/ ' NO Errored Files'.
FORMAT COLOR OFF.
ENDIF.
WRITE:/ SY-ULINE.
new-PAGE. " to display in a new page
sort f_tab by belnr ascending.
LOOP AT F_tab.
at FIRST .
WRITE:/'**********FAILED RECORDS ARE **********'.
FORMAT COLOR 6.
WRITE:/ 'Document Numer',20 'Year',35'Status',54 ''.
ENDAT.
FORMAT COLOR 5.
WRITE:/ f_tab-belnr ,20 F_tab-year, 35 F_tab-status.
at LAST.
write:/ 'Total No.Of Failed Records:',sy-tabix.
ENDAT.
ENDLOOP.
ENDIF.
if they want to display in the excel sheet pass the internal table to the F.M.
plz motivate me.
by rewards.
thanks
vinoth -
Hello All!
1) I have a form field where a customer can input mileage (e.g. 48,000)
I would like to be able to dynamically place the comma in the proper place as well as add " miles" to the end of the value the user input.
For example:
If the user types "123456" into the field, I would like for it to display as "123,456 miles"
I assume this will require some custom format javascript... I'm familiar with the general syntax of JavaScript, but don't really know specific keywords/object names to use, I have a few custom calculation scripts in the form, and I've done some simple thing like concatenate two fields into one, etc.
But this is a little different, because I'm only working with data from one field. I tried:
event.value += " miles";
However, this causes " miles" to get added everytime ANY field changes... so I end up getting "123,456 miles miles miles miles" as the user makes changes to other fields.
2) Also, to further complicate things, is it possible to "remove" the custom formatting when the field gains focus? For example, if you use Acrobat's default number format ($1,394.00) on a field, when the user selects that field to edit the value, the formatting "disappears" so that the user would only see "1394".
I would like to achieve the same with my custom field, so when the user selected the field that displays "123,456 miles" to change the value, they would only see/edit "123456"
A bit wordy, I know, but thanks for any help!Here's a simple way. Begin by creating a new document-level JavaScript and include the following code:
function my_format() {
// Format number (no decimal point, comma thousands separator, etc.)
AFNumber_Format(0, 0, 0, 0, "", false);
// Add " miles" if there is an entry
event.value = event.value ? event.value + " miles" : "";
function my_keystroke() {
// Restrict entry to characters consistent with a number
AFNumber_Keystroke(0, 0, 0, 0, "", false);
For the field in question, add the following as the custom Format script:
my_format();
and the following as the custom Keystroke script:
my_keystroke();
George -
Workflow display name coming up with .AMERICAN at the end
Hi
For a couple of employees created in our system, the workflow display name is coming with 'AMERICAN' at the end which clearly looks like is the language setting for the user. ORIG_SYSTEM for this users in WF_LOCAL_ROLES is WF_LOCAL_USERS.
How can we fix this? There is no option called WF_LOCAL_USERS in the Synchroinze WF Local Roles program.Reply to sarojak
To which orig system these users/roles belongs to? - WF_LOCAL_ROLES Shows Org system as WF_LOCAL_USERS
What is the display name value shown when you query wf_local_roles table for the user that is having reported issue? - with .AMERICAN added -
I need to display a timecode of selected sections in edited FCPX timeline. I need the timecode display to start at 00:00:00 and time to the end of the selection. Can I do this using the timecode generator in FCPX ?
ThanksFxFactory Pro: Timecode Plugin
Generates a timecode based on the current playback position relative to the duration of the clip.
Full Disclosure: I work for Noise Industries.
I may receive some form of compensation, financial or otherwise, from my recommendation or link. -
How can I get dataTable to display values from the java layer?
When I use the dataTAble in my JSP page it will only display values from my java layer if the facets tag has it's name set to "header". Why is this happening?
If I set it to "header" and I look at the page source it actually has created the correct number of rows but it doesn't put the values between the <td> tags? It see's the length of my list but it doesn't pick the values out of the list.
<h:dataTable var="data" value="#{NameBean.test}" border="1">
<h:column>
<f:facet name="header">
<h:outputText value="Name"/>
</f:facet>
</h:column>
<h:column>
<f:facet name="header">
<!-- <h:outputFormat styleClass="outputFormat" id="format1" value="#{NameBean.test}"></h:outputFormat>-->
<h:outputText styleClass="outputText" value="#{NameBean.test}" style="" rendered="true" escape="false"/>
</f:facet>
</h:column>
</h:dataTable>
public List gettest()
List li = new LinkedList();
Object Developers[] = {"M@n00j", "sdsadas"};
for( int i = 0; i < Developers.length; i++ )
li.add(Developers);
return li;
Thanks in advance to anyone that can help.
-ls6vI've been able to get it working with some of those changes along with changes in the JSP. I think it's a setting or two in the JSP that'll allow the program to run correctly.
I have a list and it's returned like what you suggested. A day or two ago I tried to move the outputtext outside of the facet tag but nothing would print, I know believe that's related to the following setting in the JSP:
rows="0" in the <h:dataTAble tag
Unfortunately the dataTAble isn't displaying the values correctly. It prints all of the values (Strings) in the list on each row and it make a new row for the number of items in the list.......... ???
Here's what it's printing to the screen (the table):
===================
== [asdasd], [sddfdfd] ==
===================
===================
== [asdasd], [sddfdfd]==
===================
what it should print:
============
== [asdasd] ==
============
============
== [sddfdfd] ==
============
My code:
public List gettest()
List li = new ArrayList();
li.add("asdasd");
li.add("affffd");
return li;
}JSP
<h:dataTable border="1" columnClasses="list-column-left"
headerClass="list-header"
rowClasses="list-row-odd"
id="table"
rows="0"
value="#{NameBean.test}"
var="data">
<h:column>
<f:facet name="header">
<h:outputText value="test"/>
</f:facet>
<h:outputText value="#{NameBean.test}" style="" rendered="true" escape="false"/>
</h:column>
</h:dataTable> -
How to display the "display values" in READ Only mode for a SHUTTLE
Hi,
I have a form item of type *'Shuttle'* and using the following LOV.
select DEPTNAME d, DEPTNO r
from DEPTIn normal mode..it displays the department name and internally store the Deptno..
Now I converted this item to Read Only mode using Read Only Condition Type
the problem is as soon as it becomes read only...it displays the deptno....not the department name
Department- 10:20:30How can I display the "display values" i.e the actual department name in read only mode..
Department- Department1:Department2:Department3Thanks,
DeepakHi,
It seems feature. Shuttle is span tag when it is read only.
Work around could be that
you compute display as text item with LOV display value according shuttle session state and show shuttle and this item conditionally depend case
Br, JAri
Maybe you are looking for
-
I cannot transfer files from my MacBook to my external hard drive anymore.
I cannot transfer files from my MacBook to my external hard drive anymore. The device responds with error-36 about documents being unreadable and unwritable. Previously the device worked fine. External Hard Drive I have an imation Apollo II 2.5" Port
-
BUG: 1.4.1 beta doesn't like to be in an IFRAME that moves.
If you are using 1.4.1 beta in an IFRAME which position can be moved by javascript for instance, the plugin will grey out and not refresh. 1.4.0 work perferctly in this regard.
-
I transfer my VHS tapes through my camcorder to my computer. What can i do to get good quality when it's time to burn the VHS transfer to a DVD-R.
-
Unable to download business object XI 3.1 live office
I Want to download business object XI 3.1 live office but can't find it where it to download ? kindly send a link for downloading "business object XI 3.1 live office"
-
How can I hide the Navigation Input (at least the URL) in Firefox 29.0?
I need to hide it for demonstrations to prevent attendees from browsing to a site while I'm showing it. This new release is not as clean looking when all the toolbars are unchecked. A minimal mode with tabs only would be helpful...the previous releas