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

Need Logic

Former Member
0 Likes
581

Hi folks,

I have some records in a internal table which has fields like country, start_date etc... I need to find a record in a view, where the country field in the view must be match to country fielld in the internal table record. if it the record is there in the view, i need to update remaining fields of the view. can we compare a internal table record with the record in the view. If so, Could you pls sugest me how to do..

Thanks,

Shyam.

Hi folks,

I have some records in a internal table which has fields like country, start_date etc... I need to find a record in a view, where the country field in the view must be match to country fielld in the internal table record. if it the record is there in the view, i need to update remaining fields of the view. can we compare a internal table record with the record in the view. If so, Could you pls sugest me how to do..

Thanks,

Shyam.

4 REPLIES 4
Read only

Former Member
0 Likes
566

Hello Shyam,

loop at internal_table into wa_area.

read table view_table with key wa_area-country_key.

if sy-subrc = 0.

modify view_table from wa_area where wa_area-country_key.

endloop.

Please try with this logic. It might help you.

Regards,

Raghu

Read only

0 Likes
566

Hi,

The problem here is, it is a maintance view, so we cannot use select statement or read statement .

Read only

Former Member
0 Likes
566

Hello

Yes, we can compare a internal table record with the record in the view. But we can not modify/insert record in the view.

Goto SE11 -> View -> Display -> Table/join conditions

There are one or more tables in block 'Tables'. May be you need update fields of those tables ?

Read only

Former Member
0 Likes
566

Hi shyam,

You can directly maintain/upadate table using insert/modify.

no need to update maintainance view.