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

Equal To Statement

Hi,

I have created a function module where i have passed the ZRET table as RET internal table,

than in the source code

ZRET- field1 = RET-field1.

Before execting the statement ZRET-field1 has the value,but after executing the statement ,there is no value in both the tablei.e.ZRET and RET

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 10:20 AM

    HI,,,,

    ZRET- field1 = RET-field1.

    here RET-field1 has no value so ZRET- field1 is also filling up with value space.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 10:22 AM

    hi

    that means thr is no value n RET table that is y after executing the stmt even the zret gets null.........

    reward points if useful.......:-)

    and mark the post answered once ur problem is solved .... 😊

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 10:22 AM

    Hi,

    Don't pass it as a field.Pass it to the FM as an internal table.In the FM that internal table might have been refreshed.Please check.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 16, 2008 at 10:24 AM

    Hi Priya...

    Put a break point in utr FM and doing a standalone debugging check wheather the perticular field contains value contains value or not..

    other wise use...

    modify or update statement statement...

    Reward points...if its useful...

    Regards

    Rudra

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      say for eg:

      zret-field = ' ABC'.

      ret-field = ' '.

      ok now if

      u do

      zret-field = ret-field .

      then

      the value in zret-field will be overwritten by ' ' and will contain ' '. so u will find no value in zret-field after execution of zret-field = ret-field stmt

      zret-field = ' '.

      ret-field = ' '.

      reward points if useful.......:-)

      and mark the post answered once ur problem is solved .... 😊

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 10:24 AM

    Hi,

    RET-field1 = ZRET- field1 .

    Put like that.

    Thanks,

    Durai.V

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      see before this RET-field1 = ZRET- field1 stmt gets executed check the value in ZRET header

      and if Zret is empty then ur code is perfect.......

      coz if ZRET does not have value then after executing

      RET-field1 = ZRET- field1 stmt even the value in RET-field1 will be null.

      reward points if useful.......:-)

      and mark the post answered once ur problem is solved .... 😊

  • author's profile photo Former Member
    Former Member
    Posted on Jun 16, 2008 at 10:25 AM

    always the values passer from the right to left....

    so the value ret-field1 had no initial value means zero or space..

    so it is over writing the value of the zret-field1 with space

    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.