Opening balance very urgent....
Hi Experts,
Plese could anyone give me logic for How to calculate Opening balance and Closing balance for perticular period?
Thanks in Advance...
sudha.
Hi sudha,
For opening balance calculate data till the given date ( low_date) that is one date before your given date store value in one internal table
and after calculating opening balance .
calculate data from low to high date
and store in other internal table
now u have opening balance and closing balance.
Similar Messages
-
Error while opening a module. plz help me, very urgent.
when i try to open a module, the following error message appears on my screen.
" no j2ee component found in d:\krisp\programs\servlets".
i've installed bea in c: drive and my servlet program is in d: drive.
plz help me, it's very urgent.Can you provide some more information? What were you doing when this happened?
Can you post the entire error message?
-- Rob
WLS Blog http://dev2dev.bea.com/blog/rwoollen/ -
Open items for purchase order its very urgent
hi
my requirement is to write extract program for purchase order(me21) to extract only open items.
please provide sample code its very urgent.
thanks in advance.
points will be rewarded.
thanks
hari prasad reddycheck the below report :
REPORT ZMM_OPEN_PO_REPORT no standard page heading
line-size 255
message-id zwave.
======================================================================
Program Name : ZMM_OPEN_PO_REPORT *
Description : This report displays all Open PO Items and output *
would be PO Number,Material number and so on *
Author : Seshu *
Date : 01/24/2007 *
MODIFICATION HISTORY *
DATE | AUTHOR | CHANGE # | DESCRIPTION OF MODIFICATION *
--|||--
01/24/07| Seshu | DEVK921979 | Initial *
D A T A D E C L A R A T I O N P A R T ***
type-pools
type-pools : slis.
Tables
tables : ekko, " Purchase order Header
ekpo, " Purchase order Item
marc. " Material with Plant data
Internal table for output.
data : begin of i_output occurs 0,
ebeln like ekko-ebeln,
matnr like ekpo-matnr,
end of i_output.
ALV Data declaration.
data : v_repid like sy-repid.
ALV Function Module Variables
DATA: gs_layout type slis_layout_alv,
g_exit_caused_by_caller,
gs_exit_caused_by_user type slis_exit_by_user.
DATA: gt_fieldcat type slis_t_fieldcat_alv,
gs_print type slis_print_alv,
gt_events type slis_t_event,
gt_list_top_of_page type slis_t_listheader,
g_status_set type slis_formname value 'PF_STATUS_SET',
g_user_command type slis_formname value 'USER_COMMAND',
g_top_of_page type slis_formname value 'TOP_OF_PAGE',
g_top_of_list type slis_formname value 'TOP_OF_LIST',
g_end_of_list type slis_formname value 'END_OF_LIST',
g_variant LIKE disvariant,
g_save(1) TYPE c,
g_tabname_header TYPE slis_tabname,
g_tabname_item TYPE slis_tabname,
g_exit(1) TYPE c,
gx_variant LIKE disvariant.
data : gr_layout_bck type slis_layout_alv.
Ranges
ranges r_eindt for eket-eindt.
initialization.
v_repid = sy-repid.
start-of-selection.
Get the data from EKKO ,EKPO and MARC Table
perform get_data_tables.
end-of-selection.
display the data in the form of ALV
perform display_data.
*& Form get_data_tables
Get the data from EKKO,EKPO and MARC Table
FORM get_data_tables.
clear : i_output.
refresh : i_output.
fill the dates in ranges
r_eindt-low = sy-datum - 7.
r_eindt-high = sy-datum + 14.
r_eindt-option = 'BT'.
r_eindt-sign = 'I'.
append r_eindt.
Get the data from EKKO,EKPO and EKET Tables
select aebeln bmatnr into table i_output
from ekko as a inner join
ekpo as b on aebeln = bebeln
inner join marc as c on cmatnr = bmatnr
inner join mara as d on dmatnr = bmatnr
inner join eket as e on eebeln = aebeln
and eebelp = bebelp
where c~beskz = 'E'
and c~werks = '1000'
and d~mtart = 'FERT'
and b~loekz = space
and b~elikz = space
and e~eindt in r_eindt.
if sy-subrc ne 0.
message e000(zwave) with 'No open purchase order found'.
endif.
ENDFORM. " get_data_tables
*& Form display_data
text
FORM display_data.
Fill the Fiedlcat
PERFORM fieldcat_init using gt_fieldcat[].
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_INTERFACE_CHECK = ' '
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE = ' '
I_CALLBACK_PROGRAM = v_repid
I_CALLBACK_PF_STATUS_SET = ' '
I_CALLBACK_USER_COMMAND = g_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 =
I_GRID_SETTINGS =
IS_LAYOUT = gr_layout_bck
IT_FIELDCAT = gt_fieldcat[]
IT_EXCLUDING =
IT_SPECIAL_GROUPS =
IT_SORT =
IT_FILTER =
IS_SEL_HIDE =
I_DEFAULT = 'X'
I_SAVE = g_save
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
IT_ALV_GRAPHICS =
IT_ADD_FIELDCAT =
IT_HYPERLINK =
I_HTML_HEIGHT_TOP =
I_HTML_HEIGHT_END =
IT_EXCEPT_QINFO =
IMPORTING
E_EXIT_CAUSED_BY_CALLER =
ES_EXIT_CAUSED_BY_USER =
TABLES
T_OUTTAB = i_output
EXCEPTIONS
PROGRAM_ERROR = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM. " display_data
*& Form fieldcat_init
text
-->P_GT_FIELDCAT[] text
FORM fieldcat_init USING e01_lt_fieldcat type slis_t_fieldcat_alv.
DATA: LS_FIELDCAT TYPE SLIS_FIELDCAT_ALV.
Purchase order number
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'EBELN'.
LS_FIELDCAT-ref_fieldname = 'EBELN'.
LS_FIELDCAT-ref_tabname = 'EKKO'.
LS_FIELDCAT-TABNAME = 'I_OUTPUT'.
ls_fieldcat-seltext_L = 'Purchase Order'.
ls_fieldcat-seltext_M = 'Purchase Order'.
ls_fieldcat-seltext_S = 'Purchase Order'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
Material #
CLEAR LS_FIELDCAT.
LS_FIELDCAT-FIELDNAME = 'MATNR'.
LS_FIELDCAT-ref_fieldname = 'MATNR'.
LS_FIELDCAT-ref_tabname = 'EKPO'.
LS_FIELDCAT-TABNAME = 'I_OUTPUT'.
ls_fieldcat-seltext_L = 'Material'.
ls_fieldcat-seltext_M = 'Material'.
ls_fieldcat-seltext_S = 'Material'.
APPEND LS_FIELDCAT TO E01_LT_FIELDCAT.
ENDFORM. " fieldcat_init -
Hi,
How do i get opening balance and closing balances in reports?
where i have the time chars 0fiscper3 and 0fiscyear and the values for the 0fiscper3 are 1 to 16.
Thanks,
Venu.Hi venu,
this is sudharsan, working on abap, here i have seen that u have worked on that, printing Opening and closing balance for GL a/c,
i got the same requirment, so could u plz help me that if u have a solution. it is very urgent for me..
my id is: [email protected]
regards,
sudharsan. -
Opening balance of GL a/c and period
hi experts,
i want to find the opening balance one day before for my GL a/c of my selection screen date entry.
example - if i enter 1.4.07 in the selection screen, i should get the closing balance of 30.3.97, closing balance of 30.3.07 will be the opening balance of 1.4.07.
i have gone through threads, they have used some words as CKF and RF, iam new to abap, plz help me the definitions, and give me the solutions for the above in details.
its very urgent
thanks in advance
maayaHi Maaya,
Good!
Use the Function module RE_LAST_DAY_OF_MONTH to get the closing date for u r case ...1.4.07 it will give u 30.3.07
Regards,
Sunil -
HOW TO CALCULATE OPENNING BALANCE
HI Experts..
How to calculate Opening balance for previous period using variables in Reports using debit and credit.
Example:
Opening balance is the balance for an account for the previous period. In other words, if the user is running a report for Period 1, 2006, the opening balance is actually the ending balance from Period 12, 2005 (December 31st, 2005).
I am Using 0FIAR_O03 ODS ..
Very Urgent Issue..
If Possible Stp by Step..
Cheers
Purushottam
09891683828
[email protected]Hi Saloni,
to get the debit and credit you would be using a variable 0I_FPER(Fiscal year / period), which is a user entry interval variable.
now to get the opening balance you will have to create a customer exit valiable and the low value of 0I_FPER will have to popuplated by writied the code for the customer exit valiable. you will have to restrict the key figure DEB_CRE_LC for this customer exit variable with the operand as less than(< Fiscal Year /Period from 0I_FPER)).
If the above was useful please assign reward points.
Regards
Venkata Devaraj -
How to calculate Opening Balance / How to Enhance 0FI_AR_6 DS
Hi FI Experts,
I need Opening Balance in my BI report,
I am using 0FI_AR_6 DS , I have loaded data to CUBE, loaded Successfully.
In this Data Source I need G/L Account Number and Terms of Payment (Payment Terms)
I wrote the User Exit for this , then I check in RSA3, data is populating for those two fields.
When I Try to load the data in to BI, it is not loading , it is showing Request is still Running , records it is showing zero 0.
If I remove the user exit , data is loading fine.
My requirement is to calculate Opening Balance,
First I used 0FI_AR_4 DS , but I am not getting Accumulated Balance here, then I use the DS 0FI_AR_6 it have Accumulated Balance field but in this DS I dont have G/L Account Number and Terms of Payment (Payment Terms)
Its very urgent , we are in UAT stage
Need some inputs to resolve this..
Thanks & Regards,
SHAIK
Edited by: shaik on Jan 16, 2008 10:55 AMHey Shaik,
Why you are using AR extractors to get the G/L account opening balance ? As i understand the AR accounts post to a limited G/L account (known as the recon accounts) and it will not extract all the G/L accounts in the first place. So even if you manage to get the opening balance, AR extractors will not give you all the G/L accounts opening balance. If you need to get the opening balance for the G/L accounts then you need to look at G/L extractors.
For the AR extractors what is your extraction period range ? Have you included period '000' for your extraction ?
Hope it helps.
Thanks,
Soumya -
Hi Experts,
Is there any BAPI or Function Module to find Openning balance based on fiscal year, company code, GL account and cost center.
Thanks In Advance.
Regards,
Praveen.Hi praveen kumar,
this is sudharsan, working on abap, here i have an urgrnt requirement, that i want to display, Opening and closing balance for given GL a/c, comp code and fiscal year.
could u plz give me the solution, it is very urgent for me.
my id is : [email protected]
regards,
sudharsan. -
CAN ANY BODY EXPLAIN THESE QUESTIONS, VERY URGENT
WHAT IS THE USE OF CHAPTER ID, IN CHAPTER ID RATES WILL BE DETERMINES.
HOW MANY TAX CODES NEED CST, LST.
WHERE CAN I SEE EXCISE REGISTER
WHAT IS MEANT BY RG1 CAN ANY BODY EXPLAIN BRIEFLY, WHAT IS THE USE OF RG1
HOW DO I GET OPENING BALANCE FOR EVERY MONTH.
IN DEPOT SALES, IF CREATING EXCISE INVOICE A CERTIFICATED WILL ISSUE, IN A CERTIFICATE WHICH FIELDS WILL BE THERE.
WHAT IS MEANT BY JURISDICTION CODE & COUNTY CODE.
IN SD FACTORY SALES WHICH A/C ENTERIES GENERATED.
CAN ANY BODY EXPLAIN THESE FORMS, WHICH SITUATION THESE FORMS WE ARE USING. I NEED VERY URGENT.
a) A form
b) D form
c) C form
d) H form
e) DDP form
f) TR6 form
g) D3 form.
H) ARE.
I) ARE 1
j) ARE 2
IN DEPOT SALES PRICING PROCEDURE JFACT, WHICH CONDITION TYPES WILL COME,
IN FACTORY SALES PRICING PROCEDURE JFACT, WHICH CONDITION TYPES WILL COME
NOW WHAT IS THE VAT TAX.
what is the use of common distribution channel and common divisions
PLS FORWARD ANSWERS TO THIS MAIL ID.
i hope that definitely people will help
thanks every body.Dear vara prasad
You can take it for granted if you post so much questions in one thread like this, nobody will answer / clarify you.
So please make one thread per question.
Meanwhile, just I would like to clarify for few questions
1) The most important feature of chapter id is that based on this chapter id which you maintain in "Excise Tax Rate", all your excise tax rates will be flowing into your sale order / billing
2) If the rate of tax differs, then you need to maintain a separate tax code. For example, the LST / VAT in some state is 4%, and in some state it is 12%. So in this case, you need to maintain two tax codes
thanks
G. Lakshmipathi -
Vendor Line Item Upolad Without TDS Portion -- very urgent
Hi Peers
I want to upload the vendor Line Items. If my Vendor is a TDS Vendor then , the system is calculating TDS even for Initial Upload. Is there anyway by which i can bypass this. Plz help. Its very urgent.
Regards
RajaramDear Rajaram,
Do not upload vendor open balances with TDS master updated. System is calculating TDS coz u have first updated TDS master in vendor master with liable tick on it.
The process should be as:
1. First upload vendor open items thru program
2. Then upload TDS master with liable tick .
Doing this system will start calculating TDS on future invoices. Now go to T code MASS, select Vendors under it , & deactivate liable from each master record.And then upload the balance.
Regards,
Ajay Gupte -
Table name of Customer opening balance & Closing balance
Hi Gurus.,
I want to know the tables in to which the customers opening balance and closing balance is posted,
VERY VERY URGENT
Thanks & Regards
Narayana
Message was edited by:
manam narayanaHi Manam,
You cann't find opening/ closing balance in any table.
T. Code for opening/closing baloance is FBL5N.
SAP calculate opening/closing balance by using table BSID (Open items) and BSAD (Closed items).
Regards.
PS: Assign points if useful. -
Very urgent, vendor down payment clearing - ka doc type
hello gurus,
while clearing vendor down payment, some down payment entries are posted as ka doc type. now i have to clear the invoice down payment with the ka doc type. how to do this.
for retention account we booked in special G now that retention money also paid but that doc is not showing as cleared. still it showing in red colour. but balance is nill. what to do for this..
can anybody help me very urgent friends
thanks
jayaHI ,
CHECK THI SPROCEDURE ,
DOWN PAYMENT;
Vendor A/C--a DR1
TO Bank
Invoice;
Expence a/c dr
to Vendor----
2
down payment clear:
Vendor A/C-----Adr -
3
to Vendor a/c----4.
Hi once you do the Down payment clearing only 1 & 3 line items will be cleared.
but 2&4 line items will show as open items .
This line items you have to clear .Clear this in F-44.
CHANDRA -
Hi Friends
I m working on RG1 Register report but I Cant get the Opening Balance of perticular date,where can i get that?
in which table or T-code should i get that.
Its very Urgent.
thanks in advance.
Regards
Vinod.hi vonod,
you can go thru this code for rg1 opening balance
FORM get_opening_stock.
g_op_bal = 0.
select distinct amblnr amjahr a~zeile
ashkzg amenge a~dmbtr
a~bwart
into corresponding fields of i_open
from mseg as A inner join mkpf as B
on amjahr = bmjahr
and amblnr = bmblnr
where b~budat < s_budat-low
and a~werks = p_WERKS
and a~matnr = i_mara-matnr.
if i_open-shkzg = 'S'.
g_op_bal = g_op_bal + i_open-menge.
elseif i_open-shkzg = 'H'.
g_op_bal = g_op_bal - i_open-menge.
endif.
endselect.
ENDFORM.
raj -
Change in material prices- very urgent
Dear Gurus
We have a very urgent issue to be resolved,
we have a situation where in we are finding a huge difference in the inventories posted in SAP to that of the legacy data for a particular month(JUNE) these inventories where first initially uploaded according to the data given by the client.
But the client has later realised that the price given for the materials was including Excise Duties, thats the reason there is a huge difference in the inventories.
The MM period for June was closed and july was opened, then the client wanted us to change the prices to the original rates that is without ED. so we have run MR21 as on 1st of july. even then the changed prices where not seen in Material
master.
Now the client is insisting on getiing the JUNE inventories exactly matching with legacy.
Note: The july transactions are already running online i.e all PO's have been closed for JULY but the PRoduction orders are still in pending.
In this kind of situation how can we get those inventories back correctly(for JUNE month).
Solution will definately be rewarded.
Thank you in advance
kavithaIf GRs have been done for POs already in July, you should not change the prices for June.
In such a scenario, one option is to have stock accounts with Credit balances (a purely FI entry) which will bring the value of the inventory down in the books.
Another option is to calculate the value manually for each material - i.e. the correct value (uploaded) and the PO Prices and do an MR21 to correct the stock value. This is the ideal solution but may not be practical to implement.
Hope this helps,
Lakshman -
Debit,credit ,opening balance,closing balance..doubt.
Dear friends,
I am working in FI report (vendor balance for date ranges) .Its a ALV report. I want to fetch the datas for debit ,
credit,opening balance,closing balance,for the paticular vendor or all vendors for date ranges.the table for this iam using is BSIK AND LFC1.
all the datas stored in the table is for month wise,but my programe (my user needs even for day wise) how to calculate this,
or is there any function modules avaliable or can u konw any other table storing day wise balances...this report is urgent ..
any one pls suggest me .advance thanks..
regards
veeraif user wants day wise then make use of BSAK+BSIK, here u will get all line items daywise , i mean to say Posting daywise.
BUDAT 31.03.2003---->posting date
BLDAT 31.03.2003
CPUDT 31.03.2003
WAERS INR
XBLNR T&E-29-30.3-PNPT
BLART PA
MONAT 3
BSCHL 31
ZUMSK
SHKZG H------------>D/C
GSBER--------------------->Business Area
MWSKZ-------------------->tax Code.
DMBTR 1,507.00
WRBTR 1,507.00
regards
Prabhu
Maybe you are looking for
-
Mat doc not getting updated in AFRU table
Hi All, While doing the confirmation cancellation for the rework order the referance material document is not getting updated in the AFRU table. The referance operation set is used for the rework production order and there are no component assign
-
The data in excel plat file is as fallows so prameters can i use
i have the records in excel flatile as falloes so please guide me in gui_upload which parameters should be used if the data in platfile is as fallows means field separator like that allstuff VVS0025426000000241020071122ZA695434 000002942541.000
-
Dear All , Here i am creating the Po in ME21n for Acct Assignmrnt category : K (cost center ). I should not be able to enter here Cost center of other Plant . How to see the authorization Object for the same Field to Restrict ? Pl guide
-
HT1296 How do I pull up photos and texts messages from my old iphone if i dont have it anymore
How do i pull up old photos and text messages from an iphone I no longer have
-
Photoshop 5.1 files not saving to server. Permission Error
I just started to install Mac OS 10.10 on some test user's Mac computers here at work. I had done a clean install using Casper Suite to image and built the packages. I upgraded Three Mac and had to stop. All three users are having the same proble