SAP Function /SAPCEM/BAPI_SHIPDOC_GETDETAIL - Display CEM Shipping Document (Header and Item Data)

Parameter Reference Type Length Default Optional Text
NUMBER /SAPCEM/BAPI_SDCEM-NUMBER C 10 Document number

Parameter Reference Type Length Text
HEADERDATA /SAPCEM/BAPI_SDCEM_HEAD u 732 Shipping Document Header Data for BAPI

Parameter Reference Length Optional Text
EXTENSIONOUT BAPIPAREX 990 X Custoemr Enhancement for J_3GBELK/J_3GBELP
ITEMDATA /SAPCEM/BAPI_SDCEM_ITEM 633 X Transfer Structure Item Data Shipping Document
RETURN BAPIRET2 548 Return Parameters

Functionality
You can use this BAPI to get details about a shipping document. Thedetails cover header data and item data. Note that this method readsdata from the database. This means that you cannot get detailedinformation on a shipping document if it has not been saved to thedatabase. For example, if you have created a shipping document usingmethod 'Create' you only get the details for this shipping documentafter you have saved it to the database using a method such asCommitWork.

Notes
Any error message is output in parameter RETURN.

Description
Detailed data for a shipping document header record.

Value range
NUMBER Document number
CREATED_BY Created by
REC_TIME Created at
CREATED_ON Created on
CHANGED_BY Changed by
TIMEOFCHNG Changed at
CHANGED_ON Changed on
SENDER Sender
REFTYPE_SENDER Reference type sender
WBS_ELEMENT_SENDER WBS-element sender
PROJECT_NUM_SENDER Project number sender
COST_CENTER_SENDER Cost center sender
CONTR_AREA_SENDER Controlling area sender

CO_ORDER_SENDER CO-order sender
PM_ORDER_SENDER PM-order sender
PLANT_SENDER Plant sender
STOR_LOC_SENDER Warehouse sender
EXT_STP_SENDER Ext.recipient sender
DEBTOR_SENDER Customer of sender
RECIPIENT Recipient
REFTYPE_RECIPIENT Reference type recipient
WBS_ELEMENT_RECIPIENT WBS element of recipient
PROJECT_NUM_RECIPIENT Project number recipient
COST_CENTER_RECIPIENT Cost center recipient
CONTR_AREA_RECIPIENT Controlling area recipient
CO_ORDER_RECIPIENT CO-order recipient
PM_ORDER_RECIPIENT PM-order recipient
PLANT_RECIPIENT Plant recipient
STOR_LOC_RECIPIENT Warehouse recipient
EXT_STP_RECIPIENT External recipient-recipient

DEBTOR_RECIPIENT Customer of recipient
INTER_RCPT Intermediate recipient
REF_TYPE_INTER_RCPT Reference type of intermediaterecipient
WBS_ELEMENT_INTER_RCPT WBS element of intermediaterecipient
PROJECT_NUM_INTER_RCPT Project number of intermediaterecipient
COST_CENTER_INTER_RCPT Cost center of intermediaterecipient
CONTR_AREA_INTER_RCPT Controlling area ofintermediate recipient
CO_ORDER_INTER_RCPT CO-order intermediaterecipient
PM_ORDER_INTER_RCPT PM-order intermediaterecipient
PLANT_INTER_RCPT Plant inermediate recipient
STOR_LOC_INTER_RCPT Warehouse intermediaterecipient
EXTEMPLOYEE External employee indicator
PERSON_NO Personnel number
LAST_NAME Last name
COST_CENTER_PERS Receiving cost center ofperson
CEM_DOC_INT_STATUS Internal document status
CEM_DOC_EXT_STATUS External document status
EXTDOCNO External document number
DOC_TYPE Document type
CEM_DOC_CAT Document type - CEM
DOC_DATE& Document date
INCOTERMS1 Incoterms part 1
TRANSACTION_TYPE Internal transaction type
COMMENT1 Comment1
COMMENT2 Comment2
TOTAL_WGHT Total weight
UNIT_OF_WT Unit of weight
UNIT_OF_WT_ISO Unit of weight in ISO-Code
COMP_CODE_SENDER Company code
BUS_AREA_SENDER Business area
MAT_DOC Number of material document
DOC_YEAR Material document year
COMP_CODE_RECIPIENT Company code
BUS_AREA_RECIPIENT Business area
NETWORK_SENDER Network number for account
assignment
ACTIVITY_SENDER Activity number
NETWORK_RECIPIENT Network number for accountassignment
ACTIVITY_RECIPIENT Activity number
USERFIELD0 User field for 20 characters
USERFIELD1 User field for 20 characters
USERFIELD2 User field for 10 characters
USERFIELD3 User field for 10 characters
USERFIELD_QUAN1 User field for quantity
USERFIELD_UNIT1 User field: Unit quantity field
USERFIELD_UNIT1_ISO ISO-Code Unit of measure
USERFIELD_QUAN2 User field for quantity
USERFIELD_UNIT2 User field: Unit quantity
USERFIELD_UNIT2_ISO ISO-Code Unit of measure
USERFIELD_CURR1 Currency amount
USERFIELD_CURR1_UNIT User field: Unit value field
USERFIELD_CURR1_UNIT_ISO ISO Code Currency
USERFIELD_CURR2 Currency amount
USERFIELD_CURR2_UNIT User field: Unit value field
USERFIELD_CURR2_UNIT_ISO ISO Code Currency
USERFIELD_DAT1 User field for date
USERFIELD_DAT1_ISO_ZONE Time zone
USERFIELD_DAT1_ISO_STAMP UTC-Time stamp
USERFIELD_DAT2 User field for date
USERFIELD_DAT2_ISO_ZONE Time zone
USERFIELD_DAT2_ISO_STAMP UTC-Time stamp
USERFIELD_FLAG1 Evaluation indicator
USERFIELD_FLAG2 Evaluation indicator

