‎2013 Aug 05 10:16 AM
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
‎2013 Aug 05 10:32 AM
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
‎2013 Aug 05 10:32 AM
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
‎2013 Aug 05 10:35 AM
Hi Jeff.
To display internal table values, you have to drag from Global data and drop it.
Regards.
‎2013 Aug 05 10:44 AM
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
‎2013 Aug 05 10:48 AM
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
‎2013 Aug 05 10:48 AM
Check your internal table and work, values are getting or not?
have declared like this, please chack
‎2013 Aug 05 11:14 AM
Hi ,
Can you post the code of the print program.
Also post the form code using utilties->download form
Regards.
‎2013 Aug 05 11:19 AM
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
‎2013 Aug 05 11:25 AM
‎2013 Aug 05 11:29 AM
‎2013 Aug 05 11:51 AM
Hi
i am getting output
change like this in smartform
now you will get like this
‎2013 Aug 05 11:57 AM
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 .
‎2013 Aug 05 12:05 PM
Hi ,
I upload to different name to fit my local naming convention.
- No changes in program code.
- In the form:
Regards.
‎2013 Aug 05 12:25 PM
‎2013 Aug 05 12:29 PM
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
‎2013 Aug 05 12:50 PM
‎2013 Aug 05 11:48 AM
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
‎2013 Aug 05 1:06 PM
Hi Check below Screen Shot .
=====================
Regard's
Smruti
‎2013 Aug 05 1:12 PM
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
‎2013 Aug 05 1:15 PM
‎2013 Aug 05 1:34 PM
Tagged Ramesh's answer as correct as it answered the original question "Gray text" As for everyone, thanks for your help.
Kind regards,
Jeffbroodwar