2009 Aug 11 3:32 AM
Dear All ,
I faced a problem , when i tried to loop the table and used the funtion AT END OF lines ..... ENDAT ..
why the somes the table field will become ************** ?? and i cnt get the value ........ example like below.
how i going to solve this problem ? and make the value come out .
3107 |07 |**** | 0.000 |*******|********|********|*** |
1 3107 |02 |CL | 1.000 |20090811|310702 |ST-ADJ IN |CL21 |
2 3107 |05 |CL | 1.000 |20090811|310705 |ST-ADJ IN |CL21 |
3 3107 |07 |CL | 1.000 |20090811|310707 |ST-ADJ OUT|CL21 |
Thanks,
SAP Funs ..
2009 Aug 11 3:40 AM
Try to something
loop at itab.
at end of matnr.
move 'Y' to v_flag.
endat.
if v_flag eq 'Y'.
" Here you will get record without *******
endif.
endloop.
a®
2009 Aug 11 3:40 AM
Try to something
loop at itab.
at end of matnr.
move 'Y' to v_flag.
endat.
if v_flag eq 'Y'.
" Here you will get record without *******
endif.
endloop.
a®
2009 Aug 11 3:57 AM
Dear ,
i need to read the value before the ENDAT ........
THanks
2009 Aug 11 4:07 AM
2009 Aug 11 5:01 AM
Hi,
In Control break events
All components with a character-type, flat data type to the right of the current control key are set to character "" in every position.*
So at the beginning of the loop move all the records to another workarea.
LOOP AT lt_itab INTO wa_itab.
wa_itab1 = wa_itab. "---> move all the values to another workarea of same structure, now that workarea will show all values
Process all your events " Use wa_itab1 values for processing.
CLEAR : wa_itab1.
ENDLOOP.Regards
Bala Krishna
Edited by: Bala Krishna on Aug 11, 2009 9:32 AM
2009 Aug 11 5:02 AM
Loop at itab into wa.
g_tabix = sy-tabix
at end of matnr.
read table itab into wa index g_tabix. "<---add this
***you will not get the symbols here
endat.
2009 Aug 11 5:11 AM
Hi,
Please try Richi method that will work.
One more way is also there,
Place matnr after ENDAT in structure postion .
Thanks & regards,
ShreeMohan