2016 Jul 13 2:45 PM
Hi everyone,
I am trying to get the entire long text of a data element, using the DOCU_READ function module. The trouble is, I can only get it to return this:
U1&DEFINITION&
AS
U1&USE&
AS
U1&DEPENDENCIES
AS
U1&EXAMPLE&
AS
The entire text that I entered in the documentation for the ZSAMPLE_DATA data element is not returned. In the SAPscript editor in tcode SE11 the documentation long text looks like this:
So there is quite a bit more text, but DOCU_READ does not return it. Here is my code:
DATA:
ltid LIKE dokhl-id,
ltspras LIKE dokhl-langu,
ltobject LIKE dokhl-object,
lttyp LIKE dokhl-typ,
ltversion LIKE dokhl-dokversion,
i_tline TYPE STANDARD TABLE OF tline,
ltline TYPE tline.
ltid = 'DE'.
ltversion = '0000'.
ltspras = 'EN'.
lttyp = ' '.
ltobject = 'ZSAMPLE_DATA'.
CALL FUNCTION 'DOCU_READ'
EXPORTING
id = ltid
langu = ltspras
object = ltobject
typ = lttyp
version = ltversion
TABLES
line = i_tline
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
LOOP AT i_tline INTO ltline.
WRITE ltline-tdformat.
NEW-LINE.
WRITE ltline-tdline.
NEW-LINE.
ENDLOOP.
How can I get all of the text from the data element long text?
Any ideas?
Thanks so much!
2016 Jul 13 3:09 PM
Use parameter TYP = 'E' (you may get also the exact key values in table DOKIL).
Hi everyone,
I am trying to get the entire long text of a data element, using the DOCU_READ function module. The trouble is, I can only get it to return this:
U1&DEFINITION&
AS
U1&USE&
AS
U1&DEPENDENCIES
AS
U1&EXAMPLE&
AS
The entire text that I entered in the documentation for the ZSAMPLE_DATA data element is not returned. In the SAPscript editor in tcode SE11 the documentation long text looks like this:
So there is quite a bit more text, but DOCU_READ does not return it. Here is my code:
DATA:
ltid LIKE dokhl-id,
ltspras LIKE dokhl-langu,
ltobject LIKE dokhl-object,
lttyp LIKE dokhl-typ,
ltversion LIKE dokhl-dokversion,
i_tline TYPE STANDARD TABLE OF tline,
ltline TYPE tline.
ltid = 'DE'.
ltversion = '0000'.
ltspras = 'EN'.
lttyp = ' '.
ltobject = 'ZSAMPLE_DATA'.
CALL FUNCTION 'DOCU_READ'
EXPORTING
id = ltid
langu = ltspras
object = ltobject
typ = lttyp
version = ltversion
TABLES
line = i_tline
EXCEPTIONS
id = 1
language = 2
name = 3
not_found = 4
object = 5
reference_check = 6
wrong_access_to_archive = 7
OTHERS = 8.
LOOP AT i_tline INTO ltline.
WRITE ltline-tdformat.
NEW-LINE.
WRITE ltline-tdline.
NEW-LINE.
ENDLOOP.
How can I get all of the text from the data element long text?
Any ideas?
Thanks so much!
2016 Jul 13 3:09 PM
Use parameter TYP = 'E' (you may get also the exact key values in table DOKIL).
2016 Jul 13 3:16 PM
Thanks Sandra for helping me with my first steps here!
Looking in table DOKIL did the trick.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |