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

delete value from the internal table

Former Member
0 Likes
642

Hello,

I am getting the value for payment date as '0.00' instead of a blank value. How do I delete only this value from internal table without deleting the entire record.

Thks & Rgds,

Hemal

3 REPLIES 3
Read only

anuj_srivastava
Active Participant
0 Likes
492

Hi Hemal ,

put a loop on ur internal table and delete entries where it is coming as 0.00 and modify ur internal table.

Loop at itab.

if itab-date = '0.00'

itab-date = ' '.

modify itab.

endif.

Endloop.

Regards,

Anuj

Read only

0 Likes
492

Hello Anuj,

Thanks for your response. I tried the code below, which didn't work.

LOOP AT it_invsrch_tab.

IF it_invsrch_tab-zpaymentdate = '0.00'.

it_invsrch_tab-zpaymentdate = ' '.

ENDIF.

MODIFY it_invsrch_tab[] FROM it_invsrch_tab.

ENDLOOP.

Rgds,

Hemal

Read only

0 Likes
492

Hello Anuj again,

I realized from your code that I was putting modify condition outside if..endif. After putting inside it works fine. Thanks for your help.

Rgds,

Hemal