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

Declaring field from the internally declared table into dynamic table

Former Member
0 Likes
352

Hi Gurus,

I need your help on one of my requirements.

Due to dynamic nature of ALV report, I have used a dynamic internal table to pass it to function module.

In dynamic tables, I am trying to have one column form the internal table which is being calculated by substracting 2 fields( i,e. diff = wa_stk-labst - wa_stk-omeng). Is it possible to include that field (diff) which is coming from the internally declared table(i_out) into the dynamic table decleration. Please assist.

Thanks in Advance

Hi Gurus,

I need your help on one of my requirements.

Due to dynamic nature of ALV report, I have used a dynamic internal table to pass it to function module.

In dynamic tables, I am trying to have one column form the internal table which is being calculated by substracting 2 fields( i,e. diff = wa_stk-labst - wa_stk-omeng). Is it possible to include that field (diff) which is coming from the internally declared table(i_out) into the dynamic table decleration. Please assist.

Thanks in Advance

1 REPLY 1
Read only

Former Member
0 Likes
307

Hi,

Suppose your dynamic table is of type table.

When you pass the data from internal table I_OUT to your dynamic table it will get the same structure as of your internally declared table IT_OUT which is calculated by subtracting 2 fields.

What you can do is create one more field in I_OUT which holds the value of the subtracted amount then pass the table IT_OUT to your dynamic table.

Thanks

Bhanu