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

Former Member
0 Likes
1,134

Hi all,

I am writing the query like this

UPDATE ekbe FROM TABLE i_ekbe_upd.

i_ekbe_upd interal table not the type of ekbe.I declared one structure for that,when ever i am updating the table it is not unicode convertable.

My question is how to update particular fields from internal table.

regards,

Rakesh.

12 REPLIES 12
Read only

Former Member
0 Likes
1,112

hi

use

Update itab SET key WHERE condition

Rewards if it usefull

regards

deva

Read only

Former Member
0 Likes
1,112

hi rakesh...

chk this syntax

UPDATE (table)

SET (set_expr)

WHERE (condition).

regards

deva

Read only

Former Member
0 Likes
1,112

Do not update SAP tables like this.

Read only

Former Member
0 Likes
1,112

Hi,

We need to use Update..

set..

where...

plz check below code :

UPDATE zo9_user_status
                SET  sub_date = sy-datum
                     sub_time = sy-uzeit
                     status = g_wa_outtab-status
                WHERE  representative = g_wa_outtab-representative AND
                       selection_id = g_wa_outtab-selection_id AND
                       sub_date = g_wa_outtab-sub_date AND
                       sub_time = g_wa_outtab-sub_time AND
                       superior = g_wa_outtab-superior.

        IF sy-subrc EQ 0.
          COMMIT WORK.
          l_error = 'X1'.

        ELSE.
          l_error = 'X2'.
          CLEAR l_error.
          ROLLBACK WORK.
ENDIF.

hope this helps.

thanx,

dhanashri.

Read only

0 Likes
1,112

i want to update total internal table at a time.(not the work area)

regards,

rakesh

Read only

0 Likes
1,112

DO NOT UPDATE EKBE USING THIS METHOD OF DIRECT UPDATE.

Read only

0 Likes
1,112

Update the same by keeping it in a loop

Read only

0 Likes
1,112

I guess some ppl are just not ready to take any good advise

pk

Read only

0 Likes
1,112

Do you notice this.

DO NOT UPDATE EKBE USING DIRECT UPDATES.

Read only

0 Likes
1,112

Hi martin,

i am modifying my object previously they are Updating like that only.

I need to change that one.

Read only

0 Likes
1,112

What you have said does not make sense.

Do not update SAP tables using direct update. If you are changing a program that already does this, you should be reporting it to your manager.

It is your responsibility as a developer.

Read only

0 Likes
1,112

Hi Rakesh .,

One can Not update standard SAP tables like that .

even you may have done the same for Custom Table ( Z table ) .

You have to Use Bapi if any for such updations .

thanks

Sreenivas REddy