Help in BAdi for MIGO
hi friends,
i have a requirement in which, when i post goods in migo, a pop up should come where i have to enter a form(form-31) details and this should get reflected in an ztable along with the vendor details. i have found that a BAdi(MB_DOCUMENT_BADI- i am using SAP R/3 5.0 ) exists with two methods
1.'MB_DOCUMENT_BEFORE_UPDATE'
2.'MB_DOCUMENT_UPDATE'.
which one should i use? becos in the documentation it says that 'MB_DOCUMENT_BEFORE_UPDATE' is called before any accounting documents are generated and if i write any database commit in this method then if some error occurs after the business add-ins are processed we cannot carry out a complete ROLL BACK,as the data up to the COMMIT has already been written in the database(ztable),it will lead to data inconsistency.
again in 'MB_DOCUMENT_UPDATE' it says is processed after the FI document numbers are called and for For performance reasons, you should not re-read the tables or write to any tables or carry out any time-consuming routines in this method..
pls advice if there is any other BAdi or any work around...waiting for your replies...and pls be descriptive...
also if the user cancels or exits the popup then processing should not proceed..it should come back to the migo initial screen without posting the goods...how to go about it?
regards
kiran
pls ...help is urgent...every effort is appreciated
Message was edited by: kiran k
Hi
If you call a popup I don't think you can use the method 'MB_DOCUMENT_UPDATE', as here you can update your Z-TABLE without the COMMIT. So I suppose this method works in background and in this step any popup can be shown.
So you should use 'MB_DOCUMENT_BEFORE_UPDATE', but I don't know I you can stop the saving, try to use an error message.
Max
Similar Messages
-
User Exit or BADI for MIGO on entry of inbound delivery number
Hi all,
I want a user exit or BADI for MIGO, my requirement is that whenever a user enters an inbound delivery number and presses enter in MIGO the exit should get fired.
Please help, if someone knows.
Thanks and Regards,
Mohammed.hi
you can try out various BADI'S-
MB_MIGO_BADI
MB_MIGO_ITEM_BADI
Helpful function modules:-
MIGO_BADI_EXAMPLE
MIGO_BADI_EXAMPLE_GET_DATA
MIGO_BADI_EXAMPLE_GET_HEADER
MIGO_BADI_EXAMPLE_PUT_DATA
MIGO_BADI_EXAMPLE_PUT_HEADER
MIGO_BADI_EXAMPLE_UPATE_DATA
MIGO_BADI_EXAMPLE_UPDATE_HEAD
I hope at least one of these helps.
regards
Aakash -
Exit or Badi for Migo transaction for given condition
Hi,
I need exit or Badi for MIGO transaction for the following condition ( When the goods receipt for the PO is initiated, prior to posting the accounting document).
Please let me know
Regards
RameshHi
In rel 4.6C you can find these BADIs:
- MB_DOCUMENT_BADI or MB_DOCUMENT_UPDATE
and these exits: MBCF0002, MB_CF001
Max -
BADI for MIGO for restricting User to entered other MVT types?
Hi All,
BADI for MIGO for restricting User to entered other MVT types?
I want to restrict some of user not to use 501 Movement type ..I already created a Ztable for checking User for 501 type.
Please let me know any Enhancement to be used to restrict user ?
Thanks and Regards
SteveHi Steave,
You can use this enhancement exit MB_CF001, this exit will be called every time before posting, you can use your logic in this exit. see its documentation first before implementing.
Regards
Ahsan -
HI EXPERTS,
HOW CAN I ADD TWO SCREEN FIELDS FOR MIGO TRANSACTION?
HOW CAN THE TWO SCREEN CAN VALIDATE DATA FROM PURCHASE ORDER NO ENTERED?
CAN ANY ONE FIND A SOLUTION AND HELP ME THIS.Hi,
You may create an implementation for the badi in SE19. Then the attributes will be available during runtime for the method, and you may use those to validate the data.
The BADI MB_DOCUMENT_BADI and method MB_DOCUMENT_BEFORE_UPDATE also triggred during MIGO and the structures XMKPF, XMSEG contains the runtime values for the document.
Regards,
Renjith Michael.
http://www.sourceveda.com/page4.htm -
Badi for MIGO for positions, similiar to ME_PROCESS_PO_CUST
hi all!!
i need to do some things in MIGO tx, similar to badi for ME21N: ME_PROCESS_PO_CUST
I saw: MB_MIGO_ITEM_BADI is it good or "compatible" with me_process_po_cust ??
thanks in advance!Hi,
Enter trx. SE18 and assign MB* in badi name to find one that helps you.
Best regards,
Caíque Escaler -
ERROR : in BADI for MIGO Enter quantity on external screen
Hi,
I am doing MIGO and getting the following error:
Enter quantity on external screen Message no. M7895
I Have added an external tab at the header level as well as the item level using the badi for tab addion in MIGO .
If i deactivate the BADI MIGO works fine .
How to analyse for the error .
Please help
Regards
SwapnilHI Experts,
As mentioned in above thread for the Error: Enter unit of measure on external screen Message no. M7895;and same is solved by your functional consultant,since i am also getting same error,It would be very helpfull to me,if you tell me the solution for this error what exactly your functional consultant has done.
Regards
varunraj -
Let me know how I can access vgart and blart in the my BADI for MIGO
Hi, I am using the BADI with Implementation z_cwm-default_value FOR migo TRANSACTION. the import parameter is not returning the values of VGART and BLART. This is my first BADI program. Can I know whether the only method for making availabilty of any values is through parameters. I didnot create definition. Somebody has created definition and I am suing the implementation of it.
Hi,
Can you please post the details of the BADI definition (Definition name), so that it would be helpful for the forum to answer the query.
Rgds, -
User exit/BADI for MIGO Batch numbers
Hi All,
I want to find a user exit which will give the oldest batch number (MCHA-LWDET) of semi-finished product during the goods receipts of the finished prodocut in MIGO.
Could you please give me any hints to find out the user exit for this.
Regards,
Sekhar DHi,
Check these User exits... for MIGO
Exit Name Description
MBCF0002 Customer function exit: Segment text in material doc. item
MBCF0005 Material document item for goods receipt/issue slip
MBCF0006 Customer function for WBS element
MBCF0007 Customer function exit: Updating a reservation
MBCF0009 Filling the storage location field
MBCF0010 Customer exit: Create reservation BAPI_RESERVATION_CREATE1
MBCF0011 Read from RESB and RKPF for print list in MB26
MB_CF001 Customer Function Exit in the Case of Updating a Mat. Doc.
Check thse BADI's.. for MIGO
Badi Name
ARC_MM_EBAN_CHECK
ARC_MM_EBAN_WRITE
ARC_MM_EINA_WRITE
ARC_MM_INVBEL_WRITE
ARC_MM_MATBEL_CHECK
ARC_MM_MATBEL_WRITE
MB_CHECK_LINE_BADI
MB_CIN_MM07MFB7
MB_CIN_MM07MFB7_QTY
MB_DOCUMENT_BADI
MB_DOCUMENT_BADI_SAP
MB_DOCUMENT_BADI_SAP
MB_DOC_BADI_INTERNAL
MB_DOC_BADI_INTERNAL
MB_ME_CSGMT_BADI_SAP RTFASH:
MB_MIGO_BADI
MB_MIGO_ITEM_BADI
MB_PHYSINV_INTERNAL MB_PHYSINV_INTERNAL BAdI Implementation
MB_RESERVATION_SCR DFPS: Field in the Reservation
MB_RESERVATION_UPCHD DFPS: Reservation
Regards,
Raghu
Edited by: Raghavendra Rao G on Aug 27, 2009 5:50 PM -
Hi friends,
The Issue is:
User tries to execute Migo with 103 or 101 movement.
I want to throw an error if the posting date of the item is Before its original Delivery date in PO.
I tried exit MBCF0005 and applied 'break-point' but its not going to debugger..
Is there any other way i can overcome this issue ? BADI or any other Exit ?
I just don't want user to save the document by throwing Error MSG.
Regards
SnehalHi..
Enhancement/ Business Add-in Description
Enhancement
MB_CF001 Customer Function Exit in the Case of Updating a Mat. Doc.
MBCF0011 Read from RESB and RKPF for print list in MB26
MBCF0010 Customer exit: Create reservation BAPI_RESERVATION_CREATE1
MBCF0009 Filling the storage location field
MBCF0007 Customer function exit: Updating a reservation
MBCF0006 Customer function for WBS element
MBCF0005 Material document item for goods receipt/issue slip
MBCF0002 Customer function exit: Segment text in material doc. item
Business Add-in
MB_DOCUMENT_UPDATE BADI when updating material document: MSEG and MKPF
MB_DOC_BADI_INTERNAL BAdIs During Creation of a Material Document (SAP Internal)
MB_ME_CSGMT_BADI_SAP BAdI: Consignment Processing - Stock Transfer
MB_MIGO_ITEM_BADI BAdI in MIGO for Changing Item Data
MB_PHYSINV_INTERNAL Connection: Core Inventory and Retail AddOn
MB_QUAN_CHECK_BADI BAdI: Item Data at Time of Quantity Check
MB_RESERVATION_BADI MB21/MB22: Check and Complete Dialog Data
MB_RESERVATION_SCR Screen BAdI for Retrofit DFPS
MB_RESERVATION_UPCHD BAdI for Creation and Changing of Manual Reservations
MB_RES_BAPI_CHANGE BAdI: Execution of Changes to Reservation Fields
MB_RES_BAPI_CREATE1 BAdI: Adoption of Customer's Own Fields as Reserv. Fields
MB_RES_BAPI_DETAIL1 BAdI: Display of Customer's Own Fields in Reservations
MB_STOR_LOC_BADI_GTS BADI to Check and Change Storage Location (GTS Fct. Only)
MB_MIGO_BADI BAdI in MIGO for External Detail Subscreens
MB_DOCUMENT_BADI_SAP BADI for Creation and Changing of a Material Document
ARC_MM_EBAN_CHECK BAdI: Enhancement of Archivability Check (MM_EBAN)
ARC_MM_EBAN_PRECHECK BAdI: Enhancement of Archivability Check (MM_EBAN)
ARC_MM_EBAN_WRITE BAdI: Enhancement of Scope of Archiving (MM_EBAN)
ARC_MM_EINA_CHECK BAdI: Enhancement of Archivability Check (MM_EINA)
ARC_MM_EINA_WRITE BAdI: Enhancement of Scope of Archiving (MM_EINA)
ARC_MM_INVBEL_CHECK BAdI: Enhancement of Archivability Check (MM_INVBEL)
ARC_MM_INVBEL_WRITE BAdI: Enhancement of Scope of Archiving (MM_INVBEL)
ARC_MM_MATBEL_CHECK Prüfung ADD-ON-spezifischer Kriterien für MM_MATBEL
ARC_MM_MATBEL_WRITE Check Add-On-Specific Data for MM_MATBEL
MB_CHECK_LINE_BADI BAdI: Check Line Before Copying to the Blocking Tables
MB_CIN_LMBMBU04 posting of gr
MB_CIN_MM07MFB7 BAdI for India Version exit in include MM07MFB7
MB_CIN_MM07MFB7_QTY Proposal of quantity from Excise invoice in GR
MB_DOCUMENT_BADI BAdIs During Creation of a Material Document
No.of Exits: 8
No.of BADis: 29
Arunima -
Hello everybody!
I found badi of MIGO. -> "MB_MIGO_BADI".
but this within exit have a method, namely PBO_DETAIL.
when use this method i found have a problem!
as follows!
DATA: GF_CLASS_ID TYPE MIGO_CLASS_ID.
GF_CLASS_ID = 'MIGO_BADI_IMPLEMENTATION_CIN'
please help me! (I don't know how find this ID)
thanks advanced!Hi,
You can try with MB_DOCUMENT_BADI.
Regards,
Renjith -
Hi All,
when u execute MIGO tr a screen is opened. on the right most corner of a table control there is button with color yello white and blue when u click on this button u can set re-arrange fields as per ur needs. Now i need to add one more field BEDNR i.e Tracking number here. if anybody has done this sort of work please suggest me something to solve it.
Thanks..
Lokesh.Hi,
You have to use a Screen exit or BADI for this purpose of adding a field to the screen.
Use the BADI
MB_MIGO_BADI for this purpose.
reward if sueful
regards,
Anji -
Userexits/Badis for MIGO to update business area(GSBER) in FI constitution
Hi ,
I need to update business area field (GSBER) for accounts document after Goods Recieve (GR) through MIGO and Post Goods Issue (PGI) through VL02N.
Can you please tell me the userexits/BADIS for this requirement
Thanks in advance
SaktiHi Sujit,
Thanks for reply
I tried with both BADIs. After implementing I put break point.
And goto MIGO. and filled req. fields and click on SAVE button, it should be stopped there.
But it is not stopping there.
Regards,
Sakti -
BADI for MIGO ( Material document change for Production Order goods Receipt
Hey experts,
I am actually stuck up with MIGO BADI.
There are many BADI's available but i dont think any one would suit my requirement.
here goes my requirement.
When a Production Order is created in transaction CO01 , the system picks the value of the moving material and multiplies it with the quantity .
But when the production order is being confirmed thru CO11N , again the system picks the present moving price of the material and multiplies it with the quantity. This goods receipt is done through MIGO transaction by selecting goods receipt for order that is 101 movement type. I have been asked to get the value of the material at the time of production order create and then change the dmbtr value of MSEG table, this can be done in the badi at the time of creation of material document number but the BADI's MB_DOCUMENT_BEFORE_UPDATE, MB_DOCUMENT_UPDATE do not allow me to change the values .
The BADI MB_DOCUMENT_BEFORE_UPDATE does not allow any changes to be made for XMSEG table
and MB_DOCUMENT_UPDATE is passed by value and hence the changes are not affected after it comes out of the method.
Guys please help me as this creating a hell lot of problem here and i would surely reward the max points if answered.
here is the example to be more precise.
Material : Pen
Quantity : 10.
date : 01.06.2008.
TYransaction co01.
lets say at the time of creation the value of the material was 5 rs
a material document would be created with the value : 50 rs.
Now for this prod. order goods receipt is being done on 01.07.2008.
Let the value be 4 rs now.
so the Material document would be created with a value of 40 rs.
I need to make this 50 rs.
I have got all the data to do it but i am not gettin the coreect BADI, i just want the BADI name to change the DMBTR value at the time of creation of material Document.
Thanks in Advance.User-exit /BADI to change mseg during migo
https://forums.sdn.sap.com/click.jspa?searchID=-1&messageID=5435559
try this links -
BADI for MIGO update - Data not getting saved in table sometimes
Hi,
This is regarding automatic update of material document number to our Z Table for Gate entry in MM.
Steps for Generating GR throu2019 MIGO:-
1) the user has to key in the gate entry number and plant,
2) then after giving i/p values the user has to click the save button,
3) MIGO number is generated by the system which is updated in gate entry header table.
For updating the MIGO number BADI is used . But some time the system is not updating the GR number in gate entry header table.
Can we use COMMIT WORK statement in BADI? Hope its not advisable to use it.
What else can we do if data is not getting stored in table while updating throu2019 BADI?
Inside the Method : IF_EX_MB_MIGO_BADI~POST_DOCUMENT the below code is written,
Instead Of Updating The Gate Entry Item Table Now
Update The Gate Entry Header Table. Update The
Value Of The Field MBLNR With Current Document Number
Generated Updating the header table ZMM_GATE_ENTRY
SELECT SINGLE *
FROM ZMM_GATE_ENTRY
INTO WA_ZMM_GATE_ENTRY
WHERE GATEENTRYNO EQ GS_EXDATA_HEADER-GATEENTRYNO
AND WERKS EQ GS_EXDATA_HEADER-WERKS
AND GYEAR EQ GS_EXDATA_HEADER-ENTRY_DATE+0(4).
Check To Ensure That Once A Gate Entry Number
Is Associated With A GR It Cannot Be Reused
IF WA_ZMM_GATE_ENTRY-GR_NUMBER IS INITIAL.
WA_ZMM_GATE_ENTRY-REFERENCE = GS_EXDATA_HEADER-REFERENCE.
WA_ZMM_GATE_ENTRY-REFWERKS = GS_EXDATA_HEADER-WERKS.
WA_ZMM_GATE_ENTRY-GR_NUMBER = IS_MKPF-MBLNR.
WA_ZMM_GATE_ENTRY-GR_YEAR = IS_MKPF-MJAHR.
MODIFY ZMM_GATE_ENTRY FROM WA_ZMM_GATE_ENTRY .u201Dupdating the workarea
u201CThe above modify stmt updates data sometimes and does not updates the data sometimes
ELSE.
MESSAGE E901(ZMM) WITH GS_EXDATA_HEADER-GATEENTRYNO WA_ZMM_GATE_ENTRY-GR_NUMBER.
ENDIF.
Plz suggest some soln?
Regards,
P.S.ChitraHi,
This is regarding automatic update of material document number to our Z Table for Gate entry in MM.
Steps for Generating GR throu2019 MIGO:-
1) the user has to key in the gate entry number and plant,
2) then after giving i/p values the user has to click the save button,
3) MIGO number is generated by the system which is updated in gate entry header table.
For updating the MIGO number BADI is used . But some time the system is not updating the GR number in gate entry header table.
Can we use COMMIT WORK statement in BADI? Hope its not advisable to use it.
What else can we do if data is not getting stored in table while updating throu2019 BADI?
Inside the Method : IF_EX_MB_MIGO_BADI~POST_DOCUMENT the below code is written,
MODIFY ZMM_GATE_ENTRY FROM WA_ZMM_GATE_ENTRY .u201Dupdating the workarea
u201CThe above modify stmt in code updates data sometimes and does not updates the data sometimes
Moderator message: duplicate post locked.
Edited by: Thomas Zloch on Aug 10, 2010 11:33 AM
Maybe you are looking for
-
How can I have exact same tag information in Windows and i-Tunes???
When I check the "properties" of my mp3 files in Windows I don't see the same information as when I click "get info" in i-Tunes. I've tried "convert ID3 tags" in i-Tunes, but it all just gets very complicated... Please, please help!!!
-
ORA-00600: internal error code, arguments: [qctcte1]
Hi All, While executing a mapping I got the following error message: Starting Execution MAP39_FACT Starting Task MAP39_FACT ORA-00600: internal error code, arguments: [qctcte1], [0], [], [], [], [], [], [] ORA-06512: at "SBI_TARGET_P2.MAP39_FACT", li
-
License key is valid in Mac and Windows?
Hi. I will buy a Creative Suite. Dreamweaver, Acrobat.... i wish to install on my Mac Laptop, but Photoshop i want to install on my Windows PC. Can i do it with only one license? ( i will buy Cretative Suite Mac version). Sorry for my bad english. Re
-
Where can I get an install file for foxfire 5
I will not be able to use foxfire 6 on my laptop computer at work due to what we suspect is a security software (either Endpoint or Landesk). I have a computer that has been updated to 6, but six never even opens. It crashes every tie I start it aski
-
How to print a pdf file on a servlet
Hi, I have a question, is it possible and how to send to a local printer a pdf file with a serlet ?