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 are the Synchronous and asynchronous methods in bdc ?
what is the purpose of TYPES keyword?
What is payroll area
What is the function of a domain? : abap data dictionary
How do you read a LOCAL Sequentional file
What are the types of views? : sap abap data dictionary
What are the program names for logical database PNP and PNPCE
Types of windows in SAP scripts?
9 Answers vCentric Technologies,
i need the explanation for the following one . 1.BAPI 2.BADI 3.USEREXITS. 4.ALE,IDOCS,REPORT,SAPSCRIPTS,SMARTFORMS. And their uses,what is it process in realtime.
can anyone give me notes on bdc direct input method
For what purpose Chain Endchain statement is used?
Difference between Read and Get cursor?