In the first step you create the general ledger A/C by using transaction code FS00 and then assign the same general ledger A/C as a cash discount taken account. To assign the general ledger A/C as your cash discount received account you have to follow the following path;
SPRO > Financial Accounting > Accounts Receivable and Accounts Payable > Business Transactions > Outgoing Payment > Outgoing Payments Global Settings > Define Accounts for Cash Discount Taken
You can also use transaction code OBXU to reach the above path.
Enter your chart of accounts under which this account is to be assigned and then just fill up the general ledger A/C already created for it and save it. SAP will post automatically to this general ledger A/C when you clear a open item for vendors.
Prerequisite for creating assigning a cash discount account
- You must create you chart of accounts and assign it to your company codes
- General ledger A/C for cash discount account has to be created.
Define Accounts for cash discount granted
Like above, you create a general ledger A/C for cash discount granted and assign the same with transaction code or through below path;
SPRO > Financial Accounting > Accounts Receivable and Accounts Payable > Business Transactions > Incoming Payment > Incoming Payments Global Settings > Define Accounts for Cash Discount Granted
You can use transaction code OBXI to define accounts for cash discount granted
Enter your chart of account and then for transaction SKT you enter the general ledger A/C you created for cash discount granted and then save it.