2008 Oct 30 4:02 AM
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.
show the changing parameter declaration../
itab type ..?
2008 Oct 30 4:04 AM
hi,
check the declaration of tot_amt in the attribute part of the FM.
2008 Oct 30 4:05 AM
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..?
2008 Oct 30 4:15 AM
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
2008 Oct 30 4:19 AM
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.
2008 Oct 30 4:22 AM
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.
2008 Oct 30 4:24 AM
2008 Oct 30 4:25 AM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |