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

Help in displaying table in smartforms

jeff_broodwar
Active Participant
0 Likes
11,077

Hi Abapers,

I would like to ask your help on how to create a table and display entries in smartform...I want to display fields of table makt (matnr, maktx)

in my smartform, tried several tutorials, created lines, text elements, etc. but when I tried to put the value of WG_makt-matnr inside the text element (under loop table in interface Main window) I get this instead:

wg_makt-matnr

wg_makt-matnr

wg_makt-matnr

wg_makt-matnr

.

.

.

.

to ten records

I encapsulated the value inside &wg_makt-matnr& but when I try to execute this, it gives me the result above... please show me step by step creation of table even a single field just to demonstrate the proper settings of tables...

hope to get help... Thanks

Jeff Broodwar

1 ACCEPTED SOLUTION
Read only

former_member209120
Active Contributor
0 Likes
11,043

Hi Jeff,

In you smartforms the wg_makt-matnr is displaying as below in gray color or not

if it is not in gray color

click edit button like this

type it like this

20 REPLIES 20
Read only

former_member209120
Active Contributor
0 Likes
11,044

Hi Jeff,

In you smartforms the wg_makt-matnr is displaying as below in gray color or not

if it is not in gray color

click edit button like this

type it like this

Read only

Arun_Prabhu_K
Active Contributor
0 Likes
11,042

Hi Jeff.

To display internal table values, you have to drag from Global data and drop it.

Regards.

Read only

jeff_broodwar
Active Participant
0 Likes
11,042

Hi ramesh and K.Arun thank you for your response, I didn't notice that, now it's in Gray color. but instead of displaying values, I now have:

000000000000

000000000000

000000000000

Any ideas?

Thanks again guys.

Jeff broodwar

Read only

0 Likes
11,042

Hi Jeff,

in your table Element, you could indicate the internal table you would like to use, and .. the structure that will countain the header line.

you have specified a variable, you will need to link the table to this variable.

try simply to put your internal table, and remove the variable and set instead the value : MY_INTERNAL_TABLE-MATNR

regards

Fred

Read only

0 Likes
11,042

Check your internal table and work,  values are getting or not?

have declared like this, please chack

Read only

rosenberg_eitan
Active Contributor
0 Likes
11,042

Hi ,

Can you post the code of the print program.

Also post the form code using utilties->download form

Regards.

Read only

jeff_broodwar
Active Participant
0 Likes
11,042

Thank you Fred and Ramesh and others, yes I declared it like that Ramesh.. I'm just surprised cause I used 2 variables: matnr and maktx..

but getting these values...seems like mandt,matnr,matnr+maktx (01Etest material)

Loop data tab

Actual SE16 records

Read only

jeff_broodwar
Active Participant
0 Likes
11,042

Thanks Etan for the idea, posting form and print program

Read only

jeff_broodwar
Active Participant
0 Likes
11,042

Please see files attached

Read only

0 Likes
11,041

Hi

i am getting output

    

change like this in smartform

now you will get like this

Read only

0 Likes
11,041

Now upload this Form in your system , but with different name , Once it is full fill your requirement then Change the Form Name . Please find attach .

Read only

0 Likes
11,041

Hi ,

I upload to different name to fit my local naming convention.

- No changes in program code.

- In the form:


Regards.

Read only

0 Likes
11,041

Hi Jeff,

have you made changes as above or not

Read only

0 Likes
11,041

Hi Ramesh, Yes I tried this, now what I would like to request assistance is, how will I form my hierarchy in main window in order to produce 2 columns with border between... like excel table.. right now I'm getting 1 row with 2 fields separated by space...

Thanks,

Jeff

Read only

0 Likes
11,041

DO LIKE THIS

Read only

jeff_broodwar
Active Participant
0 Likes
11,041

In the types tab of the global definition I declared mandt to be the same with the print program.. now looking ok.

1 question, how will I be able to make columns? I'd like to have a vertical border line between the matnr and the description..

Thanks,
Jeff

Read only

0 Likes
11,040

Hi Check below Screen Shot .

=====================

Regard's

Smruti

Read only

0 Likes
11,040

Hi jeff,

Actually its a simple thing. In your smart form just double click on the table window.

After that it will show all the pattern types. Then click on "display Unframed items".

then select select fully closed box with vertical lines. Then save it, activate  and exicute it..

Once check your  table lines also.

It will work.

Regards.

Raju

Read only

0 Likes
11,040

Thanks Ranjan

Read only

jeff_broodwar
Active Participant
0 Likes
11,040

Tagged Ramesh's answer as correct as it answered the original question "Gray text" As for everyone, thanks for your help.

Kind regards,
Jeffbroodwar