on 2016 May 12 3:02 PM
Hi experts,
I am new to ABAP.
My requirement is :
I need to calculate sy-datum - somedays = date based on factory calendar.
But there is a function module BKK_ADD_WORKINGDAY but it is in ECC and it is not RFC enabled.
Is there any alternate method or logic to this to compute this in SRM?
Regards,
Sushanth
Request clarification before answering.
I found the solution :
CALL FUNCTION 'DATE_CONVERT_TO_FACTORYDATE'
EXPORTING
correct_option = '+'
date = lv_date
factory_calendar_id = lv_factory_calendar_id
IMPORTING
factorydate = lv_factorydate
ADD lv_num_days TO lv_factorydate.
CALL FUNCTION 'FACTORYDATE_CONVERT_TO_DATE'
EXPORTING
factorydate = lv_factorydate
factory_calendar_id = lv_factory_calendar_id
IMPORTING
date = lv_new_date
Found the solution:
ABAP – Add working days to a date using Factory Calendar | Spider's web
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sushanth
This is a known issue in the SRM system you have to use the factory calendar in ECC and use this in BADI in SRM BBP_DOC_CHECK_BADI
Refer note 1467113 - Factory Calendar is not available in SRM
and in this note there is a sample code also on how you can use this in SRM system
Let me know if this helps
Regards
Vinita
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.