Hi,
I have created an ABAP function wherein I am reading table to output in a table. Code as follows
SELECT * FROM <source_table>
INTO CORRESPONDING FIELDS OF TABLE <t_output_table>
WHERE <conditions>
Import tab has two import parameters.
Export tab has none.
Changing has none.
Table tab has
PARAMETER NAME as t_output_table,
TYPING as LIKE,
ASSOCIATED TYPE as source table
What I want to do next is to add another field to the output which will be substring of one of the field of source table. For example if FieldA of source table has value "abcdefgh", I want to return "defgh" as additional column of the output table.
Appreciate any help !!
IMS