Application Development 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: 

Problem with sentence modify

adrian_mejido
Contributor
0 Kudos

Hi,  I have a problem with the sentence modify. I have a sentence TABLES for a database table in my top. Then I fill this structure with some information and finally when I try to update my database I have a problem. I try to use the modify sentence like this:

MODIFY zbfc_table FROM zbfc_table.  

But this sentence don´t update the database. I think that It is because the structure and the database have the same name and this sentence doesn´t indentify them.

Is there any other sentence that could help me?

Thanks for your time.

Best Regards

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Option 1: Try changing the work area name.

MODIFY zbfc_table from wa_zbfc_table.

Options 2: If you are using this in a report, try using COMMIT WORK after the modify statement.

Cheers

~Niranjan

4 REPLIES 4

Former Member
0 Kudos

Hi Adrian

You can Try MODIFY <zdbtab> FROM TABLE <itab>.

And maybe for safety at the end of your processing also do a Commit Work.

Regards

Vic

mahesh_madhavan
Participant
0 Kudos

Hi,

Since you have declared TABLES, just write this statement.

MODIFY zbfc_table.

Cheers,

Mahesh

Former Member
0 Kudos

Hi,

Option 1: Try changing the work area name.

MODIFY zbfc_table from wa_zbfc_table.

Options 2: If you are using this in a report, try using COMMIT WORK after the modify statement.

Cheers

~Niranjan

Former Member
0 Kudos

Hi

  try this 

     Modify zbfc_table.  or

      Modify *zbfc_table.