Badi at BP creation/change

Hi all,
I'm looking for a BADI where I can default fill a field (field 'search term' should be equal to the first name of the partner) of a business partner at save (creation & change).
I have already found several Badi's but in none of them I can change fields (only importing parameters).
Or can I call a function in a Badi that immediately updates the partner fields. I have tried this but when creating, the partner is unknown at that point (which is obvious)...
Many thanks for any help!!

Hi Siegfried ,
Doing memory modifications at save time is not a recommended feature , bacause this can cause inconsistenceies. That's why, there is no module which allows you to modify the contents of memory.
You would need ao make a small modification to achieve the same.
This modification must be done earlier in the flow.
How are you creating the BP's ? If you are using transaction BP, then the solution to this will be to make a small modification in form bup301_pai, include LBUD0F00. Just write the line
BUT000-BU_SORT1 = BUT000-NAME_FIRST.
THis will assign the first name of a person to search term 1.
For organizations, use field NAME1 instead of NAME_FIRST.
For other cases (such as creation using BAPI), BUP_MEMORY_BUT000_FILL might also help. Before calling this, you should get the memory contents using BUP_MEMORY_BUT000_GET (assuming you know the partner number by now), and then call fill with ALL the data you got from BUP_MEMORY_BUT000_GET, and the modified search term.
Best Regards,
Rishu.

