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 cardinality?how it works in ABAP?
What are clustered tables?
How to determine the attributes of an internal table?
data:zxyz type xyz. where xyz is a standard sap structure where it contains data type fields and line type (refer to other structure) fields. my question is how to assign values to field zxyz-str-matnr where str is a structure inside xyz structure.
i have 4 primary keys and i want to use only one primary key for select single.What changes will occur in the system?can i use it?
which one is efficient in following command to copy data from one itab1to another itab2 . both itab table has same structure. 1. move itab1 to itab2 2.move corresponding field of itab1 to itab2 3. itab2[] = itab2[] 4.appends line of itab1 to itab2..
Can you define a field without a data element? : abap data dictionary
what is meant by HIDE statement?
how to find the print/driver prg of smartform.I used FM SSF_FUNCTION_MODULE_NAME in driver prg.
What is the use of PROTECT and ENDPROTECT?
what are the events in sap script print progam.
What is your current client number?