Application Development 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: 

How to get Sales Text & Purchase Order Text in MM based on (MSEG-MATNR)

Former Member
0 Kudos

Hi

Am working on a Report based on Purchase order & Sales, Could any body tell How to get Sales Text & Purchase Order Text in MM based on (MSEG-MATNR).

the Field i need to get are : SALES TEXT, PO TEXT.

Sunil.

1 REPLY 1

krishnendu_laha
Active Contributor
0 Kudos

Hi Sunil,

For getting Material PO text and sales text, you have to rely on Purchase Order and Sales Order. And use READ_TEXT function module to fetch the text.

Below are examples of PO text and Sales Text:

1. PO text:

CALL FUNCTION 'READ_TEXT'

EXPORT

ID = 'F03'

LANGUAGE = SY-LANGU

NAME = '450000011200010' conacte PO number and line item number

OBJECT = 'EKPO'

TABLES

LINES = INT_TLINES "you will get text in this table

2. Sales order text:

CALL FUNCTION 'READ_TEXT'

EXPORT

ID = '0001'

LANGUAGE = SY-LANGU

NAME = '0000000036000010' conacte SO number and line item number

OBJECT = 'VBBP'

TABLES

LINES = INT_TLINES "you will get text in this table

ref: STXH and STXL tables.

Hope it will solve the problem.

Regards

Krishnendu