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

Updating table

Former Member
0 Likes
1,901

Hi all,

I need to update a table called MPOS.

I know that you are not supposed to directly update SAP tables but I need to fill in entries based on 2 criteria and there are 1000s of records.

Whats the best way to do this?

Thanks

That might be, I am looking into ECC 6. But still I think you should not go for only updating this table, this is more or less like direct update only.

Kuntal

9 REPLIES 9
Read only

former_member376453
Contributor
0 Likes
1,708

Hi I am not sure, You can try to findout some FM / BAPI to update the table entry. By the way, are you trying to do something with transaction MD04?

Kuntal

Read only

Former Member
0 Likes
1,708

Hi,

The best way could be finding out from which transaction the table MPOS gets the records and in those transaction if you have the fields you want to modify,

then you can use BDC with that transaction and execute them for all the records,

Regards,

Siddarth

Read only

Former Member
0 Likes
1,708

use this FM /ISDFPS/PM_RELOC_MPOS_UPD_TASK

Read only

0 Likes
1,708

hi mate.....

I cant seem to find that function module?

Could you please tell me how to display it and use it?

Many thanks

Read only

0 Likes
1,708

In SE37 -> /ISDFPS/PM_RELOC_MPOS_UPD_TASK

Kuntal

Read only

0 Likes
1,708

it doesnt seem to exist in 4.6C

Read only

0 Likes
1,708

That might be, I am looking into ECC 6. But still I think you should not go for only updating this table, this is more or less like direct update only.

Kuntal

Read only

0 Likes
1,708

i cant find a function that does this and because some of the entries do not have MPOS-MITYP it errors when trying to load screen.

How can I directly update this table.

Thanks

Read only

0 Likes
1,708

I am giving you the code for the above FM. But still look for something else. Don't go for direct table update. This actually disturb, standard data consistancy. Wait for some more replies from the forum.


  CHECK NOT i_mpos-wapos IS INITIAL.
  UPDATE mpos FROM i_mpos.