‎2006 Dec 12 3:27 PM
Hi,
I am new to the idoc development, my requirement is below.
As part of our requirement, we need to post the text objects to the ORDERS05 idoc, the corresponding segment is E1EDKT1 and the fields i require to map is TDID, TDOBJECT, TDOBNAME, my problem here is the data length passed from EDI to SAP for the field TDOBNAME is 90 characters, where as the standard segment supports only 70 characters.
How to handle this in a better way. Please help me in this regard.
Many thanks.
Ramesh.
‎2006 Dec 12 3:40 PM
r u trying to fetch the values of header and item texts into this idoc bys using function modules READ_TEXT
using id
then this is not a problem cause
thead-tdname = will be used to pass the header text or item text where the length will not exceed more than 20
data : ghead like THEAD,
GLINE LIKE TLINE.
ghead-tdobject = 'VBBP'.
ghead-tdname = pvbdpl_tdname.
ghead-tdid = '001 '.
ghead-tdspras = sy-langu.
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = ghead-tdid
language = ghead-tdspras
name = ghead-tdname "--> line item will be as
object = ghead-tdobject
TABLES
lines = gline
EXCEPTIONS
id = 01
language = 02
name = 03
not_found = 04
object = 05
reference_check = 06.
say for header this value for sales order uumber is 5000110001 "10 for header
for item it will be 5000110001000010 "-->item
so i dont see any prob with this.
the length u will require for the text is in TLINE -TDLINE WHICH WILL TAKE 132 CHARS .
no prob u can proceed.
regards,
vijay
Message was edited by:
vijay k