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

BAPI_QUALNOT_CHANGEUSRSTAT gives me error E BS 023

Former Member
0 Likes
1,524

Hi experts!!

I have this code which gives me back an error.

What I need to do is changing a QM notification from status "open" to "in treatment".

data: v_export2 like bapi2078_nothdre.

data: treturn2    type table of bapiret2.

data: v_status   type bapi2078_notusrstati.

v_export2-notif_no = '000200005808'.

clear v_status.

v_status-status_int = 'I0070'.

v_status-langu        = sy-langu.

call función 'BAPI_QUALNOT_CHANGEUSRSTAT'

EXPORTING

     number      =  v_export2-notif_no

     usr_status =  v_status

TABLES

     return       = treturn2.

  

Result is:

   E- BS- 023 - El status de usuario I0070 no se admite.

Which means that status I0070 is not admitted.

Thanks in advance.

Hi experts!!

I have this code which gives me back an error.

What I need to do is changing a QM notification from status "open" to "in treatment".

data: v_export2 like bapi2078_nothdre.

data: treturn2    type table of bapiret2.

data: v_status   type bapi2078_notusrstati.

v_export2-notif_no = '000200005808'.

clear v_status.

v_status-status_int = 'I0070'.

v_status-langu        = sy-langu.

call función 'BAPI_QUALNOT_CHANGEUSRSTAT'

EXPORTING

     number      =  v_export2-notif_no

     usr_status =  v_status

TABLES

     return       = treturn2.

  

Result is:

   E- BS- 023 - El status de usuario I0070 no se admite.

Which means that status I0070 is not admitted.

Thanks in advance.

5 REPLIES 5
Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,171

You cannot change an internal/system status with this FM intendedfor external/customer status.

(Also check transactions as BS03 or BS23 to check allowed Status Customizing, here the program did not find the internal status in the status  profile of the notification, of course, this is not a user status but a system one)

Regards,

Raymond

Read only

0 Likes
1,171

Hi!!

Which FM should I use therefore?

Thanks.

Read only

0 Likes
1,171

Did you try BAPI_QUALNOT_RELSTAT ?

Those system status are triggered by "Business Transaction", so either there is a BAPI with a  meaningful name related to this transaction, else you have either to build a BDC or analyze FM behind the BAPI, as IQS4_GET_NOTIFICATION, IQS4_CHANGE_STAT_NOTIFICATION.

Regards,

Raymond

Read only

0 Likes
1,171

Hi!!

I could not figured out what value to insert as parameter I_VRGNG for FM IQS4_CHANGE_STAT_NOTIFICATION.

I have found the solution within SCN; in another thread.

I have used FM STATUS_CHANGE_INTERN.

At the first step I had my QM notification in status MEAB ( I0068) so I execute STATUS_CHANGE_INTERN passing values I0068 and inact = 'X'. After that I execute commit.

In a second step I execute STATUS_CHANGE_INTERN passing value I0070.After that I execute commit again.

This way first system inactivates status I0068 and then sets status I0070.

Best regards.

Read only

0 Likes
1,171

Yes, but STATUS_CHANGE_INTERN will perform very little checks (only pure "status" check) and if you have some tasks behind the notification, I'm not sure of their own status ?

To identify correct operation (vrgng) -> Call BS23, position on a status code and click on where-used icon, you will get list of

  • Processes that set the status:
  • Processes that delete the status:
  • Processes influenced by the status:

Here you will find (among others) the process code PMM2 and PMM6 used by BAPI_QUALNOT_RELSTAT. Look in the BAPI source to find how it calls the IQS4_CHANGE_STAT_NOTIFICATION and other FMs.

Regards,

Raymond