Friday, August 24, 2012

Event R721 Restrict Contracts during creation of disconnection / reconnection order

In one of our implementation, we create disconnect order in background by calling FM 'ISU_S_DISCDOC_CHANGE', and we have troubles in deciding which devices to be disconnected and some devices are not even exist in the itab XY_DVALOBJ (BAPI Definition ISU_SERVORD_EDCN, Method SET_ORDERCODE_DISCONNECT) for you to choose.

SAP use a unique way to find out Contracts that can be disconnected. Basically SAP will check contracts that are listed in the open overdue items against dunning activities (FKKMAKT), and then check against Dunning History (FKKMAZE), if records exist, the contract can be disconnected. Thus, sometimes when you reverse the dunning and then re-run it again, some other devices are available for you to choose again, it's kind of magic. Lol~

Anyway, this can be resolved by enhancing event R721, you can either refresh itab T_DISC_EVER, so that all contracts are taken into consideration, or, define your own logic to include more contracts to T_DISC_EVER.

Technical Information:
Program: SAPLES34
Include Program: LES34F46
Form: DCORD_DARK_PBO
Then,
FM 'ISU_DISCDOC_ENVIRONMENT_SELECT'
Then,
FM 'ISU_GET_EVER_DISC_RELEVANT'
Then,
FM 'ISU_DB_GET_POS_DISC_RELEVANT'

Friday, August 17, 2012

Loans (Part 5) EK25, EK26, and EK27

EK25



Functionalities:
  1. Enter BP Number or Contract Account Number, posting parameters, loan installment parameters and loan parameters to create loan
  2. Loan Recipient and Out Payment Account
    • Contract Account / Business Partner to which the outgoing loan payment is posted. Loans granted can be paid out to:
      • The customer who will pay back the loan. This is also the customer for whom the repayment plan is created.
      • A third party. This is usually the case if the loan is granted for the purchase of a subsidized device, such as a heat pump, or a subsidized service, such as insulation measures. In this case, the loan should be paid directly to the supplier or service provider concerned.

EK26, EK27










Functionalities:
  1. In change mode, you can perform the following activities:
    • Deactivate Loan Repayment Plan
    • Make changes to:
      • Automatic Payment Lock Reason (P)
      • Dunning Lock Reason (D)
      • Interest Lock Reason (I)
      • Clearing Lock Reason (C)
      • Alternative Business Partner for Payments
      • Payment Method
      • Bank Details ID of Payee
      • Alternative Payment Card ID in Document
      • Exclude from dunning run
      • Notes for document
    • Save the changes and create letter
  2. System Menu Environment provides few options:
    • Source Receivables (Account Display) brings you to Account Balance Screen (FPL9)
    • Interest Supplement or Interest Documents bring you to a list with loan interest information, click on any of them will launch t-code FPE3
    • Installment Plans Business Partner or Contract Account will call FM 'FKK_S_INSTPLAN_GETLIST' to show all loans belong to this business partner or Contract Account

Saturday, August 4, 2012

Debug FQ Events

In SAP IS-U, most of the FICA and Billing related enhancements are using FQ-Events. To debug/ find out what FQ Events to use for certain transaction, use the following steps:
1. In command field, enter /h

2. When Debugger Controls Session is launched, set break point for  FM 'FKK_FUNC_MODULE_DETERMINE '.

3. Continue and Debugger will stop at FM 'FKK_FUNC_MODULE_DETERMINE '.

4. I_FBEVE is the FQ Event Number, and at the end of this FM, T_FBSTAB will contains all the FMs that will be called under this event. You can get more information of this event via command FQEVENTS.