Posting Period text display
Hi Gurus,
I have a report where i have my GL account hierarchy on my rows and my key figure in column. i have posting period on top of my key figure and my client wants to display the report as
jan, feb, mar etc till dec. the problem is when i run it through posting period it shows me 1, 2, 3 ...12 instead of text.
my key figure is populating value based on user exit and i cannot use other time fields like fiscal year/period. i cannot create 12 restricted key figures as my key figure is getting value from exit variable.
how do i change the text display for 1,2,3 .....12 to jan, feb, mar....dec. is there any sap exit text variable?
please help
thanks
surya
i cannot create 12 restricted key figures as my key figure is getting value from exit variable.
why cannot u create restricted key figures ?
i didnot understand this....
second question - are u maintaining texts of 0FISCPER3
if yes then enter RSD1
enter 0FISCPER3
edit it
go to business explorer tab
over there display as text only and not key
this way it iwll display just text
if u rnot maintaitng texts for it
u have refer above solutions as mentioned by xperts so that u can load texts for 0FISCPER3
then follow the busines explorer tab changes i suggested...
if u can create restricted key figure ur problem will solve easily..
Similar Messages
-
Display the 0 fiscper3 (posting period)and 0fiscyear (fiscal year) in bw re
Hi I need a quick help, please resolve my issue in step by step. Report is required to display the 0 fiscper3 (posting period)and 0fiscyear (fiscal year) in bw report. I have a 0fiscper Fiscal Yr / Period in my datasource and infosource but not 0fiscper3 (posting period)and 0fiscyear (fiscal year). Can any body help me how to add the abap code to convert the 0fiscper Fiscal Yr / Period to display 0fiscper3 (posting period)and 0fiscyear (fiscal year in report or how to add by abap code 0fiscper3 (posting period)and 0fiscyear (fiscal year)in datasource. User will select the value of 0FISCYEAR
Fiscal year during the execution of report. please help
will reward all points.
thanks
soniya kapoorHi Soniya,
Y don't you enhance ur datasource with these fields?
Anyways the workaround could be add 0FISCPER3 and 0FISCYEAR in ur data target, and write ABAP code for it in transformation.
Map 0FISCPER with both the fields, and now click rule type of both the fields independently. Select rule type as routine.
0FISCPER stores data in format YYYYPPP, so you have to write code accordingly.
Likie in 0FISCPER3 assign last 3 digits of 0FISCPER to 0FISCPER3 and first 4 to 0FISCYEAR.
Suppose u have pne temp variable with name fis_yp which stores value of 0FISCYEAR. For getting period from it you have to write:
period = fis_yp+4(3), ( 3 characters from 4 place)
and similarly for year,
year = fis_yp+0(4), ( 4 charaters from 0 place)
I hope now u can write code for it easily?
KJ!!! -
Conditional display of post element text.
Hello,
I wanted to know if it was possible to display the
post element text for a text item conditionally.
Thanks,
shilpa.Hi Shilpa
I am not aware of any functionality to conditionally display the post element text on its own. However there are 2 ways around this.
1) If when entering the page you want to decide if you should display the text you could, after each item add a display only item and put a condition on that. Changing the display only items displayed properties to Begin On New Line = NO and Field = NO will give the impression of post element text
2) If you want to conditionally display the text dependent on what the user has entered into the box you could use some javascript in the post element text field. e.g.
<span id="me"></span>
<script language="javascript">
function test1(){
if (1 + 1 == 2){
document.getElementById("me").innerHTML = "sometext";
</script>
then in the html form element attributes field you can call this function like this:
onblur="test1()"
Hope that helps
Adam -
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 -
How to substitute a month abbreviation for the posting period in a query
Hi,
I have a query that lists the Posting Period (0FISCPER3) characteristic in the rows and key figures across the columns. Is there a way to display the Posting Period as a month abbreviation instead of a number?
So for example, instead of displaying the periods 01, 02, 03, 04... in the rows, I would like to display the abbreviation of the corresponding month, for example Jun, Jul, Aug, Sep... etc.
Thanks,
Mustafa.Hi,
Thanks for the suggestions. If the master data texts are updated for characteristic "0FISCPER3", this would assume that all Company Codes have the same Fiscal Year Variant. What happens in a situation where there are multiple Company Codes with different Fiscal Year Variants, a case which is common for multinational companies?
Can such a manipulation be performed in the query itself based on the Fiscal Year Variant?
Regards,
Mustafa. -
Hi gurus
I have done a report wherein the revenues are displayed for each month of the financial year. I have selected the posting period for the respective months. In the display of the report the months are being displayed for 1, 2, 3...so on and so forth for the months starting from April to march. But the user wants the months to be displayed in April, May, june...so on.
Is there any way i can handle this.
requirement is pretty urgent.
your answers will be rewarded.
vijaykumarHi,
I understand...in the exit code depending upon the period entered by the user you should populate data to the text variable.
I hope you r using the text variable in the new formula. The data in the new selection is to be referred to new formula in which you will be getting texts.
Another option is maintain texts for periods in master data.
Hope this helps you..... -
Error while running a query-Input for variable 'Posting Period is invalid
Hi All,
NOTE: This error is only cropping up when I input 12 in the posting period variable selection. If I put in any other value from 1-11 I am not getting any errors. Any ideas why this might be happening?
I am getting the following error when I try and run a query - "Input for variable 'Posting Period (Single entry, mandatory)' is invalid" - On further clicking on this error the message displayed is as follows -
Diagnosis
Variable Posting Period (Single Value Entry, Mandatory) is used as a lower limit (X) and an upper limit () in an interval selection. This limit has the value #.
System Response
Procedure
Enter a different value for variable Posting Period (Single Value Entry, Mandatory). If the value of the other limit is determined by another variable, you can change its value also.
Procedure for System AdministrationOK.
Well, if the variable is not used in any interval selection, then I would say "something happened to it".
I would make a copy of the query and run it to check if I get the same problem with period 12.
-> If not, something is wrong in the original query (you can proceed as below, if changes to original are permitted).
If so, then try removing the variable completely from the query and hardcode restriction to 12.
-> If problem still persists, I would have to do some thinking.
If problem is gone, then add the variable again. Check.
-> If problem is back, then the variable "is sick". Only quick thing to do, is to build an identical variable and use that one.
If problem also happens with the new variable, then it's time to share this experience with someone else and consider raising an OSS.
Good luck!
Jacob
P.S: what fisc year variant are you using?
Edited by: Jacob Jansen on Jan 25, 2010 8:36 PM -
Open and close Posting Periods. Different societies.
Hi all.
We have 2 societies 0001 and 0002.
In transaction S_ALR_87003642 or OB52 I want that user of society 0001 only can see posting periods of his society ( 0001 ) and the same with society 0002 users.
How I can do this ???
thanks a lot.
IsmaelHi,
This requires bit of ABAP help.
WE have achieved this scenario successfully based on the information provided below -(found the source on the internet!)
Goto SE11 copy the view V_T001B to ZV_T001B_000X (000X indicate the Posting Variant)
In Change mode, tabstrips Selection Conditions Insert line 2 with
Table Field Name Operator Comparative Value AND/OR
T001B BUKRS EQ '000X' AND
Save your entries
Third Step :-
Goto SE54, Options Generated Objects -> Create
Authorizations Group FC31
Function Group Z00F0
Maintenance Type One Type
Overview Screen 65
Single Screen 0
Final Step :-
Goto SE93, Create a new transaction code ZOB52_000X
Start object - Transaction with parameters (parameter transaction)
Transaction SM30, Tick Skip initial screen
Name of screen field Value
VIEWNAME ZV_T001B_000X
UPDATE X
Save your entries.
Now have the ABAPer to have company code on the selection screen. Based on user selection, invoke the corresponding neww transaction code ZOB52_000X which will only display the
Posting Variant that you have define in your table view.
Hope this solves your problem.
Regards,
Sridevi -
This is regarding a brand new ASUS PA 279Q, 2560 x 1440 IPS monitor. I'm connected via mini display port (into thunderbolt port on MacBook Pro) to display port on ASUS monitor; using cable ASUS included with the monitor. Mid 2012 MacBook Pro…full specs at bottom of this post.
I have resolution set at 2560 x 1440 which is the native resolution according to the ASUS spec. I tried the other resolutions available in my System Preferences and text displayed rough with those settings too. I've tried adjusting contrast, brightness and sharpness via the ASUS control panel and didn't solve the problem. Also tried calibrating via Mac's system preferences/display and that did not improve text display either. All the text on this monitor (no matter what software I launch, Finder, InDesign, Illustrator, MS Word, Excel, VMWare Windows XP, Windows versions of Word, Excel, Acrobat, etc, all are consistently rendering text the same way --- ROUGH and with "HALOS" around each letter.
All point sizes of text and at various scales, display very rough on the screen. (My comparison is the retina display of my MBP and a Thunderbolt…so those two displays are my expectations.) I'm using the same MBP for both a Thunderbolt display (at work) and this ASUS at my home office.
On the ASUS it's not as noticeable when the text is on white backgrounds, but I'm a graphic designer and compose images with text all day everyday. Not to mention the specs on this ASUS PA279Q indicate it's built for the professional so I would expect better text rendering. I haven't even addressed color calibration and balance yet, because that won't matter to me if the text won't display any better than it is now.
I was so hopeful after researching all the specs on this monitor it would be a viable alternative to the glossy display of the Thunderbolt display. (Which, I do love the Thunderbolt display for it's clarity and how it displays crisp, clean text at all sizes. (This ASUS actually displays text decently if I increase the text so each letter is about 4" high. Which is pointless for practical purposes -- that'd be like doing page layout through a microscope!)
I kept holding off on getting a monitor for the home office thinking the Thunderbolt would be updated soon. I'd be sick if I dropped a grand on piece of 2011 technology only to learn a few days later an updated Thunderbolt display hit the market! Not to mention, I'm praying Apple comes out with a less reflective Thunderbolt display. The glare and reflection is the main reason I looked elsewhere for a large monitor; hence my asking for help. Hoping the ASUS text display issue can be worked out. My expectation is for it to display like the MBP retina and Thunderbolt display text. That possible?
Alternatively, I guess I could do the Apple Refurb Thunderbolt at $799. And see if there's a decent aftermarket anti-glare I could stick on it?
Thanks for reading my post. Hope someone can help; offer any suggestions? Words or wisdom?
Has anyone else had similar issues and figured out a resolution? Help!
MacBook Pro
Retina, Mid 2012, 2.3 Ghz Intel i7
8GB 1600 MHz DDR3
OS X 10.8.5
NVIDIA GeForce GT 650M 1024 MB
ASUS PA279QI uninstalled those two items. It still runs slow on start-up and when opening safari, firefox, iphoto, itunes, etc. It's not snappy like it used to be. Any other ideas? Thanks.
-
Calquarter from posting period in reporting level
Hi Guys,
We don't have the calquater in cube level.But in reporting
we need to calculate the calquarter from posting period.
My requirement is, when user enters the posting period 5 it
should show the quarter 1 and quarter 2 values. If user
enters posting period 7 it shoold show the qua1,qua2 and
qua3 values.
Can any one suggest me how we can get this?
Helpful answers will be rewarded with full points.
PrasadHello,
Create 4 variables (range) on Posting period for eg. qtr1 , qtr2, qtr3, qtr4 of type Customer Exit. Now Create 4 Restricted Keyfigures for the Key figure u want to display each restricted with posting period by qtr1 , qtr2, qtr3, qtr4.
Now write the code to fill in these variables depending on the User entry value. so for eg, if user enters 5, then fill
qtr1 with low value 001 and high value 003 of the same year as input value.
qtr2 with low value 004 and high value 005 (input value) of the same year.
as you dont want to show qtr 4 and qtr 5, fill them with some period for which you are sure there would be no values in the cube (may be some period in past or dummy year like 9999). You can then eliminate these columns by suppress zero value columns.
Similarly write the logic for all 12 periods to fill corresponding Qtr1 to Qtr 4. So in report Restricted KF will show KF value resricted to corresponding Qtr
Thanks -
How to create posting period veriant
Hi Gurus,
I Want to create posting period veriant for update periods ,
Say per exmple : in UAT phase project ... need to update posting periods with diffrent dates .. meaning of that we need see all periods like monthly jobs ,yearly jobs also ...
see below exmple i got .. as a functonal consultat can i do ?
Allowed OB52 based on company code
If you have several company codes and want your users only to be able to open and close periods
(transaction OB52) belonging to their posting period variant (=company code).
First you configure the Posting Variant :-
1) FI- FI Global Settings - Document - Posting Periods - Define Variants for Posting Periods
2) FI- FI Global Settings - Document - Posting Periods - Assign Variants to Company Code
Second Step:-
Goto SE11 copy the view V_T001B to ZV_T001B_000X (000X indicate the Posting Variant)
In Change mode, tabstrips Selection Conditions Insert line 2 with
Table Field Name Operator Comparative Value AND/OR
T001B BUKRS EQ '000X' AND
Save your entries
Third Step :-
Goto SE54, Options Generated Objects -> Create
Authorizations Group FC31
Function Group Z00F0
Maintenance Type One Type
Overview Screen 65
Single Screen 0
Final Step :-
Goto SE93, Create a new transaction code ZOB52_000X
Start object - Transaction with parameters (parameter transaction)
Transaction SM30, Tick Skip initial screen
Name of screen field Value
VIEWNAME ZV_T001B_000X
UPDATE X
Save your entries.
Now, test your new transaction code ZOB52_000X which will only display the
Posting Variant that you have define in your table view.
Regards,
purnaThe variant for posting periods is defined for every company code. The name of this variant is identical to the company code name. Every company code is allocated to this variant with the same name.
Path: IMG > Financial Accounting > Financial Accounting Global settings > Document > Posting Periods > Define Variants for Open Posting Periods.
Path: IMG > Financial Accounting (New) > Financial Accounting Global settings(New) > Ledger > Fiscal year and Posting Periods > Posting Periods > Define Variants for Open Posting Periods.
Transaction Code: "OBBO" -
Hello everybody.
I'd like to know if there is a way to restrict that some users open posting periods in OB52 or S_ALR_87003642 and some other different users close posting periods.
Hoping you could help it, as our organization had that policy from our previous system,
Best regards,
Elvis E. Henriquez A.Hi
Sorry, but I do not think that's possible in SAP Standard.
OB52 / S_ALR_87003642 are build around a maintenance view for table T001B. This mean that the access primarily are controlled by the S_TABU_DIS (and S_TABU_LIN) object, and with these object's you can control access to maintain / display only, you can not control the values of the input data.
I think that you will need to create your own application and authorization object in order to achieve your requirement.
Regards
Morten Nielsen -
Exit for to restict Non-leading ledger posting periods for Document Type SA
Hi,
Please give the guidelines to complete the following requirment.
In SAP FI two ledgers Leading(0L), Non-Leading (J2) Posting periods are defined in OB52.
If non-leading ledger is closed also it will take the Leading posting periods and Posting the document..
This is the SAP Behaviour.
Like in FB50L if we enter J2 (Non-Leading) it will display the erro message like
Posting period in not open.
Like that they want for FB70,FB75,MIGO,MIRO,FINT and Invoice(VF01).
Please suggest the suitable exit.
Thanks & Regards,
Padmaja.Hi Ramu,
Please refer the below points,
1. Leading ledger is only one ledger in one client.
2. In one client you can keep N of non leading ledgers.
3. company codes are need assign to non leading ledgers.
4. All postings will update leading ledger by default.
5. Non leading ledgers will update if company code is assigned to non leading ledger.
6. If you want to post only non leading ledger then please use the tcode FB50L and FB01L.
7 You can set the separeate fiscal year variant for non leading ledger.
I hope above information will resolve you r issue.
Regards
Madhu M
http://wiki.sdn.sap.com/wiki/x/JghNCw (NewGL Migration Secnarios)
http://wiki.sdn.sap.com/wiki/x/mosOD (Document Splitting Wizard)
http://wiki.sdn.sap.com/wiki/x/f4OfDg (NON-LEADING LEDGER SPECIFIC
POSTING) -
Opening & Closing Posting Period
At the time of opening & Closing posting period ,we get two fields From Account and To Account. Can some body explain theuse of this two fields.Points will be assigned to all reply.
Hi,
It denotes the GL account number (From & to GL account number), to be opened or closed.
Regards,
Sridevi
<i><b>* Pls. assign points, if useful</b></i>
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/wiki?path=/display/profile/sridevi+pattabiraman">me!</a> -
How to calculate First Date of Posting Period in BEx Query
Hi,
I have 2 reporting requirements as follows:
1) User will either enter a single posting period in a fiscal year or can enter a range of posting periods.
Based on user selection I need to display three key figures in a report.
Key figure 1 and Key Figure2 should be the summarized values for each posting period.
key Figure 3 should be the value on the first date of that particular posting period (in case user selects multiple posting periods i should derive the value of the first date of each posting period).
2) Also, in another report I need to display only top 8 values for one key figure in the report.
Please let me know the method or code required to get this Functionality.
Thanks in advance.First Report
1. Create Restricted KeyFigure 1 & 2 for the summarized values.
2. Create a Customer Exit Variable for getting the first date of the posting period, this should be of type Interval. Write code using FM FIRST_DAY_IN_PERIOD_GET to get. Read the selection variable to see the range of posting period and you have to insert that many first dates into this variable.
3. Create a new Restricted KeyFigure 3 and use the Customer Exit variable created in Step 2
Second Report
Use the Top N functionality of BEx and create a workbook. You can set the option Refresh query when the workbook is open so that the data is current when opened.
Hope this helps.
Maybe you are looking for
-
Want to change network name.... and other.
Ok, Hi all.... so new to Apple and just a novice computer user... just purchased a macbook pro and a airport extreme wireless N router ( finally after 5 years of dial up)... so my questions is/are... first my network is named with my first and last n
-
Question about linking to pdf and doc documents
When I link to pdf or doc pages in my web page they always down load to the down load folder and then I have to go find them and then double click on them before they open. Is there anyway to get these type documents to open automatically when they a
-
While I understand that Apple continues to be vague at best as to how a podcast makes it into their featured list, especially for a category, I must admit to be frustrated with whatever process is used. Take the Places & Travel subcategory of the Soc
-
Embed digital signature on barcode
Would you suggest me on how to embed the digital signature on barcode in pdf. I'm using Adobe professional environment 8.1 Welcome for immediate suggestions.
-
Deleted SAFARI on mac running LION 10.7.1
I deleted safari on my imac running lion 10.7.1 do I have reinstall Lion ( I didn't get a disc with lion I remember it was a download) can I download safari? Can you advise me what to do Regards DB