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

modify the content of a table inside function module

Former Member
0 Likes
804

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
Read only

Former Member
0 Likes
760

hi,

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

Read only

Former Member
0 Likes
760

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..?

Read only

Former Member
0 Likes
760

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

Read only

0 Likes
760

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.

Read only

0 Likes
760

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.

Read only

0 Likes
760

yes in have given table type as standard table

Read only

0 Likes
760

show the changing parameter declaration../

itab   type      ..?