Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Import table parameter given as VALUE(table) - what does this mean?

Former Member
0 Likes
535

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)

3 REPLIES 3
Read only

Former Member
0 Likes
455

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

Read only

0 Likes
455

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)

Read only

0 Likes
455

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