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

Modify standard table

Former Member
0 Likes
565

Hi,

Upon some condition i need to change the values fo the standard table.

How can i achive this without using BAPI.

Records will be in Final table with VBELN.

Can i achive this with modify statement. Please explain.

loop at i_final to wa_final. 


 if COLA/Economic change date   = u2018spaceu2018
    Change VBKD-PRSDT = =   Date of first adjustment  
Else 
       Change VBKD-PRSDT = =   COLA/Economic change date.
Endif 


endloop.

Any suggestions will be aprreciated!

Regards,

Kittu

1 ACCEPTED SOLUTION
Read only

former_member209217
Active Contributor
0 Likes
520

Hi,

Avoid updating the standard tables using MODIFY or UPDATE statements .It causes data inconsistency.

I suggest you to use BAPI's for updating standard tables.

Regards,

Lakshman.

4 REPLIES 4
Read only

former_member209217
Active Contributor
0 Likes
521

Hi,

Avoid updating the standard tables using MODIFY or UPDATE statements .It causes data inconsistency.

I suggest you to use BAPI's for updating standard tables.

Regards,

Lakshman.

Read only

Former Member
0 Likes
520

Dont update standard tables directly. Use BAPI to update standard tables.

Regards

Vinod

Read only

Former Member
0 Likes
520

Hi,

Modifying standard table through prgram( Modify) is strict No, untill you are completely aware of the consiquence. there are dependencies of record on other records, so modification may lead to incosistancy.

through modify statement you Can modify datbase table, but never do it inside loop. Populate all date in one internal table and then modify using this intenal table.

check f1 help for modify.

Read only

Former Member
0 Likes
520

Hi,

Thank you for your quick response!

Regards,

Kittu