overpayment from icweb
TRANSCRIPT
OVERPAYMENT FROM ICWEB using the UCES functionality
IC Web Calls - Z_CRM_MAKEPAYMENT
Use this function as a start you can throw away the commented out sections verify the data mappings are working if everything is mapped an over payment should occur
VKONT LIKE FKKVK-VKONT
PYMET LIKE GENEBPP_PAYDATA-PYMET
CHOICE LIKE GENEBPP_PAYDATA-PYMET
I_AMOUNT LIKE GENEBPP_PAYDATA-PAYAMOUNT
I_PAYCARD LIKE GENEBPP_PAYCARD
I_BANKDETAILDATA LIKE FIS_BANK_DETAIL
Using these paarameters to fill this function:
CALL FUNCTION 'GEN_EBPP_GET_DATA' EXPORTING I_CONTROLDATA = CONTROLDATA I_PARTNER = WA_PARTNER I_ADDSEL = WA_ADDSEL I_DMSELECTION = WA_DMSELECTION IMPORTING E_RETURNCODE = WA_RETURNCODE TABLES T_ITEMS = I_ITEMS T_INVOICES = I_INVOICES T_ALLOCATION = I_ALLOCATION T_MYPAYMENTS = I_MYPAYMENTS T_PAYALLOCATION = I_PAYALLOCATION T_BANKS = I_BANKS T_CARDS = I_CARDS.
Then fill these required parameters:
I_PAYDATA-
BANKID required if bank
CARDID required if credit card
BUKRS required 1001
PYMET required look to see if bank details present use ‘B’
Required if credit details present use ’ Y’
PAYAMOUNT required over payment amount
CURRENCY required USD
CVVAL required get from CRM data
CVVST 1 but verify think it may be required
CALLED_BY_SERVICE = EXT
VKONT required
I_PARTNER-
PARTNERTYPE Required
PARTNERKEY required
UNAME required
AGENT_ACTIVE ?? don’t think so but verify in debug
CC_ACTIVE ?? don’t think so but verify in debug
DESCRIP_LONG ?? don’t think so but verify in debug
T_INVOICES_PAYDATA-AMOUNT change to the over payment amount
CALL FUNCTION 'GEN_EBPP_PUT_DATA' EXPORTING I_PAYDATA = G_PAYDATA I_AUTDATA = WA_AUTDATA
I_PAYCARD = I_PAYCARD I_PARTNER = WA_PARTNER IMPORTING E_RETURNCODE = WA_RETURNCODE E_CONFIRMATION = E_CONFIRMATION TABLES T_INVOICES_PAYDATA = I_INVOICES_PAYDATA T_ALLOCATION = I_ALLOCATION.
Creates this to offset the open item amount the rest is put to payment on account 60/30???
Document Type WP Web Payment
Main Trans. 0060 Payment on Account
Subtransaction 0020 Outgoing Payment on Account
Overpymt Lock O Overpymt via E-Service - No Auto Refund
MT Overpayment 0060 Payment on Account
Overpymt Subtr. 0010 Payment on Account
FKK_EBPP_PAY_ITEMS
Is contained in function GEN_EBPP_PUT_DATA and is where the overpayment occurs when on line 636
COMMIT WORK is called the payments will post as stated above