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

Add entries to table MKPF

Former Member
0 Likes
2,982

Hello Experts,

I am trying to find out how can we add, delete, update entries into standard SAP Table MKPF(Header:Material Document). Is there any function module, program used for this purpose?

Kidnly advice me on this.

Thanks in Advance

Neha

Hello Experts,

I am trying to find out how can we add, delete, update entries into standard SAP Table MKPF(Header:Material Document). Is there any function module, program used for this purpose?

Kidnly advice me on this.

Thanks in Advance

Neha

16 REPLIES 16
Read only

kakshat
Product and Topic Expert
Product and Topic Expert
0 Likes
2,611

Hello Neha,

Check FM MB_CHANGE_DOCUMENT.

Regards,

KA

Read only

Former Member
0 Likes
2,611

Hello Neha,

You can search some exit to do so or you can try 'J_1IEXGM_BADI_POST_DOCUMENT'.

Could you please brief out your requirement, Do u want to update from MIGO or from custom program.

Regards,

Deepti

Read only

0 Likes
2,611

Hello Deepti,,

Can you tell me how can I add entries from MIGO?

Thanks,

Neha

Read only

0 Likes
2,611

hi,
     why do you want to update MKPF ? it is a standard table which stores the header information of material documents... which is updated while doing MIGO or any reltaed tcode... may be people can help you better if you can tell what is your actual requirement...

Read only

Former Member
0 Likes
2,611

Regards,

Bhupender Singh

Read only

RaymondGiuseppi
Active Contributor
0 Likes
2,611

What is your exact purpose, MKPF is header of goods movement and related to value of stock and accounting, I hope your are not trying to do this "wildly" in a productive system ?

Nevertheless

  • To create header (and line items) -> create a goods movement with a transaction like MIGO or via BAPI like BAPI_GOODSMVT_CREATE in a customer program.
  • To delete movement -> SARA archiving process is the only allowed tool.
  • Change movement -> AFAIK not allowed by SAP. (Even cancellation don't update the original movement)

(Also read your SAP license)

Regards,

Raymond

Read only

Former Member
0 Likes
2,611

Hi Neha,

You can use &sap_edit functionality for direct insert data into table , if task is rally urgent.

do not use it as regular purpose.

hope this helps

Avirat

Read only

0 Likes
2,611

Sorry guys, both &sap_edit and TMG for a critical standard application table like MKPF is outright dangerous to the data integrity, in the future please think twice before posting.

Where is the "dislike" button that subtracts points?

Thomas

Read only

0 Likes
2,611

Thomas,

You mean like the vote options in  SAP Community Network Improvements > Dislike / thumbs down button ?

Regards,

Raymond

Read only

0 Likes
2,611

Yes, but additionally subtracting poioings, so that it really hurts

Thomas

Read only

0 Likes
2,611

That might increase the chances of spammers disliking even good answers .... Moderators work might drastically increase 

Read only

0 Likes
2,611

Yes,totally agree with you sir (and will keep in mind before posting apology for the same),

but what about earlier posts which had posted by other users?

and

why there were no action taken or inform the same time by moderators ?

shell we have point deduction system for moderators ? if anyone misses to warn critical post.

Avirat

Read only

0 Likes
2,611

@maverick, this would sure by a side effect, what can be misused, will be misused

@avirat, yes same rights for all, unfortunately we cannot be here all the time (voluntary, part time work), so you can help by clicking "report abuse" on such posts, then I guarantee it will be looked at.

Thomas

Read only

0 Likes
2,611

@Thomas  Yes it will be misued, however,if the dislike option can be given to specific people , like moderators or people with points more than 1000 or something ... it might work ...

Read only

0 Likes
2,611

License to kill ?

Read only

0 Likes
2,611

yes sort of .... but people have to work hard to earn that license

P.S.:  I think we should stop discussing this in this post as it is way out of league  of the main topic , and may be if there was a dislike option some might have used it on these posts .