Skip to Content
author's profile photo Former Member
Former Member

modify the content of a table inside function module

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Oct 30, 2008 at 04:04 AM

    hi,

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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 30, 2008 at 04: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..?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 30, 2008 at 04: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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.