2020 Mar 12 2:34 PM
Hey,
what is wrong wit this code?
REPORT ZEQUISTAT.
"I0184 = ELAG
DATA status TYPE TABLE OF JSTAT WITH HEADER LINE.
status-STAT = 'I0184'.
CALL FUNCTION 'STATUS_CHANGE_INTERN'
EXPORTING
* CHECK_ONLY = ' '
CLIENT = '100'
objnr = 'IE000000000010006921'
* ZEILE = ' '
* SET_CHGKZ =
* IMPORTING
* ERROR_OCCURRED =
* OBJECT_NOT_FOUND =
* STATUS_INCONSISTENT =
* STATUS_NOT_ALLOWED =
tables
status = status
* EXCEPTIONS
* OBJECT_NOT_FOUND = 1
* STATUS_INCONSISTENT = 2
* STATUS_NOT_ALLOWED = 3
* OTHERS = 4
.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = ''
"IMPORTING
"RETURN = ''
.
With SE37 it is working.
2020 Mar 12 2:39 PM
DATA status TYPE TABLE OF JSTAT WITH HEADER LINE.
status-STAT = 'I0184'.
append status. " <-- here
CALL FUNCTION 'STATUS_CHANGE_INTERN'
EXPORTING
* CHECK_ONLY = ' '
CLIENT = '100'
objnr = 'IE000000000010006921'
* ZEILE = ' '
* SET_CHGKZ =
* IMPORTING
* ERROR_OCCURRED =
* OBJECT_NOT_FOUND =
* STATUS_INCONSISTENT =
* STATUS_NOT_ALLOWED =
tables
status = status
* EXCEPTIONS
* OBJECT_NOT_FOUND = 1
* STATUS_INCONSISTENT = 2
* STATUS_NOT_ALLOWED = 3
* OTHERS = 4
.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = ''
"IMPORTING
"RETURN = ''
.
DATA status TYPE TABLE OF JSTAT WITH HEADER LINE.
status-STAT = 'I0184'.
append status. " <-- here
CALL FUNCTION 'STATUS_CHANGE_INTERN'
EXPORTING
* CHECK_ONLY = ' '
CLIENT = '100'
objnr = 'IE000000000010006921'
* ZEILE = ' '
* SET_CHGKZ =
* IMPORTING
* ERROR_OCCURRED =
* OBJECT_NOT_FOUND =
* STATUS_INCONSISTENT =
* STATUS_NOT_ALLOWED =
tables
status = status
* EXCEPTIONS
* OBJECT_NOT_FOUND = 1
* STATUS_INCONSISTENT = 2
* STATUS_NOT_ALLOWED = 3
* OTHERS = 4
.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = ''
"IMPORTING
"RETURN = ''
.
2020 Mar 12 2:39 PM
DATA status TYPE TABLE OF JSTAT WITH HEADER LINE.
status-STAT = 'I0184'.
append status. " <-- here
CALL FUNCTION 'STATUS_CHANGE_INTERN'
EXPORTING
* CHECK_ONLY = ' '
CLIENT = '100'
objnr = 'IE000000000010006921'
* ZEILE = ' '
* SET_CHGKZ =
* IMPORTING
* ERROR_OCCURRED =
* OBJECT_NOT_FOUND =
* STATUS_INCONSISTENT =
* STATUS_NOT_ALLOWED =
tables
status = status
* EXCEPTIONS
* OBJECT_NOT_FOUND = 1
* STATUS_INCONSISTENT = 2
* STATUS_NOT_ALLOWED = 3
* OTHERS = 4
.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = ''
"IMPORTING
"RETURN = ''
.
2020 Mar 12 2:40 PM
2020 Mar 12 2:41 PM
2020 Mar 12 2:43 PM
you should try to use VALUE instead of playing with header line.
2020 Mar 12 4:01 PM
what is wrong, the usage of an unreleased FM.
System statuses are associated with processes that set/unset them, look for the system status in transaction BS23, where-used search icon.
Did you look for BAPI FM of function group ITOB_BAPI_EQ or class CL_ITOB_BAPI_EQ ?
In your case, is the equipment actually in stock, are there correct data in tables such as EQBS, etc?
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |