User exit (To change the PO Release Strategy): M06E0004
Dear Experts,
I am trying to implement the enhancement for changing the PO release strategy, using exit M06E0004 for following situation.
If PO is already released and then if any changes made to it affects the net amount which makes it less than previous net amount. We have to change the PO Release indicator to 'Blocked'.
We have tried to change the value of USRC1 USRC2 USRN1 USRN2 of structure E_CEKKO but it is not workingu2026
Please help me *how / what to change in the E_CEKKO structure*.
I am new to User Exit.
Hi Nagarajun,
I am able to solve this problem.!
All u have to do is follwoing two step.
1.maintained a flag in ur enhacement part (FM to Z_FIND_PO_RELEASE_STRATEGY)
inorder to know whether the current PO is without PR or not then export its value to memory.
2.Do enhancement in standard FM ME_REL_STRATEGIE_EKKO
(which is used to reset release strategy and indicator).
Inside this fm u can find below code
if xchange ne space.
*- Strategie geändert --------------------------------------------------
if e_frgst ne i_frgst or
e_frggr ne i_frggr.
perform reset
using e_frgst e_frggr
e_frgzu e_frgkz e_frgrl.
e_reset = 'X'.
*- Wertänderung prüfen -------------------------------------------------
else.
if t16fb-kzfae eq '4' or
t16fb-kzfae eq '6' .
perform currency_conversion using *cekko-waers
bwkurs_old
hwaers
fwaers
bwkurs
changing *cekko-gnetw.
f1 = *cekko-gnetw * t16fb-tlfae / 1000.
f1 = f1 + *cekko-gnetw.
if cekko-gnetw gt f1.
perform reset
using e_frgst e_frggr
e_frgzu e_frgkz e_frgrl.
e_reset = 'X'.
endif.
endif.
endif.
else.
perform reset
using e_frgst e_frggr
e_frgzu e_frgkz e_frgrl.
endif.....
above code is use to check the PO amount and with old net amount,Since normally code is done to reset indicator only when amount is greater than old one, u can copy above code and modify with ur condition(i.e flag) and paste in last line.
Please check & reward is useful.
Similar Messages
-
Is there any user exit to change the UOM of a material while creating sales
Hi experts,
I have a requirement to change the UOM of the item material in sales order while creating. Could anybody help me in finding the correct user-exit to change the UOM.
Thanks,
srinivas.Hi Ravish,
I am already changing the UOM in the same include and in the subroutine "USEREXIT_MOVE_FIELD_TO_VBAP". But it is again over writing in the standard program. What I need to do, to remain same UOM.
Thanks,
srinivas. -
User exit to change the storage section indicator (MLVS-LGBKZ)
Hi.
I'm looking for a user exit which be able to change the storage section indicator (field MLVS-LGBKZ) proposed by the material master data in the process of creating a TO (transaction LT06). I haven't found any user exit for this. Do you know any user exit to change this value?
Thanks in advancehi,
thank you for your response.
whatever the exit which you have been provided, not calling when i creating PR through MD50.
i need an exit which will trigger when we create PR through MD50.
Many thanks,
Regards,
kiran -
User exit to change the value of ltbp-wempf
Hi,
Is there any user exit to modify the value of ltbp-wempf during Transfer requirement creation ?It is also ok, if i can get a way to modify MSEG-wempf during production declaration. (MFBF)
-
MIRO User - Exit to Change the Profit Centre..?
I need to change the Profit Centre in the Accounting document(for Vendor Line Item) and Profit Centre Accounting Document(For Payable Line Item) Created by MIRO Transaction.Can any one let me know if there is anyuser-exit or badi to achieve the same
Thanks a lot for your help .
Regards,
Gopi.Khi
These are all the user exits avalilable for MIRO transaction.
LMR1M001 User exits in Logistics Invoice Verification
LMR1M002 Account grouping for GR/IR account maintenance
LMR1M003 Number assignment in Logistics Invoice Verification
LMR1M004 Logistics Invoice Verification: item text for follow-on docs
LMR1M005 Logistics Inv. Verification: Release Parked Doc. for Posting
LMR1M006 Logistics Invoice Verification: Process XML Invoice
MRMH0001 Logistics Invoice Verification: ERS procedure
MRMH0002 Logistics Invoice Verification: EDI inbound
MRMH0003 Logistics Invoice Verification: Revaluation/RAP
MRMN0001 Message output and creation: Logistics Invoice Verification
I think you can use this exit.
LMR1M002
Regards.
Lavanya. -
User Exit for getting Purchase Requisition Release Strategy
Hi Experts,
When a user creates a PR I need to know the user exit I need to implement so that the First Approver (Processor) text in the Release Strategy is populated from a custom table. I have seen that the field is MEREL_S_GRID1-STEXT. I also need to know if I can implement a user exit so that it pulls the release strategy for a PR for assets (Acct Category A) since it is pulling for Acct Category K (Cost Centre) and the Release Strategy tab is appearing in this case.
Kind Regards,
DarlingtonHi Meenakshi,
Thanks for the very useful answer. It has given clues on how to resolve this issue. I have resolved this issue for the Asset item category using the following thread: user exit for requisition release strategy, and also SAP Note 365604.
However, I have another issue, the release strategy for Stock Items, (item category blank) is not pulling through. I need to use the same method above but would like to know how it determines the funds centre for a specific stock item. I couldn't find where that is implemented in the material master and I need info on how to determine the account assignment for stock items based on the funds centre.
Regards and Thanks. -
User exits while changing the PO Output Medium
Hello Champions,
Will anyone share me, is there any user exit which triggers while changing Purchase Order Output Medium in ME22N transaction. How to know list of user exits which are applicable for ME22N transaction?. will anyone guide me.
Reward with Full pointHi PV,
These are the list f User exits for ME22N:
Exit Name Description
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
M06B0003 Number range and document number
M06B0004 Number range and document number
M06B0005 Changes to comm. structure for overall release of requisn.
M06E0004 Changes to communication structure for release purch. doc.
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., preview)
MEFLD004 Determine earliest delivery date f. check w. GR (only PO)
MELAB001 Gen. forecast delivery schedules: Transfer schedule implem.
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
Regards,
Maia -
Using Field-Symbols in a user exit to change the importing parameter
Please don't ask why but I need to use a user exit, changing the importing parameter. I decided that I could do this using field-symbols.
Please excuse my ignorance but I have never used field symbols for something such as this.
Here is my goal: Loop through an internal table (im_document-item). When I find what I need I want to make a change to this line (not so hard if I am looping into a field symbol) and also append a line to the end of the table im_document-item.
I have the following so far:
DATA: wa_item TYPE accit,
wa_item_out type ACCIT_SUB.
FIELD-SYMBOLS: <document> type acc_document,
<accit> TYPE ACCIT.
LOOP AT im_document-item ASSIGNING <accit> where saknr = '0000211000'.
* Modify the curent line
wa_item = <accit>
* Append a new line into table im_document-item.
ENDLOOP.
How can I use field-symbols to append a line to this table? Please note that the table in question (im_document-item) is an importing only parameter.
Regards,
Davisthat will allow me to append an initial line with <accit> pointing to the line. Therefore I just have to modify <accit> and the new line will then have my changes?
Yep, that is exactly it. So after the APPEND statement, simply fill the fields of the <accit>.
append initial line to im_document-item ASSIGNING <accit>.
<accit>-field1 = 'Blah'.
<accit>-field2 = 'Blah'.
Regards,
Rich Heilman -
User Exit to change the Ship-to party address at Sales Order headder level
Hi,
I have requirement like this......
I need to change the ship-to party address at Sales Order headder level. for that which user exit i need to use and which structure i need to use to update the transaction.
I used : userexit_save_document_prepare, in that i passed data to 'xvbpa' and 'xvbadr' structures. even though it is not update the transaction.
Please let me know the answer.
Thanks,
Satish.Hi Satish,
Step1. Create new Data Copy Routine using Tcode VOFM.
Step2. *-----------------------------------Ship to Party from contract
IF CVBPA-PARVW = 'WE' OR
CVBPA-PARVW = 'SH'.
REFRESH IT_STP.
SELECT KTOKD
A~KUNNR
NAME1
NAME2
A~ADRNR
FROM VBPA AS A INNER JOIN KNA1 AS B ON A~KUNNR = B~KUNNR
INTO CORRESPONDING FIELDS OF TABLE IT_STP
WHERE VBELN = CVBPA-VBELN .
Step3.
CALL FUNCTION 'POPUP_WITH_TABLE_DISPLAY'
EXPORTING
ENDPOS_COL = 80
ENDPOS_ROW = 10
STARTPOS_COL = 10
STARTPOS_ROW = 5
TITLETEXT = 'Your Title'
IMPORTING
CHOISE = T_SELIDX<=====Index No of selection
TABLES
VALUETAB = IT_STP
EXCEPTIONS
BREAK_OFF = 1
OTHERS = 2.
Step4.
READ TABLE IT_STP INTO WA_STP INDEX T_SELIDX.
IF SY-SUBRC = 0.
CLEAR:CVBPA-KUNNR, CVBPA-ADRNR.
MOVE WA_STP-KUNNR TO CVBPA-KUNNR.
MOVE WA_STP-ADRNR TO CVBPA-ADRNR. <========Address ID (Change Here).
ENDIF.
Regards,
Amrendra
Moderator Message - Please do not reply to old, dormant threads.
Message was edited by: Suhas Saha -
User Exit to change the Net price in the Billing document
Hi,
We have one billing document used for three countries
My requirement is , for worng price, user has to chaange the Price manually in the Billing document.
I cannt maintain the copy control setting from the Delivery document to Billing with Pricing Type C
Is there any user exit or alternative way to change Netprice in the Billing document.
regards,
santoshCheck the user exit USEREXIT_PRICING_CHECK or USEREXIT_CHANGE_PRICING_RULE in include MV61AFZA for your requirement.
Regards, -
BADI or User Exit to Change the Item Details in AFAB Transaction(Depreciation)
Hi Experts,
I have a requirement of changing the Item details in AFAB Transaction (Internal Order Number). Is there any BADI or User exit available for that.
Thanks in advance.Hi Sivag,
You can find BADI for transaction in different ways. Try with below methods
1. To find New BADI(Karnel), Run the transaction with debug mode(/h), keep break point at statement
CALL BADI
2. To find old BADI (Classic), Keep break point at exit handler CL_EXITHANDLER=>GET_INSTANCE and run the transaction
3. Check in SPRO transaction - Check with functional consultant in which business process this transaction comes and any customization details available
4. Get pakage name of transaction and go to to tcode se84 enhancement browser . Try to find with package name, any enhancement available
Thanks & Regards,
aRun -
User exit to change the deliveries in self-billing
Hi abapers
i have a problem with badis
In the transaction VSB1 i have the badi BADI_SBWAP.
in this i have a method DELIVERY_DETERMINE_2.
i want to write the code to change the deliveries in that method.
since the required data to validate the VBELN is given in this method only.
but the problem is the program SDSBWAPSPS is not entering into this method.
if i write the code in that method then it is not executing the code.
so any alternate solution for this problem.
thanks in advance.
samiCheck the user exit USEREXIT_PRICING_CHECK or USEREXIT_CHANGE_PRICING_RULE in include MV61AFZA for your requirement.
Regards, -
User exit for Change the Tariff Number in Customs Declaration Document
Hi Guru,
Due the business requirement, user only maintain the Tariff Number in ECC, there is an solution when GTS creating the customs declaration document in GTS, there is an user exit calling the Function Module (Customized program) to get the Tariff Number from ECC and then update the Tariff number in the item level automatically.
Do you know if there is user exit or BADI can update the "Tariff Number" in the item level of Customs Declaration Document in GTS?
Thanks,Hi,
I would not do it in that manner, first because of performance reasons and 2nd, GTS needs to have the Data in the system and for certain procedures (for example swiss customs you will have to manipulate them in GTS). Furthermore we tried to do this for dummy numbers and then conclusion is that it only works with a Programm modification (at least for CH customs) becasue the system needs to retreive more than just the Tarif number.
Yet if ECC has to be your master for Numbering (which I dont recommend by the way), but if there is really no other way.
Then create a batch job that transfers the ECCN number to GTS (there is a standard functionnality to do so), and then do a batch job in GTS that retreives these numbers.
Regards,
Marc -
User exit to change the partner function in VA02
Hi experts,
I have a requirement to increment Volume field value everytime when the end customer ( partner function) is modified at header and item level.
Can you suggest some exits ?
PLease suggestHi
Try with the following exits.
EXIT_SAPLV46H_002
EXIT_SAPLV46H_001
Thank you,
Sekhar. -
Need to know the user exit to change unlimited check box in delivery tag
Need to know the user exit,
To change the <b>unlimited check box(</b>EKPO-UEBTK) in <b>delivery tag</b> of <b>item details</b> for tcode <b>ME21N/ME22N</b> on <b>SAVE</b>.
Thanks in Advance.
BaburajHI Baburaj,
Use the BADI ME_PROCESS_PO_CUST to change the unlimited check box(EKPO-UEBTK)
Implement the BADI and insert the code in the method PROCESS_ITEM
Example code :
*Data Declarations
DATA: ls_mepoitem TYPE mepoitem,
ls_mepoitemx type mepoitemx,
ls_customer TYPE mepo_badi_exampl,
ls_tbsg TYPE tbsg.
INCLUDE mm_messages_mac. "useful macros for message handling
*here we get item data
ls_mepoitem = im_item->get_data( ).
*work area for price value
data : begin of it_eban,
banfn type mepoitem-banfn,
bnfpo type mepoitem-BNFPO,
pries type mepoitem-NETPR,
end of it_eban.
*Get the Purchase requisition price from EBAN table
select single banfn bnfpo preis from eban into it_eban
where
banfn = ls_mepoitem-banfn
and bnfpo = ls_mepoitem-bnfpo.
*if entry is available.
if sy-subrc eq 0.
*check if price is zero
if it_eban-pries EQ 0.
*if zero, set FREE field of PO to 'X'.
ls_mepoitem-uebtk = 'X'.
endif.
endif.
*Set updated fields
CALL METHOD im_item->set_data
EXPORTING
im_data = ls_mepoitem
Reward if Helpful*****
Maybe you are looking for
-
How can I get Data from the Sound cart in Labview? Does a VI exist?
How can I get Data from the Sound cart in Labview? Does a VI exist?
-
Using Fifth Gen and 20G on same Itunes software
I have both 5th Gen and 20Photo. I want to have same playlists etc on both. How do I take itunes software for 20G color and have it recognize and update 5th Gen? The computer won't recognize the 5th Gen, and I am afraid if I put in the disc that came
-
Hi, I have an interesting request from one of my customers and off the bat, I'm not quite sure how to address this one. My customer is an education institution and they load new students for various different schools and campuses on a daily basis. In
-
How to get save file as dialog?
Hi, I want to copy the file and save it as another the file using Save As file dialog box. So I searched this forum and found this artical. But the activeX control used in this vi. i.e.MSComDlg.ICommonDialog could not be loaded in my system(as show
-
Selection variant - authorization
Hi, I'm using standard selection variants for internal orders and cost centers (created via KOK3, KS13, OKOV etc.). Some of the variants are used in customizing (as receivers of assesment) so only some users should be allowed to modify such selection