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

Equal To Statement

Former Member
0 Likes
1,207

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

Former Member
0 Likes
1,152

HI,,,,

ZRET- field1 = RET-field1.

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

Read only

0 Likes
1,152

sorry, the statement is

ret-field1 = zret-field1

Read only

0 Likes
1,152

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

select * from ZRET into table ret.

Read only

Former Member
0 Likes
1,152

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

Read only

Former Member
0 Likes
1,152

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.

Read only

former_member195383
Active Contributor
0 Likes
1,152

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

Read only

0 Likes
1,152

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

Read only

0 Likes
1,152

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

Read only

Former Member
0 Likes
1,152

Hi,

RET-field1 = ZRET- field1 .

Put like that.

Thanks,

Durai.V

Read only

0 Likes
1,152

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

Read only

Former Member
0 Likes
1,152

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