Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Description

Former Member
0 Likes
904

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?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
849

Hi,

Check the Function Modules,

SHOW_PAID_INVOICES

LINE_ITEMS_SPECIAL_TABLE

Regards,

Azaz.

7 REPLIES 7
Read only

Former Member
0 Likes
849

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

Read only

0 Likes
849

but xbseg is a structure.

Read only

Former Member
0 Likes
849

HI,

Try this LINE_ITEMS_SPECIAL_TABLE

Regards,

Azaz.

Read only

Former Member
0 Likes
850

Hi,

Check the Function Modules,

SHOW_PAID_INVOICES

LINE_ITEMS_SPECIAL_TABLE

Regards,

Azaz.

Read only

Former Member
0 Likes
849

The strcuture XBSEG-SGTXT will have the value from the database table BSEG..

Thanks,

Naren

Read only

0 Likes
849

Hi naren, can you codify your idea?

Read only

Former Member
0 Likes
849

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