cancel
Showing results for 
Search instead for 
Did you mean: 

due date in billing output

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

former_member206976
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Use function module SD_PRINT_TERMS_OF_PAYMENT.

Former Member
0 Kudos

Hi Suresh,

Check table BSEG - ZFBDT

Thanks,

Dhananjay