2015 Aug 07 8:46 AM
Hi,
I want to complete notification which attached to a workroder while changing system status, but i could not able to find any method to change the notification status to complete using bapi_alm_order_maintain while updating Workorder.
Is this can be achievable through the standard BAPI. I referred documentation of BAPI provided by SAP, but no method I found which suits my requirement.
If it is achievable how to use the BAPI(passing data) .
Thanks in advance!
2015 Aug 07 4:17 PM
Hello janu,
Put the following code in the include ZXWOCU07 of user-exit IWO10009. Your intended result will be noticed.
IF CAUFVD_IMP-IPHAS = '2'.
DATA: V_OBJNR TYPE VIQMEL-OBJNR.
CLEAR V_OBJNR.
DATA: IT_STAT TYPE TABLE OF JSTAT,
WA_STAT TYPE JSTAT.
WA_STAT-STAT = 'I0072'.
WA_STAT-INACT = ' '.
APPEND WA_STAT TO IT_STAT.
SELECT SINGLE OBJNR FROM VIQMEL INTO V_OBJNR
WHERE QMNUM = CAUFVD_IMP-QMNUM.
CALL FUNCTION 'STATUS_CHANGE_INTERN'
EXPORTING
OBJNR = V_OBJNR
TABLES
STATUS = IT_STAT.
ENDIF.
After this when you Release an Order and save the Notification associated with it will be completed (NOCO).
Good luck
KJogeswaraRao
Hello janu,
Put the following code in the include ZXWOCU07 of user-exit IWO10009. Your intended result will be noticed.
IF CAUFVD_IMP-IPHAS = '2'.
DATA: V_OBJNR TYPE VIQMEL-OBJNR.
CLEAR V_OBJNR.
DATA: IT_STAT TYPE TABLE OF JSTAT,
WA_STAT TYPE JSTAT.
WA_STAT-STAT = 'I0072'.
WA_STAT-INACT = ' '.
APPEND WA_STAT TO IT_STAT.
SELECT SINGLE OBJNR FROM VIQMEL INTO V_OBJNR
WHERE QMNUM = CAUFVD_IMP-QMNUM.
CALL FUNCTION 'STATUS_CHANGE_INTERN'
EXPORTING
OBJNR = V_OBJNR
TABLES
STATUS = IT_STAT.
ENDIF.
After this when you Release an Order and save the Notification associated with it will be completed (NOCO).
Good luck
KJogeswaraRao
2015 Aug 07 4:17 PM
Hello janu,
Put the following code in the include ZXWOCU07 of user-exit IWO10009. Your intended result will be noticed.
IF CAUFVD_IMP-IPHAS = '2'.
DATA: V_OBJNR TYPE VIQMEL-OBJNR.
CLEAR V_OBJNR.
DATA: IT_STAT TYPE TABLE OF JSTAT,
WA_STAT TYPE JSTAT.
WA_STAT-STAT = 'I0072'.
WA_STAT-INACT = ' '.
APPEND WA_STAT TO IT_STAT.
SELECT SINGLE OBJNR FROM VIQMEL INTO V_OBJNR
WHERE QMNUM = CAUFVD_IMP-QMNUM.
CALL FUNCTION 'STATUS_CHANGE_INTERN'
EXPORTING
OBJNR = V_OBJNR
TABLES
STATUS = IT_STAT.
ENDIF.
After this when you Release an Order and save the Notification associated with it will be completed (NOCO).
Good luck
KJogeswaraRao
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |