This function require only object no. of production order.
Example
CALL FUNCTION 'STATUS_READ'
EXPORTING
* CLIENT = SY-MANDT
OBJNR = PA_OBJNR
* ONLY_ACTIVE = ' '
* IMPORTING
* OBTYP =
* STSMA =
* STONR =
* TABLES
* STATUS =
* EXCEPTIONS
* OBJECT_NOT_FOUND = 1
* OTHERS = 2 .
If we want to know only active status, we can mark 'X' in export parameter 'ONLY_ACTIVE'. This function will return all status in term of internal table and return active user status in import parameters.
No comments:
Post a Comment