BADI FOR MIGO TRANSACTION
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
Similar Messages
-
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 transaction in ECC 6.0
Hi All,
We are upgrading our SAP R3 from 4.6c to ECC 6.0.
In the new system, Transaction SE18 now has two options
1. Enhancement spot
2. BAdI Name
When I display my BADI MB_DOCUMENT_BADI
Attributes tab shows BAdI migrates to enhancement spot MB_GOODSMOVEMENT
When I display Enhancement spot Technical details Tab shows Enhancement Implementation Status shows "Initial".
We have implemented this BADI in our 4.6c version. And its triggering when I run MIGO transaction.
In the new system BADI is not triggering when I run the MIGO.
Above is the only difference I found in the new system when compared with our old system settings.
Can any one suggest me what all the things I need to take care to get working this BADI
Thanks,
SatishHi satish,
Pls check here,
http://www.esnips.com/doc/e06e4171-29df-462f-b857-54fac19a9d8e/ppt-on-badis.ppt
http://www.esnips.com/doc/10016c34-55a7-4b13-8f5f-bf720422d265/BADIs.pdf
http://www.esnips.com/doc/43a58f51-5d92-4213-913a-de05e9faac0d/Business-Addin.doc
http://www.esnips.com/doc/1e10392e-64d8-4181-b2a5-5f04d8f87839/badi.doc
http://www.esnips.com/doc/3b7bbc09-c095-45a0-9e89-91f2f86ee8e9/BADI-Introduction.ppt
Cheers
Hareesha k -
Enhancement for Automatic GI for MIGO transaction
Hey Folks ,
My requirement is as :
I wanted to do automatic GI of the goods once their GR is done and dat data should also be updated to sap tables .Now a days we are using MIGO transaction for GI and GR both ,I have found a BADI for MIGO also but i am unable how to procede since GR and GI are in single trancation code .
We are also not using PP module so backflushing wont work here .
Automatic GI should trigger after saving the GR entries .
Regards
Edited by: swapnil kamble on Jan 13, 2010 5:53 PM
Moderator message - Cross post locked
Edited by: Rob Burbank on Jan 13, 2010 12:04 PMHi Renjith,
You can check the following link, Hope it helps you to some extent:
Re: Implement unique serial number within a client
And you can also try user exit EXIT_SAPLIPW1_001 for Automatic serial number assignment. -
User Exit / Enhacement / BADI for MB1B transaction
Hi all,
Movement type -311
Plant 1004
Storage Location - XXX
Now reuirement is like during Transfer posting when user provides Receving Location and Material and Press Enter
batch and qunatity should be automatically populated based on some Selection.
I checked BADI but no BADI is available when user press Enter.
Please suggest me with Enhancement Spot , User Exit for this requirement.\
Thanks in advance.
Harsharandeep SinghHi Harsha,
Try these User Exits/Enhancements.
Following are the BADIs for MB1B transaction:
ARC_MM_MATBEL_CHECK Check Add-On-Specific Criteria for 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 when Creating a Material Document
MB_DOCUMENT_UPDATE BADI when updating material document: MSEG and MKPF
MB_MIGO_BADI BAdI in MIGO for External Detail Subscreens
MB_MIGO_ITEM_BADI BAdI in MIGO for Changing Item Data
MB_RESERVATION_BADI MB21/MB22: Check and Complete Dialog Data
Following are the user exit for the same:
MB_CF001 Customer Function Exit in the Case of Updating a Mat. Doc.
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
Vishnu. -
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, -
i have created a bapi to upload data for MIGO transaction.. (GOODS RECEIPT-->PURCHASE ORDER)
i am getting the error " stock posting is not possible for this material "'.
when i create directly, it is posted.. while uploading through the program it shows the above error.
please suggest if anyone knows....
Thanks in advance,
Dhivya N.*& Report ZR_MIGO_UPLOAD
*& package name : zabap
*& transport request number : MIDK901443
*& program to upload goods movement
REPORT ZR_MIGO_UPLOAD.
***DATA DECLARATION***
type-POOLs: icon.
TYPES: BEGIN OF TY_GR_PO,
EBELN(10) TYPE c , "'PO NUMBEr
EBELP(10) TYPE c, "PO ITEM NUMBER
* LGOBE TYPE LGOBE, "STORAGE LOCATION DESCRIPTION
LGORT(10) TYPE c, "STORAGE LOCATION
XFELD TYPE c, "ITEM OK
GERNR(10) TYPE c, "SERIALNUMBER
END OF TY_GR_PO.
DATA: TA_GR_PO TYPE TABLE OF TY_GR_PO, "TABLE FOR GOODS RECEIPT PURCHASE ORDER
WA_GR_PO TYPE TY_GR_PO.
DATA: BLDAT TYPE BLDAT, "DOCUMENT DATE
BUDAT TYPE BUDAT, "POSTING DATE
WEVER TYPE WEVER. "VERSION FOR PRINTING GR SLIP
***BAPI DECLARATION***
DATA: BEGIN OF GM_HEAD OCCURS 0. "Material Document Header Data
INCLUDE STRUCTURE BAPI2017_GM_HEAD_01.
DATA: END OF GM_HEAD.
DATA: BEGIN OF GM_CODE OCCURS 0.
INCLUDE STRUCTURE BAPI2017_GM_CODE. "Assign Code to Transaction for Goods Movement
DATA: END OF GM_CODE.
DATA: BEGIN OF GM_RET OCCURS 0.
INCLUDE STRUCTURE BAPI2017_GM_HEAD_RET. "Material Document Number/Material Document Year
DATA: END OF GM_RET.
DATA: BEGIN OF GM_ITEM OCCURS 0.
INCLUDE STRUCTURE BAPI2017_GM_ITEM_CREATE. "Material Document Items
DATA: END OF GM_ITEM.
DATA: BEGIN OF GM_SER OCCURS 0.
INCLUDE STRUCTURE BAPI2017_GM_SERIALNUMBER. "Serial Number
DATA: END OF GM_SER.
data: BEGIN OF ta_bapireturn OCCURS 0.
INCLUDE STRUCTURE BAPIRET2.
data: END OF ta_bapireturn.
***declaration of excel file handling table***
FIELD-SYMBOLS: <fs> type any. "field symbol for alsm_excel
DATA: TA_EXCEL TYPE TABLE OF ALSMEX_TABLINE, "table to contain excel sheet values
WA_EXCEL TYPE ALSMEX_TABLINE.
***declaration of other parameters***
data: V_brow type i VALUE 2, "BEGIN OF ROW
V_bcol type i value 1, "BEGIN OF COL
V_erow type i value 65536, "END OF ROW
V_ecol type i value 256. "END OF COLUMN
DATA: V_sear type string,
V_INDEX TYPE i,
V_tabix type sy-tabix, "current line.
v_lines type i. "total number of records
DATA: DATE TYPE DATS.
***SELECTION SCREEN***
***SELECTION SCREEN DESIGN***
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECTION-SCREEN SKIP 3.
PARAMETERS: zCODE(2) TYPE C MATCHCODE OBJECT H_T158G,
zrefdoc type REFDOC,
version type WEVER.
SELECTION-SCREEN skip 5.
PARAMETERS: p_file type ibipparms-path.
SELECTION-SCREEN SKIP 3.
SELECTION-SCREEN END OF BLOCK b1.
***SELECTION SCREEN VALUE REQUEST***
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_FILE.
CALL FUNCTION 'F4_FILENAME' "f4 help for file name
EXPORTING
PROGRAM_NAME = SYST-CPROG
DYNPRO_NUMBER = SYST-DYNNR
FIELD_NAME = 'P_FILE'
IMPORTING
FILE_NAME = P_FILE.
***SELECTION SCREEN EVENT***
AT SELECTION-SCREEN. "validation
if p_file <> ''.
V_sear = p_file.
SEARCH V_sear for '.xls'.
if sy-subrc <> 0.
message 'please provide excel file. it is not valid' type 'E'.
ENDIF.
ENDIF.
INITIALIZATION.
* DATE = '17.04.14'.
GM_HEAD-PSTNG_DATE = SY-DATUM.
GM_HEAD-DOC_DATE = SY-DATUM.
gm_head-pr_uname = sy-uname.
***START OF SELECTION***
START-OF-SELECTION.
gm_head-REF_DOC_NO = zrefdoc.
gm_head-VER_GR_GI_SLIP = version.
GM_CODE-GM_CODE = zCODE.
PERFORM EXCEL_UPLOAD.
PERFORM EXCEL_CONVERSION.
PERFORM NO_RECORDS.
END-OF-SELECTION.
PERFORM BAPI_ASSIGNMENT.
PERFORM BAPI_FM.
*& Form EXCEL_UPLOAD
* text
* --> p1 text
* <-- p2 text
FORM EXCEL_UPLOAD .
CALL FUNCTION 'ALSM_EXCEL_TO_INTERNAL_TABLE'
EXPORTING
FILENAME = P_FILE
I_BEGIN_COL = V_BCOL
I_BEGIN_ROW = V_BROW
I_END_COL = V_ECOL
I_END_ROW = V_EROW
TABLES
INTERN = TA_EXCEL
EXCEPTIONS
INCONSISTENT_PARAMETERS = 1
UPLOAD_OLE = 2
OTHERS = 3.
ENDFORM. " EXCEL_UPLOAD
*& Form EXCEL_CONVERSION
* text
* --> p1 text
* <-- p2 text
FORM EXCEL_CONVERSION .
if ta_excel is NOT INITIAL.
sort ta_excel by row col.
clear wa_excel.
clear wa_GR_PO.
LOOP AT ta_excel INTO wa_excel.
move wa_excel-col to v_index.
ASSIGN COMPONENT v_index OF STRUCTURE wa_GR_PO to <fs>.
if sy-subrc = 0.
move wa_excel-value to <fs>.
ENDIF.
at END OF row.
append wa_GR_PO to ta_GR_PO.
clear wa_GR_PO.
ENDAT.
ENDLOOP.
else.
MESSAGE 'no data for conversion' type 'I'.
ENDIF.
ENDFORM. " EXCEL_CONVERSION
*& Form NO_RECORDS
* text
* --> p1 text
* <-- p2 text
FORM NO_RECORDS .
DESCRIBE TABLE ta_GR_PO LINES v_lines.
if v_lines = 0.
MESSAGE 'NO RECORDS TO UPLOAD' TYPE 'E'.
ENDIF.
ENDFORM. " NO_RECORDS
*& Form BAPI_ASSIGNMENT
* text
* --> p1 text
* <-- p2 text
FORM BAPI_ASSIGNMENT .
IF TA_GR_PO IS NOT INITIAL.
LOOP AT TA_GR_PO INTO WA_GR_PO.
gm_item-PO_NUMBER = wa_gr_po-ebeln.
GM_ITEM-STGE_LOC = WA_GR_PO-LGORT.
GM_ITEM-PO_ITEM = WA_GR_PO-EBELP.
GM_ITEM-NO_MORE_GR = 'X'."WA_GR_PO-XFELD'.
* GM_SER-SERIALNO = WA_GR_PO-GERNR.
gm_item-NO_MORE_GR = 1.
gm_item-ENTRY_QNT = 2.
gm_item-MOVE_TYPE = 101.
* gm_item-MVT_IND = 'B'.
gm_item-plant = 'P001'.
gm_item-move_stloc = 'FG01'.
* GM_ITEM-SPEC_STOCK = 'K'.
APPEND GM_ITEM.
APPEND GM_SER.
ENDLOOP.
ELSE.
MESSAGE 'DATA IS NOT UPLOADED' TYPE 'I'.
ENDIF.
ENDFORM. " BAPI_ASSIGNMENT
*& Form BAPI_FM
* text
* --> p1 text
* <-- p2 text
FORM BAPI_FM .
CALL FUNCTION 'BAPI_GOODSMVT_CREATE'
EXPORTING
GOODSMVT_HEADER = gm_head
GOODSMVT_CODE = gm_code
* TESTRUN = ' '
* GOODSMVT_REF_EWM =
IMPORTING
GOODSMVT_HEADRET = gm_ret
* MATERIALDOCUMENT =
* MATDOCUMENTYEAR =
TABLES
GOODSMVT_ITEM = gm_item
GOODSMVT_SERIALNUMBER = gm_ser
RETURN = ta_bapireturn
* GOODSMVT_SERV_PART_DATA =
* EXTENSIONIN =
if ta_bapireturn-type = 'S'.
write:/ icon_green_light as icon,
'success: Material document',gm_ret-mat_doc, 'is created for the GOODS RECEIPT- po number : ', wa_gr_po-ebeln,
/ 'reason:' , ta_bapireturn-message.
ELSEIF ta_bapireturn-type = 'E'.
write:/ icon_red_light as icon,
'error: Material document',gm_ret-mat_doc , 'is not created for the GOOD RECEIPT- po number : ', wa_gr_po-ebeln,
/ 'reason:' , ta_bapireturn-message.
ENDIF.
ENDFORM. " BAPI_FM -
User exit or badi for me52n transaction.
Hi all,
i have a requirement to write a user exit or badi for me52n transaction. the requirement is in header section, only one plant should be accepted. that is in the first row one plant will be inserted. in the second row if we are inserting another plant other the first row plant, it should not accept it and it should raise an error.
that is from the second row onwards, every plant should match with the first row plant.
if any part of this issue is unclear, plz let me know so that i can explain it clearly
this is urgent requirement.
please let me know the solution as soon as possible.
points will be awarded.
thanking u in advance.
A.srinivas.In this version exit EXIT_SAPLMEREQ_005 should exists (look at OSS <a href="https://service.sap.com/sap/support/notes/843446">Note 843446 - MEREQ001: Cannot call up external service data in user exit</a> this note refers to the exit and is applicable in 4.70. Look also at OSS <a href="https://service.sap.com/sap/support/notes/310154">Note 310154 - ME21N/ME51N: Customer-specific check, generating error log</a>
Regards -
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 -
Validation of profit center for MIGO transaction
Hi!
For MIGO transaction I want to restrict users of one profit center to post for another profit center.
I have tried it with GGB0 , OB28 as well as OKC7 but i was unable to do it.
please help me out with details.
thanks
Amithi! Eli Klovski
Validation in GGB0 is set under financial accounting head and under line item.
In the prerequisite of GGB0 i have mentioned BSEG-KOSTL ='HO' where HO is the cost center.
under check subheader I have mentioned SYST-UNAME = 'UDAY' where UDAY is the user name which is set for cost center HO and the message is set as 'UDAY is set for HO'.
message type is 'E'.
thanks
Amit -
In Which Table I Will get Reference Document for MIGO Transaction
Hai Experts
In Which Table I Will get Reference Document for MIGO Transaction
Regards
JagadishHi,
The 2 main tables for this MIGO Transaction are ,
MKPF - Header table
MSEG - Item table
Reference Document is XBLNR.
Regards,
Raj. -
User exit/Badi for MM41 transaction
Hi guyz,
Could you please tell me any User exit or badi for MM41 transaction, which will be triggered at the time of SAVE Article?
Thanks,Hi guyz,
Could you please tell me any User exit or badi for MM41 transaction, which will be triggered at the time of SAVE Article?
Thanks, -
User Exit / BADI for MEK1 transaction
Hi All,
Can anybody help me to know UserExit or BADI for the transaction MEK1?.
Thanks
Rgds,
SudhakarUser Exits for the Tcode MEK1 are
AMPL0001 User subscreen for additional data on AMPL
LMEDR001 Enhancements to print program
LMELA002 Adopt batch no. from shipping notification when posting
LMELA010 Inbound shipping notification: Transfer item data from
LMEQR001 User exit for source determination
LMEXF001 Conditions in Purchasing Documents Without Invoice Rece
LWSUS001 Individual customer source determination in Retail
M06B0001 Role determination for purchase requisition release
M06B0002 Changes to comm. structure for purchase requisition rel
M06B0003 Number range and document number
M06B0004 Number range and document number
M06B0005 Changes to comm. structure for overall release of requi
M06E0004 Changes to communication structure for release purch. d
M06E0005 Role determination for release of purchasing documents
ME590001 Grouping of requsitions for PO split in ME59
MEETA001 Define schedule line type (backlog, immed. req., previe
MEFLD004 Determine earliest delivery date f. check w. GR (only P
MELAB001 Gen. forecast delivery schedules: Transfer schedule imp
MEQUERY1 Enhancement to Document Overview ME21N/ME51N
MEVME001 WE default quantity calc. and over/ underdelivery toler
MM06E001 User exits for EDI inbound and outbound purchasing docu
MM06E003 Number range and document number
MM06E004 Control import data screens in purchase order
MM06E005 Customer fields in purchasing document
MM06E007 Change document for requisitions upon conversion into P
MM06E008 Monitoring of contr. target value in case of release or
MM06E009 Relevant texts for "Texts exist" indicator
MM06E010 Field selection for vendor address
MMAL0001 ALE source list distribution: Outbound processing
MMAL0002 ALE source list distribution: Inbound processing
MMAL0003 ALE purcasing info record distribution: Outbound proces
MMAL0004 ALE purchasing info record distribution: Inbound proces
MMDA0001 Default delivery addresses
MMFAB001 User exit for generation of release order
MRFLB001 Control Items for Contract Release Order
Hope this helps -
BAPI / BADI for KE21N transaction
Hi all,
Please does anybody know a BAPI or BADI for KE21N transaction.
I need to update some fields on it.
Tks,
DanielaHi Daniela Machado,
Try this for CO PA Planning data..
BAPI_COPAPLANNING_GETDATA Read CO-PA Planning Data
BAPI_COPAPLANNING_POSTDATA
Write CO-PA Planning data
Also try,
BAPI_COPAQUERY_GETACC_ACTDATA
BAPI COPAQuery.GetAccountBasedActualData
BAPI_COPAQUERY_GETACC_PLANDATA
BAPI COPAQuery.GetAccountBasedPlannningData
BAPI_COPAQUERY_GETCOST_ACTDATA
BAPI COPAQuery.GetCostingBasedActualData
BAPI_COPAQUERY_GETCOST_PLANDAT
BAPI COPAQuery.GetCostingBasedPlanningData
Regards,
Tanveer.
<b>Please mark helpful answers </b> -
Hello evrybody,
For T-code ' f150 ' package is FIBP.
My requirement is to make some changes in dunning ,
but i couldn't fina any BADI's or enhancements for that transaction,
there is a userexit but it is not helpful to me.
So is there any other options.
Thanks in advance
Regards
Ravihi Ravi chandra,
There are no badis for that transaction and there is only one exit for this transaction.
Enhancement
F150D001 Indiv. customer exits in prog. for printing dunning notices.
I think the above exit will satisfy your requirement.
Since it is in FI module try for some BTE's if not go for modification.
Reward points if usefull,
Thanks,
Kalyan.
Maybe you are looking for
-
Expose's not showing up all the windows ....
Hello, I just realized that my «All windows» function in Expose, just show up «all windows of THE application» and not «all windows of ALL THE applications». Anyboby knows about this and what could be the problem ?? Thanks in advance. Robert Lespéran
-
N8: I cannot believe it! Will we face same scenari...
N8: I cannot believe it! Will we face same scenario of N97?!!! Actually I'm observing what's going on since the first launch of N8 because the handset is still not available in my country so far. What really drives me crazy is that I see again the wo
-
8.2 hangs every time I do a search in the iTunes store
iTunes 8.2 seems to be working OK for the most part, except one big thing. EVERY time I do a search within the Store, when it brings up my results page, after 1-2 seconds I get the spinning beachball of application death and the app just hangs. Have
-
Firefox won't work in more than 1 computer account simultaneously. Why?
I have a personal account on my computer, and a work account on my computer. I've never had a problem running Firefox simultaneously on the 2 accounts, until this last update. Now I can only have one open at a time. How come?
-
Ordner C\config.msi bei Update von Adobe Reader gesperrt
Hallo, beim Update des Adobe Readers konnte die Datei C\Config.Msi\PF6999.tmp nicht geschrieben wwrden, da der Ordner gesperrt ist. Was ist zu tun? Danke!