Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

*****Functin Module / BAPI name required********

Former Member
0 Likes
536

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*************

3 REPLIES 3
Read only

Former Member
0 Likes
504

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>

Read only

peter_atkin
Active Contributor
0 Likes
504

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

Read only

Former Member
0 Likes
504

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**************