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: 

Sales order texts

Former Member
0 Kudos

Hi All,

I am having a problem with Sales order Item texts display. I have a custom program which updates texts of Manufacturing and packing notes. It used SAVE_TEXT and EDIT_TEXT FM.

When a sales order is created with the customer, the texts are updated in packing note and manufacturing note tabs of text.

Problem is Packing note is getting text of Manufacturing note and packing note both.

Below code is bringing 2 notes texts.

import tline to rt_lines

from database stxl(tx)

client rt_client

id stxl_id

IGNORING CONVERSION ERRORS.

Can any one suggest what is the best way to avoid the error.

Thanks,

Krishna.

3 REPLIES 3

Former Member
0 Kudos

Hi,

Use the Name and Object, You are using only the ID,

or else you can use the READ_TEXT function module also

<b>

CALL FUNCTION 'READ_TEXT'

EXPORTING

  • CLIENT = SY-MANDT

ID = 'PB'

LANGUAGE = 'E'

NAME = TNAME

OBJECT = 'PBPT'

  • ARCHIVE_HANDLE = 0

IMPORTING

HEADER = HTEXT

TABLES

LINES = LTEXT

EXCEPTIONS

ID = 1

LANGUAGE = 2

NAME = 3

NOT_FOUND = 4

OBJECT = 5

REFERENCE_CHECK = 6

WRONG_ACCESS_TO_ARCHIVE = 7

OTHERS = 8.</b>

Regards

Sudheer

0 Kudos

Hi Sudheer,

Problem I am facing in VA03, not in my code.

Former Member
0 Kudos

Hi

You have to use the READ_TEXT fun module to fetch the Long texts maintained in Sales order

Pass the parameters OBJECT (VBBK) ,ID(SEE in the screen),OBJECTNAME (SALES ORDER NUMBER) and LANGUAGE (Sy-LANGU) fields

doubelclcik or change the text it will take you to text editor

from menu GOTO-> HEADER

you will see the above 4 parameters.

pass them and fetch the text and use

If it is in VA02/VA03

check the copy controls

means the texts are not copied to sales order correctly

Regards

Anji

Message was edited by:

Anji Reddy Vangala