2009 Aug 27 8:21 AM
Hi All,
I need to extent the user date in SAP based on one condition.
If the condition is true extend the date by 12 monthd if false 6 months from the current date.
Can i have the FM for user date extentions and FM for getting the date.
Thanks,
Chandu.
2009 Aug 27 8:24 AM
Hi ,
You can use this FM for exteding the date.
CALL FUNCTION 'BAPI_USER_CHANGE'
EXPORTING
username = us_username
logondata = e_bapilogond
logondatax = e_bapilogondx
TABLES
return = i_return.
u need to pass date and correspoing flag also.
For extension of the date by months u can use this FM.
CALL FUNCTION 'MONTH_PLUS_DETERMINE'
EXPORTING
months = 6 or 12 ( depending up on ur logic)
olddate = sy-datum
IMPORTING
newdate = us_expdate.
Thanks and regards.
Sham
2009 Aug 27 8:23 AM
Hi Chandu,
Please check BAPI_USER_CHANGE & BAPI_USER_GET_DETAIL.
Regards,
Babul.
2009 Aug 27 8:23 AM
Hi Chandu,
Please check BAPI_USER_CHANGE & BAPI_USER_GET_DETAIL.
Regards,
Babul.
2009 Aug 27 8:24 AM
Hi Chandu,
Please check BAPI_USER_CHANGE & BAPI_USER_GET_DETAIL.
Regards,
Babul.
2009 Aug 27 8:24 AM
Hi,
You can get user details including valid date using BAPI_USER_GET_DETAIL. Just pass user id and you will receive all the details. You can change the dates using BAPI_USER_CHANGE. Do not forget to pass X in logondatax parameter along with date in LOGONDATA.
KR Jaideep,
2009 Aug 27 8:24 AM
Hi Chandu,
Please check BAPI_USER_CHANGE & BAPI_USER_GET_DETAIL.
Regards,
Babul.
2009 Aug 27 8:24 AM
Hi Chandu,
Please check BAPI_USER_CHANGE & BAPI_USER_GET_DETAIL.
Regards,
Babul.
2009 Aug 27 8:24 AM
Hi ,
You can use this FM for exteding the date.
CALL FUNCTION 'BAPI_USER_CHANGE'
EXPORTING
username = us_username
logondata = e_bapilogond
logondatax = e_bapilogondx
TABLES
return = i_return.
u need to pass date and correspoing flag also.
For extension of the date by months u can use this FM.
CALL FUNCTION 'MONTH_PLUS_DETERMINE'
EXPORTING
months = 6 or 12 ( depending up on ur logic)
olddate = sy-datum
IMPORTING
newdate = us_expdate.
Thanks and regards.
Sham
2009 Aug 27 8:24 AM
Hi ,
You can use this FM for exteding the date.
CALL FUNCTION 'BAPI_USER_CHANGE'
EXPORTING
username = us_username
logondata = e_bapilogond
logondatax = e_bapilogondx
TABLES
return = i_return.
u need to pass date and correspoing flag also.
For extension of the date by months u can use this FM.
CALL FUNCTION 'MONTH_PLUS_DETERMINE'
EXPORTING
months = 6 or 12 ( depending up on ur logic)
olddate = sy-datum
IMPORTING
newdate = us_expdate.
Thanks and regards.
Sham