‎2006 Oct 02 10:20 PM
Hi,
i have 'belnr' 'bukrs' 'gjahr' 'buzid' of a particular line item from bseg table. I want to read the description of this line item. Is there a function module which will assist in this, what are inputs to its fields?
‎2006 Oct 02 10:35 PM
Hi,
Check the Function Modules,
SHOW_PAID_INVOICES
LINE_ITEMS_SPECIAL_TABLE
Regards,
Azaz.
‎2006 Oct 02 10:21 PM
Hi,
use the FM READ_BSEG ..
Inputs are BELNR
BUKRS
BUZEI
GJAHR
If you looking for item text..then the value will be available in XBSEG-SGTXT..
Thanks,
Naren
‎2006 Oct 02 10:39 PM
‎2006 Oct 02 10:23 PM
‎2006 Oct 02 10:35 PM
Hi,
Check the Function Modules,
SHOW_PAID_INVOICES
LINE_ITEMS_SPECIAL_TABLE
Regards,
Azaz.
‎2006 Oct 02 10:51 PM
The strcuture XBSEG-SGTXT will have the value from the database table BSEG..
Thanks,
Naren
‎2006 Oct 02 10:57 PM
‎2006 Oct 02 11:28 PM
Hi,
Try this..
PARAMETERS: P_BELNR TYPE BSEG-BELNR,
P_GJAHR TYPE BSEG-GJAHR,
P_BUKRS TYPE BSEG-BUKRS.
DATA: S_BSEG LIKE BSEG.
CALL FUNCTION 'READ_BSEG'
EXPORTING
xbelnr = P_BELNR
xbukrs = P_BUKRS
xbuzei = '001'
xgjahr = P_GJAHR
IMPORTING
XBSEG = S_BSEG
EXCEPTIONS
KEY_INCOMPLETE = 1
NOT_AUTHORIZED = 2
NOT_FOUND = 3
OTHERS = 4
.
IF sy-subrc <> 0.
write: / 'No data found'.
ELSE.
write: / 'Item text - ', S_BSEG-SGTXT.
ENDIF.
Thanks,
Naren