Application Development and Automation 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: 
Read only

How to get Screen elements lables when screen elements are given

Former Member
0 Likes
651

HI.

I want to get Screen elements lables(texts).

i.e if i give screen element Vbak-auart,then 'sales document ' type should be displayed

(If it is a table field or structure field,i can find data element and it's label).

Here i give Screen element and i need to find label associated with it.

I want to get all Screen elements if tocde is given.

I.e if i give tcode 'Va01',then screen elements such as Vbak-auart,vbak-vkorg... should be displayed.

are there any Sap defined function modules..

Please give me a solution.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
602

Hello,

There is no function module define by SAP to exactly match your requirement, but for your requirement you can use the tcode SE80.

In this you need to give the Program Name, if you want to know program name you can use SE93 or in menu path SYSTEM --> STATUS.

From SE80 you will get all list of screen, screen elements and many more.

Hope it helps to you,

Anil.

4 REPLIES 4
Read only

Former Member
0 Likes
603

Hello,

There is no function module define by SAP to exactly match your requirement, but for your requirement you can use the tcode SE80.

In this you need to give the Program Name, if you want to know program name you can use SE93 or in menu path SYSTEM --> STATUS.

From SE80 you will get all list of screen, screen elements and many more.

Hope it helps to you,

Anil.

Read only

Former Member
0 Likes
602

Hi Dariusz.

Thanq.

I got the screen elemnts for my tcode for below code ..

But screen elements lables are displayed in German.

I want to display them in English..

Could u give any suggesiton..

TABLES: tstc.

DATA: BEGIN OF dynp_id,

prog LIKE d020s-prog,

dnum LIKE d020s-dnum,

END OF dynp_id.

DATA: h LIKE d020s.

DATA: f LIKE d021s OCCURS 0 WITH HEADER LINE.

DATA: e LIKE d022s OCCURS 0 WITH HEADER LINE.

DATA: m LIKE d023s OCCURS 0 WITH HEADER LINE.

select single * from tstc where tcode = 'VA01'.

dynp_id-prog = tstc-PGMNA.

dynp_id-dnum = tstc-DYPNO.

IMPORT DYNPRO h f e m ID dynp_id.

LOOP AT f.

WRITE: / f-FNAM.

ENDLOOP.

Read only

Clemenss
Active Contributor
0 Likes
602

Hi Ilayarajaramana,

try this

CALL FUNCTION 'HELP_OBJECT_SHOW_FOR_FIELD'
      EXPORTING
        called_for_tab   = lv_tabname
        called_for_field = lv_fieldname
      EXCEPTIONS
        object_not_found = 1
        sapscript_error  = 2
        OTHERS           = 3.

Regards,

Clemens

Read only

Former Member
0 Likes
602

Answered