Description
You use this parameter to enter the shipping document number.

Description
This table contains customer enhancements of tables J_3GBELK (shippingdocument header) and J_3GBELP (shipping document item).

Value range
/SAPCEM/BAPI_TE_J_3GBELK
/SAPCEM/BAPI_TE_J_3GBELP

Default
The document for the structure of this parameterBAPIPAREX contains additional notes on using thisparameter. For more documentation, see also 'Customer enhancementconcept for BAPIs'.

Description
Detailed item data for a shipping document

Value range
NUMBER Document number
ITM_NUMBER Document item
CREATED_BY Created by
REC_TIME Created at
CREATED_ON Created on
CHANGED_BY Changed by
TIMEOFCHNG Changed at
CHANGED_ON Changed on
EXTEMPLOYEE External staff indicator
PERSON_NO Personnel number
LAST_NAME Last name
COST_CENTER_PERS Receiving cost centerpersonnel
CEM_DOC_INT_STATUS Internal document status
CEM_DOC_EXT_STATUS External document status
EQUIPMENT Equipment number
CATALOG_CODE Catalog code
CATALOG_NUMBER Number in catalog
CATALOG_SEQ_NUMBER Sequence number
PRICING_DOMINANCY_PID Pricing dominancy PID

PRICING_DOMINANCY_ID Pricing dominancy ID
ACTY_TYPE Activity type
QUANTITY Quantity
QUANTITY_UNIT Unit of measure
QUANTITY_UNIT_ISO ISO-Code Unit of measure
BILLING_NUMBER_EXTERN External billing number
MULTIPART_INDICATOR Multipart indicator
MATERIAL Material number
END_OF_USAGE End of usage
GROSS_WEIGHT Gross weight of item
UNIT_OF_WT Unit of weight
UNIT_OF_WT_ISO Unit of weight in ISO-Code

BATCH_SENDER Batch number
BATCH_RECIPIENT Batch number
RESC_IND Resource indicator
REQUISITION_NUMBER Requisition note number

REQUISITION_ITEM Requisition note item
END_OF_DEADLINE End of deadline
RESERV_NO Reservation number
RES_ITEM Reservation item number

COMMENT1 Comment
COMMENT2 Comment
USERFIELD0 User field for 20 characters

USERFIELD1 User field for 20 characters

USERFIELD2 User field for 10 characters

USERFIELD3 User field for 10 characters

USERFIELD_QUAN1 User field for quantity
USERFIELD_UNIT1 User field: Unit quantity field

USERFIELD_UNIT1_ISO ISO-Code Unit of measure
USERFIELD_QUAN2 User field: Quantity
USERFIELD_UNIT2 User field: Unit of quantity

USERFIELD_UNIT2_ISO ISO-Code Unit of measure
USERFIELD_CURR1 Currency amount
USERFIELD_CURR1_UNIT User field: Unit value field
USERFIELD_CURR1_UNIT_ISO ISO Code Currency
USERFIELD_CURR2 Currency amount
USERFIELD_CURR2_UNIT User field: Unit value field
USERFIELD_CURR2_UNIT_ISO ISO Code Currency
USERFIELD_DAT1 User field: Date
USERFIELD_DAT1_ISO_ZONE Time zone
USERFIELD_DAT1_ISO_STAMP UTC-Time stamp
USERFIELD_DAT2 User field: Date
USERFIELD_DAT2_ISO_ZONE Time zone
USERFIELD_DAT2_ISO_STAMP UTC-Time stamp
USERFIELD_FLAG1 Evaluation indicator
USERFIELD_FLAG2 Evaluation indicator

Description
Table of messages
Messages are collected in this table.
TYPE Message category S Success, E Error, W Warning, IInformation
ID Message-ID
NUMBER Message number
MESSAGE Message text
LOG_NO Application Log: Log Number
LOG_MSG_NO Application Log: Sequence number of message
MESSAGE_V1 Message variable
MESSAGE_V2 Message variable
MESSAGE_V3 Message variable
MESSAGE_V4 Message variable
PARAMETER Parameter name
ROW Row in parameter
FIELD Field in parameter
SYSTEM System (logical system) from which message originates