User Exit / BADI while creating Purchase Requistion
Hi,
I am trying to find a BADI that would get triggered before the purchase requisition gets created (so that I can edit the storage location). I observe that purchase requisitions could be created with transactions like MD41 or while creating a sales order (events trigger MRP in background ?)
I tried to find the relevant BADIs using the transaction MD41 and function module SXV_GET_CLIF_BY_NAME and found the following BADI definitions but was not too sure which one to use in the case. Could anyone help
MD_MRP_PARAMETERS
MD_CHANGE_MRP_DATA
MD_ADD_ELEMENTS
MD_MODIFY_SOURCE
MD_ALTERN_EXPLOSION
MD_LAST_LOT_EXACT
Used the BADI MD_PURREQ_CHANGE
Similar Messages
-
User Exit/BADI for PR (Purchase Requisition )
Hello,
I need to do some validations while saving PR (ME51N, ME52N). Which User Exit / BADI I can use for this purpose? I am using SAP 4.6C
I have to do the validation for the field FIPOS
Regards,
LijoMEREQ001 Customers' Own Data in Purchase Requisition
-
Error in vendor selection while creating Purchase requistions
Hi,
I was using bapi_requestion_create to create purchase requistion with different quotas for different vendors.
Ex: vendor A with 60%
vendor B with 40%
If the required quantity is 100 items then it has to split 60 items to vendor A and create seperate Puechase Requistion.
and for 40items with another Purchase requsition.
Currently iam able to split the noof purshcase requisiton but it was picking only with one vendor.
MY Code :
*******Split PRs with respect to Quota ************************
data : lv_lines type i,
lv_qty type p DECIMALS 4.
lv_qty = it_oo-qty.
DESCRIBE TABLE t_equp LINES lv_lines.
IF lv_lines GT 1.
clear : w_equp.
loop at t_equp into w_equp
where qunum = w_equk-qunum.
refresh : t_req_item.
clear : w_eord,
t_req_item[],
t_req_item.
READ TABLE t_eord INTO w_eord
WITH KEY matnr = it_oo_sum_purch-matnr_sap
werks = it_oo_sum_purch-plant
lifnr = w_equp-lifnr.
if sy-subrc is initial.
it_oo_purch-AGREE = w_eord-EBELN. "To Fill ALV
it_oo_purch-ITEM = w_eord-EBELP. "To Fill ALV
it_oo_purch-FORNEC = w_equp-LIFNR. "To Fill ALV
t_req_item-doc_type = c_zbmr.
t_req_item-pur_group = it_oo-ekgrp.
t_req_item-material = it_oo_sum_purch-matnr_sap.
t_req_item-plant = it_oo_sum_purch-plant.
t_req_item-AGREEMENT = w_eord-EBELN.
t_req_item-AGMT_ITEM = w_eord-EBELP.
t_req_item-FIXED_VEND = w_equp-LIFNR.
t_req_item-QUOTA_ARR = w_equk-qunum.
t_req_item-QUOTARRITM = w_equp-qupos.
t_req_item-gr_ind = c_x.
t_req_item-ir_ind = c_x.
t_req_item-MRP_CONTR = 'NOV'.
CONCATENATE it_oo_sum_purch-due_dte+4(4)
it_oo_sum_purch-due_dte+2(2)
it_oo_sum_purch-due_dte(2)
INTO t_req_item-deliv_date.
t_req_item-QUANTITY = ( w_equp-QUOTE / 100 ) * lv_QTY.
endif.
********Rounding off values*******************
data : lv_int(20) type c,
lv_dec(20) type c,
lv_tot(20) type c.
clear : lv_int ,
lv_dec,
lv_tot.
lv_tot = t_req_item-QUANTITY.
split lv_tot at '.' into lv_int lv_dec.
if lv_dec(1) ge '5'.
lv_int = lv_int + 1.
endif.
t_req_item-QUANTITY = lv_int.
APPEND t_req_item.
clear : v_number.
Create purchase requisition by group
CALL FUNCTION 'BAPI_REQUISITION_CREATE'
IMPORTING
number = v_number
TABLES
requisition_items = t_req_item
return = t_return.
ERRO
IF t_return-type CO 'AE'.
CLEAR: v_msg, v_x.
CALL FUNCTION 'WRITE_MESSAGE'
EXPORTING
msgid = sy-msgid
msgno = sy-msgno
msgty = sy-msgty
msgv1 = sy-msgv1
msgv2 = sy-msgv2
msgv3 = sy-msgv3
msgv4 = sy-msgv4
IMPORTING
messg = v_msg.
PERFORM zf_grava_log_erro_oo
USING it_oo_purch it_oo_sum_purch v_msg v_x.
SUCESSO - Atualiza Tabela zsytmm_pr_po
ELSE.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT = c_X.
CLEAR: v_msg, v_x.
CONCATENATE text-026 v_number INTO v_msg
SEPARATED BY space.
it_oo_sum_purch-QTY = t_req_item-QUANTITY.
PERFORM zf_grava_log_sucesso_oo
USING it_oo_purch it_oo_sum_purch v_msg v_x.
CLEAR: zsytmm_pr_po.
vl_item = c_00001.
zsytmm_pr_po-banfn = v_number.
zsytmm_pr_po-bnfpo = vl_item.
zsytmm_pr_po-ebeln = c_false.
zsytmm_pr_po-ebelp = c_false.
zsytmm_pr_po-zshmode = it_oo_purch-shipm.
MODIFY zsytmm_pr_po.
ENDIF.
endloop.Hi,
You have to fill DES_VENDOR & FIXED_VEND of structure REQUISITION_ITEMS while calling BAPI. But while going through your code,
* t_req_item-FIXED_VEND = w_equp-LIFNR
is commented, uncomment the same and add line for DES_VENDOR also.
Regards
Vinod -
User Exit/Badi while saving the PO before it is processed
Hi,
We have a requirement where in we have to change the release strategy of a PO on saving it , but,before it gets processed. Please let me know if there is any user exit or badi for this scenario.
Thanks,
Prasath NHi,
Thanks for your reply.
But by the time the above user exit / badi is executed, the PO is outputted, i would like to change the release strategy b4 the PO gets outputted. Any suggestions?
I am in ECC 6.0.
Thanks,
Prasath N -
User-exit/BADI to change Purchase Contract item field ??
Hello,
I need to update the Order acknowledgement field(EKPO-KZABS) for the Purchase contract via transaction ME32K.
I need to know if there is any user exit or BADI for the Purchase contracts (Outline agreement), so that this field KZABS can be updated while saving. I did not find any user exit so far in which line item is a export parameter. There is one BADI definition ME_PROCESS_PO_CUST but it is called only in case of Purchase Orders and not in the contracts. Please let me know if you have some idea how to do this.check these exits....
EXIT_SAPMM06E_012
<b>EXIT_SAPMM06E_013</b>
EXIT_SAPMM06E_014
EXIT_SAPMM06E_006
EXIT_SAPMM06E_007
EXIT_SAPMM06E_018
EXIT_SAPMM06E_016
EXIT_SAPMM06E_017
vijay -
User exit/BADI for updating Purchase Order Item
I am would like to update the purchase order item - specifically field EKPO-REPOS in a user exit or BADI. I haven't been able to find one that allows you to update the purchase order item.
Any input would be appreciated.
DerickYou can use BADI ME_PROCESS_PO_CUST for you requirement
Method PROCESS_ITEM
* Retrieve item data.
CALL METHOD im_item->get_data
RECEIVING
re_data = v_data_item.
Do you validations and changes here
*update changes
CALL METHOD im_item->set_data( v_data_item ). -
Needs User-Exit/BADI name for Purchase Order in ECC 5.0
MM Experts,
We are using ECC 5.0. We have a requirement to change the value of standard SAP fields on the line item and header of the PO tables after PO is saved in the system.
I will appreciate if someone can guide me about which BADI or User-Exit I have to use to achieve this.
Rewards will be awarded for helpful tips.
Thanks in advance!
MPCharlie,
Thanks for your quick reply. Do you have sample code for this BADI. If yes, then can you please let me know your email address .
Thanks.
MP -
User Exit/BADI while setting status as TECO for WBS in CJ20N
Hi all,
I need a BADI/User Exit which triggers when we try to set the status of WBS as 'TECO' in CJ20N transaction.
Please help.
Thanks in Advance,
SagarHi Sagar,
Go through this Badis.
AFABD_CHANGE
DOCUMENT_MAIN01
DOCUMENT_OBJ
DOCUMENT_STORAGE01
IHSA_LIST_EDITING
IWO1_ORDER_BADI
IWO1_ORDER_BADI
MRO_CONTRACT
MRO_CONTRACT
NETW_DIR_PROCUREMENT_REF
NETW_USER_FIELDS_F4
PLM_CATALOG_IF
PLM_CATALOG_IF
PROJECTDEF_UPDATE
PS_TRANSFER_DATES
WBS_FIELDS_FOR_ASSET
WBS_USER_FIELDS_F4
WORKBREAKDOWN_UPDATE
If Found Help Full Do Reward.
Regards.
Eshwar. -
User exit/BADI to for Purchase requisition through release of Process order
Hi ,
i need to add some text to the Pur Req. The Pur Req will be created through the release of PROCESS order. Please let me know any exits are available for the same.
regardsHi,
check the below enhancements in transaction SMOD.
CCOWB001 Customer exit for modifying menu entries
COIB0001 Customer Exit for As-Built Assignment Tool
COZF0001 Change purchase req. for externally processed operation
COZF0002 Change purchase req. for externally procured component
PPCO0001 Application development: PP orders
PPCO0002 Check exit for setting delete mark / deletion indicator
PPCO0003 Check exit for order changes from sales order
PPCO0004 Sort and processing exit: Mass processing orders
PPCO0005 Storage location/backflushing when order is created
PPCO0006 Enhancement to specify defaults for fields in order header
PPCO0007 Exit when saving production order
PPCO0008 Enhancement in the adding and changing of components
PPCO0009 Enhancement in goods movements for prod. process order
PPCO0010 Enhancement in make-to-order production - Unit of measure
PPCO0012 Production Order: Display/Change Order Header Data
PPCO0013 Change priorities of selection crit. for batch determination
PPCO0015 Additional check for document links from BOMs
PPCO0016 Additional check for document links from master data
PPCO0017 Additional check for online processing of document links
PPCO0018 Check for changes to production order header
PPCO0019 Checks for changes to order operations
Thanks
Sandeep
Reward if helpful -
WHILE CREATING PURCHASE REQUISITION,THE AVAILABILITY CHECK FOR THE MATERIAL
dear Friends,
our users want to WHILE CREATING PURCHASE REQUISITION,THE AVAILABILITY CHECK FOR THE MATERIAL SHOULD BE ENABLE,
at present we maintaing KP in Material Master. if we activated what will happen?
please advice.
with regards,
Rajesh GHi,
The availability check is generally used for goods movements(GR,GI,reservation) & not for PRs.
Regards,
Vijay -
User exit/ BADI for transaction VF11
Dear Gurus,
My requirement is that, When a billing document is canceled using transaction code VF11, while saving the document, a information message needs to be displayed based up on the invoice date which is currently getting canceled.
Kindly help me out with User Exit / BADI while saving and the table fields which will have invoice date of the invoice which is getting canceled.
Thanks,
Bhupender Dangihi,
the following user exits are available for tcode VF11
Exit Name Description
SDVFX001 User exit header line in delivery to accounting
SDVFX002 User exit for A/R line in transfer to accounting
SDVFX003 User exit cash clearing in transfer to accounting
SDVFX004 User exit G/L line in transfer to accounting
SDVFX005 User exit reserves in transfer to accounting
SDVFX006 User exit tax line in transfer to accounting
SDVFX007 User exit: Billing plan during transfer to Accounting
SDVFX008 User exit: Processing of transfer structures SD-FI
SDVFX009 Billing doc. processing KIDONO (payment reference number)
SDVFX010 User exit item table for the customer lines
SDVFX011 Userexit for the komkcv- and kompcv-structures
V05I0001 User exits for billing index
V05N0001 User Exits for Printing Billing Docs. using POR Procedure
V60A0001 Customer functions in the billing document
V60P0001 Data provision for additional fields for display in lists
V61A0001 Customer enhancement: Pricing
J_3RSINV Customer enhancement: Pricing -
BADI-User exit required for updating Purchase order header field -IHREZ
Hello All,
We have requirement in our business to update the purchase order header field "our reference" EKKO-IHREZ with some text field. We need a BADI/user exit that can be used for updating this field . We have checked the BADI ME_PROCESS_PO_CUST and unfortunately we are not able to use this BADI as it getting triggered in enjoy SAP transactions ME21N , ME22N etc. We are not creating the purchase order manually and we are using ME59N for creating Purchase order . Hence we are looking for some user exit/BADI that can be used in ME59N for updating the purchase order header field IHREZ.
Thanks in advance for your immediate response .
With regards,
Joseph Anand BTRY using the exist u2022 EXIT_SAPLME59_001
You can also later on add this field by BAPI_PO_CHANGE -
Can anyone give me user exit name for create/update purchase order partners
Hello guys
Can anyone gives me user exit name for create/update purchase order partners?
Requirement is to insert/update partner when SC flag is checked while creating/updating purchase order (ME22N / ME21N) by using user exit.hi,
check these exits.
Transaction Code - ME21N Create Purchase Order
Enhancement/ Business Add-in Description
Enhancement
MEQUERY1 Enhancement to Document Overview ME21N/ME51N
MEVME001 WE default quantity calc. and over/ underdelivery tolerance
MM06E001 User exits for EDI inbound and outbound purchasing documents
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 PO
MM06E008 Monitoring of contr. target value in case of release orders
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 processing
MMAL0004 ALE purchasing info record distribution: Inbound processing
MMDA0001 Default delivery addresses
MMFAB001 User exit for generation of release order
MRFLB001 Control Items for Contract Release Order
MELAB001 Gen. forecast delivery schedules: Transfer schedule implem.
AMPL0001 User subscreen for additional data on AMPL
LMEDR001 Enhancements to print program
LMELA002 Adopt batch no. from shipping notification when posting a GR
LMELA010 Inbound shipping notification: Transfer item data from IDOC
LMEQR001 User exit for source determination
LMEXF001 Conditions in Purchasing Documents Without Invoice Receipt
LWSUS001 Customer-Specific Source Determination in Retail
M06B0001 Role determination for purchase requisition release
M06B0002 Changes to comm. structure for purchase requisition release
MEFLD004 Determine earliest delivery date f. check w. GR (only PO)
MEETA001 Define schedule line type (backlog, immed. req., preview)
ME590001 Grouping of requsitions for PO split in ME59
M06E0005 Role determination for release of purchasing documents
M06E0004 Changes to communication structure for release purch. doc.
M06B0005 Changes to comm. structure for overall release of requisn.
M06B0004 Number range and document number
M06B0003 Number range and document number -
User Exit / BAdI to update the pricing conditions of the Purchase Order
Hello SAPients,
This is my requirement:
"Copy the Pricing Conditions from the Shipment Cost Document (VI01 / VI02) to the automatically generated Purchase Order".
I'm using the enhancement V54U0002 (Function Module EXIT_SAPLV54U_002) to EXPORT the values of the Pricing Conditions to memory and I have used the enhancement MM06E005 ( FM EXIT_SAPMM06E_006, 007, 012, 013, 014, 016, and 017) to IMPORT the values from memory and store them in TKOMV. But, when the PO is generated the values don't stay, they are always changed with the standard PBXX pricing conditions.
My question is: Does anyone know the User Exit / BAdI that I can use to change the Pricing Conditions of the Purchase Order?
<<removed_by_moderator>>
Thanks!
Edited by: Vijay Babu Dudla on Jan 14, 2009 11:08 PM>
kartik tarla wrote:
> check this badi
> ME_PROCESS_PO_CUST
>
> and the following user exit
> Goto-> include RV61AFZA then search for
> USEREXIT_PRICING_RULE see if its helpful to u.
Hello Kartik / SAPients,
I tried with ME_PROCESS_PO_CUST but didn't work. The system doesn't execute that code. Any other idea would be greatly appreciated.
Thanks. -
User exit -BADI for overriding Partner number in Purchase order output type
Hello All,
We have a requirement wherein the EDI message type will distribute the Idoc to the partner number determined in the output type of the purchase order. We are maintaining the condition record for a generic partner number in MN04 and we want this partner number with partner role SH from the condition record to be modified to the sales order sold to party partner number. We are using third party processing and hence sales order number can be fetched from account assignment (EKKN) table of the purchase order. Kindly do let me know the user exit /BADI that can be used for achieving this functionality.
Thanks in advance for your immediate response.
With regards,
Joseph Anand BHi,
check with below link,
fo this one you will find both user exit and badis
https://www.sdn.sap.com/irj/scn/wiki?path=/display/abap/find%252bapplication%252bclass%252bwith%252bexits%252band%252bbadis%252bfor%252ba%252btransaction
Regards,
Madhu
Maybe you are looking for
-
Help Please I can't print IE or Safari with 10.4.4
Can anybody HELP ME PLEASE. I have upgraded to 10.4.4 and now I can't print from Internet Explorer or Safari. I don't have any problems with Mail or any other programs. I just can't print any web pages and I need to do that often. I have tried all th
-
Why error message when trying to put in a transition?
I'm using iMovie 4 and can not put in a transition. I'm getting error message 4960, "error in system operation". I've successfully added transitions up until now. What gives? Thanks.
-
I`m just wondering if someone can help me with this. We are having difficulties with the scrept that previous IT guy created. Suddenly it gives us the following error: Script : '==================== ' NAME: CreateOutlookSignature.vbs ' AUTHOR:
-
when i push restart and it never restart itself it will always show the white screen and you can see it is processing but it take very long and it seems never restart, you have to turn off the power and turn on again then you can start your computer
-
Why does Finder only burn DVD's at 2x?
I have a MacBook Pro with a 8x Superdrive. How come when I try to burn a data dump onto DVD from the finder, the only option I have is 2x? I can't even go lower to 1x let alone the advertised speed of 4x. here are the specs of the drive: Maximum writ