on 11-27-2007 12:58 AM
Hi All,
Is there a way to configure following payment terms for a customer -
- 30 days EOM due the first Friday of the following month less 3 % discount.
TIA
TK
Hi,
This is a Payment Condition (OBB8 and OBB9).
What do you mean -30 days EOM?
you can configure days numbers but you can't to days of the week. In this case you should create a User Exit to data field following the calendar.
Some ABAP know this developement.
Take a look in this example. I had used the first day of the week, monday, and I create an user exit like this:
FORM U0019.
DATA: d_venc LIKE bseg-zfbdt,
d_dia TYPE p.
d_venc = bseg-zfbdt + bseg-zbd1t.
CALL FUNCTION 'DAY_IN_WEEK'
EXPORTING
datum = d_venc
IMPORTING
wotnr = d_dia.
IF syst-tcode = 'VF01'.
IF d_dia = 1.
bseg-zbd1t = bseg-zbd1t + 7.
ELSEIF d_dia = 2.
bseg-zbd1t = bseg-zbd1t + 6.
ELSEIF d_dia = 3.
bseg-zbd1t = bseg-zbd1t + 5.
ELSEIF d_dia = 4.
bseg-zbd1t = bseg-zbd1t + 4.
ELSEIF d_dia = 5.
bseg-zbd1t = bseg-zbd1t + 3.
ELSEIF d_dia = 6.
bseg-zbd1t = bseg-zbd1t + 2.
ELSEIF d_dia = 7.
bseg-zbd1t = bseg-zbd1t + 1.
ENDIF.
ENDIF.
ENDFORM.
*-->> FIM DA MODIFICAÇÃO - LSN 02/05/2006
If this is useful, reward me points.
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
96 | |
10 | |
9 | |
6 | |
3 | |
3 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.