‎2008 Mar 10 10:51 AM
Hi all,
I have a tough situation here.
To change the system status in service notification, the system use "IQS4_CHANGE_STAT_NOTIFICATION".
CALL FUNCTION 'IQS4_CHANGE_STAT_NOTIFICATION'
EXPORTING
i_qmnum =
i_vrgng =
I_CHECK_ONLY = ' '
I_SPRAS = SY-LANGU
I_BEZDT = SY-DATUM
I_BEZUR = SY-UZEIT
I_POST = 'X'
I_COMMIT = ' '
I_WAIT = ' '
I_REFRESH_COMPLETE = 'X'
IMPORTING
E_VIQMEL =
E_STTXT =
E_ASTXT =
TABLES
RETURN =
.
2 main fields are required; i_qmnum and i_vrgng.
I am able to provide i_qmnum (as this is the service notification number that i need to change).
However, i_vrgng is a field in table (TC33-VRGNG). The values in the table does not make sense to me.
Example. To change the status to NOPR (Put in progress), the FM uses PPM2 or PPM6 for i_vrgng. If we take a look at the table TC33, it doesn't indicate in anyway how NOPR is related to PMM2 or PMM6.
Is there a guideline (ie, to change status to OSTS, i use a certain value in TC33-VRGNG to run the FM)?
Please see BAPI_SERVNOT_POSTPONE & BAPI_SERVNOT_PUTINPROGRESS for a clearer picture of what I'm saying.
Thanks,
Earl
‎2008 Mar 14 10:06 AM
Please try using FM STATUS_CHANGE_INTERN for changing System Status as i was not able to find any link between status and the field provided in FM in ur post.
This FM directly changes system status of any object.But this FM requires System Status Value not Text.
NOPR, NOCO etc are system texts.The main table for system status is TJ02T which will give u the status value for the status text.
For eg NOPR status text will have status value as 'I0070'.
Reward Points if useful
Edited by: Pratyasha Shishodia on Mar 14, 2008 11:07 AM
‎2008 Mar 14 10:06 AM
Please try using FM STATUS_CHANGE_INTERN for changing System Status as i was not able to find any link between status and the field provided in FM in ur post.
This FM directly changes system status of any object.But this FM requires System Status Value not Text.
NOPR, NOCO etc are system texts.The main table for system status is TJ02T which will give u the status value for the status text.
For eg NOPR status text will have status value as 'I0070'.
Reward Points if useful
Edited by: Pratyasha Shishodia on Mar 14, 2008 11:07 AM