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

Update ztable with itab data

Former Member
0 Likes
544

Hi i have this requirement.

My Ztable data is like this

Key1 Key2 Reg1 Reg2

A B dgghh grfre

if i have data in ITAB like this

Key1 Key2 Reg1 Reg2

A B abcde --

After my update my final ztable data should look like this

A B abcde grfre

My blank itab field should not update the corresponding ztable field.

It only should update ztable data if it has corresponding field value in itab.

Points will be awarded...

4 REPLIES 4
Read only

alex_m
Active Contributor
0 Likes
528

I think u dont have a option to restrict like internal table Trasporting Fields option.

Read only

Former Member
0 Likes
528

hi Narendra,

do this way .

loop at itab.
update ztable client specified
                     where key1 = itab-key1 and
                              key2 = itab-key2.
endloop.

Message was edited by:

Santosh Kumar Patha

Read only

0 Likes
528

Santosh,

Thanks for ur answer

i tried that way, and it just updating ztable with the blank field.

Read only

Former Member
0 Likes
528

Hi,

i think you might not have cleared the work area.clear the work area after updating the values in ztable.it will work.

reward points if it is helpful.

regards,

sangeetha.a