‎2009 Aug 17 5:39 PM
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.
‎2009 Aug 17 7:52 PM
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
‎2009 Aug 17 7:52 PM
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
‎2009 Aug 17 8:14 PM
Hi,
once you had updated better to use the refresh control name keyword.
Thanks & Regards,
Sateesh.
‎2009 Aug 17 10:20 PM
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
‎2009 Aug 18 4:09 AM
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