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 output of given code? data : f1 type i, f2 type i. write : / f1, f2. do 2 times. perform addfld. enddo. write : / f1, f2. form addfld. data : f1 type i, f2 type i. add 1 to f1. add 1 to f2. write : / f1 , f2. endform. int : f1 , f2.
In one of our zflash against collections report is not matching with the actual collections i.e invoice valuse of 200000 and payment had received for entire invoice and as per accounts of the particular customer this invoice is cleared but when we had tken z flash for collections which had developed my ABAP tem it's not matching.it's happened for many invoices how to get right report as per the payment details?
Have you processed BDCs ?
What are the screen elements.
If we will display the data by writing write statement on start of selection then what is the need of end-of- selection in classical report
Explain the disadvantages of logical databases?
What is bdc programming? : abap bdc
how will you debug sapscript
write the program for prime numbers between 1 to 1000
Explain MM and SD flow from ABAP point of view?
What are the two levels in defining a match code ?
How do you see the data in a table?