Application Development 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: 

Sales order user status

Former Member
0 Kudos

Hi

Please tell me the FM or BAPI to add Header user status in Sales Order (VBAK-VBELN).

Regrads

Aditya

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Try this FM for updating User status,

'STATUS_CHANGE_EXTERN'

we need to pass Object Number and Staus value for this.

CALL FUNCTION 'STATUS_CHANGE_EXTERN'

EXPORTING

client = sy-mandt

objnr = i_vbak-objnr

user_status = 'E0002'

For adding New user status we need to define user status profile and assign this through configuration

Regards,

Krishna.

3 REPLIES 3

Former Member
0 Kudos

Hi

Go through this link you will get a solution for this query.

Ranga

Former Member
0 Kudos

Hi

This FM is useful in User exit or if you want to change the user status.

i want to add the user status.

Regards

Aditya

Former Member
0 Kudos

Try this FM for updating User status,

'STATUS_CHANGE_EXTERN'

we need to pass Object Number and Staus value for this.

CALL FUNCTION 'STATUS_CHANGE_EXTERN'

EXPORTING

client = sy-mandt

objnr = i_vbak-objnr

user_status = 'E0002'

For adding New user status we need to define user status profile and assign this through configuration

Regards,

Krishna.