SAP Function SET_ALL_BSEG - Select all line items for a document

Parameter Reference Type Length Default Optional Text
XBELNR BSEG-BELNR C 10 Document number
XBUKRS BSEG-BUKRS C 4 Company code
XGJAHR BSEG-GJAHR N 4 Fiscal year

Exception Text
KEY_INCOMPLETE Key is incomplete
NOT_AUTHORIZED No authorization
NOT_FOUND No line items found for document