Similar Messages

  • Need Enhancement spot in Business Partner Creation/Change

    Hi all ,
    In Business partner creation/Change screen(Tcode BP),if pressing BACK or CANCEL button without saving data, it will ask for confirmation that Want to save data or not.If we press YES it will save the data,or if we press  NO it won't. Is there any Enhancement spot (User exit or BADi) available after triggering the above confirmation message.If so kindly intimate me the Exit name or BADi name.
    Thanks in Advance..

    Try using Implicit Enhancements .
    I have got implicit enhancements over here for you.
    check out if Useful while dubugging.
    include :LBUS_LOCATORF05
    screen 3000
    prog SAPLBUS_LOCATOR
    form dynpro_pai_begin
    dynpro_pai_end
    create IMPLICIT enhancements here.
    To avoid confusion write your code after IF condition checking for
    GV_OK_CODE which is BUS_MAIN_BACK and dynpro number.
    If you dont know Implicit enhancements try this link
    http://www.sapdev.co.uk/enhance/eframework/eframeworkhome.htm
    checking ok_code is necessay otherwise it will be executed everytime PAIis triggered.

  • Validations during PO Creation/Change

    Hi I want to do three validations during PO Creation/Change
    1) After entering each item Quantity,a custom validation should be done
    2) When Save Button is pressed in PO, custom values should get updated in custom table.
    3) During save a validation is required.
    So can anyone let me know,how this can be dealt with like with which user-exits / badi.
    Kind Regards
    Sajid

    Hello Sajid,
    Your requirements can be achieved by the BADI ME_PURCHDOC_POSTED as this BADI is called after user presses the save button.
    Now if you want to check quantity after the quantity is entered and before the save button is pressed then you can use BADI ME_PO_PRICING use method PROCESS_KOMP and parameter IM_EKPO.
    Hope this is helpful to you.
    Regards
    Arindam

  • Pre defined value in bp creation/change

    we have two fields like field1 and field2 in BP creation/Change screen..our requirment is like if we fill Field 1 with A then by default Field2 should fill with SupplierA ..if I fill the Field1 with B then system should fill the field2 with Suppler B .
    EX:
    Field1     A
    Field2    Supplier A
    Field1    B
    Field2   Supplier B
    Please let me know if the question is not clear
    Edited by: ravi kumar on May 5, 2008 8:22 AM

    Hi Ravi,
    -> Are these two 'Custom fields'?
    -> Did you add then using EEWB?
    If YES then EEWB will create PBO and PAI modules. You can find them using SE80 Tcode. You can write the code in PAI module for Field1 so that that will populate value to Field2.
    If NO then please let us know if these are SAP standard field. In some case you can use BADIs and achieve your requirement.
    Hope this helps.
    Karuna.

  • How to populate VENDOR in Delivery ADDRESS tab durinG PO creation/Change

    Hi Expert,
                     which structure is used to populate VENDOR in Delivery Address TAB in PO creation /Change  using BAPI (BAPI_PO_CREATE1/BAPI_PO_CHANGE).
      VENDOR SCREEN FIELD NAME IS CMMDA-EMLIF. Actually  this field is available in EKPO and I have been asked to modify this filed only corresponding to PO. But direct modification of EKPO is not good practice . what I'm trying is, using BAPI_PO_Change to make this change. can we do this at time of PO creation using BAPI_PO_Create1?
    Thanks in advance

    Hi,
    You can use the above BAPI's and fill the structure -POITEM  with the field : SUPP_VENDOR{Vendor to be supplied/who is to receive delivery}
    Simultaneously you need to update the field SUPP_VENDOR  to X of the BAPI structure POITEMX
    Hope this helps
    Regards
    Shiva

  • Badi or Exit for changing subscreen in PO

    Hi Friends,
    Is there any Badi or Exit for changing shipping subscreen at item level for Purchase order.actualy my requirement is to supress all fields on shipping subscreen(Item Level) except route.How can I do it????
    Please help...

    MM06E005 - screen exits contains subscreen of PO header & Item
    AMPL0001 - this is a screen exits without field .
    use the first exit and check it.

  • Capture re pricing during order creation/change

    Hi,
    I have to differentiate between standard pricing and re-pricing ( when user has pressed update button on the conditions tab ) in a sales order.
    How and where can i get this information during order creation / change.
    Thanks for your replies.
    Abhishek

    hi,
    KALSM is the pricing procedure and it will be same for the document during creation and re-pricing, how dose it help in determining if user pressed update button.
    Thanks,
    Abhishek

  • Build BAPI to automate user creation/change/deletion .

    Hi,
          Want to automate repeating request of user creation, change and deletion and can be called from external application hence consider to build a BAPI. The question is how to find what's abap system program to call in methods of BAPI corresponding function modules?
    Thanks,
    David

    Hi David,
        Run BAPI transaction and search for USER in the alphabetical order list of BAPI's, there you will find BAPI's related to User Creation, Change, etc.
       Hope this may help you in your process

  • Delivery creation/change triggers heuristic run

    Hi all
    We use planning procedure '3' "Cover Dependent Requirements Immediately" for finished goods in our distribuition centers. In the event: "Create or Change a Sales Order", we have the action: "Start Product Heuristic Immediately" which leads to my two questions:
    1. When a sales order delivery is created/changed, heuristic is also triggered. Is there anyway to avoid this for deliveries (should still work for sales orders)?
    2. When heuristic is triggered due to sales order creation/changes, new stock transport requisitions created by heuristics are automatically ATP checked and confirmed in the supplying plant. When heuristic is triggered due to sales order delivery creation/change, new stock transport requisitions are not ATP checked... How come?
    Thank you in advance for your help.
    Best regards,
    Dan

    Hi Dan,
    If you are using MTS scenario, then Sales Order is business event "A" while Delivery is business event "B". In case of MTO, these will be AE and BE. For check instruction of your Check mode and Business event for delivery (B or BE), remove production. Use option "Availability check only, No Production" in Check Instruction.
    This will solve your first problem.
    Again, for solving 2nd issue, check Product Availability Check for ATP group and business event for Delivery. Check Control and Scope of check decide which receipts and requirements should be considered.
    Both these settings are in GATP customizing.
    Regards,
    Bipin

  • Any BAPI available for mass creation/change/delete for dependency net

    Hi guys,
    Any BAPI available for mass creation/change/delete for constraints in dependency net. I mean any uploading option in mass for creation, change and delete.
    Regds
    Regds

    Hi,
    Check if the below FM's meet your need:
    CAMA_CNET_CONSTRAINT_MAINTAIN
    CAMA_CONSTRAINT_NET_MAINTAIN
    CAMA_DEPENDENCY_MAINTAIN
    Regards,
    Vivek

  • BADI triggered when we change change Usage in quotation

    Hi,
    Pls let me know what the BADI triggered when we change the Usage in Quotation. Is there any special way to find out BADIs in CRM?
    Regds
    Harish

    Hi Sirivaram,
    1. Refer the following blog to find the BADI.
    /people/alwin.vandeput2/blog/2006/04/13/how-to-search-for-badis-trace-it
    2. You can put a breakpoint in method get_instance of class cl_exithandler and debug your transaction. The parameter exit_name will give you the Badi's in that transaction.
    3. Find the package for the transaction from SE93 and then open the package in SE80 to see all the BADI definitions and implementations for the transaction.
    <b>Reward points if it helps.</b>

  • Doc change badi when storage loc change

    Hi
    How can i trigger doc change badi whenever storage location changes?
    Thanks
    Joe

    Hi,
    The Doc Change BADI will get triggerred automatically before saving the document (Create / change operations).
    So, irrespective of any data change, this BADI will be triggerred automatically (provided if implemented and proper filters are set).
    Hope this clarifies your query.
    Regards
    Kathirvel

  • BADI for restrict creation of business transaction independently

    Hello Experts,
    I have a requirement where I need to check if the Business activity (say any 'Z' transaction) has a opportunity follow-up document then only that business transaction need to be executed else should give the error that "Z transaction need to be created through opportunity only and can not be created individually".
    I found one BADI CRM_ORDERADM_H_BADI where I can check for the condition but the issue is that as soon as I entered to CRMD_ORDER this BADI gets triggered where I need to trigger this BADI only when the user is trying to create the 'Z' business transaction individually.
    Any Suggestion will be highly appreciated.
    Thanks in Advance & Best Regards,
    Deepak Gupta

    Deepak, there is a parameter called CRM_MODE and this has the following values depending upon the transaction context:
    A - Create
    B - Change
    C - Display and
    D - Delete
    Now, in the same BAdI, since you are restricting the creation of the activity, check the CRM_MODE for the Activity, if it is A, then, call the function module CRM_ORDER_READ with the GUID of the activity and extract only the document flow ET_DOC_FLOW. Check this export table and see if the parent is an opportunity (BUS2000111). If your condition is not met, add an Error message in the transaction.

  • BADI For Commitment Item Change for Service PO

    Hi All,
    I want to change the commitment item in the PR on change of Material Group . I used the BADI ME_PROCESS_REQ_CUST for changing the commitment item and its working fine for all types of PR except Service PR .
    In service PR , its changing the commitment item only on clicking the Account Assigment button because at this instant only the BADI is getting trigger .
    I want to change the commitment item without clicking the Account Assigment button (on pressing enter or at saving time ) .
    Is there any way ?
    Thanks
    Manik L Dhakate

    We are using User Exit MEREQ  EXIT_SAPLMEREQ_010
    In our PR creation for ME51n, we are validating the Person through HR Org structure at the Point of Key in his Cost Center, whether he belong to his Department cost center, we use this User Exit MEREQ  EXIT_SAPLMEREQ_010. If he doesnu2019t not belong, the message pop up as u201C Please use your department cost centeru201D. This works very good in case of NB Document Type (Non stock & Materials).
    We have customized ZCPR (Service PRs), but for service PRs, the place where we enter Account Assignment is Different screen, either it is planned or unplanned service, the system take you to another separate screen to key in Cost Center & GL, here the validation is not happening,
    Please suggest & advice us, we tried in this BADI : ME_PROCESS_REQ_CUST, we can fix it. Any User Exit or BADI for Service PRu2019

  • How to Check Creation/Change data for PO Service Line item

    Hi, I was wondering what field(s) from what table(s) I would have to check if I wanted a report to look for the creation or chnaged date of a specific service item in a PO?
    Currently it is using the EKPO-AEDAT field to check if a PO line item has been changed, but I would like to narrow it down to just some service line items instead of capturing all the service lines in a recently changed PO line item.
    Thank you very much in advance for the advice!

    Hi Rashid, thanks for the advice, but it doesn't really solve my problem.
    What I want to know is if there is a field where the date of a service item was created in a PO line item is stored, so that an ABAP report can be written to retrieve newly created service items from POs.

