2008 Jul 02 3:48 AM
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.
2008 Jul 02 4:29 AM
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
2008 Jul 02 5:20 AM
Hi,
The problem here is, it is a maintance view, so we cannot use select statement or read statement .
2008 Jul 02 6:42 AM
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 ?
2008 Jul 02 11:10 AM
Hi shyam,
You can directly maintain/upadate table using insert/modify.
no need to update maintainance view.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |