on 12-12-2007 3:06 PM
i want calulate and print the due date of customer payment and print it in my invoice form based on payment terms,
does anybody help me on this for technical fild mapping prospect
please provide me technical mapping of field
please points would be rewarded
Thanks
Hi!
I have the same problem. I've found that the function module J_1A_SD_CI_DUEDATE_GET returns the due date alright. My problem is I don't manage to invoke the function module from the smartform without run-time error 'parameter missing'.
BR
Marcus
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Now it works
indata: IS_BIL_INVOICE
EV_NETDATE
outdata: netdate
(both ev_netdate and netdate defined as globals defs type DZFBDT)
CALL FUNCTION 'J_1A_SD_CI_DUEDATE_GET'
EXPORTING
IV_VBELN = IS_BIL_INVOICE-HD_GEN-BIL_NUMBER
IV_ZTERM = IS_BIL_INVOICE-HD_GEN-TERMS_PAYM
IMPORTING
EV_NETDATE = netdate
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Now it works
indata: IS_BIL_INVOICE
EV_NETDATE
outdata: netdate
(both ev_netdate and netdate defined as globals defs type DZFBDT)
CALL FUNCTION 'J_1A_SD_CI_DUEDATE_GET'
EXPORTING
IV_VBELN = IS_BIL_INVOICE-HD_GEN-BIL_NUMBER
IV_ZTERM = IS_BIL_INVOICE-HD_GEN-TERMS_PAYM
IMPORTING
EV_NETDATE = netdate
.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Hi,
In your smart form which is assigned to your output type maintain like follow
tables tvzbt.
select single zterm from vbrk
into zzterm where vbeln = zvbeln.
select single vtext from tvzbt
into zvtext where zterm = zzterm and spras = sy-langu.
Even it is also available in LB_BIL_INVOICE smart form type which is assigned to RD00 under head of Conditions for shipping and payment terms.in first page of header
hope this will help you
regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Use function module SD_PRINT_TERMS_OF_PAYMENT.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Suresh,
Check table BSEG - ZFBDT
Thanks,
Dhananjay
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
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.