05-16-2006 8:31 AM
Hi friends.
How could we modify dynamic internal table.
Regards,
Amit Raut
05-16-2006 8:33 AM
go through this link...
http://72.14.203.104/search?q=cache:PW0nTfKGW78J:www.sap-img.com/ab030.htmDYNAMICINTERNALTABLEABAP+&hl=en&gl=in&ct=clnk&cd=1
05-16-2006 8:35 AM
hii
<b>data index type i.
loop at it_ztable into wl_ztable.
index = sy-tabix + 9.
read line index field value wl_ztable-matnr into w_matnr.
modify it_ztable from wl_ztable.
endloop.</b>
instead of using <b>sy-tabix</b> we can use <b>sy-index</b>
also go thru this demo program..this will solve ur problem
<b>DEMO_LIST_READ_LINE</b>
Regards
Naresh
05-16-2006 8:37 AM
Hai Amit
You can put a check depending on your condition you can pass the table parameters to the FM..Ex:-If condition1 is true. Perform gui_upload tables ITAB1.elseif condition2 is true. Perform gui_upload tables ITAB2.endif.Form gui_upload tables ITAB structure ....CALL FUNCTION 'GUI_UPLOAD' EXPORTING FILENAME = LDF_FILENAME3 FILETYPE = LDF_TYPE1 HAS_FIELD_SEPARATOR = 'X' TABLES DATA_TAB = ITAB EXCEPTIONS FILE_OPEN_ERROR = 1 FILE_READ_ERROR = 2 NO_BATCH = 3 GUI_REFUSE_FILETRANSFER = 4 INVALID_TYPE = 5 NO_AUTHORITY = 6 UNKNOWN_ERROR = 7 BAD_DATA_FORMAT = 8 HEADER_NOT_ALLOWED = 9 SEPARATOR_NOT_ALLOWED = 10 HEADER_TOO_LONG = 11 UNKNOWN_DP_ERROR = 12 ACCESS_DENIED = 13 DP_OUT_OF_MEMORY = 14 DISK_FULL = 15 DP_TIMEOUT = 16 OTHERS = 17 . IF SY-SUBRC <> 0. MESSAGE E506 WITH 'UPLOAD' 'SY-SUBRC=' SY-SUBRC SPACE. ENDIF.Endform.
Thanks & Regards
Sreenivasulu P
05-16-2006 8:53 AM
<i>How could we modify dynamic internal table.</i>
do you mean modifying the entries (records) in the dynamic internal table or
the dynamic internal table definition itself?
Regards
Raja
05-14-2007 11:05 AM
hi amit
i would like to know whether you found out the answer to your question.
my problem is to read a dynamic table by some index - its a double-click event...
toda raba
eyal