Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Modify dynamic internal table

Former Member
0 Likes
621

Hi friends.

How could we modify dynamic internal table.

Regards,

Amit Raut

5 REPLIES 5
Read only

Former Member
0 Likes
552

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

http://www.kabai.com/abaps/z53.htm

Read only

Former Member
0 Likes
552

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

Read only

Former Member
0 Likes
552

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

Read only

athavanraja
Active Contributor
0 Likes
552

<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

Read only

Former Member
0 Likes
552

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