how we can moddify a internal table without using modify
statement
Answers were Sorted based on User's Feedback
Answer / saifur rahaman
please note if i am not wrong.
how can you expect the system to modify an interanl table
without we write a code which is given by the ABAP Key
words.
please use modify statement.
and i think even if you use field symbols then also the FS
will not modify your internal table.
may subroutines if you pass the value by reference and the
form gets executed till the end , you may modify the values.
hope this will serve your purpose.
and then also if ur rigid to use modify statement then
Use Field Symbols
Something like this
DATA : itab TYPE TABLE OF string,
wa TYPE string.
FIELD-SYMBOLS : <wa> TYPE string.
wa = 'ABC'.
APPEND wa TO itab.
wa = 'ABC'.
APPEND wa TO itab.
wa = 'ABC'.
APPEND wa TO itab.
LOOP AT itab ASSIGNING <wa>.
<wa> = 'DEF'.
ENDLOOP.
Is This Answer Correct ? | 13 Yes | 4 No |
Answer / shailesh
Use field symbols. Field symbol is like a pointer in c. when you assign line of an internal table to a field symbol, it points to the same memory location. hence you change value of field symbol in turn changes the value in internal table.
Cheers!
Is This Answer Correct ? | 1 Yes | 0 No |
Answer / ravikanth
@ answer 3 above,
Answer 2 is good one to say.
Is This Answer Correct ? | 0 Yes | 0 No |
Answer / apoorv sharma
use insert statement ...
eg.
insert <workarea> into <internal table> index <index number>.
Is This Answer Correct ? | 6 Yes | 21 No |
what is the way to precide search helps in POV?
What is a table attribute?
What is an internal table?
Give the syntax of Inner,outer Join?"
7 Answers Genpact, HCL, Satyam,
Wats the difference between package and devolopment class??
how can we print both side in smartforms?
How can end-of-selection be used?
How to find Kernal badi ?
How do you get help in ABAP?
how to navigate to report from report? note: no transaction code created to report.
What are the classifications of the sap abap data classes?
in bdc. i have created bdc prg and executed. i got output in system. same bdc prg again executed in other system but i dint get the o/p. both system r in n/w connection. wats the prob.plz help me to get o/p.