Wrong Balances
Dear All
I am facing a problem, the cumulative balances which are being pulled to my ODS - 0FIGL_O10 are coming wrong.
I am using new GL. I checked the table FAGLFLEXT and i find that the cumulative balance is being overwritten by any new transaction balance.
For eg
Account no Op Bal Debit Credit Closing Bal
11101050 1000 0 0 1000
11101060 5000 500 0 500
In the above case the balance of account 11101060 should be 5500.
So where there are no transaction during the period the system picks up the correct closing balance. However when there is a transaction during the period the system instead of adding it overwrites the balance with the transaction data.
A quick help shall be highly appreciated.
Cheers
Shivkumar
Hi,
FI_GL_10 gives aggregated values and it provides after image values hence what you have chosen as ODS with overwrite mode is correct . Refer the link below
http://help.sap.com/saphelp_nw04/helpdata/en/a8/e26840b151181ce10000000a1550b0/content.htm
which will explain you clearly the fields to be kept as keyfields and updation process. if you design the ODS as per the above link the values will be perfect.
Hope this helps for you.
Thanks,
Arun.
Similar Messages
-
"Invoice History Report "show wrong balance for supplier invoice with USD
Invoice History Report show wrong balance for supplier invoice with USD Currency
After I run this report i see in the last of this report there is difference between the supplier total
USD (Currency ) and the open Balance USD , it is decreased the open balance
for supplier with 2300 USD with out any reasons
bellow is some data copy of the report
======================================================
Supplier Site Total: SAR 34,700.00
Supplier Site Total: USD 39,000.00
Supplier Total: SAR 34,700.00
Supplier Total: USD 39,000.00
Open Balance: SAR 34,700.00
Open Balance: USD 36,700.00
*** End of Report ***
==============================================
please advise me from where can this differenc ( 39000 - 36,700=2300 )COMMING
or it is bug in this report , becuase i compare this report with other report in account payable like
-supplier open balance letter
-invoice register report
-invoice aging report
all this report give me the amount for supplier USD =39000
BUT AGIN FROM WHERE THE SYSTEM DECREASED THE AMOUNT TO 36,700
thanksCan you try running Create Accounting For payments just before you run the Invoice History Report and re-check .
Thanks -
Wrong balances in FAGLFLEXT table
Dear All,
I am using datasource 0FI_GL_10 to extract data into BI from SAP AFS 5.0. We are using the new general ledger. extraction is fine and delta extraction happens without any issue.
The issue is that when i look at a account balance in BI and take a trial balance in SAP and compare the account values. there are a few accounts which have differences. When i looked into it i found out that the FAGLFLEXT table which carries the totals for the accounts have wrong balances for a few accounts. I'm not sure why this is but it is a definite showstopper at the moment. I have searched for notes related to it but have not been able to find an answer to it.
Have any of you experienced this issue before? would appreciate any help you could provide me.
Thank you,
dilankeDear All,
This is a bug in SAP and they are looking at it to correct the issue. closing thread. -
Wrong balance carried forward...
Hi
Issue:
We have Jan-Dec Fiscal year, however one of our resource wrongly ran the Balance carry Forward program for FY 2013, due to which the balances are carried forward to 2013 year. The consequences is GLT0 was updated with 2013 entries which was not expected. Kindly advice how to reverse BCF happened for 2013 or How to remove balance for 2013 from GLT0 table which wrongly entered.
Please replyHi,
Run balance carryforward programs for FY 2012 again.
There is no harm while performing the above again.
Once GLT0 is carriforward to future year, you cannot remove them, Since there wont be any issue here also. Let it be there.
So in FY 2013, just run these programs again to adjust those opening balances, which are not updated to the table.
Regards,
Srinu -
Showing wrong Balance in TB and Ledger Report
Dear Experts,
I am facing a problem in Trial Balance & Ledger report, In 4-5 accounts the debit balance and credit balance is same still showing balance of 0.01 or -0.01
for example
Account Head Debit Credit Balance
ED1051 184.31 184.31 -0.01
to nullify the effect if I debit this account with 0.01 then its displaying balance 0.01.
what may be the reason?
Thanks
KamleshHi Kamlesh,
It sounds like there might be transactions in the db with more decimals than the current setting.
You can check this in SQL (B1 will only display 2 decimals)
If this is the case let us know the version you are using.
Jesper -
I haven't purchased from iTunes in several weeks. I had a balance of $41.25 last night and purchased $7.96. My balance is now $29.31 - missing $3.98. I emailed the support group and just got an answer on how to view my account. I already did that and it still does not explain why they subtracted $11.94 instead of $7.96. Has this happened to anyone else? Thanks.
The AT&T rebate card is a very special beast, has all sort of caveats on it's use, and apparently has to be handled in a non-standard way by the merchant, so it may not work correctly even if the iTunes Store seems to have accepted it. Contact the iTunes Store customer service group through the form at the bottom of their web page and explain the problem to them. They should be able to help you sort out the problem.
-
Webdispacther + J2EE Cluster wrong balancing
Hello,
We have a problem.
We have a webdispatcher that sends information to a J2EE cluster with 3 nodes with 2 serves each.
The problem is that it does not do the balancing correctly. It only balances to the 1 and 3 node. How can I check or configure so the balancing goes to the 3 nodes instead of the 2 nodes?.
The configuration of the webdispatcher is:
SAPSYSTEMNAME = WPE
SAPGLOBALHOST = madrsiwd03
SAPSYSTEM = 10
INSTANCE_NAME = W10
DIR_CT_RUN = $(DIR_EXE_ROOT)\$(OS_UNICODE)\NTI386
DIR_EXECUTABLE = $(DIR_CT_RUN)
rdisp/mshost = madrsiep03.indra.es
ms/http_port = 8101
icm/max_conn = 16384
icm/max_sockets = 16384
icm/req_queue_len = 6000
icm/min_threads = 100
icm/max_threads = 250
mpi/total_size_MB = 500
mpi/max_pipes = 21000
icm/server_port_0 = PROT=HTTP,PORT=81$$,TIMEOUT=900,PROCTIMEOUT=600
icm/server_port_1 = PROT=ROUTER,PORT=82$$,TIMEOUT=900,PROCTIMEOUT=600,VCLIENT=1
The configuration of the J2EE cluster is:
SAPSYSTEMNAME = XXX
SAPSYSTEM = 01
INSTANCE_NAME = SCS01
DIR_CT_RUN = $(DIR_EXE_ROOT)/run
DIR_EXECUTABLE = $(DIR_INSTANCE)/exe
SAPLOCALHOST = madarrsiclpee
OS_UNICODE = uc
rdisp/msserv = 0
rdisp/msserv_internal = 3901
ms/standalone = 1
ms/server_port_0 = PROT=HTTP,PORT=81$$
ms/server_port_1 = PROT=HTTPS,PORT=82$$
enque/serverinst = 01
enque/table_size = 4096
rdisp/enqname = $(rdisp/myname)
enque/snapshot_pck_ids = 100
Best Regards.
Pablo Mortera.If I understand your question, you have 2 J2EE Instances with 1 and 2 Server nodes on each and Web DIspatcher is pushing load only to the Instance with 1 Server node, right?
1. Go to webdisp admin page @ http://host/wdisp/admin --> click monitor server groups , here you can see the J2EE instances and thier capacity . You can also see how many requests are sent to each instance.
2. You can RIGHT CLICK on the the J2EE Instance and Change the CAPACITY of the desired Instance to send more load.
Thanks
SM -
G_ACCOUNT_BALANCE_ACC_GET wrong balance
Hi,
i'm using G_ACCOUNT_BALANCE_ACC_GET to calculate account balances for a given period (day of the year) for a new ledger.
While checking the values with transaction FAGLB03 i noticed that for some accounts the value returned by the function module was equivalent to the one in FAGLB03 divided by 100.
I did a liitle debug and noticed that this was caused when FM G_GLU1_TO_AC_DOC_TRANSFORM (called inside G_ACCOUNT_BALANCE_ACC_GET) returns an exception.
Is this function module (G_ACCOUNT_BALANCE_ACC_GET) obsolete? is there any alternative?
Am I missing something? is anything else that should be done?
Thanks in advanceHi Nuno,
yes I can, but it was very special purpose. Don't know if you can really use it.
I just post it all.
I remember we had to run this program to get correct assignment to CO objects in aggregates.
TYPE-POOLS:
slis, "Globale Typen für generische Listbausteine
icon, "Icons
col, "colors type CHAR(1)
abap, "ABAP Language Type-Pool
sydes, "Datenstruktur für die Typbeschreibung bei DESCRIBE TYPE ...
gb002, "RuleMan: Type definitionen für Boolesche Klassen
gusl. "Typen zur Selektion von FI-SL-Tabellen
*& Tables
DATA:
ss_bseg TYPE bseg,
ss_bkpf TYPE bkpf." used for select-options - all required fields
*& Includes
*& Types
*& TY_
TYPES:
ty_t_docnr TYPE HASHED TABLE OF belnr_d
WITH UNIQUE KEY table_line,
BEGIN OF ty_saknr_txt,
saknr TYPE skat-saknr,
txt50 TYPE skat-txt50,
END OF ty_saknr_txt,
ty_t_saknr_txt TYPE HASHED TABLE OF ty_saknr_txt
WITH UNIQUE KEY saknr,
BEGIN OF ty_bukrs_hwaer,
bukrs TYPE bukrs,
hwaer TYPE hwaer,
END OF ty_bukrs_hwaer,
ty_t_bukrs_hwaer TYPE HASHED TABLE OF ty_bukrs_hwaer
WITH UNIQUE KEY bukrs,
display table structure
BEGIN OF ty_alv_display,
sel TYPE psele,
lights TYPE icon_d,
color TYPE slis_t_specialcol_alv,
rbukrs TYPE bukrs,
ryear TYPE ryear,
racct TYPE yaa00eccs-racct,
cost_elem TYPE kstar, "Cost Element
prctr TYPE prctr,
rassc TYPE rassc, "Partner company
rcntr TYPE kostl, "Cost Center
rfarea TYPE fkber,"functional area
rmvct TYPE rmvct,"BWA transaction type
rtcur TYPE rtcur,
zzbilkt TYPE zzbilkt,"ECCS item
zzbilkt_new TYPE zzbilkt,"ECCS item changed by substitution
zzmulti TYPE zzmulti, "any4multi
txt50 TYPE txt50_skat,
tslxx TYPE tslxx12,
hslxx TYPE hslxx12,
hwaer TYPE hwaer,
tslxx_posted TYPE tslxx12,
hslxx_posted TYPE hslxx12,
tslxx_topost TYPE tslxx12,
hslxx_topost TYPE hslxx12,
t_redoc TYPE ty_t_docnr,"reposted documents
protocol TYPE icon_d,
technical fields for storage of information
t_prot TYPE STANDARD TABLE OF bapiret2 WITH DEFAULT KEY,
docnum TYPE belnr_d,
END OF ty_alv_display,
ty_t_alv_display TYPE STANDARD TABLE OF ty_alv_display
WITH DEFAULT KEY,
consolidated account values
BEGIN OF ty_acc_balance,
rbukrs TYPE bukrs,
ryear TYPE ryear,
racct TYPE racct,
cost_elem TYPE kstar, "Cost Element
perio TYPE rpmax,
prctr TYPE prctr,"profit center
rassc TYPE rassc, "Partner company
rcntr TYPE kostl, "Cost Center
rfarea TYPE fkber,"functional area
rmvct TYPE rmvct,"BWA transaction type
rtcur TYPE rtcur,"currency
zzbilkt TYPE zzbilkt,"ECCS item
zzbilkt_new TYPE zzbilkt,"ECCS item changed by substitution
zzmulti TYPE zzmulti, "any4multi
deb_t TYPE tslxx12,
cre_t TYPE tslxx12,
tslxx TYPE tslxx12,
deb_h TYPE hslvt12,
cre_h TYPE hslvt12,
hslxx TYPE hslxx12,
END OF ty_acc_balance,
ty_t_acc_balance TYPE SORTED TABLE OF ty_acc_balance
WITH UNIQUE DEFAULT KEY,
consolidated total balances per company account dimension
in company currency
BEGIN OF ty_balance,
rbukrs TYPE bukrs,
ryear TYPE ryear,
racct TYPE racct,
cost_elem TYPE kstar, "Cost Element
prctr TYPE prctr,
rassc TYPE rassc, "Partner company
rcntr TYPE kostl, "Cost Center
rfarea TYPE fkber,"functional area
rmvct TYPE rmvct,"BWA transaction type
rtcur TYPE rtcur, "transaction currency
zzbilkt TYPE zzbilkt,"ECCS item
zzbilkt_new TYPE zzbilkt,"ECCS item
zzmulti TYPE zzmulti, "any4multi
tslxx TYPE tslxx12,
hslxx TYPE hslxx12,
END OF ty_balance,
ty_t_balance TYPE SORTED TABLE OF ty_balance
everything in key except zzbilkt_new due to possible reassignment
WITH UNIQUE KEY rbukrs ryear racct cost_elem prctr rassc rcntr rfarea rmvct rtcur zzbilkt zzmulti,
ty_t_racct TYPE HASHED TABLE OF racct WITH UNIQUE KEY table_line,
ty_t_zzbilkt TYPE HASHED TABLE OF zzbilkt WITH UNIQUE KEY table_line,
ty_rt_zzbilkt TYPE RANGE OF zzbilkt,
BEGIN OF ty_posting_detail,
sel TYPE psele,
bukrs TYPE bukrs,
gjahr TYPE gjahr,
belnr TYPE belnr_d,
blart TYPE bkpf-blart,
bldat TYPE bkpf-bldat,
budat TYPE bkpf-budat,
monat TYPE bkpf-monat,
cpudt TYPE bkpf-cpudt,
cputm TYPE bkpf-cputm,
usnam TYPE bkpf-usnam,
tcode TYPE bkpf-tcode,
END OF ty_posting_detail,
ty_t_posting_detail TYPE STANDARD TABLE OF ty_posting_detail.
*& Global data
DATA:
gv_dynnr TYPE dynpronr,
gv_repid TYPE syrepid,
gv_relevant_ledger TYPE rldnr_flex,
gs_variant_main TYPE disvariant,
gr_tot_table TYPE REF TO data,
balances of accounts involved
t_zzbilkt_aggregate TYPE ty_t_balance,
t_alv_display TYPE ty_t_alv_display,
t_posting_detail TYPE ty_t_posting_detail.
*& Field-Symbols
*& FS_
*& Variables
*& lv_ for local variable
*& RC = return code
*& Constants
*& C_
CONSTANTS:
c_true TYPE flag VALUE 'X'.
*& Selection-screen
*& P_ for Selection/Input parameter, Radio button, Check box
*& S_ for Select options
*& R_ for Ranges
SELECTION-SCREEN BEGIN OF BLOCK imsel WITH FRAME TITLE text-igs.
SELECT-OPTIONS:
s_bukrs FOR ss_bseg-bukrs OBLIGATORY MEMORY ID buk,
s_gjahr FOR ss_bseg-gjahr OBLIGATORY MEMORY ID gjr,
s_racct FOR ss_bseg-saknr,
s_monat FOR ss_bkpf-monat.
SELECTION-SCREEN END OF BLOCK imsel.
SELECTION-SCREEN BEGIN OF BLOCK post WITH FRAME TITLE text-pdt.
PARAMETERS:
p_ktopl TYPE ktopl,
p_blart TYPE t003-blart,
p_gjahr TYPE gjahr,
p_bper TYPE monat,
p_budat TYPE budat,
p_bldat TYPE bldat,
p_gkont TYPE gkont.
SELECTION-SCREEN END OF BLOCK post.
SELECTION-SCREEN BEGIN OF BLOCK opt WITH FRAME TITLE text-opt.
PARAMETERS:
p_eval TYPE rr_xausw RADIOBUTTON GROUP opt,
p_both TYPE flag RADIOBUTTON GROUP opt,
p_xselb TYPE xselb AS CHECKBOX,"show correct aggegates
p_empty TYPE flag,
p_layout TYPE disvariant-variant,
p_commit TYPE edi_comcnt NO-DISPLAY."found nothing better
SELECTION-SCREEN END OF BLOCK opt.
INITIALIZATION.
PERFORM initialization.
AT SELECTION-SCREEN ON s_racct.
IF s_racct IS NOT INITIAL.
MESSAGE w000(0k)
WITH 'Account selection must be initial'(ami)
'for correct and complete reposting'(fcc) '' ''.
ENDIF." s_racct is not initial.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_layout.
PERFORM reuse_alv_variant_f4 CHANGING gs_variant_main p_layout.
AT SELECTION-SCREEN OUTPUT.
PERFORM screen.
START-OF-SELECTION.
PERFORM get_eccs_aggregates
CHANGING t_zzbilkt_aggregate.
check selection
IF t_zzbilkt_aggregate IS INITIAL.
MESSAGE e429(mo).
No table entries found for specified key
EXIT.
ENDIF." t_zzbilkt_aggregate is initial.
PERFORM process_data
USING t_zzbilkt_aggregate
CHANGING t_alv_display.
IF p_xselb IS INITIAL.
DELETE t_alv_display WHERE zzbilkt_new IS INITIAL.
IF t_alv_display IS INITIAL.
MESSAGE e035(ni).
There are no incorrectly processed documents
ENDIF." t_alv_display is initial.
ENDIF." P_XSELB is initial.
PERFORM alv_display
USING t_alv_display.
*& Subroutines
*& Initialize selection screen
*& Form initialization
*& Initialize selection screen
FORM initialization .
PERFORM insert_range USING:
'IEQ' sy-datum(4) '' CHANGING s_gjahr[],
'IBT' 1 sy-datum+4(2) CHANGING s_monat[].
PERFORM find_relevant_ledger
CHANGING gv_relevant_ledger.
p_ktopl = '0CTA'.
p_gjahr = sy-datum(4).
p_gkont = '1994135000'.
p_blart = 'SU'.
p_budat =
p_bldat = sy-datum.
p_bper = sy-datum+4(2).
p_commit = 1000.
gv_repid = sy-repid.
initialize variant
gs_variant_main-report = gv_repid.
gs_variant_main-log_group = 'MAIN'.
CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
EXPORTING
i_save = 'A'
CHANGING
cs_variant = gs_variant_main
EXCEPTIONS
wrong_input = 1
not_found = 2
program_error = 3
OTHERS = 4.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE 'S' NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ELSE.
p_layout = gs_variant_main-variant.
ENDIF.
ENDFORM. " initialization
*& Form insert_range
append selection range
FORM insert_range USING p_signopt TYPE c
p_low TYPE any
p_high TYPE any
CHANGING pt_range TYPE table.
FIELD-SYMBOLS:
INTO pt_range INDEX sy-tabix.
ENDFORM. " insert_range
*& Form GET_ECCS_AGGREGATES
FORM get_eccs_aggregates
CHANGING t_zzbilkt_aggregate TYPE ty_t_balance.
PERFORM sapgui_progress_indicator
USING 'Select ECCS aggregates'(sea) 0 0 .
PERFORM get_zzbilkt_aggregates
CHANGING t_zzbilkt_aggregate.
ENDFORM. " GET_ECCS_AGGREGATES
*& Form alV_display
FORM alv_display
USING pt_list TYPE table.
DATA:
ls_alv_layout TYPE slis_layout_alv,
lv_title TYPE lvc_title,
ls_exit_by_user TYPE slis_exit_by_user,
ls_glay TYPE lvc_s_glay,
ls_print TYPE slis_print_alv,
lt_alv_fieldcat TYPE slis_t_fieldcat_alv,
lt_events TYPE slis_t_event,
lv_variant TYPE disvariant.
PERFORM sapgui_progress_indicator USING 'Transfer to ALV...'(001) 0 0.
gv_dynnr = sy-dynnr.
lv_variant-report = gv_repid.
lv_variant-username = sy-uname.
PERFORM alv_layout CHANGING ls_alv_layout.
PERFORM alv_events CHANGING lt_events.
PERFORM alv_fieldcat_for_itab TABLES pt_list
CHANGING lt_alv_fieldcat.
PERFORM alv_fieldcat_enhance CHANGING lt_alv_fieldcat.
PERFORM alv_print CHANGING ls_print.
PERFORM alv_grid_settings CHANGING ls_glay.
IF p_empty IS INITIAL.
PERFORM alv_reduce_significant USING pt_list CHANGING lt_alv_fieldcat.
ENDIF." p_empty is initial.
lv_title = 'ECCS Delta'(edl).
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER = ' '
I_BUFFER_ACTIVE = ' '
i_callback_program = gv_repid
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = ' '
I_CALLBACK_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_TOP_OF_PAGE = ' '
I_CALLBACK_HTML_END_OF_LIST = ' '
I_STRUCTURE_NAME =
I_BACKGROUND_ID = ' '
i_grid_title = lv_title
i_grid_settings = ls_glay
is_layout = ls_alv_layout
it_fieldcat = lt_alv_fieldcat
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
i_save = 'A'
is_variant = lv_variant
it_events = lt_events
IT_EVENT_EXIT =
is_print = ls_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 = ls_exit_by_user
TABLES
t_outtab = pt_list
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.
CHECK ls_exit_by_user-back IS INITIAL.
User used EXIT or CANCEL
MESSAGE s415(0k).
Process cancelled by user
ENDFORM. " alV_display
*& Form statistics
Statistics Handler
FORM statistics USING p_func TYPE char01
p_count TYPE sy-dbcnt
p_text TYPE text80.
DATA:
Fehlerstruktur
BEGIN OF lv_gp_error,
txt TYPE text80,
count TYPE sydbcnt VALUE 1,
END OF lv_gp_error,
Ausgabelänge
lv_outlen TYPE sy-tleng.
Statische Tabelle
STATICS:
lt_gp_error LIKE TABLE OF lv_gp_error.
CASE p_func.
WHEN 'S'. "Store Message
Nachricht merken und zählen
lv_gp_error-txt = p_text.
lv_gp_error-count = p_count.
COLLECT lv_gp_error INTO lt_gp_error.
WHEN 'L'. "List Messages
Nachrichten ausgeben
SORT lt_gp_error.
LOOP AT lt_gp_error INTO lv_gp_error.
AT FIRST.
FORMAT COLOR COL_HEADING INTENSIFIED.
DESCRIBE FIELD lv_gp_error-count OUTPUT-LENGTH lv_outlen.
WRITE:
sy-vline,
p_text,
sy-vline,
AT (lv_outlen) text-025,"'Anzahl',
sy-vline,
AT sy-linsz sy-vline.
FORMAT COLOR COL_NORMAL INTENSIFIED.
ENDAT." first.
WRITE:
sy-vline,
lv_gp_error-txt,
sy-vline,
lv_gp_error-count,
sy-vline,
AT sy-linsz sy-vline.
ENDLOOP." at lt_gp_error into lv_gp_error.
ENDCASE." p_func.
ENDFORM. " statistics
*& Form alv_events
ALV events
FORM alv_events CHANGING pt_events TYPE slis_t_event.
FIELD-SYMBOLS:
TYPE LINE OF slis_t_event.
CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
EXPORTING
I_LIST_TYPE = 0
IMPORTING
et_events = pt_events
EXCEPTIONS
list_type_wrong = 1
OTHERS = 2
IF sy-subrc .
ENDFORM. " alv_events
*& Form alv_fieldcat_enhance
Individual Enrichment of field catalog
FORM alv_fieldcat_enhance
CHANGING pt_alv_fieldcat TYPE slis_t_fieldcat_alv.
FIELD-SYMBOLS:
ENDFORM. " alv_fieldcat_enhance
*& Form SAPGUI_PROGRESS_INDICATOR
FORM sapgui_progress_indicator
USING
p_text TYPE c
p_share TYPE sytfill
p_total TYPE sytfill.
STATICS:
lv_time LIKE sy-uzeit,
lv_txt TYPE text80.
DATA:
lv_seconds_since_lastcall TYPE sytfill,
lv_share TYPE p,
lv_pct TYPE sytfill,
lv_txt1 TYPE tline-tdline,
lv_txt2 TYPE tline-tdline.
GET TIME.
lv_seconds_since_lastcall = sy-uzeit - lv_time.
CHECK lv_seconds_since_lastcall >= 1 OR lv_txt <> p_text.
lv_txt = p_text.
lv_time = sy-uzeit.
IF p_total > 0.
lv_share = p_share.
lv_share = p_share.
lv_pct = lv_share * 100 / p_total.
WRITE p_share TO lv_txt1 LEFT-JUSTIFIED.
WRITE p_total TO lv_txt2 LEFT-JUSTIFIED.
CONCATENATE
p_text lv_txt1 '/' lv_txt2 INTO lv_txt1 SEPARATED BY space.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
percentage = lv_pct
text = lv_txt1.
ELSE.
CALL FUNCTION 'SAPGUI_PROGRESS_INDICATOR'
EXPORTING
percentage = lv_pct
text = p_text.
ENDIF. " p_total > 0.
ENDFORM. " SAPGUI_PROGRESS_INDICATOR
*& Form ALV_FIELDCAT_FOR_ITAB
Feldkatalog from (arbitrary) internal Table (c) Clemens Li
* build field catalog from type description
FORM alv_fieldcat_for_itab "#EC *
TABLES pt_outtab TYPE table "#EC *
CHANGING pt_alv_fieldcat TYPE slis_t_fieldcat_alv."#EC *
DATA:
lv_desc TYPE sydes_desc,
ls_alv_fieldcat TYPE slis_fieldcat_alv,
lv_longfield TYPE fname.
FIELD-SYMBOLS:
IF sy-subrc = 0.
Caution: Help-ID may be Tablename-Fieldname and thus longer
than 30 Chars; ls_alv_fieldcat-rollname is 30 Chars only
ls_alv_fieldcat-rollname = -name
INTO lv_longfield.
ENDWHILE." not lv_desc-continue is initial.
help id may be data element or <table>-<field>
IF lv_longfield CA '-'.
get data type for table field
PERFORM get_rollname_4_tabfield
USING lv_longfield CHANGING ls_alv_fieldcat.
ENDIF." lv_longfield ca '-'.
ELSE.
No Help-ID: Use Fieldname as text
ls_alv_fieldcat-seltext_s =
ls_alv_fieldcat-seltext_m =
ls_alv_fieldcat-seltext_l =
ls_alv_fieldcat-reptext_ddic =
-name.
ENDIF." sy-subrc = 0.
Starting 4.7: get edit mask
IF NOT -IDX_EDIT_MASK is initial.
assign length, output length and decimals
ls_alv_fieldcat-intlen = -type.
APPEND ls_alv_fieldcat TO pt_alv_fieldcat.
CLEAR: "prevent anything 2 B taken for subsequent fields
ls_alv_fieldcat.
ENDLOOP." at lv_desc-types where not IDX_NAME is in initial.
ENDFORM. " ALV_FIELDCAT_FOR_ITAB
*& Form get_rollname_4_tabfield
Get Data type for Table field
FORM get_rollname_4_tabfield
USING p_fname TYPE fname
CHANGING p_alv_fieldcat TYPE slis_fieldcat_alv.
FIELD-SYMBOLS:
TYPE dfies.
DATA:
lv_tabname TYPE tabname,
lt_dfies TYPE TABLE OF dfies,
lv_fieldname TYPE fieldname.
SPLIT p_fname AT '-'
INTO lv_tabname lv_fieldname.
CLEAR p_alv_fieldcat-rollname.
CALL FUNCTION 'DDIF_FIELDINFO_GET'
EXPORTING
tabname = lv_tabname
fieldname = lv_fieldname
LANGU = SY-LANGU
LFIELDNAME = ' '
ALL_TYPES = ' '
IMPORTING
X030L_WA =
DDOBJTYPE =
DFIES_WA =
LINES_DESCR =
TABLES
dfies_tab = lt_dfies
FIXED_VALUES =
EXCEPTIONS
not_found = 1
internal_error = 2
OTHERS = 3
IF sy-subrc -rollname.
Und wenn keinerlei Twexte gepflegt sind?
IF -scrtext_l IS INITIAL.
No Text: Use Fieldname as text
p_alv_fieldcat-seltext_s =
p_alv_fieldcat-seltext_m =
p_alv_fieldcat-seltext_l =
p_alv_fieldcat-reptext_ddic =
p_alv_fieldcat-fieldname.
ENDIF." -reptext IS INITIAL AND
ENDIF.
ENDFORM. " get_rollname_4_tabfield
*& Form ALV_END_OF_LIST
Something as you like
FORM alv_end_of_list . "#EC CALLED
PERFORM statistics USING 'L' 0 text-003.
PERFORM list_selectoptions.
ENDFORM. " ALV_END_OF_LIST
*& Form ALV_LAYOUT
FORM alv_layout CHANGING p_alv_layout TYPE slis_layout_alv.
p_alv_layout-colwidth_optimize = c_true.
p_alv_layout-detail_initial_lines = c_true.
p_alv_layout-zebra = c_true.
p_alv_layout-min_linesize = 132.
p_alv_layout-coltab_fieldname = 'COLOR'.
p_alv_layout-box_fieldname = 'SEL'.
ENDFORM. " ALV_LAYOUT
*& Form list_selectoptions
List Selections
FORM list_selectoptions. "#EC CALLED
FIELD-SYMBOLS:
TYPE rsparams.
DATA:
lt_textpool TYPE TABLE OF textpool,
lt_rsparams TYPE TABLE OF rsparams,
lv_printline TYPE text1024,
lv_repid TYPE syrepid.
lv_repid = sy-repid.
Werte der Select-Options besorgen
CALL FUNCTION 'RS_REFRESH_FROM_SELECTOPTIONS'
EXPORTING
curr_report = lv_repid
IMPORTING
SP =
TABLES
selection_table = lt_rsparams
EXCEPTIONS
not_found = 1
no_report = 2
OTHERS = 3
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
Texte aus Textpool besorgen
READ TEXTPOOL lv_repid INTO lt_textpool LANGUAGE sy-langu.
DELETE lt_textpool WHERE NOT id = 'S'. " Selection screen only
Anzeigen
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
ULINE.
Überschrift
WRITE: / sy-vline,text-004, lv_repid,
text-005,sy-datum, sy-uzeit,AT sy-linsz sy-vline.
ULINE.
Parametertabelle sortieren nach Ordnung auf Screen
Nur das ausgeben, was auch ausgefüllt/angekreuzt ist
DELETE lt_rsparams WHERE ( low IS INITIAL AND high IS INITIAL ).
PERFORM sort_screen_params CHANGING lt_rsparams.
LOOP AT lt_rsparams ASSIGNING .
CHECK:
sy-subrc = 0.
lv_printline(1) = sy-vline.
lv_printline2(40) = <textpool>-entry8(40).
lv_printline+44(1) = sy-vline.
lv_printline+46(1) = .
ULINE.
SKIP.
ENDFORM. " list_selectoptions
*& Form sort_screen_params
Sort Parameter table according to Screen position
FORM sort_screen_params
CHANGING pt_rsparams TYPE rsparams_tt.
DATA:
lv_repid TYPE sy-repid,
lt_dynp_fields TYPE TABLE OF rsdcf,
lt_lines TYPE TABLE OF tline,
lt_rsparams TYPE TABLE OF rsparams.
FIELD-SYMBOLS:
TYPE rsdcf.
lv_repid = sy-repid.
CALL FUNCTION 'DYNPRO_FIELD_GET'
EXPORTING
dynpro = gv_dynnr
FLG_CHECK = '1'
FLG_CONTROL = '0'
LANGU = SY-LANGU
program = lv_repid
TABLES
dynp_fields = lt_dynp_fields
lines = lt_lines
lines =
EXCEPTIONS
dynpro_not_found = 1
OTHERS = 2.
IF sy-subrc .
pt_rsparams = lt_rsparams.
ENDFORM. " sort_screen_params
*& Form ALV_TOP_OF_PAGE
Out Standard page header
Process Statistics ahead
ALV herself writes column headers
FORM alv_top_of_page. "#EC CALLED
DATA:
lv_len TYPE syfdpos,
lv_txt TYPE sylisel,
lv_datxt TYPE sylisel,
lv_uztxt TYPE sylisel,
lv_pagno_pos TYPE syfdpos.
lv_pagno_pos = sy-linsz - 6.
WRITE: sy-datum TO lv_datxt, sy-uzeit TO lv_uztxt.
FORMAT COLOR COL_HEADING.
ULINE.
CONCATENATE
sy-sysid sy-mandt sy-repid sy-uname lv_datxt lv_uztxt
INTO lv_txt SEPARATED BY space.
lv_len = STRLEN( lv_txt ).
WRITE: / sy-vline,
'System-Client-Program-User-Date-Time:'(002),
AT (lv_len) lv_txt,
AT lv_pagno_pos(6) sy-pagno NO-SIGN,
AT sy-linsz sy-vline,
AT sy-linsz sy-vline.
ULINE AT (sy-linsz).
FORMAT COLOR COL_NORMAL.
IF p_eval IS INITIAL.
FORMAT COLOR COL_NEGATIVE.
WRITE:
/ sy-vline,'Production run with database update'(006),
AT sy-linsz sy-vline.
ELSE.
FORMAT COLOR COL_POSITIVE.
WRITE:
/ sy-vline,
'Test run without database update'(007),
AT sy-linsz sy-vline.
ENDIF." p_test is initial.
FORMAT COLOR COL_HEADING INTENSIFIED OFF.
WRITE: / sy-vline,
'ECCS aggregation and reconciliation postings'(005),
AT sy-linsz sy-vline.
ULINE AT (sy-linsz).
ENDFORM." alv_top_of_page
*& Form ALV_PF_STATUS_SET
set ALV user status
FORM alv_pf_status_set CHANGING pt_extab TYPE slis_t_extab."#EC CALLED
APPEND '&NFO' TO pt_extab.
SET PF-STATUS 'STANDARD_FULLSCREEN' EXCLUDING pt_extab.
ENDFORM." ALV__PF_STATUS_SET
*& Form alv_user_command
double-click functions
FORM alv_user_command
USING pv_ucomm TYPE sy-ucomm
ps_selfield TYPE slis_selfield."#EC CALLED
CASE pv_ucomm.
WHEN '&IC1'.
PERFORM alv_double_click
USING pv_ucomm
ps_selfield.
WHEN 'INFO'.
PERFORM alv_info
USING pv_ucomm
ps_selfield.
ENDCASE." pv_ucomm.
ENDFORM. " alv_user_command
*& Form alv_print
Print options
FORM alv_print CHANGING ps_print TYPE slis_print_alv.
ps_print-no_print_selinfos = 'X'.
ps_print-no_print_listinfos = c_true.
ENDFORM. " alv_print
*& Form alv_grid_settings
FORM alv_grid_settings CHANGING ps_glay TYPE lvc_s_glay.
ps_glay-coll_top_p = c_true.
ps_glay-coll_end_l = c_true.
ENDFORM. " alv_grid_settings
*& Form alv_color
set field color
FORM alv_color USING pv_fieldname TYPE fieldname
pv_color TYPE c
pv_intensify TYPE i
pv_inverse TYPE i
CHANGING pt_colors TYPE slis_t_specialcol_alv.
DATA:
ls_colors TYPE LINE OF slis_t_specialcol_alv.
READ TABLE pt_colors TRANSPORTING NO FIELDS WITH KEY
fieldname = pv_fieldname
color-col = pv_color
color-int = pv_intensify
color-inv = pv_inverse
BINARY SEARCH.
CHECK sy-subrc <> 0.
ls_colors-fieldname = pv_fieldname.
ls_colors-color-col = pv_color.
ls_colors-color-int = pv_intensify.
ls_colors-color-inv = pv_inverse.
INSERT ls_colors INTO pt_colors INDEX sy-tabix.
ENDFORM. "alv_color
*& Form getfields
get fieldnames for table or structure
FORM getfields
USING px_data TYPE any
CHANGING pt_fields TYPE table.
DATA:
lt_comp TYPE abap_compdescr_tab,
lr_dat TYPE RE -
Vendor balance differencess urgent
Hi Sap gurus,
In our company we r facing one problem
For year end closing actives one is carriforworded balances last year to this yaear.
all vendors balancess is correct but one vendor balance is in correct
The problem is last year balnce is 60 rs that balance we carri forwordeed to this year
but it displaying wrong balance 48120 but here one mistery is there when ever we double click this 48120 the total amount is showing 60 rs
for this problem any one having solution or sap note plz explain me
for good answer i will assign points
Thanks
Jyotsna
Edited by: jyotsna devi on May 23, 2008 8:02 AMHi
SAP Note 637554 is not dependant on any patch level, hence you can check this note once, whereas the chances of this note solving your problem is remote.
Also I hope you would have checked the closing balance of last year for this account and satify that it is 60 only.
Also refer SAP 402917.
If in vain, I feel that you better create a OSS message with SAP.
Regards -
Issue in F.08 GL Account Balances
Dear All
I am using t-code F.08 GL Account Balances.
But I am not getting balances of some of the GL Accounts. ALthough when I execute FBL3N, that " Missing" GL Account is showing a balance. But in F.08 no such GL is shown.
Please advice.
Thanks & Regards
KanwaljitHi
It may be due to many reasons like some authorization were missing, input parameters are wrong, balance transfer not done from the previous year, etc.
Please cross verify the balance of FBL3N with FS10N too.
Regards -
Customer balance report - S_ALR_87012172
Hi sap gurus, I searched forum but I couldn't get enough knowledge. how does S_ALR_87012172 calculate customer's balance value? based on posting date, clearing date, document date or other date? I'm checking with fbl5n but balances are different.as I understand, other sap users have same problem but there isn't clear information.
difference between the balance of FBL5N and the balance of S_ALR_87012172
Difference between FBL5N & S_ALR_87012172
S_ALR_87012172 when compared with FBL5N does not reconcile
diff in customer balance in the report S_ALR_87012172 & fbl5nHello,
You don't need to check clearing date.
Please select data from BSID and BSAD less equal to key date. Is it equal to total balance report?
You can balance report per each customer, I think you can check it for wrong balance's customer.
Please share result to me.
Regards,
Burak -
Hi Gurus,
we are testing DSO-analysis in TAC S_ALR_87012167 and unfortunately we receive by using the drilldown wrong balance for AR line items (FBL5).
Report RFDRRSEL was setup to select open items by 31.01.2012 and provide us various DSO-groupings (e.g. by KNA1-BRAN1). When we drill down to AR-line items SAP (by FBL5) provides wrong balance (e.g. open by 16.02.2012). Therefore balance used for DSO-calculation does not tie to the one in DSO-drilldown to AR-line items.
Is there any solution in order to set parameters for drilldown to receive AR open items which fit to selection of RFDRRSEL???
Thanks for your reply.
BR, BerndHi AA
refer this link where in I have given the screen shots
http://img233.imageshack.us/g/86081486.jpg/
The 1st screen shot is COPY of the Std Form
The 2nd scren shot shows how to add new interval
Br, Ajay M -
Dear All,
I am trying to build a Trial Balance in Crystal report using the followings SQL Query as under :
SELECT T1.[TransId], T1.[Line_ID], T1.[Account], T0.[AcctName], T0.[GroupMask], T1.[Debit], T1.[Credit], T1.[FinncPriod], T1.[RefDate] FROM OACT T0 INNER JOIN JDT1 T1 ON T0.AcctCode = T1.Account
To a very much extent I am able to extract the correct data for the financial period. Now I also want a column of Opening balance to be shown in this report.
For example if I run the report for monthly basis the following should be shown :
Opening Balance Debit Credit Closing Balance
hence if suppose I run the report from 1st August 2009 to 31st August 2009 my report is generating wrong balances as closing balance of 31st June 2009 is not reflected in the report but the debit and credit balance is showing correct for the said period.
Do I need to create some formula in Crystal Report or is there a way to modify the above SQL query.
Any early response would be appreciated.
Regards,
Kamleshhi kamlesh,
Why you are going for crystal reports ?
Standard report seems to fulfill your requirement Financial Reports ---> Trial Balance.
Check this link
How to get opening balance of a g/l account using query ?
It will give you idea how to get opening & closing balances.
Hope it helps.
Jeyakanthan -
Balances Carry Forward.
Dear Folks,
I had carry forwarded the balances of last fiscal year to this fiscal year. Later by mistake i had carry forwarded my balances to last year. now my balance sheet is showing wrong balances.
(i.e. our fiscal year is reporting year. currently we are using 2009 as fiscal year. i had carry forwarded balances from 2008 to 2009. Again by mistake i had given the year 2008(where i should give 2009) in the field carry forward to fiscal year in T.Code FAGLGVTR.)
So now how to rectify this problem. Its very very urgent.
Thanks& Regards,
Vikas.By any chance is there any process to reverse the balances which were carried forwarded...?
Thanks& Regards,
Vikas. -
BP opening balance modification
Hi All,
All the vendor opening balances which were taken as +ve, needs to be taken as -ve and vice versa...What will be the best possible option for the same?
Regards,
RupaHi Rupa...
I guess most convenient way of feeding Opening balance is through DTW. Incase if you entered wrong balances then you can reverse it too via DTW.
Else if you want to go manually then you can do it from Administration> System Initialisation> Opening Balance--> BP Balances.
For 1. Ex. Customer ABC = +1200 Dr. As Opening Balance which is put wrongly and if Final balance is +1220 Dr. then you can add 20 Dr. so that it becomes +1220 Dr.
2. Ex. Customer ABC = +1200 Dr. As Opening Balance which is put wrongly and if Final balance is +1190 Dr. then you can add -10 Dr. so that it becomes +1190 Dr.
Regards,
Rahul
Maybe you are looking for
-
How to show an error Page in Weblogic when the server is down
Hi , I heard that every container has the facility to show an error page when the server is down and (when the request has arrived at that time ). Please tell me how to configure this in BEA weblogic ?? Thanks .
-
Navigation between different componets in IC Web Client for CRM 7.0
Once the user click save button in component ICCMP_BT_BUTTON I need to navigate to component ICCMP_BT_SVO that displays the Service Order Data and display the new Service Request that was created. How can I do navigation between different componets i
-
Soundblaster Audigy 2NX External Sound Card Fidelity Degradat
I get a muted, out of phase, tinny sound along with the music being played; sounds ok for a while then this happens regurlarly. Closing player & reopening stops the problem temporarily but recurs. I've uinstalled/reinstalled software & updated as wel
-
Import Export value of enhanced search help
Hi i have created an elementary search help and inserted in VMVA which is standard search help for Sales order selection. its working properly but when i select the value it doesn't pass to vbeln on va02 tcode kindly help me in this regard . did i n
-
USB727 Windows 7 x64 Blue Screen of Death BSOD
Hi, Every time I use my Verizon USB727 on Windows 7 x64, after removing, when I try and suspend (sleep) my laptop I get a BSOD. I have a Lenovo T500. I am running in NDIS mode. This worked great under Vista x32. If I shutdown my laptop before removin