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: 

Equal To Statement

Former Member
0 Kudos

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

11 REPLIES 11

Former Member
0 Kudos

HI,,,,

ZRET- field1 = RET-field1.

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

0 Kudos

sorry, the statement is

ret-field1 = zret-field1

0 Kudos

Other wise make use of simple select statement....

select * from ZRET into table ret.

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

former_member195383
Active Contributor
0 Kudos

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

0 Kudos

ya rudra,

that's what i am saying that before executing the statement,the field has the value,but after executing the statement this field has no value

0 Kudos

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

Former Member
0 Kudos

Hi,

RET-field1 = ZRET- field1 .

Put like that.

Thanks,

Durai.V

0 Kudos

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

Former Member
0 Kudos

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