Maybe you are looking for

  • I need help with DW, PHP & MySQL please.

    Hello, I am new to website development and am trying to set up a form for collecting data on my website and have a question that I can't find an answer to anywhere else. I was wandering if someone there would be kind enough to help?  I am using Dream

  • Unix sql script

    hi, I need some help if possible I have the folloiwng script select count(*) from dba_users where account_status !='OPEN' and username not in ( 'PROD_HCUST_HK', 'MDSYS', 'SCOTT', 'WMSYS', 'CTXSYS', 'ANONYMOUS', 'OUTLN', 'MGMT_VIEW', 'SI_INFORMTN_SCHE

  • ECC5.0 not authorized for CRM connection

    Hi all, We are connecting ECC5 to CRM server. In ECC5, authorization test for CRM server fails in transaction SM59. But the connection test works fine in the same transaction. But from ECC6 IDES, connection to CRM is successful for the same way of co

  • Strange Permissions lead to having to reinstall Leopard...

    Hey there, I've been having some interesting issues with my new iMac Intel Core 2 Duo with Leopard 10.5.1. The following has happened twice so far: • Everything appears to be fine when I sleep my computer. • The next time I go to wake it, the dock is

  • Migrating from Access to Oracle

    Hello...... I am trying to migrate a table from Access to Oracle. It contains approx 850,000 rows, and I tried using SQL Server's DTS Import/Export tool to perform the migration. However, this export/import has been running for almost 48 hours (crazy