Hi All,
This is regarding the simple ABAP transformation. I need to separate two columns with a separator, Could anyone help me with the code.
For example, the following are the two columns with Header and Line items in a table without separator.
Resources Draft
XYZ D1
ABC D2
DEF D3
These two columns Resource and Draft (Header) should be seaparated with a separator 'I' similarly the Lines under the header.
The code is already present for display of the fields. But there is no separator.
Sample Code:
<tt:attribute name="type">
<tt:text>mrss.sgx.typerep.img.table</tt:text>
</tt:attribute>
<header>
<header width="30"/>
<label width="220">
<tt:value ref="para_s_texts.TAB_COL1_HEADER" /> *-> Label Resources*
<tt:value ref="para_s_texts.TAB_ROW_DRAFT" /> *-> Label Draft*
</label>
</header>
<row id="D.0">
<tree>
<tt:value ref="para_s_texts.TAB_ROW_DRAFT" />
</tree>
</row>
</tt:s-cond>
<!-- The new row types -->
<tt:s-cond check="not-initial(para_s_states.DATA_CHANGED_ROWS) or not-initial(para_v_override)">
<!-- Add the rows to the list and the showable -->
<!-- Adding or changeing rows -->
<tt:loop ref="para_t_resources" name="resource"> *-> Looping through internal table for resource details*
<tt:s-cond
check="not-initial($resource.NEW) or not-initial($resource.changed) or not-initial(ref('.para_v_override'))">
<row>
<tt:attribute name="id" value-ref="$resource.RESOURCE_ID" />
<tree>
<tt:value ref="$resource.TEXT" /> *-> Value for Resource like XYZ, ABC....*
<tt:value ref="$resource.TYPE" /> *-> Value for Draft like D1, D2, D3*
</tree>
My requirement is that the table should be separated into a new column with header and the values(line items) under it, the vertical lines.
Please suggest what needs to be added here in order to separate the two columns.
Thanks a lot in advance.
Regards,
Swathi