Using BADI to change the field value in standard transaction ME21N

Hello People,
In transaction ME21N to create PO, i have a field where i want to allocate the batch ( CHARG )  NONRETG to all the PO's that are created. I have a BADI for that, however i do i implement the BADI so that the Batch 'NONRETG' is automatically allocated to all the PO's that are created. Please advise whether a USER EXIT would be better or a BADI would do the work. Right answer would be rewarded.
regards,
Sandeep Salaria

Hi,
YOU can very well implement.Use this BADi->ME_GUI_PO_CUST
Incase you are going to implemet userexit U can use the Exit: MM06E005.
Regards
Kiran Sure

Similar Messages

  • User exit/BADi to change the header text in MIRO transaction

    Hi all,
    I am searching user exit or badi to change the header text in MIRO transaction.
    My requirement is, before post the invoice I need to populate the vendor name in Header text field(MIRO -> Details tab -> header text field ). I have tried all the user exits and BADi's related to MIRO. Doesn't work. If anybody knows please share.
    Thanks,
    Pranav

    Try BADI INVOICE_UPDATE.
    If you are in system version is ECC 6.0, you can find out a Enhancement SPOT (ES_SAPLMRMC) under Function module MRM_FINAL_CHECK, which can be used to perform this requirement
    Hope this helps.
    Thanks,
    Balaji
    Edited by: Balaji Ganapathiraman on Mar 14, 2008 4:43 PM

  • How to change the field length in standard sap program.

    Hi All,
    How to change the field length in standard sap program.
    Urgent
    Example:
    Text1 type c length 75,
    To change :
    Text1 type c length 150,
    Point will be rewarded..
    Thank you,
    Vikram.C

    If the only solution is to change the sap standard program, simply change the program, it will prompt for an access key. This key can be retrieved in the SAP support portal (service.sap.com) at keys and requests, sccr keys, register object.
    Sometimes these actions are outsourced to a competence center, so maybe youre not entitled to do this, in any case ask a resident senior developer for support.
    regards, Rob

  • Using BADI for changing the Profit Center in FI Document during MIRO

    Hi,
    We have an requirement of changing the profit center in FI/CO Document while doing MIRO which is different than the one which is posted at the time MIGO.The system is not allowing us to do this and the field profit center during MIRO is not changeble mode and the business requirement is to change this through any SAP enhancements or program.
    How can I do this ?
    Is there is any standard BADI or User Exit is available for this.
    Pleease help me in this and will give valuable points.

    Hey,
    Use the BADI INVOICE_UPDATE and try with this. Otherwise you try to create Enhancement point to implement your code.
    Note: Inside BADI we can't change the runtime value. So, try to use enhancement point.
    Rewert back for any clarification.
    Regards,
    Saravanan M

  • Script : how to change the Field name in standard program(ZM_MEDRUCK)

    Hi Experts,
    I am working with SAP SCRIPT. i need to change the Field Name that is PO NO to Document No & PO DATE to Document Date.
    These are assigned in data declaration as gv_name and gv_date.
    Can anyone help me to change this Fields.
    Regards,
    Vijayan.R

    Hi,
    You can archive this by making change in SAP script only. You don't need to touch the standard prgm.
    Debug the script and find it out which fields (In script editor) are printing these text on layout... then just replace them by creating your own text...
    You can create a text in TTDTG table,, like ZZPO_NAME = ( Document Name),, and use this filed in the script editor.
    &ZZPO_NAME&

  • Changing the output layout of standard transaction FPWLM

    Hi All,
    We have a requirement where we need to change the output layout of the standard transaction FPWLM which is used fo the management of worklist for collecion management.
    In this transaction under the current worklist if we select the worklist ID and display it , work items are displayed in the Grid display. We want to add certain fields here in the output layout of this transaction. We tried adding the fields by selecting the change layout option which displays the list of hidden fields which can be added . But the problem is the field which we want to add is not present in this list.
    Is there any other way to add the fields to the output layout of standard transaction.
    thanks
    regards
    manipal

    Hi Manipal,
    Maybe check IMG under Basic Settings for Collections Management.
    This node contains the sub-node Worklist.
    Two enhancements are availaable here:
    BAdI: Enhancement of Worklist Items on Creation
    BAdI: Enhancement of Worklist Items on Display
    Maybe read the documentation for the nodes to determine if the enhancements will accomplish what you are looking for!?
    Since this component is not active in our installation, I have no experience with this functionality.
    Kind regards,
    Robert

  • How to find a BADI to change the default value of a Web Dynpro Screen?

    Hello Experts!!
    My requirement is as follows-
    The SAP cProjects Distribution Functions screens default the Calculation Base to “Per Day”(This is represented via the initially-selected value in a listbox). The requirement is to make it deafult to the current standard “Per Month” (This also appears in the list box).
    Is there any BADI to achieve this?
    I tried putting a debug point in the Get_Instance method of the class cl_exithandler to find all the BADIs associated with the screen. I got a bunch of BADIs with no luck. And now I am not even able to debug anymore as the debuger is not opening. Can anybody tell me why this is happening? It was working two days before. And yes I have read all the posts about debugging a web dynpro application and I am doing everything that is mentioned there- I have set an external debug point and I have checked the "IP Matching" checkbox against my name in the workbench, but, with no luck
    Any help on this will be greatly appreciated.
    Thanks and Regards,
    Smitha

    You can't do this on a running VI. If you have an idle VI, you can open a reference to that VI and use an invoke node with the Make Current Values Default method, but that will only work in LV (i.e. not in an EXE) and will affect all the controls. What you can do is save the values to a file and load them when the program starts. OpenG's File I/O package includes some VIs which will help you with that.
    Try to take over the world!

  • User exit or BADI to change the delivery date in ME51N  transaction

    Hi Gurus,
       I need a user exit or a BADI where I can change the delivery date in the item overview  tab for each material. I need to calculate the date according the vendor contact details.
    Please let me know if there is any BADI or a user exit for the same
    Thanks a lot!!!
    Sharath

    quick search for exits/badis: get package name and supply it into se80
    or
    se15
    thanq

  • How to insert a button on a page which changes the field value in a list

    Hi,
    I need to send a workflow email to the manager giving him an option to approve/reject the ongoing process. Now i want to make it such a way that, manager is redirected to some page, where he will see two button, Approve and Reject. On click of any of them,
    the status field in sharepoint list should change accordingly.
    Please suggest how can i implement this. 
    Many thanks.

    Hi
    check this real example
    http://blogs.msdn.com/b/sharepointdesigner/archive/2012/08/16/a-sample-approval-workflow-which-can-be-recalled-by-initiator.aspx
    Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.

  • Need help with IQ02 - using a FM do update a value in this transaction

    Hi,
    I am trying to change the Aquisition value (as in transaction  IQ02) using either of following FM:
    ITOB_SERIALNO_MODIFY_SINGLE
    SERIALNUMBER_LIST_UPDATE
    However the changed value of field (ANSWT) is not getting reflected in database.
    I tried ABAP4_COMMIT_WORK, but it didnt work.
    I also tried, BAPI_TRANSACTION_COMMIT but getting a express document message 'Update was terminated.'
    Kindly help me with this. The only thing I need to do is to change the ANSWT (Aquisition value) field.
    Thanks.
    Sanjay
    PS: Help will be rewarded

    It's a bit dangerous to use SAP function modules that are not released to the user to update SAP data because they may not be a complete LUW. IE you may have to run other FMS either before or after. Try to find a BAPI. Maybe BAPI_MATERIAL_MAINTAINDATA_RT is what you need.
    Rob

  • User exit/BADi to populate the header text in MIRO transaction

    Hi all,
    I am searching user exit or badi to populate the header text in MIRO transaction.
    My requirement is, before post the invoice I need to populate the some text in Header text field (MIRO -> Details tab -> header text field). I need to populate this field in the MM document as well as FI document (Accounting Document). I have tried all the user exits and BADi's related to MIRO/MRRL. Doesn't work. If anybody knows please share.
    Thanks,
    Santosh
    Edited by: Santosh Ghonasgi on May 13, 2010 4:48 PM

    Hello santosh,
    I am not sure whether a suitable exit / BADI exists to update the header text in MIRO directly.
    there is one related forum:
    User exit/BADi to change the header text in MIRO transaction
    Hope, it may helpful for you to proceed with some other parallel solution.
    Regards,
    Selva K.
    Edited by: Selvakumar Krishnan on May 13, 2010 5:29 PM

  • Exit/bAdI for changing the item level field in VA02.

    Dear Guruss...
    I am facing a problem while trying toi change the account assignment group in VA02. The field is present at the iteem level in the tab BILLING.
    When I change the field by choosing one of the values provided in the search help and enter, the value is again reset to its initial value. However if I change the value and SAVE (without pressing enter) then the value is saved.
    The technical field name is VBAP-KTGRM, I have checked in the include:MV45AFZZ by putting break-points at all the forms but unfortunately none of them is getting triggered when I press enter.
    During the debugging I found tha the values of the structure VBAP are overwritten by those of XVBAP everytime I press enter.
    I also checked for the bAdI but can not get any help.
    Is there any bAdI or exit that can help me for this????
    Thanks in Advance......
    Abhi.....

    Hi Digvijay
       these are some of the enhancements/badi's which is related to t-code va02. just check it out
    Transaction Code -               VA02          Change Sales Order
         Enhancement/ Business Add-in               Description     
         Enhancement                    
         V60F0001               SD Billing plan (customer enhancement) diff. to billing plan     
         V46H0001               SD Customer functions for resource-related billing     
         V45W0001               SD Service Management: Forward Contract Data to Item     
         V45S0004               Effectivity type in sales order     
         V45S0003               MRP-relevance for incomplete configuration     
         V45S0001               Update sales document from configuration     
         V45P0001               SD customer function for cross-company code sales     
         V45L0001               SD component supplier processing (customer enhancements)     
         V45E0002               Data transfer in procurement elements (PRreq., assembly)     
         V45E0001               Update the purchase order from the sales order     
         V45A0004               Copy packing proposal     
         V45A0003               Collector for customer function modulpool MV45A     
         V45A0002               Predefine sold-to party in sales document     
         V45A0001               Determine alternative materials for product selection     
         SDTRM001               Reschedule schedule lines without a new ATP check     
         SDAPO001               Activating Sourcing Subitem Quantity Propagation     
          Business Add-in                    
         BADI_SD_SCH_GETWAGFZ               Scheduling Agreement: Read WAGFZ from S073     
         BADI_SD_V46H0001               SD Customer functions for resource-related billing
      Regards
    Zulfikhar ali
    Edited by: Zulfikhar Ali Bhutto.N on Sep 23, 2011 11:15 AM

  • Preserving a field's value on changing the field access parameter?

    I have a form that has a number of fields that are set to "protected" and have calculation scripts on them. If the user selects a specific radio button option elsewhere, the form sets the .access parameter to "open" and disables the calculation so that the user can enter whatever they want into those fields. The problem arises when the user imports XML data via Acrobat. The radio button choice is made (since it is bound to an element in the schema), but when the form changes the access parameter of the fields to "open", it fires the calculate event on the fields and we lose the value assigned to those fields from the imported XML.
    Is there any way to preserve the fields value when it changes from "protected" to "open"? Here is an example PDF w/ XSD.
    The more I dig into this the more I think this might be an issue with calculate.override not disabling the calculations on a field, even when it is set to "open" - at least until the user manually edits that field.

    Ok, worked out a solution. It's specific to my application, but maybe someone else will get something out of it. What I did is moved the calculation script from the field I am changing the access parameter of (call it "Field A") to the fields that feed into that field (call them "Field B" and "Field C"). Now, when the user triggers the exit events on B and C, each one fires a script that updates the value of A. For my application, this works only because B and C are hidden from the use if they toggle the radio button allowing them to manually enter A.
    Basically, instead of A pulling values from B and C to calculate it's value, B and C check each other and push values to A.

  • How can I change the initial value of the field approve_or_reject?

    Hello Workflow Gurus
    We are using SRM 5.00(SRM SERVER 550) and as per the requirement, I have to make the Reject radio button as default checked on the Approver's screen.
    We are using the SAP Standard Workflow WS14500015.
    I found out the Standard task TS14508044 (SC approval per Item)which has one field in its container i.e. approve_or_reject ,based on the Initial value of this field , the radio button is behaving...
    approve_or_reject EQ 0 i.e. Approve
    approve_or_reject EQ 1 i.e. Reject
    Now my requirement is to change the initial value of this field from 0 to 1 so that Reject radio button comes as checked by default into this standard SAP workflow task TS 14508044...
    Kindly help me and let me know the procedure to change this.
    PLEASE LET ME KNOW THAT IS IT WISE TO MAKE THE CHANGES INTO STANDARD SAP WORKFLOW ???
    Thanks and regards
    Ankur Goyal
    09823448654

    Well Iam not much sure about how you are trying to approve the shopping cart workitem b ut last week i faced a similar issue while apporving the workitems I was able to update the contianer element Apporve_or_reject element by using the FM BBP_PDH_WFL_WI_APPROVE and BBP_PDH_WFL_WI_REJECT ... These two fm will take the responsibility of updating the element with respective value as, if you approve the it will be populated with 0 and if you reject the the element will be updated with 1....
    Please check the thread where I updated the thread in [SRM Workflows|Problem while approving SC from Blackberry !;
    PLEASE LET ME KNOW THAT IS IT WISE TO MAKE THE
    CHANGES INTO STANDARD SAP WORKFLOW ???
    Modifying the standard workflow is not recommended.....

  • Problem changing the Condition Value in Po using BAPI_PO_CHANGE

    Hi Experts,
    My issue is BAPI_PO_CHANGE is not changing the Condition value. and giving message in bapi return as 'cannot be processed manually'.
    Can anybody please help me on this.
    Thanks & Regards,
    Sudheer

    Check this link http://forums.sdn.sap.com/thread.jspa?threadID=652278
    Regards,

Maybe you are looking for

  • Mini DVI-to-Video Cable

    Hi, I've been looking to get a cable to connect my macbook to a normal widescreen CRT TV. I found the Apple Mini DVI to Video cable on the website, but it doesn't list the Macbook as one of the compatible systems. Can someone let me know - preferably

  • What are the options to replacing my iPod?

    my iPod is acting very weird lately. by my battery dying easily and apps shutting down. my screen is cracked but i would like to replcae it and stop worrying about this problem. and as I'm typing this , it types so slow..

  • How can I make Firefox 4's "File Upload" window start in the same directory across all sites?

    I upload webcomic image files to multiple sites every day--the same file to multiple sites--through the "File Upload" window that comes up in Firefox when you click on a site's "Browse..." file request field. In Firefox 3 (under Windows XP), when I u

  • Code for finding the factorial of a no

    program  for finding the factorial of a no........

  • IB3.0 Can't find value option in bindings

    I'm studying with case studies in cocoaDev, http://cocoadevcentral.com/articles/000085.php << core data programming, I found there's no "value" option in binding inspector of NSTextView. I know that example works good in older IB and XCode, but that'