2007 Oct 02 1:54 PM
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.
2007 Oct 02 1:57 PM
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
2007 Oct 02 1:59 PM
2007 Oct 02 2:01 PM
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