‎2006 Dec 21 2:01 PM
Hi,
If I have a method with import parameter as an internal table and the import parameter is the same as export parameter and the parameter is definied as VALUE(table).
how do I change values in this table? I want to loop at change values in some column in this table.
When the import parameter is an internal table without the VALUE() I just loop and assign a field-symbol and then just
<fs-itab>-some_column = 'some_value'
but this does not seem to work when the import table is definied as VALUE(table)
‎2006 Dec 21 2:09 PM
Hi Baran,
I don't think if the system allows you to have two interface parameters have the same name.
the name should be different.
If the same table is to be used as import and export, it should be declared as CHANGING parameter instead.
Can you let us know which badi are your trying to use?
Regards,
ravi
‎2006 Dec 21 2:18 PM
yes, you are right, it is declared as "changing" but my question is: what does VALUE(itab) differ from just itab
if it is sent in as itab i would do as following:
LOOP AT itab ASSIGNING <fs_itab>
<fs_itab>-column_name = 'some_value'.
END LOOP.
In this case I do exactly the same, and the values get set in the BADI but when the values come to some table the newly set values does not show so I was wondering if there is some syntax different in changing values in a table sent in as VALUE(itab)
‎2006 Dec 21 2:21 PM
The the parameter is being shown as VALUE(), then I think it means that the parameters are being PASSED BY VALUE.
Regards,
Ravi
Note - Please mark all the helpful answers