cancel
Showing results for 
Search instead for 
Did you mean: 

Printing Field Labels in Smartforms

michael_fallenbchel
Active Participant
0 Kudos

Hi experts.

I have a Smatform which only one strucutre to print.

Now I want to print the field label for each field inthis strucutre, for example:

structure: MATNR, NAME1 should be

Material 123456

Name Peter

Smartfoms should automatically check in DDIC what is the label for the field...

Is this possible?

Regards

Michael

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

please clear your issue.

michael_fallenbchel
Active Participant
0 Kudos

I have a smartform with only one import parameter.

I have one window in which I want to print every field of my import strucutur among each other.

Let's say my strucutre looks like this:

MATNR type MATNR

NAME1 type NAME1_GP

BUKRS type BUKRS

So my output should look like this:

Material 123456

Name Peter

Company Code 0745

Smartform should look itself in DDIC which is the field label of the fields (BUKRS = Company Code...)

Former Member
0 Kudos

Hi Michael,

Try With:

Text node > Change editor > Insert > Symbols > Program Symbols > click on push button 'DDIC' > Print Program > Enter the program name > click on COPY > Select DDIC Fields > Select table name > Select Table fields .

Hope this helps.

BR

Dep

michael_fallenbchel
Active Participant
0 Kudos

Doesn't work as I can't choose Program Symbols

Solved it own my own:

Created a new strucutre (TYPES) inclduing all my fields as string, and with this a new strucutre (GLOBAL DATA).

Then at initialsition I get the fields of my strucutre (cl_abap_structdescr) and with that I get the Data elemnt description (cl_abap_elemdescr and table DD04T).

Thanks everybody