‎2007 Jan 11 11:09 AM
Hi,
Can anyone please tell me the name of Function Module / BAPI to set the user status of a contract.
Regards,
Vijay
*********REPLIES WILL DEFINETELY BE REWARDED*************
‎2007 Jan 11 11:46 AM
Hi Vijay,
I think you can use to change the status of the user of an object:CRM_STATUS_CHANGE_EXTERN and to change status of the contract:BAPI_CONTRACT_STATUS_CHANGE.
Hope it will help you.
Regards,,
Arjun
<b>Reward points if it helps.</b>
‎2007 Jan 11 11:48 AM
Vijay,
Assuming you mean an SD contract...
Have you tried USEREXIT_SET_STATUS_VBUK or USEREXIT_SET_STATUS_VBUP in SAPMV45A?
Also have a look at function module STATUS_CHANGE_EXTERN
‎2007 Jan 11 11:58 AM
Hello,
see below - i have already done user status such ( reserverd or finsihed or blocked)
data : l_stat_com type jest-stat value 'E0004'.
call function 'STATUS_CHANGE_EXTERN'
exporting
client = sy-mandt
objnr = xvbap-objnr
user_status = l_stat_com
exceptions
object_not_found = 1
status_inconsistent = 2
status_not_allowed = 3
others = 4.
***********Poorna**************