‎2009 Sep 01 3:43 PM
Hi,
I add several texts to my document which I display in a container.
Example:
VKORG: 1200 - 1300
SYSTEM_INFORMATION: Productiv System
But what I want is
VKORG: 1200 - 1300
SYSTEM_INFORMATION: Productiv System
I have try to use the method add_gap befor I add the values of the text to the document, the problem is that the length of the textfield is different.
Can I solve this with another method of the class or with a paramter ?
‎2009 Sep 01 5:26 PM
Use quick table
data: r_document type ref to cl_dd_document,
r_qtable type ref to cl_dd_table_area. "quick table
call method r_document->add_table
exporting
no_of_columns = 2
importing
tablearea = r_qtable.
"first column
call method r_qtable->add_text
exporting text = 'VKORG:'.
"second column
call method qtable->add_text
exporting text = '1200 - 1300'.
"add this new filled row
call method qtable->new_row.
"first column
call method r_qtable->add_text
exporting text = 'SYSTEM_INFORMATION:'.
"second column
call method qtable->add_text
exporting text = 'Productiv System'
"add another row
call method qtable->new_row.
More info [here|http://help.sap.com/saphelp_nw70/helpdata/EN/b6/ab3a7803ac11d4a73f0000e83dd863/frameset.htm]
Regards
Marcin
‎2009 Sep 01 5:26 PM
Use quick table
data: r_document type ref to cl_dd_document,
r_qtable type ref to cl_dd_table_area. "quick table
call method r_document->add_table
exporting
no_of_columns = 2
importing
tablearea = r_qtable.
"first column
call method r_qtable->add_text
exporting text = 'VKORG:'.
"second column
call method qtable->add_text
exporting text = '1200 - 1300'.
"add this new filled row
call method qtable->new_row.
"first column
call method r_qtable->add_text
exporting text = 'SYSTEM_INFORMATION:'.
"second column
call method qtable->add_text
exporting text = 'Productiv System'
"add another row
call method qtable->new_row.
More info [here|http://help.sap.com/saphelp_nw70/helpdata/EN/b6/ab3a7803ac11d4a73f0000e83dd863/frameset.htm]
Regards
Marcin
‎2009 Sep 02 8:13 AM
How can I control in which column I want to insert the values?
The problem is that I have one textfield and one or more values for this field like
vkorg: 1200 -1300
1400 - 1500
and so on with other textfields and values.
‎2009 Sep 02 8:20 AM
So you have to use standard table instead. Refer [Creating a Standard Table |http://help.sap.com/saphelp_nw70/helpdata/EN/10/24685b055711d4a7410000e83dd863/frameset.htm] and [example coding|http://help.sap.com/saphelp_nw70/helpdata/EN/10/246879055711d4a7410000e83dd863/frameset.htm]
Using it first you can add the column add_column then you work with this column adding text to it column->add_text
Regards
Marcin
‎2009 Sep 02 8:54 AM
is it possible to delete the lines of the table? I don't want to have lines wihtin the values.
‎2009 Sep 02 8:56 AM
I find it, its the parameter "border" which you can set to 0.
‎2009 Sep 02 8:57 AM
CALL METHOD r_document->add_table
EXPORTING no_of_columns = 2
border = '0' "<- disable border
...
Regards
Marcin