2014 Jun 12 9:28 AM
Hello Masters,
I am trying to get due dates with determine_due_date fm but i can't.i have searched this forum about this fm and i could not find any related things to my problem.
also i debugged my program and saw that FAEDE-REBZG is empty.this is why fm doesn't work.
Any help would be appreciated.
Regards.
2014 Jun 12 9:56 AM
Hi Cem,
Before passing above FM in your program , you can move all corresponding field values from
BSID table to FAEDE_EXP and then execute your FM. because BSID table having FAEDE-REBZG value.
It will be work successfully. Please try and let us know if you have any Query.
Regards,
Prasenjit
Hello Masters,
I am trying to get due dates with determine_due_date fm but i can't.i have searched this forum about this fm and i could not find any related things to my problem.
also i debugged my program and saw that FAEDE-REBZG is empty.this is why fm doesn't work.
Any help would be appreciated.
Regards.
2014 Jun 12 9:34 AM
Hello Cem,
Please share the paramteres passed to the FM DETERMINE_DUE_DATE.
Thanks
2014 Jun 12 9:47 AM
Hello,
CALL FUNCTION 'DETERMINE_DUE_DATE'
EXPORTING
I_FAEDE = FAEDE_EXP
IMPORTING
E_FAEDE = FAEDE_IMP
EXCEPTIONS
ACCOUNT_TYPE_NOT_SUPPORTED = 1
OTHERS = 2.
2014 Jun 12 9:56 AM
Hello Cem
Please check if you are populating below fields.
FAEDE_EXP-koart = 'K'. " Accounttype is vendor
FAEDE_EXP-zfbdt = bsak-zfbdt. "Baseline date for d
FAEDE_EXP-zbd3t = bsak-ZBD3Ts. "Net payment terms period.
Thanks
2014 Jun 12 10:35 AM
Hello Always,
I have posted all of my code down there.I should have done at the first time.
Thanks
2014 Jun 12 9:56 AM
Hi Cem,
Before passing above FM in your program , you can move all corresponding field values from
BSID table to FAEDE_EXP and then execute your FM. because BSID table having FAEDE-REBZG value.
It will be work successfully. Please try and let us know if you have any Query.
Regards,
Prasenjit
2014 Jun 12 10:23 AM
Hello Prasenjit,
Here is all of my fm code :
loop at ibsid.
" WRBTR = IBSId-WRBTR.
IF IBSID-SHKZG = 'H'.
IBSID-WRBTR = - IBSID-WRBTR.
ENDIF.
MOVE-CORRESPONDING IBSID TO FAEDE_EXP.
FAEDE_EXP-KOART = 'K'.
CALL FUNCTION 'DETERMINE_DUE_DATE'
EXPORTING
I_FAEDE = FAEDE_EXP
IMPORTING
E_FAEDE = FAEDE_IMP
EXCEPTIONS
ACCOUNT_TYPE_NOT_SUPPORTED = 1
OTHERS = 2.
VADE = FAEDE_IMP-NETDT.
if vade <= sy-datum.
lv_wrbtr = lv_wrbtr + ibsid-wrbtr.
else.
clear : ibsid-wrbtr.
endif.
endloop.
if lv_wrbtr < 0.
itab-durum = 'NO'.
else.
itab-durum = 'YES'.
itab-cur_ov = lv_wrbtr.
endif.
i have debugged it and i saw that it works for some record and for some doesnt.but the problem is that it doesnt see FAEDE-REBZG value for some record but i know all of my records have REBZG.
What should i do ?
Regards.
2014 Jun 12 10:41 AM
The below are the two mandatory fields for Account type 'K' in the FM for due date calculation.
FAEDE_EXP-zfbdt
FAEDE_EXP-zbd3t
Please debug the FM independtly in SE37 for better understanding.
Thanks
2014 Jun 12 11:08 AM
Hi Cem,
As mention Always Learner,
Please try to check above field as well as you can validate one condition before passing values in FM like.
Regards,
Prasenjit
2014 Jun 12 11:29 AM
2014 Jun 12 12:44 PM
These fields are populated in fm.
I have been looking up the records and what i have found is the fields without a UMSKZ value make this problem.
is it just a coincidence or relevant?
2014 Jun 12 12:46 PM
it is wrong but does it matter? i want to calcaulate the due date
2014 Jun 12 12:57 PM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |