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

Cant reset User Status using BAPI_BUS2001_SET_STATUS

sriram_ramesh
Participant
0 Likes
1,626

Hi,

In bapi BAPI_BUS2001_SET_STATUS,

we are able to reset system status. But how do we reset user status?

There is only option to cancel user status.

Thanks in Advance.

6 REPLIES 6
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,291

What is your version?


*"  IMPORTING

*"    VALUE(PROJECT_DEFINITION) LIKE  BAPIPR-PROJECT_DEFINITION

*"    VALUE(UNDO_SYSTEM_STATUS) LIKE  BAPI_SYSTEM_STATUS-SYSTEM_STATUS

*"      OPTIONAL

*"    VALUE(UNDO_USER_STATUS) LIKE  BAPI_USER_STATUS-USER_STATUS

*"      OPTIONAL

*"    VALUE(SET_SYSTEM_STATUS) LIKE  BAPI_SYSTEM_STATUS-SYSTEM_STATUS

*"      OPTIONAL

*"    VALUE(SET_USER_STATUS) LIKE  BAPI_USER_STATUS-USER_STATUS

*"      OPTIONAL

*"  EXPORTING

*"    VALUE(RETURN) TYPE  BAPIRETURN1

*"  TABLES

*"      E_RESULT STRUCTURE  BAPI_STATUS_RESULT OPTIONAL

Regards,

Raymond

Read only

0 Likes
1,291

Hi,

Undo system status will reset system status whereas undo user status will cancel the user status. That is the description of these fields.

Read only

0 Likes
1,291

Yes but did you look at BS23 (for system status ) and BS03 (for user status) to insure the reset status is defined/configured.

Regards,

Raymond

Read only

SimoneMilesi
Active Contributor
0 Likes
1,291

If i remember well you have to pass the UNDO_USER_STATUS (the status to remove) and the SET_USER_STATUS (to tell SAP which is the new user status).

There are a few FMs / Classes giving you the previous/next status.

Read only

0 Likes
1,291

Hi Simone,

I think you have got it wrong.

When we undo a status, the previous status will be updated.

When we undo system status by providing 'REL' to it, the previous system status will be updated.

I have to update user status in the similar way.

Read only

0 Likes
1,291

Hi Sriram,

yes, for system status it works as you explained.

For user status i faced the same issue in a project 6-7 months ago and we had to do the "double step" to unset-set user status.