Fonction SAP BAPI_INTERNALORDER_GETDETAIL - Display master data, status, and allowed business trans.for internal order

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
LANGUAGE BAPI0003_3-LANGU C 1 X Language of Status and Business Transaction Texts
ORDERID BAPI2075_2-ORDER C 12 Order Number

Paramètre Reférence Type Long. Description
MASTER_DATA BAPI2075_2 u 447 Structure with Master Data From the Order
RETURN BAPIRETURN u 452 Structure with Return Information

Paramètre Reférence Long. Facultatif Description
ALLOWED_BUS_TRACT BAPI2075_5 34 X Table of Allowed Business Transactions
SYSTEM_STATUS BAPI2075_3 39 X System Status Table
USER_STATUS BAPI2075_4 49 X User Status/Order Status Table

Functionality
This method delivers all important master data, the system status, theuser status and the permitted business transactions to the "Internalorders" business object.
The system displays all category "01" and "02" orders, includingcapital investment orders.

Notes
The user must have a read authorization for the specified order typethe desired status. If this is not the case, the list does not displaythe corresponding orders.
Messages are returned using the RETURN parameter. The parameterdocumentation contains return values and their significance.

Description
The MASTERDATA structure has the following data elements:
Field,,SAP Data Element,,Short Description
ORDER,,AUFNR,,Order number
ORDER_TYPE,,AUfART,,Order type
SHORT_TEXT,,AUFTEXT,,Short text
EXT_ORD_NO,,AUFEX,,External order number
OBJECT_NO,,J_OBJNR,,Object number
CO_AREA,,KOKRS,,Controlling area
C_CODE,,BUKRS,,Company code
BUS_AREA,,GSBER,,Business area
PLANT,,WERKS,,Plant
PROFIT_CTR,,PRCTR,,Profit center
RESPCCTR,,AUFKOSTV,,Responsible cost center
WBS_ELEM,,PS_PSP_ELE,,WBS element

Description
The RETURN structure has the following data elements:
Field,,SAP Data Element,,Short Description
TYPE,,BAPI_MTYPE,,Message type
CODE,,BAPI_RCODE,,Message code
MESSAGE,,BAPI_MSG,,Message text
LOG_NO,,Not used here
LOG_MSG_NO,,Not used here

Description
The parameter contains the language of the status andtransaction texts.

Description
order_number

Description
The ALLOWED_BUS_TRACT table has the following data elements:
Field,,SAP Data Element,,Short Description
TRANS,,J_VORGANG,,Business transaction
DESCRIPT,,TEXT30,,Long text

Description
The SYSTEM_STATUS table has the following data elements:
Field,,SAP Data Element,,Short Description
SYS_STATUS,,J_ISTAT,,System status
SY_ST_TEXT,,J_TXT04,,Individual status of an object
SY_ST_DSCR,,J_TXT30,,Individual status long text

Description
The USER_STATUS table has the following data elements:
Field,,SAP Data Element,,Short Description
STAT_PROF,,J_STSMA,,Status profile
USR_STATUS,,J_ESTAT,,User status
US_ST_NUMB,,J_STONR,,User status number
US_ST_TEXT,,J_TXT04,,Individual status of an object
US_ST_DSCR,,J_TXT30,,Individual object long text
For orders that use the old order status management, the current orderstatus is entered in the US_ST_NUMB and US_ST_TEXT fields in the table.

353492BAPI_INTERNALORDER... exception/message handling