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

table control itab not getting updated.

Former Member
0 Likes
707

Hi,

I have a table control created with the help of the wizard.

There are initailly no entries in the table and the user enters it during execution.

However the entries do not get updated in the internal table.

The modify statement below fails giving sy-subrc value 4.

MODIFY gt_bank_det_new

FROM gwa_bank_det_new

INDEX zbp_bank_dt_new-current_line.

Can you suggest what could be going wrong. There are no type mismatches and the table is a standard one.

Thanks in advance.

Arindam.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
676

Hi,

The problem is that you do not have any data in the itable.

You cant modify index X there's no datain index X.

Use insert for all new data to be inserted and modify for all modifications on existing data.

Regards!

Curtis

4 REPLIES 4
Read only

Former Member
0 Likes
677

Hi,

The problem is that you do not have any data in the itable.

You cant modify index X there's no datain index X.

Use insert for all new data to be inserted and modify for all modifications on existing data.

Regards!

Curtis

Read only

Former Member
0 Likes
676

Hi,

once you had updated better to use the refresh control name keyword.

Thanks & Regards,

Sateesh.

Read only

swaroop_g2
Explorer
0 Likes
676

Hi,

Check the itable during debugging mode to identify whether you have the actual/entered data of user before modifying it. It appears that you dont have data avaialble, hence your index value is not workign

Read only

Former Member
0 Likes
676

Hi

in PBO

Loop at itab with control tc.

endloop.

In PAI,

loop at gt_bank_det_new.

module modify_tab.

endloop.

in Program

module modify_tab

describe table itab lines tc-lines.

if tc-lines <= tc-current_line.

MODIFY itab FROM wa INDEX tc-current_line.

else.

append wa to itba.

endif.

endmodule.

Cheers

Ramchander Rao.K