Adding a New Addres in the node
type ADDRESS
How can i add a new address in the node type ADDRESS. (My address).
Moreover how to see from which table does it takes the values. if i press
f4. i.e if i click f4 I am getting some addresses, but I dont know in which
table these addresses are.
You can print address by placing address number in the field "Address Number"
as a variable. It has to be placed as within & & like &W_ADRNR&,
whereas W_ADRNR's value comes through interface parameter. This address
is read from table ADRC.
Passing
data to an internal Table
I have created a smartform ,it is working properly for
header footer everything, but when I add some database table fields it
is not displaying anything. I dont know how to move the values from database
table into an internal table , which I defined in the FORM INTERFACE ->
TABLES.
When you create a table node in any smartform, there are many ways to pass
the internal table data to the smartform table node. But first click
on the table node in your SF then goto the 'DATA' tab. Here you will see
an input box in which you have to enter the name of the internal table.
Now, lets say your internal table is called ITAB (not very original I know)
so here in the field enter LOOP ITAB INTO ITAB. The other way of
doing it is to explicitly state how many lines of the ITAB you want to
be printed. This is done by specifying a number in the LINES field.
I suggest you try the first method.
Now once you have done this, i assume you will also have created cells
and text nodes in the table. if not , create cells using the table painter,
and create the text nodes under the table node.
Now in each text node in the table, give the field of the ITAB whose
value you want to print in the SF eg: if you have ITAB-MATNR type &ITAB-MATNR&
or drag-n-drop it from the variant list in the SF (to view the variant
list there is a button on the same line as the activate button, the list
appears on your bottom left hand corner) and be sure to specify the 'NEW
LINE'/'NEW CELL' for each text node accordingly the other ways of printing
a table is by using the nodes for loops, templates, etc. they are all very
similar to tables.