2009 Mar 11 3:44 PM
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
2009 Mar 11 3:51 PM
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
2009 Mar 11 3:54 PM
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
2009 Mar 11 4:26 PM
2009 Mar 12 1:45 PM
hi mate.....
I cant seem to find that function module?
Could you please tell me how to display it and use it?
Many thanks
2009 Mar 12 1:48 PM
2009 Mar 12 1:52 PM
2009 Mar 12 1:56 PM
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
2009 Mar 12 2:13 PM
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
2009 Mar 12 2:18 PM
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.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |