User Exit in ME51N & ME21N for checking stock at location
Dear All,
Requirement is to give error message while creatin a PR / PO for a material for whcih there is stock at XXXX storage location.
Is there user exit for checking stock whiel creating PR and PO waih will check stock at a particular storage location ?
OR any other way ..
Regards,
Rakesh
User Exit
PR -
MEREQ001
PO -
MM06E004 Control import data screens in purchase order
MM06E005 Customer fields in purchasing document
ME_PROCESS_PO_CUST (BADi)
Hope the above helps.
Regards,
Vivek
Similar Messages
-
User exit or a badi for checking the vendor email id in me22n on me29n
hi all,
can anybody suggest me a user exit or a badi for checking the email id of the vendor in me21n or me22n or me29n.
i.e. a user exit or a BADI which gets hit either at the time of creation or release of a purchase order.
plz suggest me a solution its urgent.
regards,
santoshHi Santosh,
Have you looked BADI <b>ME_PROCESS_PO_CUST</b> or user exits <b>EXIT_SAPMM06E_016</b> / <b>EXIT_SAPMM06E_017</b>?
Hope this will help.
Regards,
Ferry Lianto
Please reward points if helpful. -
User exit at item level for billing block field default for VA41 or VA42
Hi All,
I want user exit at item level for contract (VA41or VA42) for the field Billing Block in the Billing document tab
which has to populate with some default value.
Which user exit i need to check.
Regards
JaiHi,
Use subroutine USEREXIT_FIELD_MODIFICATION in Include MV45AFZZ.
Make sure this is for only tcodes VA41 and VA42 because this wil trigger for sales order also.
Regards,
Ashok. -
User-Exit/Badi/Funtion Module for update Batch in transaction CORK
Hi Gurus,
when an IDoc 'Z' is executed to do a confirmation using the FM CO_RU_ORDER_CONFIRMATION, the values of transaction CORK are modified.
I'd like to update the field batch number so when you enter a process order in transaction CORK and then you click on Components, you'll see the list of component and the batch number updated throught the custom IDoc.
Does anyone knows any user-exit or Badi or maybe a FM to implement so when the first confirmation is done, the batch numbers are updated?
Thanks in advance.Hi,
You can copy and paste the Report code below. This will give the list of User Exits and BADIs available for the Transcation code. Very usefull program.
Below code will give a list of BADIs for particular transaction.
=============START
*& Report ZNEGI16 *
REPORT ZNEGI16 .
TABLES : TSTC,
TADIR,
MODSAPT,
MODACT,
TRDIR,
TFDIR,
ENLFDIR,
SXS_ATTRT ,
TSTCT.
DATA : JTAB LIKE TADIR OCCURS 0 WITH HEADER LINE.
DATA : FIELD1(30).
DATA : V_DEVCLASS LIKE TADIR-DEVCLASS.
PARAMETERS : P_TCODE LIKE TSTC-TCODE,
P_PGMNA LIKE TSTC-PGMNA .
DATA wa_tadir type tadir.
START-OF-SELECTION.
IF NOT P_TCODE IS INITIAL.
SELECT SINGLE * FROM TSTC WHERE TCODE EQ P_TCODE.
ELSEIF NOT P_PGMNA IS INITIAL.
TSTC-PGMNA = P_PGMNA.
ENDIF.
IF SY-SUBRC EQ 0.
SELECT SINGLE * FROM TADIR
WHERE PGMID = 'R3TR'
AND OBJECT = 'PROG'
AND OBJ_NAME = TSTC-PGMNA.
MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
IF SY-SUBRC NE 0.
SELECT SINGLE * FROM TRDIR
WHERE NAME = TSTC-PGMNA.
IF TRDIR-SUBC EQ 'F'.
SELECT SINGLE * FROM TFDIR
WHERE PNAME = TSTC-PGMNA.
SELECT SINGLE * FROM ENLFDIR
WHERE FUNCNAME = TFDIR-FUNCNAME.
SELECT SINGLE * FROM TADIR
WHERE PGMID = 'R3TR'
AND OBJECT = 'FUGR'
AND OBJ_NAME EQ ENLFDIR-AREA.
MOVE : TADIR-DEVCLASS TO V_DEVCLASS.
ENDIF.
ENDIF.
SELECT * FROM TADIR INTO TABLE JTAB
WHERE PGMID = 'R3TR'
AND OBJECT in ('SMOD', 'SXSD')
AND DEVCLASS = V_DEVCLASS.
SELECT SINGLE * FROM TSTCT
WHERE SPRSL EQ SY-LANGU
AND TCODE EQ P_TCODE.
FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
WRITE:/(19) 'Transaction Code - ',
20(20) P_TCODE,
45(50) TSTCT-TTEXT.
SKIP.
IF NOT JTAB[] IS INITIAL.
WRITE:/(105) SY-ULINE.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
Sorting the internal Table
sort jtab by OBJECT.
data : wf_txt(60) type c,
wf_smod type i ,
wf_badi type i ,
wf_object2(30) type C.
clear : wf_smod, wf_badi , wf_object2.
Get the total SMOD.
LOOP AT JTAB into wa_tadir.
at first.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
WRITE:/1 SY-VLINE,
2 'Enhancement/ Business Add-in',
41 SY-VLINE ,
42 'Description',
105 SY-VLINE.
WRITE:/(105) SY-ULINE.
endat.
clear wf_txt.
at new object.
if wa_tadir-object = 'SMOD'.
wf_object2 = 'Enhancement' .
elseif wa_tadir-object = 'SXSD'.
wf_object2 = ' Business Add-in'.
endif.
FORMAT COLOR COL_GROUP INTENSIFIED ON.
WRITE:/1 SY-VLINE,
2 wf_object2,
105 SY-VLINE.
endat.
case wa_tadir-object.
when 'SMOD'.
wf_smod = wf_smod + 1.
SELECT SINGLE MODTEXT into wf_txt
FROM MODSAPT
WHERE SPRSL = SY-LANGU
AND NAME = wa_tadir-OBJ_NAME.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
when 'SXSD'.
For BADis
wf_badi = wf_badi + 1 .
select single TEXT into wf_txt
from SXS_ATTRT
where sprsl = sy-langu
and EXIT_NAME = wa_tadir-OBJ_NAME.
FORMAT COLOR COL_NORMAL INTENSIFIED ON.
endcase.
WRITE:/1 SY-VLINE,
2 wa_tadir-OBJ_NAME hotspot on,
41 SY-VLINE ,
42 wf_txt,
105 SY-VLINE.
AT END OF object.
write : /(105) sy-ULINE.
ENDAT.
ENDLOOP.
WRITE:/(105) SY-ULINE.
SKIP.
FORMAT COLOR COL_TOTAL INTENSIFIED ON.
WRITE:/ 'No.of Exits:' , wf_smod.
WRITE:/ 'No.of BADis:' , wf_badi.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(105) 'No userexits or BADis exist'.
ENDIF.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(105) 'Transaction does not exist'.
ENDIF.
AT LINE-SELECTION.
data : wf_object type tadir-object.
clear wf_object.
GET CURSOR FIELD FIELD1.
CHECK FIELD1(8) EQ 'WA_TADIR'.
read table jtab with key obj_name = sy-lisel+1(20).
move jtab-object to wf_object.
case wf_object.
when 'SMOD'.
SET PARAMETER ID 'MON' FIELD SY-LISEL+1(10).
CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
when 'SXSD'.
SET PARAMETER ID 'EXN' FIELD SY-LISEL+1(20).
CALL TRANSACTION 'SE18' AND SKIP FIRST SCREEN.
endcase.
================END
<b>Reward POints if this helps.
Manish</b> -
Error in ME21 (by User Exit MM06E005 in ME21N)
Hi All,
I am implimenting '<b>MM06E005</b>' User-Exit in <b>ME21N</b>.
I am using "<b>EXIT_SAPMM06E_006</b>" Function Exit.
I write following code in it:-
*& Include ZXM06U36
IF SY-TCODE = 'ME21N'.
LOOP AT TEKPO.
IF TEKPO-KNTTP = 'A'.
IF TEKPO-MENGE <> '1'.
MESSAGE 'Correct Quantity to 1' TYPE 'E'.
ENDIF.
ENDIF.
ENDLOOP.
ENDIF.
I do not want to impliment SAPMM06E Screen Exit. This is activated when above Exit is activate.
Now when i use T.Code ME21N , I get correct results.
<b>But when i use T.Code ME21, after entring data in first screen & press enter , i get "<u>Runtime error DYNPRO_NOT_FOUND has occurred</u>" error.</b>
<u>If i deactivate the above user exit, then there is no error in ME21.</u>
<b>Please guide me how i impliment this exit or other exit for ME21N so that i will not get any error in ME21.</b>
Regards
UmeshHi Umesh!
Try to implement BADI ME_PROCESS_PO_CUST instead. This is for enhancements of the enjoy transaction. I fear, the old exits aren't called under every circumstance.
If you need exits in both transactions, then implement SMOD exits, too - but a different one (without dynpro extension).
Regards,
Christian -
USER-EXIT on SAVE event for IE01
Hi,
I need USER-EXIT on SAVE event for t-code IE01.
EXIT IEQM0003 work only first time after pressing "SAVE".
IF i press "SAVE" second time equipment will be created.
Edited by: andriy.hulyk on Jan 26, 2012 12:45 PMHere is my code:
IF DATA_ILOA-TPLNR IS INITIAL.
AUTHORITY-CHECK OBJECT 'ZZ_MC_FLC'
ID 'ZZFLC' FIELD '*'.
CASE SY-SUBRC.
WHEN 0."SAP-ALL User
EXIT."OK
WHEN 12."User without restriction
EXIT."OK
WHEN OTHERS.
AUTHORITY-CHECK OBJECT 'ZZ_MC_FLC'
ID 'ZZFLC' FIELD '01'.
CASE SY-SUBRC.
WHEN 0."Create eq. only with FL for some work centers
MESSAGE E250(ZPM) WITH 'test' RAISING POSTING_NOT_ALLOWED_EXT.
ENDCASE.
ENDCASE.
ENDIF.
If i press "SAVE" firs time it work great. But next pressing just create new equipment. My restriction does not work( -
User-exit on APO side for the deliveries that are coming from R/3
Hi,
When a delivery is created in ECC for a VMI customer, it creates an EI order in APO. We need to record some details of these orders on the APO side. Can you please let me know the user exit/BADI that gets triggered when a delivery comes to APO through CIF which we can use for our requirement?
Thanks in advance.Hi,
You can use APOCF006(EXIT_/SAPAPO/SAPLCIF_PU_001) CIF User exit on APO side for CF_OBJECTTYPE = B(Delivery).
I hope this will help you.
Regards,
Saurabh -
User exit in VLPOD transaction for populating difference quantity
Hi All,
I have to update populate and validate the different quantity in sales unit (TVPODVB-LFIMG_DIFF) and the corresponding reason while creating Proof of Delivery using transaction VLPOD.
Please suggest a suitable user exit and program name for the same.
Thanks,
AbhishekCheck the Badi "MRM_HEADER_DEFAULT". Badi documentation reads
In what business and technical context is the BADI?
You can use the Business Add-In MRM_HEADER_DEFAULT when you enter an incoming invoice,
to define certain default values for the header fields (for example, document type, header text,
invoice date, posting date). In this way you can specify the document type independently of the
company code or transaction.
Regards
Vinod -
BADI user exit at me51n or me21n
Hi,
i need badis or user exit while creating Purchase order requisition(me51n) or purchase order purchase order(me21n).
What i am trying to do is that the cost center should be provided while the user enters other data.
And the cost center will be composed of based on some criteria and it will be available while user entering data.
Thanks.Hello
In both cases you should use the "CUST" version of the BAdI because the other ones are "SAP-internal":
ME_PROCESS_PO_CUST
ME_PROCESS_REQ_CUST
For both BAdIs you will find plenty of sample codings with the ABAP Development forums.
Regards
Uwe -
Inbound Delivery IDOC-DELVRY03; Right User Exit? WMTC1D01 IDOC for STOs??
Hi Experts,
The scenario is:
As soon as the user saves the DELIVERY in external_system, flat file is sent to Gentran, where its transfrred to IDOC and then, this IDOC is directed to SAP.
So, this Inbound_Delivery_IDOC- - DELVRY03 will be received by SAP system and updates the delivery related stuff in SAP system.
So, here, AT THIS POINT,
1)I need to capture this IDOC of Inbound_Delivery_IDOC - DELVRY03,
2) Need to check its(Inbound_Delivery_IDOC) MESSAGE CODE for TOA
3) If its TOA, I need to UPDATE the associated Stock Transfer Order/STO(record in LTAK, LTAP tables) stuff through IDOC of WMTCID01
so, let me know that,
1) Wht is the User Exit, I need to look, Which User Exit is correct? I mean, At Wht point I need to add my code in this whole process?
2) How to execute the UPDATED WMTC1D01 IDOC of Stock Transfer Order-STO?
thanqno reply
-
User exit or badi neede for the vl02
Hi All,
My user will do the GOODS ISSUE Through the VL02 ,So the shelflife expiry date will perform at this time,it will give the error message if the Batch shelf life expiredate is not matching with material master shelflife expriry date,but my user wants to skip this check for a particular movement type , So to solve this issue can any one tell which enhancement technique is suitable to solve this issue,if that is user-exit or BADI Please could you give that user-exit/BADI Name .
Thanks in advance..
SRIHASAyou can use these many badi for user exist in vl02:
Enhancement/ Business Add-in Description
Enhancement
VMDE0004 Shipping Interface: Message SDPACK (Packing, Inbound)
VMDE0003 Shipping Interface: Message SDPICK (Picking, Inbound)
VMDE0002 Shipping Interface: Message PICKSD (Picking, Outbound)
VMDE0001 Shipping Interface: Error Handling - Inbound IDoc
V53W0001 User exits for creating picking waves
V53C0002 W&S: RWE enhancement - shipping material type/time slot
V53C0001 Rough workload calculation in time per item
V50S0001 User Exits for Delivery Processing
V50R0004 Calculation of Stock for POs for Shipping Due Date List
V50R0002 Collective processing for delivery creation
V50R0001 Collective processing for delivery creation
V50Q0001 Delivery Monitor: User Exits for Filling Display Fields
V50PSTAT Delivery: Item Status Calculation
V02V0004 User Exit for Staging Area Determination (Item)
V02V0003 User exit for gate + matl staging area determination (headr
V02V0002 User exit for storage location determination
V02V0001 Sales area determination for stock transport order
Business Add-in
DELIVERY_ADDR_SAP Address Change in Delivery Processing
DELIVERY_PUBLISH Announcement of delivery data during database update -
User exit of\r badi for co11
Dear Gurus,
i need a user exit or badi for transcation co11 after creation of batch .
tx
rajHi Raj,
Following are the user exit for co11:
CONF0001 Enhancements in order confirmation
CONFPI01 Process order conf.: Calculate cust.specific default values
CONFPI02 Process order confirmation: Customer spec. input checks 1
CONFPI03 Process order conf.: Cust. spec. check after op. selection
CONFPI04 Process order conf.: Customer specific input checks 2
CONFPI05 Process order conf.: Cust. spec. enhancements when saving
CONFPI06 Process order confirmation: Actual data transfer
CONFPM01 PM/SM order conf.: Determine cust. specific default values
CONFPM02 PM/SM order confirmation: Customer specific input checks 1
CONFPM03 PM/SM order conf.: Cust. spec. check after op. selection
CONFPM04 PM/SM order conf.: Customer specific input check 2
CONFPM05 PM/SM order conf.: Cust. specific enhancements when saving
CONFPP01 PP order conf.: Determine customer specific default values
CONFPP02 PP order conf.: Customer specific input checks 1
CONFPP03 PP order conf.: Cust. specific check after op. selection
CONFPP04 PP order conf.: Customer specific input checks 2
CONFPP05 PP order conf.: Customer specific enhancements when saving
CONFPP06 PP Order Confirmations: Actual Data Transfer
CONFPP07 Single Screen Entry: Inclusion of User-Defined Subscreens
CONFPS01 PS confirmation: Determine customer specific default values
CONFPS02 PS confirmation: Customer specific input checks 1
CONFPS03 PS confirmation: Customer specific check after op. selection
CONFPS04 PS confirmation: Customer specific input checks 2
CONFPS05 PS confirmation: Customer specific enhancements when saving
Hope this will help you... -
User-Exit OR a BAdi for the Purchase order create.
Hi,
I am looking for a User-Exit or a BAdi which is fired when the Purchase order is being created in the SRM server via Web template. The requirement is as follows:
There is a flag(Check box) at the the item level, Basic Data tab. This flag is called as Unlimited Overdelivery Allowed. It is with the tolerances field. Now I want this flag to be always set for a PO of a material of certain type.
Can anyone tell me which User-Exit OR Badi I should use to always set this flag?
The Technical field name is UNLIMITED.
I tried a lot but could not get any.
Regards,
Deepak.Hi Deepak,
Did you try doc_change badi? THis badi is available in all the bus objects.
thanks,
Ashwin -
User Exit or FI Validation for FB60
Hi All,
When vendor invoices are created through FB60, i need to check if the header text is blank or not. I am not able to find any user exit for the same. Is there any FI validation, which i can use and what is the procedure for the same.
Regards,
JayantHi,
Header Text value has been entered as a Bill of Lading (MKPF-FRBNR) in a Material document for a Good Receipt for same company code/plant. If the Value has not been entered a warning message is displayed to the user. This can be implemented via FI validation. FI team will configure it to check the company code and vendor. But it is required to develop a piece of code which will check in the MFKP table field FRBNR for the value entered in the header text BKPF-BKTXT. If the value was not found, return u201CFALSEu201D to the validation so the message can be displayed.
Here how do i return FALSE value to the FI Validation. Which user exit/badi can be used to achieve this.
Regards,
Jayant -
User Exit or DB-Table for Work Center (CR01)
Hi!
I have an external software which must be triggered when the user changes a work center in SAP (transaction CR01,CR02). I was looking for an user exit to do what ever is necessary but I couldn't find one.
So, does anybody know an user exit or BADI for work center?
Also possible:
The database table where work center are stored. So I could poll against this table and check if a work center was changed. I found the table SGOSHIST which log all modified objects in SAP. So this could maybe used to check for modified work center, I think.
Thanks,
Konrad> You can check the BADI definition from transaction SE18,
> 'LTRM_WORK_CNTR_DTRM', this might be helpful,
How can I check this BADI. If I use SE18, it doas not exist, buit if I try to create it, the system tells me that it already exists in the SAP Original System... and asks me if I want to create a copy of it! I don't know what to do at this point!
> Work center details are avilable in CRHD table, you can
> look for CR* from SE11 transaction,
I know, but if you change the description of the work center, it is stored in CRTX. there are a lot of CR* tables. It would be helpful to have a table which is updated every time a work center is modified!
Thanks,
Konrad
Maybe you are looking for
-
Just re-installed itunes and want to download app from store. Itunes imforms me that my appleI/D has been disabled. Is there any way that I can keep my I/D by re-enabling it or do I have to create a new apple I/D
-
It all comes back to me now - been retired from the corporate world for 3 years and when I did to turned MAC. A wonderful day. Over the weekend I was helping my daughter. She has a 20"iMac but need to get a PC so she could work from home (Cyrix softw
-
Multiple Selection in Search Result List in PCUI
Hi, Our requirement is to allow creation of new records in list view of the PCUI application CRMM_ACCOUNT. I'm using old floor plan CRM 4.0 to meet this requirement. But this is causing a problem. It's not allowing multi select in the search result l
-
Old time question: why is time machine suddenly extremely slow?
When I ran Time machine to back up into my external drive last night, It was 50-70MB/second, but now it does not even reach 1mb/s. I tried to re-index spotlight but no help, verified disk, no repairs needed. The only thing I haven't done is to reform
-
Hello, it seems that the Java Communications Package (javax.comm) is not part of Java SE 6. Does anybody know where I can get this package because I want to access the serial interface with Java. Thanks in advance. regards Jochen