2015 Jan 15 8:39 AM
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.
2015 Jan 15 9:30 AM
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
2015 Jan 15 9:39 AM
2015 Jan 15 10:56 AM
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
2015 Jan 15 12:13 PM
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.
2015 Jan 15 12:25 PM
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
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