‎2008 Jun 16 11:18 AM
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
‎2008 Jun 16 11:20 AM
HI,,,,
ZRET- field1 = RET-field1.
here RET-field1 has no value so ZRET- field1 is also filling up with value space.
‎2008 Jun 16 11:23 AM
‎2008 Jun 16 11:26 AM
Other wise make use of simple select statement....
select * from ZRET into table ret.
‎2008 Jun 16 11: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 ....
‎2008 Jun 16 11: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.
‎2008 Jun 16 11: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
‎2008 Jun 16 11:30 AM
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
‎2008 Jun 16 11:35 AM
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 ....
‎2008 Jun 16 11:24 AM
‎2008 Jun 16 11:29 AM
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 ....
‎2008 Jun 16 11: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