Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

long text for the PA0077-vetst

Former Member
0 Kudos

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

5 REPLIES 5

former_member181962
Active Contributor
0 Kudos

To read long texts, for that matter any text,

you need to use the fm read_text.

Regards,

Ravi

Former Member
0 Kudos

can you please specify the name again i could not get it

0 Kudos

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.

0 Kudos

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

Former Member
0 Kudos

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.