on 05-13-2018 6:48 AM
Hi
I am trying to read some text from outbound delivery header text a query.
in the FM : READ_TEXT parameters are like this :
result of READ_TEXT
for this in the SQ02 I joined the STXL and STXH
then added the additional field by this code
DATA: BEGIN OF HTEXT OCCURS 50.
INCLUDE STRUCTURE THEAD.
DATA END OF HTEXT.
DATA: BEGIN OF T_READ_LINE OCCURS 50.
INCLUDE STRUCTURE TLINE.
DATA: END OF T_READ_LINE.
READ TABLE T_READ_LINE INDEX 4. "read the line value
DATA: TDNAME like STXH-TDNAME,
gs_lines TYPE tline,
Textclient type String.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = 'Z007'
LANGUAGE = '멡'
NAME = TDNAME
OBJECT = 'VBBK'
IMPORTING
HEADER = HTEXT
TABLES
LINES = T_READ_LINE
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8.
IF SY-SUBRC = 0.
CLEAR gs_lines.
LOOP AT T_read_line INTO gs_lines.
Concatenate textclient gs_lines-tdline into textclient .
ENDLOOP.
ENDIF.
but it doesn't work???. result of SQ01:
Hi Ali,
After cheking your above code, it looks for variable TDNAME value is not passed in READ_TEXT Function. Kindly check and pass the pass the value for TDNAME variable. Even after passing the value, if still problem exists use conversion exit to fill zeros for variable TDNAME. Use debugger for better troubleshooting.
DATA: TDNAME like STXH-TDNAME,
gs_lines TYPE tline,
Textclient type String.
DATA L_VBLNR TYPE VBELN_VF.
L_VBLNR = '12345566'. "Assign value
"Conversion exit to fill zero
CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
EXPORTING
input = L_VBLNR
IMPORTING
OUTPUT = L_VBLNR.
"Assign value
TDNAME = L_VBLNR.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = 'Z007'
LANGUAGE = '멡'
NAME = TDNAME
OBJECT = 'VBBK'
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I don't know much about ABAP debugging. How should I debug the infoset?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.