Application Development 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: 

modify the content of a table inside function module

Former Member
0 Kudos

if line_bill-cust_no = line_cust-cust_no.

line_cust-tot_amt = line_cust-tot_amt + line_bill-bill_amt.

MODIFY it_cust1 FROM line_cust transporting tot_amt WHERE cust_no = line_bill-cust_no.

inside the function module in se 37 i am getting an error .

The specified type has no structure and therefore no component called tot_amt....

actually if im running this code inside the se38 editor its running fine . but i want to do this inside a function module. when i tried to do this im getting the above error

kindly help me in resolving the problem.

7 REPLIES 7

Former Member
0 Kudos

hi,

check the declaration of tot_amt in the attribute part of the FM.

former_member188685
Active Contributor
0 Kudos

it all depends on how you defined the variable, tables etc. the structure you are modifying is a part of interface..? how you defined the interface. is that whith out any type..?

Former Member
0 Kudos

Hi

Please check the declaration of your function module....there are some tabs..Import,Export,Tables,Changing....You have to declare these properly....and also declare the structures properly..

Arunima

0 Kudos

hi arunima ,

i have declared the tables in the changing tab.. my problem is , how to access the line of the table inside the function module .

for ex:

loop at itab into wa where field1 = 'field2'.

i have declared the wa in the function module but still it gives the error that field1 is not recognisable...

how to resolve this...

kindly help me out.

0 Kudos

how you defined the itab in the changing tab. are you using any table type..? if you just refer the structure name then you have to use the table type.

0 Kudos

yes in have given table type as standard table

0 Kudos

show the changing parameter declaration../

itab   type      ..?