FM for an interesting calculation
Hi all,
is there a fm or an idea for the following challange:
for example:
Delivery: Quantity: 5000
Internal table:
Qualitty 1: Matnr xyz Quantity 103
Matnr xyz Quantity 350
Matnr xyz Quantity 4023
Quality 2: Matnr xyz Quantity 200
Matnr xyz Quantity 300
Matnr xyz Quantity 150
Now i need 20% of quality 1 and 80% of quality 2.
What is the best combination of quality 1 to reach the 20% of 5000 pieces?
Any ideas?
regards
Found a solution by myself
Similar Messages
-
Item Interest Calculation for partially cleared items
Hi
We need to do interest calculation on Customer Line Items. The T Code we are using is FINT. We have set an interest indicator for Item Interest Calculation, with Interest Calculation based on Items Cleared with Payments. The requirement is that Interest should be calculated on even partially cleared items. Suppose a customer invoice is generated on 1.1.2009 for INR 100000 and becomes due for payment on 30.1.2009. Now on 10.2.2009, a partial payment is recieved against this invoice for INR 30000. System should calculate interest on INR 30000 for 11 days. Now again on 20.2.2009, remaining payment of INR 70000 is recieved. In such a case, interest should be calculated on INR 70000 for 21 days @ 1.25% PM. In the current configuration, when we define that system should calculate interest on Open Items cleared with payments, system calculates interest on INR 100000 for 1.25% for 21 days. Pls suggest.
Regards
Sanil BhandariHi u can check all below steps with specific fields i thought it is working perfectly check it.
1. Define Interest Calculation Types
here u can enter int rate type as a "S" Balance interest calculation
2. Prepare Account Balance Interest Calculation
here u can enter int calculation frequency means monthly or quarterly etc. calander type G, select balance plu int check box
3. Define Reference Interest Rates
Here u can enter date currency
4. Define Time-Dependent Terms
here u can enter currency effective from date sequential number term (Debit interest: balance interest calc. or Credit interest: balance interest calc.) referance int rate enter before step what u r defined that one u can enter here.
5. Enter Interest Values
here u can enter interest rate for that referance int type
6. Prepare G/L Account Balance Interest Calculation
Here u can enter ur g/l accounts
0001 Interest received (int received a/c)
0002 Interest paid (int paid a/c)
0011 Pt vl.min.int.earned(int received a/c)
0012 Pst vl.min.int.paid(int paid a/c)
0013 Pst vl.dt.int.earned(int received a/c)
0014 Past val.dt.int.paid(int paid a/c)
0015 Calc.per.int.earned(int received a/c)
0016 Calc.period int.paid(int paid a/c)
1000 G/L account (earned)(Loan giving a/c)
2000 G/L account (paid) (Loan taking a/c)
after that u can post transaction execute ur transaction code i thought it is helpful for u
Regards,
Nauma. -
FSCM-CR: Automatical Interest Calculation for Late Payments
Hi all,
Do you guys know if there is a standard functionality ( on SAP Collections Management or in SAP Credit Management) for automatical interest calculation for the customers late payments ?
Our client is on FINBASIS 6.00
Thanks in advance.
Best Regards.Hi,
It will not be possible to post from Collections management as it would in general not be done by receivables team.
However, interest on arrears is a standard function available in Financial Accounting itself. Maybe you can use them for your requirement.
Regards,
Ravi -
Interest calculation on bank loan
Hi guru,
we have taken long term loan from 10 banks.we have to calculate interest on loan from each bank.we have maintained each bank loan a/c as a vendor.As we know the procedure as given by sap for balance interest calculation will be followed here.is it correct or not.one more doubt is whether treating each loan a/c as a vendor is correct or not.
Thanks
shivajiHi,
Here you need Balance interest calculation.
Balance interest calculation used for bank loans. It calculate GL balance only
it will take particular period and need to configure document type SA.
Item interest calculation used for item wise calculations like vendor wise and customer wise. It depends on payment terms and in this GL accounts Select open item management.
I hope it is cleared.
Thanks & Regards,
Haribabu Bodapudi -
Interest calculation on bank cash credit account
Hi All
My requirement is to calculate interest on cash credit account in
bank . The interest is charged as for e.g 10% on any withdrawals above
10000 and 12% on any withdrawals above 15000 . Whre to set this limit ?
How will this cycle be done and will it be posted to GLs by this interest
calculation run or can it be used just for information purpose to cross
check the interest calculated by the bank ?
Please respond .There are two defined interest calculation types in the SAP
system.
1. Balance interest calculation.
2. Item interest calculation.
System defined variant for balance interest calculation type
is u2018Su2019 and item interest calculation type is u2018Pu2019. Balance
interest type calculation is used for G L Accounts. Item
interest type calculation is used for vendors and customers.
To display all transaction codes:
Go to t.code:SE16
Table name: TSTC
Keep blank maximum number of hits.
Total transaction codes in SAP 70837.
The following steps are involved in interest calculation.
1. Define interest calculation types (OB46)
2. Prepare account balance interest calculation (OBAA)
3. Define reference interest rate (OBAC)
4. Define time dependent terms (OB81)
5. Enter interest values (OB83)
6. Creation of G L Accounts (FS00)
7. Define automatic posting (OBV2)
8. Entry for loan (F-02)
9. Interest calculation run (F.52) -
Interest Calculation on customer balance
Hi
I need to calculate interest on customer overdues (on net balance after deducting advance received from there).
There are three types of interest calculation:
1. Balance interest calculation
2. Item Interest Calculation
3. Arrears Interest
Please let me know which one i need to select for the same.Hi Deepak,
I will provide you some information about this matter:
Please, notice that the program RFINTITAR (tr. FINT) isn't used for balance interest calculation. It is used for customer overdue item interest calculation. Please check the documentation available for this program. I believe that this is the option that you should use.
In case of Special G/L transactions:
Check IMG- Financial Accounting (New)- Accounts Receivable and Account Payable- Business transactions-
Interest calculation - Prepare special G/L transaction interest calculation.
As described in the documentation of the customizing node, the assigning of new interest indicators according to the special G/L transaction is evaluated by balance interest calculation only.
Please see the documentation:
"In this step, you define an alternative interest indicator for special G/L transactions. The specifications only apply to the account balance interest calculation."
I hope that this answer your inquiry.
Best Regards,
Vanessa Barth. -
Interest calculation based on Net Due Date
Hi guys: I want the interest calculation based on net due date and not document date or posting date.
I tried to check the box "ALWAYS CALCULATE INT FROM NET DUE DATE in prepare item interest calculation step, but system gives me message
"Do not select "Calc.intrst from net due date" for this int.calc.type
Message no. F7128"
Here are my questions:
1- how can i make the system to calculate interest only after the item is due for payment - right now its calculating anyday after the document date
2- Is this the correct place in configuration to do this? (ALWAYS CALCULATE INT FROM NET DUE DATE )
3- Also in T code FINT, how can i run interest posting for only one item rather than all that show up in test run? I tried selecting/highlighting only one but it posts all.
thanks much
brianHI,
The system always calculates the interest from the document date of the invoice,
as of my knowledge there is no setting for the interest calculation from the net due date, so
what u need to do is when u are running the open item interest run u specify the period of only the date
from the net due date to required date as of u.
if u want to calculate the interest to paticular invoice and having two invoices
then u can run as per the document date and other thing is u can block the invoice for dunnig.
Regards,
Padma -
Interest calculation procedure in Dunning
How to calculate the Interest in dunning?
What are the steps needed to be configured for the interest calculation for the dunning process?This configuration allows you to charge interest on overdue customer accounts. Interest can be calculated by using the line items or overall account balances. SAP keep tracks of the date of the last interest run and stores it in the customer master record.
First create an Interest Indicator.
OB46 - Interest Settlement Calculation Type
Int Calc. Type
P - calculate interest based on line items.
S - calculate interest based on account balances.
Secornd, make it avaliable to the interest run program.
OB82 - Interest Terms
Third, determine the interest rate that will be used by the calculation.
OBAC - Define Reference Interest Rates
OB83 - Enter the Reference Interest Rates Value
Fourth, assign the interest indicator to the reference interest rate.
OB81 - Define Time Dependent Terms
Finally, determine the how and to which accounts the interest program will post.
OBV1 - Prepare Interest on Arrears Calculation -
Interest Calculation on Open Invoices(Customers)
HI all,
MY client Needs forllowing Configuration any one can send me documentation for automatic interest calculation open invoices for AR module based on aging of the customer i.e. different ageing different percentage.
Configuraton of automatic journal entry for interest calculated.
[email protected]
regards
JKHI!
It's used for Customer Int Calculations.
INTEREST CALCULATIONS
Ob46 Define Interest calculation
Obaa Prepare A/c balance interest calculation
Oba4 Define Reference Interest Rates
Ob81 Define Time Depend term
Ob83 Enter Interest values
F-52 Interest calculation
To give Effect for floating rate of Int
Foreign currency balances revaluation
Ob59 Define valuation methods
regards,
Rup -
What is debit and credit, open item interest calculation??
Dear Members,
What is
1. Debit Interest Calculation?
2. Credit Interest Calculation?
3. Open and Cleard Item Interest Calculation?Hi...
Interest can be calculated on debit balance or credit balance based on AR or AP..
There are two defined interest calculation types in the SAP
system.
1. Balance interest calculation.
2. Item interest calculation.
System defined variant for balance interest calculation type
is u2018Su2019 and item interest calculation type is u2018Pu2019. Balance
interest type calculation is used for G L Accounts. Item
interest type calculation is used for vendors and customers.
Hope you are clear...
Good Luck!!!
Lucid-Mind... -
VendorPayables Over due Interest calculation.
Hi Gurus,
Help needed plzz..
needed to caliculate interest on over due payables. There are net 30 payment terma in the system. if for some reason i entered an invoice with invoice date which is 31days or more behind the current date then i need to caliculate interest on the late payment and show it in a report. Or post to an expence account with the same account assignments as the invoice.
say, current date: 07/03/2007 mm/dd/yyyy
invoice date : 05/15/2007
if net 30 days payable term is applied to the invoice and i entered it on current date i.e the posting date. this invoice will get paid immediately in the next payment run, but before i pay that invoice i would have to include the interest caliculate from 06/15/2007 to 07/05/2007(say my next payment run was on 07/05/2007). this like 18 days over due .
How can i caliculate interest on this one the interest rate to be used is 3% .
Gurus please advice on how i need to set up the interest Indicator and all other stuff. i know where i need to set most of the things in interest cali. config., but i need advice on what settings to make, so that we meet the requirement.
help ......Interest calculation is controlled by settings made in the interest indicator in the master record. You make additional specifications for each interest calculation.
Interest is calculated using the debit interest rate defined for the interest indicator in the system. Credit interest rates are used when interest is being calculated on items paid prior to their due date.
There are different ways to calculate interest:
· To calculate and post interest on only cleared items, in the Accounts Receivable or Accounts Payable menu, choose Periodic Processing ® Interest Calculation ® Arrears ® Without Open Items. The system calculates interest as of the due date for net payment.
· To calculate and post interest on open and cleared items, in the Accounts Receivable or Accounts Payable menu, choose Periodic Processing ® Interest Calculation ® Arrears ® With Open Items. The system calculates interest as of the upper limit date of the last interest run.
· To calculate interest on open and/or cleared items without posting the interest, in the Accounts Receivable or Accounts Payable menu, choose Periodic Processing ® Interest Calculation ® Arrears ® Without Postings. The system calculates interest as of the due date for net payment.
In each of the above cases, the relevant fields have default entries or only the selection criteria required are displayed.
· To calculate interest any other way, in the Accounts Receivable or Accounts Payable menu, choose Periodic Processing ® Interest Calculation ® Arrears ® Free Selections .
For more information about calculating interest on arrears, see the report documentation:
RFDUZI00 Calculation of Interest on Arrears (Customers)
RFKUZI00 Calculation of Interest on Arrears (Vendors)
There are two fields in the company code data area of customer and vendor master records that are relevant for the calculation of interest on arrears:
Interest indic.
The program that calculates interest on arrears uses the interest indicator specified in the customer master record. The most important specifications for the interest calculation run are stored under the interest indicator. They include, for example, rules determining which items are selected for interest calculation and how the interest is calculated.
The interest indicator must be assigned the interest calculation type Item interest calculation.
Last key date
After each interest calculation run, the program enters the upper limit of the calculation period into this field by batch input. This is the date you have specified for the calculation run.
Hope that helps...
Thanks,
Nandita
Assign points if helpful -
Minority Interest calculation and consolidation
Hi people. i am new to HFM. I am kind of stuck with Minority Interest calculation and the consolidation of it. Now after looking at different posts on the minority interest calculation here , i am still confused if we could use the calculation expression for Minority Interest calculation within Sub Consolidate() or should we include it in Sub Calculate(). Please find below the script that i am working on.
SCRIPT :
Sub Consolidate()
Method=HS.Node.Method("")
PCon=HS.Node.PCon("")
POwn=HS.Node.POwn("")
vMIN=1-HS.Node.POwn("")
PMin=PCon-POwn
Dim strAccount,i
Set DataUnit=HS.OpenDataUnit("")
NumItems=DataUnit.GetNumItems
For i=0 to NumItems-1
Call DataUnit.GetItem(i,strAccount,ICP,Custom1,Custom2,Custom3,Custom4,Data)
If Method="Holding" Then
Call HS.Con("",PCon,"")
End If
If Method="Global" Then
If StrAccount = "281100" Then
Call HS.Con("A#281100",PMin,"PMin")
'Call HS.Con("A#281000",vMIN,"")
Else
Call HS.Con("",POwn,"")
End If
End If
'If HS.Account.IsConsolidated(strAccount) and Data0 Then
'If Data0 Then
'HS.Con "A#"&strAccount,POwn,""
'If StrAccount = "281100" Then
'HS.Con "",PMin,""
'End If
'End If
'End If
Next
End sub
Sub Calculate()
HS.EXP "A#281100 = A#CapitalStock - A#Investments"
End Sub
My Doubts :
1. Is the expression correct for Minority Interest calculation ?
2. If so can we use it in Sub Consolidate() ?
3. Should the Minority Interest consolidate to its parent using PMin ? If so kindly provide the appropriate expression.
Looking forward to some help. Thanks in advance.Hi,
If I got it correctly, you don't want the A#281100 calculation to happen for your holding company. There is a preferable way to do your consolidation that avoids involving the Calculate() altogether. So scrap your Calculate and write this Consolidate() instead:
Sub Consolidate()
Method=HS.Node.Method("")
PCon=HS.Node.PCon("")
POwn=HS.Node.POwn("")
vMIN=1-HS.Node.POwn("")
PMin=PCon-POwn
Dim strAccount,i
Set DataUnit=HS.OpenDataUnit("")
NumItems=DataUnit.GetNumItems
For i=0 to NumItems-1
Call DataUnit.GetItem(i,strAccount,ICP,Custom1,Custom2,Custom3,Custom4,Data)
If Method="Holding" Then
Call HS.Con("",PCon,"")End If
If Method="Global" Then
If StrAccount = "CapitalStock" Then
Call HS.Con("",POwn,"")
Call HS.Con("A#281100",PMin,"")ElseIf StrAccount = "Investments" Then
Call HS.Con("",POwn,"")
Call HS.Con("A#281100", (-1) * PMin,"")Else
Call HS.Con("",POwn,"")End IfEnd IfNextEnd subWith this code, the minority interest will calculate only for entities using the Global method.
I did not drive you to this solution immediately in order to avoid to confuse you, as well as because this does not address the issue of Calculation() running at many Value levels.
Regards,
--Kostas -
Interest calculation and Invoicing
Hello
I'm looking for a way to generate an invoice follow the calculation of the interest.
Is there some one does alreday this or not ?
For information, we are using ECC 6 without CRM module.
Thanks for your help
PhilippeHello Philippe,
Firstly you will need to create a documenyt typ ein OAB7 for this interest calculation button. Also create a number range in FBN1.
Then You can change the document type for the Interest calculation using the
following customizing setting:
IMG path:
Financial Accounting -> Accounts Receivable and Accounts Payable
-> Business Transactions -> Interest Calculation -> Interest
Posting -> A/R: Calculation of Interest on Arrears
Here you can select Goto -> Document type and you select the
required document type.
hope this helps
Ray -
G/L Interest calculation procedure
Balance Interest calculation
For term loan
Pls send any one G/L Accounts Interest Calculation procedure
Configuration
It is very urgentBalance Interest Calculation: -
It is a calculation of Interest on total balance of an account or total balance of customer account. it is represented in "s".
System defined variant for balance interest calculation type is u2018Su2019 and item interest calculation type is u2018Pu2019. Balance interest type calculation is used for G L Accounts. Item interest type calculation is used for vendors and customers.
To display all transaction codes go to transaction code:SE16
The Nine configuration steps for calculation of balance interest calculation are
1) Define interest calculation type (OB46)
2) Prepare account balance interest calculation (OBAA)
3) Define reference interest rates (OBAC)
4) Define time dependent terms (OB81)
5) Define or specify interest rates (OB83)
6) Create G L Accounts for Intesrest Gained and Interest allowed and Loan Account (FS00)
7) Prepare gl account balance interest calculation and Define automatic posting (OBV2)
8) Entry for Loan (F-02)
9) Run interest programm (f.52)
Step 01: Define interest calculation types (OB46)
Path: SPRO>FInancial Accounting New>Financial Accounting Global Setting New>Business Transaction> Bank A/C interest calculation>Interest calculation global settings>Define interest calculation types
Go to new entries
Interest Id (V1) put discription Name Interest calculation type (S) and enter it will take automatically balance interest for S
Make sure don't tick mark the box given and save it.
Step 02: Prepare account balance interest calculation (OBAA)
Path: SPRO>FInancial Accounting New>Financial Accounting Global Setting New>Business Transaction> Bank A/C interest calculation>Interest calculation global settings>Prepare account balance interest calculation
Go to new entries
Give calculation indicator as defined V1
Interest calculation frequency : 01 (1 month)
Calendar type : G (28-31/365)
Give number range : 03
Select balance plus interest.
Save
Step 03: Define reference interest rate (OBAC)
Path: SPRO>FInancial Accounting New>Financial Accounting Global Setting New>Business Transaction> Bank A/C interest calculation>Interest calculation>Define reference interest rates
Go to new entries
Reference interest rate : V1 (same as Interest Indicator)
Long text : 12%balanace interest
Short text : 12% balance interest
Date from : 01.03.2010
Currency : INR
Save
Step 04: Define time dependent terms (OB81)
Path: SPRO>FInancial Accounting New>Financial Accounting Global Setting New>Business Transaction> Bank A/C interest calculation>Interest calculation>Define time dependent terms
Go to new entries
Interest calculation indicator : V1
Currency key : INR
Effective from : 01.03.2010
Sequential no : 01
Term : Debit interest balance interest calculation
Reference interest rate : V1
Save
Go to new entries or F8
Interest calculation indicator : V1
Currency : INR
Effective from : 01.03.2010
Sequential no : 02
Term : credit interest balance interest calculation
Reference interest rate : V1
Save
Step 05: Enter Reference Interest Rate Values (OB83)
Path: SPRO>FInancial Accounting New>Financial Accounting Global Setting New>Business Transaction> Bank A/C interest calculation>Interest calculation>Enter interest values.
Go to new entries
Reference int. rate (V1)
values effective from (01.03.2010)
interest rate (12%)
Before creating GL account Go to T.Code: OBD4 to create secured loans account group.
Go to new entries
Chart of accounts a/c group name from account to account
Chart of Account 'TATA' secured loans 100300 100399
TATA INTR interest Expenses 400100 400199
TATA INTR interest Gained 300100 300199
Save
Step 06: Creation of G L Accounts (FS00)
G L A/C no : 100305
Company code : TATA (Tata Infotech)
Select create button
Account group : secured loans
Select balance sheet account
Short text : HSBC Bank Account
Long text : HSBC Bank Loan Account
Select control data tab
Select only balances in local currencies
Select open item
Select line item display
Sort key : 001
Select create/bank/interest tab
Field status group : G005
Select relevant to cash flow
Interest calculation indicator : V1
Save
Give G L A/C no : 400105
Company code : TATA
Select create button
Account group : interest
Select profit and loss account
Short text : interest Allowed
Long text : interest Allowed Account
Select control data tab.
Select line item display
Sort key : 001
Select create/bank/interest tab
Field status group : G001
Save
Give G L A/C no : 300107
Company code : TATA
Select create button
Account group : interest
Select profit and loss account
Short text : interest Gained
Long text : interest Gained Account
Select control data tab.
Select line item display
Sort key : 001
Select create/bank/interest tab
Field status group : G001
Save
Step 07: Define automatic posting account (OBV2)
SPRO>FInancial Accounting New>Financial Accounting Global Setting New>Business Transaction> Bank A/C interest calculation>Interest posting>Prepare G L A/C balance interest calculation
Go to accounts
Chart of accounts : TATA
A/C symbol currency G L A/C
0002 INR 400105 (interest Allowed)
2000 Inr 100305 (HSBC Bank Loan Account)
Save
Step 08: Entry for loan (F-02):
Give document date : 01.03.2010
Posting date : 01.03.2010
Type : SA
Company code : TATA
Currency : INR
Posting key : 40
G L Account : 200005 (ICICI bank a/c)
Enter
Amount : 50,00,000
Business area : IRON
Value date : 01.03.2010
Text : loan received
Posting key : 50
G L Account : 100305 (HSBC bank a/c)
Enter
Amount : *
Business area : IRON
Text : +
Save
Step 09: Interest calculation run (F.52):
Accounting>Financial Accounting>General ledger>Periodic Processing>Interest calculation>Balances
Give chart of accounts : TATA
G L A/C no : 100305 (HSBC Bank Account)
Company code : TATA
Calculation period : 01.04.2010 to 31.12.2012
Select leap year.
Select post also if value date in past
Select update master records
Execute
Go to system on menu bar.
Select services
Select batch input
Select sessions
Select RFSZIS00
Select process
Select display errors only
Again select process
The system gives the message: u201Cprocessing of batch input session completedu201D -
Interest Calculation for special GL items
Hi Experts,
We have posted some special GL indicator documents for the vendors, but in the interest calculation, that is not coming up.
However the system is picking up all the others debit and credit items for that vendor.
So what could be going wrong for this vendor?
Thanks in Advance,
JeenatHi,
Check the transaction code OBAB and assign your special GL transaction to your Interest Indicator.
This should solve your issue.
However this setting applies only for account balance interest calculation.
Regards,
Gaurav
Maybe you are looking for
-
Musish - a dynamic and extensible music library organizer (in CLI!)
Note: this program is deprecated and has been superseeded by Demlo. Musish organizes your music library automatically and dynamically. It runs a user-defined script using variable such as tags and file properties. This way it yields virtually unlimit
-
Communication channel: error during update
Hi,gurus: We are doring a soap2rfc scenario. After reactivating relavant object in ID,I found that the status of sender communication channel was "error during update" in RWB.Have you ever dealed with the problem?Any help will be appreciated!
-
Using Guides for multiple Slides
Hello there, my problem is as follows: I want to be able to use Guides in Keynote for multiple slides. In other words: once I set up guides for one slide, I then also want to see those guides when switching to the next slide. Why do I want to do that
-
ISync v3.0.2 released as part of Mac OS X 10.5.3 Update
In the *Mac OS X 10.5.3* Update released today, iSync has been updated from v3.0 (568.0) to v3.0.2 (574.0). No support for any new devices has been added. It's now 7 months since Apple last added any new devices to iSync. There are no obvious changes
-
Create customized and managed msi package for software installation in gpo
Hello everybody, I have a many users in a domain and need to install different software on systems ,but each software has it's own configuration, for example we need to install internet download manager(idm) and want to check mark and define some o