Using MB_DOCUMENT_BADI on MB31
Hi,
I'm trying to use the BADI MB_DOCUMENT_BADI on MB31 (when saving document) to insert notification number on MKPF-XABLN (GR/GI Slip No).
I created an Implementation of the BADI, the class and a method IF_EX_MB_DOCUMENT_BADI~MB_DOCUMENT_UPDATE where I've coded something where there's a breakpoint to see if the method gets called. Everything's activated and Runtime Behavior: The implementation will be called
Problem is, the breakpoint is never reached and therefore the method never gets called.
What am I doing wrong?
BADI INFO:
Attributes
Implementation name ZMB_DOCUMENT_BADI
Definition name MB_DOCUMENT_BADI
BAdI migrates to enhancement spot MB_GOODSMOVEMENT
Impl. migrates to enhancement ZMB_DOCUMENT_BADI
Interface:
Interface name IF_EX_MB_DOCUMENT_BADI
Name of implementing class: ZCL_IM_MB_DOCUMENT_BADI
Thank you!
Hi Amit,
Thanks for your response, I have called the function module inside the BADI, and in the function module I have used the Call scree statement to trigger the popup, the call screen statment calls the program there I had written the logic for updating the custom table,
I tried initializing the tables that are returned from BADI, that didnt help as the internal tables cant be modified, the documentation clearly says that changing the global structures returned from BADI are not possible, I will try using ROLL BACK and check,
Rgds,
Similar Messages
-
Hi,
Can anybody help me for BDC CODE for MB31(Goods Receipt for Production Order).
This is 1st time i am using BDC for MB31. I don't know how to do recording of MB31.
How many fields are mandatory? Or Anyother way to create Good Receipt.(Like FM or BAPI)
Thanks And Regards,
AmitHi Amit,
Use following function module to create Goods receipt:
MB_CREATE_GOODS_MOVEMENT
The function module provides a general interface for posting goods movements.
Hope this helps.
Regards,
Abhijeet -
Reversal stock from unresticted use
I want a solution for reversal stock from unresticted use
Dear Cherian,
Carryout a 102 movement against the process order to reduce the stock from un-restricted stock using MIGO or MB31 and then
check for the same.
also I would suggest you to check the SAP Notes # 175842 for the same.
Check and revert back.
Regards
Mangalraj.S
Edited by: Mangalraj.S on Dec 9, 2009 4:43 PM -
Update material doc.num in assignment field of GR/IR line item of a/c doc
HI Experts,
please tell me the solution for my problem
My requirement : Transaction is : MIGO
Before posting of material document, update material document number in assignment field of GR/IR line item of accounting document (WE) at number commitment stage
Update MKPF-MBLNR (Material Document Number) in BSEG-ZUONR
but already i tried AC_DOCUMENT i got a problem .
What i did,
first use MB_DOCUMENT_BADI with method
mb_document_before_update.
here i tried to get the material document and export into memory
after use AC_DOCUMENT With method
change_after_check.
here Import the material document doc num and pass it to Assignment field in
but it is not working
when i debug first trigger the AC_DOCUMENT And then it goes to MB_DOCUMENT_BADI
Plese help me regarding this.
Moderator message: please open only one thread per issue.
Edited by: Thomas Zloch on Feb 9, 2012Hi,
Thanks, I will check the same. Well, I will be clearing the documents with reference to MIGO number itself. When I do my delivery chrgs migo, that number I need to be populated in my line item's assignment field. Not only that but I the same number should get populated in the delivery charges miro. Since my miro is with ref to PO it becomes difficult to fetch the field.
Plz let me know if you can help me on this as well.
Thanks,
Priyanka. -
Dear Consultants,
I have created an order in CO01...
I have done everything with that order.. the status of the order is DLV...
Kindly tell me how to settle the order...In detail..
Thank you all..
karthickDear,
You should follow following steps for Order Settlement after confirmation :
1. After Final Confirmation of Order ( Status : CNF) make GR for for order using Tcode : MIGO / MB31 so Production Order Status will be DLV.
2. Then complete the order technically by using Tcode : CO02--> Functions ( Menu)---> Restrict Processing -
> Technically Complete. You can carry out TECO for multiple Orders in Tcode : COHV (Mass Processing).
3.Now Calculate Overheads using Tcode : KGI2 - Individual Processing
CO43 - Collective Processing
4.Calculate WIP using Tcode : KKAX - Individual Processing
KKAO - Collective Processing
5.Calculate Variance by using Tcode : KKS2 - Individual Processing
KKS1 - Collective Processing
6.Finally do the settlement of Order in Tcode : KO88 - Individual Processing
CO88 - Collective Processing
Hope this helps.
Regards,
Tejas -
Dear Experts,
During the goods receipt of co product using transaction code MB31-101 mvt type, system not automatically calculating the proportion qty of co product. For example, I have a production order of 10Kg. When I produce the 10 kgs of main product, 5 kgs of co product get produced. When I do the confirmaion of 5 kg oc main product sysyen should automatically calculate the co product receipt qty as 2.5 kgs in MB31 transaction. How this can be mapped?As of SAP ECC 6.0, Enhancement Package 6 (EA_APPL_606) Business Function Optimizations in Production (LOG_PP_CI_1) is available. This business function allows you to use automatic goods receipt for co-products when entering confirmations for production and process orders.
The confirmation process has been harmonized with the standard confirmation process and is now more user friendly.
The automatic goods receipt process has significantly reduced the number of process steps previously required. When you have to confirm production orders for which there are co-products, you no longer need to call additional transactions.
When you confirm production orders, the system automatically calculates a proposal for the goods receipt or the item assigned to the operation with the corresponding quantity calculated. You can also use this function in milestone confirmation.
Note that the attribute for co-products and the indicator for automatic goods receipt must be set for the material. -
Need info on badi or exit before creation of Material document number?
hi experts,
we have two systems one is general R/3(4.6 C) and another system is GTS (NW 2004)system.
while creation of GR a check from R/3 is made to GTS through GTS plug in installed in R/3
and after which the document number is created...
now i need a BADI between the check is made in GTS and material document no. creation
where i can throw a message by checking in R/3 LFA1 table whether the vendor is SPL check or not.
for this i am using MB_DOCUMENT_BADI and the method is MB_DOCUMENT_BEFORE_UPDATE
where i am querying the zfields from LFA1(R?3) for SPL check happened in GTS (this is updated in some other interface)
if in this badi if any error message is populated it is directly going for dump..
please suggest me what can i do..
Thanks in advance
S.Janagarproblem solved by myselves.
by using popup to inform function module i am able to throw error message
Edited by: Janagar Sundaramoorthy Nadar on Nov 19, 2009 7:01 PM -
Reverse Goods Receipt for Process Order
Dear All,
Please tell me how to reverse the Goods Receipt for Process Order for which already QM is cleared for that Particular Lot.
But Confirmation is still yet Pending.
I tried MIGO - Cancel - Material Document. But it is showing a message "Process Order already processed".
Regards
bussHi,
Use t code MB31
Movement type 102
Stock type = Unristricted use.
Reverse by entering above information then you have to manually cancel the inspection lot.
Regards,
Vishal -
Movement type for production Reversal-102
Hi Experts
Our client has a requirement as such what transaction MB31 is providing for reversal of Production order,we can do only 4 at a Time.
Our client requires same thing to be done in migo against production order so that we can reverse production 14 lines at a time(i,e 14 different Pos).
I tried in MIGO i got error message
Update control of movement type is incorrect(entry 102X x )
Can we configure this movement type or not.
Regards
Sandeep Patilasfar as reversing PO isconcerned it is not a good idea to use MIGo or MB31 as the childpart consumption is not increased automativcally.
So you should try CO13,where you can reverse 1 PO at a time
and automatically 262 also takes place.
Moreover why is that you have to revers so many POs which is a bad practice. -
Dear sir,
i want to change in profit center & partner profit center at the time of PGI (vl02n) in case of stock transfer
for that i m using MB_DOCUMENT_BADI badi with method MB_DOCUMENT_BEFORE_UPDATE
but
there is no effect in table field mseg-prctr & mseg-pprctr
want to change
if prctr = 1200 & pprctr = 1800 then change pprctr
pprctr = 1900
pl. suggest me what to do .
i have check scn discussion but i did not get suitable point to implement.Hi
Check before SAP Note 978159 - Problem with profit center determination
I hope this helps you
Regards
Eduardo -
How To Reverse Excess Confirmed Quantity in Process Order?
Hi Experts,
Good day!
I have a Process Order with Total Quantity of 68,180 L which currently have a status of TECO CNF DLV PRC BASC BCRQ GMPS MACM*. I made my first partial confirmation with a quantity of 1,000 L for my Finished Good u2013 this is a confirmation with automatic goods receipt. Then I mistakenly made my Final Confirmation for this order with a quantity of 71,125 L for my Finished Good. I only noticed that my last confirmation was incorrect after the Finished Good in Stock has been depleted already. The 101 movement for the Finished Good that was posted during my final confirmation was not reversed anymore when I canceled my confirmation in CORS. I tried to reverse using a 102 movement type for this order in MB31 however it didnu2019t allow me to proceed and gave me an error said u201Cdeficit of .....in Unrestricted useu201D.
Currently my Process Order has a total Delivered Quantity of 72,125 L which is much greater than the required total order quantity of 68,180 L.
Anybody knows how to reverse this excess confirmed quantity? Your response is much appreciated.
Thanks. Have a wondeful day!
RockzHi Rockz,
You mean you made Good Receipt (confirmation) excess 3,945L .
Right now, you want to cancel only 3,945L.
As you said, FG already depleted.
If have no quantity in unrestricted Use, how can we make good movement(102) (because error:u201Cdeficit of .....in Unrestricted useu201D occur when you do TCode MB31 for 102)
If you want to cancel 3,945L, first, you must reverse that Batch of FG 3,945L to Unrestricted use (MMBE to check stock), then you use the TCode MB31 with movement 102 for reverse FG excess, if this finish, quantity in delivery of Process Order will be subtract 3,945L.
(reverse that Batch of FG 3,945L to Unrestricted use ,mean is the Batch of FG which you depleted for somethings like fill to bottle....)
Regard,
DiepNguyen. -
screen in se18 and se19 in ECC6.0 is different from ECC5.0
so please guide me step by step to build badi in ecc6.0
rahul siemensHi,
if that is the case then you can use "MB_DOCUMENT_BADI " and the method is MB_DOCUMENT_BEFORE_UPDATE..
Create a custom function mdoule and then call the FM in this method..
CALL FUNCTION 'ZTEST' in separate task 'ZTEST'.
Now in the function module write your logic to update the custom table...
Regards,
Nagaraj -
WIP to cost of sales order to settlement
Dear Experts,
Can you look at this issue
What are the steps we need to do WIP to cost of sales order to settlement
Thanks
BhaskarHi
You should follow following steps for Order Settlement after confirmation :
1. After Final Confirmation of Order ( Status : CNF) T.Code:CO15 make GR for for order using Tcode : MB1A / MB31 so Production Order Status will be DLV.
2. Then complete the order technically by using Tcode : CO02--> Functions ( Menu)---> Restrict Processing -
> Technically Complete. You can carry out TECO for multiple Orders in Tcode : COHV (Mass Processing).
3.Now Calculate Overheads using Tcode : KGI2 - Individual Processing
CO43 - Collective Processing
4.Calculate WIP using Tcode : KKAX - Individual Processing
KKAO - Collective Processing
5.Calculate Variance by using Tcode : KKS2 - Individual Processing
KKS1 - Collective Processing
6.Finally do the settlement of Order in Tcode : KO88 - Individual Processing
CO88 - Collective Processing
Note:(calculate WIP and Variance get posted during this step)
/message/6351141#6351141 [original link is broken]
Hope this helps.
Edited by: Dublin on Oct 17, 2009 10:54 AM -
Production Order Cycle after MRP run?
Dear PP gurus
pl.
Explain Production Order Cycle after run the MRP?
thanksHi,
After MRP run you will get pl. orders for inhouse produced material.
Double click this planned order & then convert intoi production order.
Check the dates, material availablity,capacity availability & then click the Release (flag)icon.The order status will become REL.
Then Save the order.
Inmd04 you can see the new prod order.
Now use T.code MB1A , 261movement to issue raw material (sub - components) wrt this order.
Then use T.code CO15 to confirm the order.
T.code CO11n can be use for confirmation by operation wise.
Then use T.code MB31 to post the stock.
Then delivery is made use T.code vl01n against a sale order.
Billing is done using vf01.
Overhead calculated using KGI2.
Variance calculated using KKS2.
Order settled using KO88.
Here the cycle is completed.
Regards,
Senthilkumar -
Hi all.
After the material document is posted by MIGO I need to post another one with MB1C for the same plant and material. I tried to use several BADIs but the problem was the following:
in methods which are executed before MSEG and MKPF update it was impossible to call MB1C properly, because the same material was blocked in th same plant by transaction MIGO. And when I tried to use methods during update, it was impossible to use the statement 'CALL TRANSACTION' there, because it was triggered in 'update task' and the shord dump occured. May be there are some BADIs that are executed right after the update of MSEG and MKPF? I couldn't find it.
I tried to use
MB_DOCUMENT_BADI, method MB_DOCUMENT_BEFORE_UPDATE,
MB_DOCUMENT_BADI, method MB_DOCUMENT_UPDATE
MB_MIGO_BADI, method POST_DOCUMENT,
but it wasn't an option
TIA, regards
NikolaiHi
I feel that your BADI's work but you have the error of getting locked.
Please do the configuration under MM -> Materials management -> General Settings for Materials Management-> Set material block for goods movements or Tcode OMJI
Select late lock & waiting time of 30 seconds (Alter this as per your requiremnt).
reward points if useful
Thanks & regards
Kishore
Maybe you are looking for
-
Retaining playlists after clean reinstall of OS (all info on external HD)?
Okay, this happens to me every single time I have to do this: I run my iTunes entirely off of an external hard drive - so everything it there including the iTunesLibrary.xml files (I also have the entire hard drive backed up on a completely separate
-
Connecting DVD-Player with GigaWorks S750
I'm going to buy a GigaWorks S750 system. Will I need an extra decoder like the DDTS-100 when I want to connect the soundsystem with the Computer (with Audigy 2 ZS Platinum Pro) and one of these things: DVD-Player, Radio, Walkman? Thank's for your an
-
SAP provided web services in ECC 6.0
Hi all, I need to consume some web services provided in <a href="http://erptest.esworkplace.sap.com/sap/bc/gui/sap/its/webgui">web services from workplace</a> (workplace user id needed to get access) from my ECC 6.0. I want to install these web servi
-
No Sound issue and do nothing Show hidden icons arrow are all good now I am please, of course, to say :) <----- smile Solution was a Refresh. It's certainly nice to have sound, again. Glad Refresh did the trick. Cheers, Drew Drew MS Partner / MS Be
-
FULL caller name (package AND proc)
I don't know any way to detect caller's package and procedure name. DBMS_UTILITY.format_call_stack is not in effect. Is it correct?