04-25-2006 6:52 PM
hi all
I have problem in infotype 77 that we use vetst field.
we check it has lot of combination so i want to know the long text when each one is selected
for eg.
if we check vets1 and vets2 then what is the long name
04-25-2006 6:55 PM
To read long texts, for that matter any text,
you need to use the fm read_text.
Regards,
Ravi
04-25-2006 7:08 PM
can you please specify the name again i could not get it
04-25-2006 7:16 PM
Hi,
You can use the Function Module READ_TEXT to read the long text...
In table STXH you can find the parameters for the function module in fields
TDOBJECT for parameter OBJECT
TDIS for parameter ID
TDNAME for parameter NAME
TDSPRAS for parameter LANGUAGE
Use it this way..
DATA: I_LINES LIKE TLINE OCCURS 0 WITH HEADER LINE.
DATA: W_HEADER LIKE THEAD.
CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
ID = <id>
LANGUAGE = 'E'
NAME = <name>
OBJECT = <object>
ARCHIVE_HANDLE = 0
IMPORTING
HEADER = W_HEADER
TABLES
LINES = I_LINES
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8.
i_lines will have an entry for every text line
LOOP AT I_LINES.
WRITE:/ I_LINES-TDLINE.
ENDLOOP.
04-25-2006 7:54 PM
Hi,
Are you referring to the field label that appears on the screen beside the check-box? In that case the function module READ_TEXT will not be of any use. You will have to hard-code them in your report..as these values are not stored in any table but maintained as texts for the screen elements.
Pl take a look at the Texts/ I/O attributes for screen 2000 of the Program MP007700 in Se51.
VETS1 - Non-veteran
VETS2 - Special_disabled_veteran
VETS3 - Vietnam-era_veteran
VETS4 - Other_veteran
Regards,
Suresh Datti
04-25-2006 7:23 PM
I want to specificly for pa0077-vetst group value do you know any table that gives me all the valuse for vatenar ststus and long text.