07-30-2009 5:01 PM
Hi Experts,
In our system currently when we create credit memo using tcode FB75 system makes the invoive due immediately.
We wanted to make this net due date dependent on payment terms given by us. Please let me know how can I achieve this..
Please let me know if there is any user exit there or the configration path to achieve this...
Regards,
Vidya
07-30-2009 5:06 PM
Hi,
"vbdkr-zterm. is nothing but Payment terms
* Fetching Payment term details
SELECT SINGLE * FROM t052 INTO w_t052 WHERE zterm = vbdkr-zterm.
IF sy-subrc = 0.
CLEAR i_faede.
MOVE-CORRESPONDING w_t052 TO i_faede.
MOVE: w_t052-ztag1 TO i_faede-zbd1t,
w_t052-ztag2 TO i_faede-zbd2t,
w_t052-ztag3 TO i_faede-zbd3t.
i_faede-bldat = BKPF-budat. "this is Importnat posting date
i_faede-koart = 'D'.
* Fetching Due date using Function Module
CALL FUNCTION 'DETERMINE_DUE_DATE'
EXPORTING
i_faede = i_faede
IMPORTING
e_faede = e_faede
EXCEPTIONS
account_type_not_supported = 1
OTHERS = 2.
IF sy-subrc <> 0.
ENDIF.
w_invdate = e_faede-netdt. "this field contains Net due date...
ENDIF.
Prabhudas
07-30-2009 5:29 PM
Hi ,
Where should I write this coding as I could not find any user exit.. I wanted the net due date to change while using the tcode FB75..
Regards,
Vidya.
07-31-2009 11:01 AM
This is a standard SAP functionality. Usually a credit memo is referenced to an invoice and if you don't have a reference to an invoice SAP would consider that credit memo as due immediatly.
If you have an invoice to be referenced to this credit memo enter the invoice number in the invoice reference field in FB75 > payment tab and then enter the payment term. If you don't have an invoice reference enter V in the invoice reference field and then the payment term, system will calculate net due date based on payment term.