Partner determinition in va01

Hi,
I need help in user exit coding i.e. the requirement is like this.
Exit is EXIT_SAPLV09A_004.
After entering the sold to party in VA01,one pop up comes when we press enter.
In that pop up we can see SH,BP,PY.From that if we select SH and that SH having account group 'zjst' then that default values of BP, PY should be override with that SH partner selected.
And also user not be able to enter any values in that BP,PY after overriding.
do we need to modify userexit_save_document_prepare .If how can we do that whole thing.
Pls help me in this.
Thanks.

Transaction Code - VA01                     Create Sales Order
Exit Name           Description
SDTRM001            Reschedule schedule lines without a new ATP check
V45A0001            Determine alternative materials for product selection
V45A0002            Predefine sold-to party in sales document
V45A0003            Collector for customer function modulpool MV45A
V45A0004            Copy packing proposal
V45E0001            Update the purchase order from the sales order
V45E0002            Data transfer in procurement elements (PRreq., assembly)
V45L0001            SD component supplier processing (customer enhancements)
V45P0001            SD customer function for cross-company code sales
V45S0001            Update sales document from configuration
V45S0003            MRP-relevance for incomplete configuration
V45S0004            Effectivity type in sales order
V45W0001            SD Service Management: Forward Contract Data to Item
V46H0001            SD Customer functions for resource-related billing
V60F0001            SD Billing plan (customer enhancement) diff. to billing plan
No of Exits:         15
USER EXIT
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sapgenie.com/abap/code/abap26.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://wiki.ittoolbox.com/index.php/HOWTO:Implement_a_screen_exit_to_a_standard_SAP_transaction
http://www.easymarketplace.de/userexit.php
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sappoint.com/abap/userexit.pdfUser-Exit
http://www.sap-img.com/ab038.htm
http://help.sap.com/saphelp_46c/helpdata/en/64/72369adc56d11195100060b03c6b76/frameset.htm
http://www.sap-img.com/abap/a-short-tutorial-on-user-exits.htm
http://www.sap-img.com/abap/what-is-user-exits.htm
http://expertanswercenter.techtarget.com/eac/knowledgebaseAnswer/0,295199,sid63_gci982756,00.html
Rewards if useful.........
Minal

Similar Messages

  • User Exit for Partner Determination in VA01, VA02 transaction ( Sales order

    Dear All,
    I have an issue in which i need to determine partner for every change in ship to party both at header and item level during sales order creation or change.
    Can you please suggest an appropriate user exit for the same.
    I have tried
    EXIT_SAPLV09A_003
    EXIT_SAPLV09A_004
    but they get triggered only when we enter into VA01 transaction and not when the ship to party is manually changed.
    If possible i want to avoid MV45 exits as there are chances of regression due to too many different functionalities already present in my system.
    In worst case scenario please specify the place wherein i need to code in MV45 exits and what are the fields i need to change.
    Most probably i filtered out on "USEREXIT_MOVE_FIELD_TO_VBAP" but i am not 100 percent sure on this, please suggest.
    Thanks in advance
    Ronak

    Hi,
    please use User exit function: EXIT_SAPMV45A_003
    Put your coding in include: ZXVVAU05 (create it by double clicking, if not already created) and activate.
    Regards,
    Sanjay Gogikar

  • Partner Function - Partner Email address- VA01/VA02

    Hi Masters,
          In VA01 and Va02 when I determine patner function, I want the email Id to be mandatory for certain conditions.
         I get the popup when I double click on partner, I fill the email address but I'm unable to capture the email address.
         Suggest me the USER Exit to find the email address of partner.
    Thanks in Advance,
    Suresh.

    Hi Suresh,
    The email id stored in table ADR6. You can pass address number from table KNA1.
    Check the below link the below link to find available user-exits.
    http://sap.niraj.tripod.com/id21.html
    You can get the email id from the above table. Program SAPMV45A contains many exits in sales-order exits..
    Thanks,
    ramakrishna

  • Adding a new partner function in va01 has to differ in item wise

    Hi all
    here by adding a new partner function by item level in va01
    i hav a z partner table , that has some values , each values differ from item level
    for eg : item 1 (posnr) 10 , has a new partner called buyers1
    posnr 20 has buyers 2
    what i am facing probs is , i cannot append into table xvbpa (using a program mv45afzz) & form save_docu_prepare.
    xvbpa table item is not storing
    partne rwill come default from the customization , but my partner will be add depends on item / material .
    i have tested a scenario for eg . when i creating a orders , as soon as entered a dealer , the default parner will be setting , then i entered manually a new partner , then it is reflecting in a table with item
    customization partner doesn't hve a  item , where as while creating when i put manually it is reflecting in item level .
    and 1 more things , when i try to append it also , its is reflecting to all item in orders
    tel me how to refresh the new partner item wise , that also O.K

    nO ANSWER FOR THE QUES. NEED TO RAISE MORE QUES. SO ONLY I AM CLOSING

  • Partner deletion in va01/va02

    Hi all,
    How can i prevent deletion of particulat non mandatory partner in sales order transactions VA01 and VA02.
    is there a user exit to achieve the requirement.
    Thanks and regards

    I'm not sure but perhaps V09A0003 or V09A0004 (see tcode SMOD for more details) can be of help for your requirement.
    Regards,
    Bert

  • Changing of Sales Employee in Sales order

    Dear Experts,
    We wish to disable the changing of Sales employee in a sales order in VA02 mode. However, in VA01 we need to keep it open for editing.
    We have also tried through the customising in partner determination procedure but could not achieve the desired scenario as it disables ALL changes to the partner, both in VA01 & VA02.
    Moreover, we have tried through the Function module MV45AFZZ, as one of the messages in the forum suggested, for a similar case, but unfortunately could not call up the particular field in there for the sales employee. At best it responds to KUAGV-KUNNR, where as the sales employee is much below that.
    The soonest help is pleaded for.
    Thanks and Regards,
    Tariq

    Hi Smile,
    Thanks for the prompt response, but we did try as sugested for the user exitbut unfortunately we are unable to call up the screen field : GVS_TC_DATA-REC-PARTNER for the purpose.
    You would recall that the said field is identified by the partner function VE (Sales employee) and we intend to identify and attack THIS field for our purpose.
    Any further pointers please?
    Thanks once again.
    Regards,
    Tariq

  • BADI Address_check

    Hi experts,
    I have a requirement in which if there is any change/add  the address of the partner details in VA01/VA02 I needed to implement one logic. But to implement that logic I need the order type and partner type details .
    Example if I change the address of shipment for the order type. Then I needed the partner Sh and order  OR for my logic.
    I have found that Badi Address_check helps in this case to implement my logic if any change/add  address.
    But only constraint is I will not get the partner type and order type.
    So kindly let me know if there is any BAdi before this BAdi which can give the partner type and order type of the address change.
    Thanks in advance,
    Regards,
    Vineeth

    Hi,
    go to transaction SE19
    create 
    Implementation name ZADDRESS_CHECK
    Active
    Implementation short text Address validation
    Definition name ADDRESS_CHECK
    Interface name IF_EX_ADDRESS_CHECK
    Name of implementing class: ZCL_IM_ADDRESSCHECK
    Method Description
    IS_ACTIVE_FOR_COUNTRY Determines whether there is a check for the
    ADDRESS_POSTAL_CHECK Postal address check
    IF_EX_ADDRESS_CHECK~ADDRESS_POSTAL_CHECK should be implemented and active.
    you remember it can be check triggers when you enter on postal code field of address transactions
    i think it will helpful for you.

  • VA01 Partner Header Userexit

    Hi,
    I am looking for a userexit which is triggered on the header screen of VA01/02.
    Basically my requirement is to add one more partner function on a condition.
    Please help me
    Rajiv

    Hi Rajiv,
    I think this is a Customizing and VOFM step. In SPRO, SD -> Basic Functions -> Partner Determination, make sure that ZE is setup to default. Then, in VOFM, if you want a ZE partner number to default, write up a routine to determine this.
    If I am not wrong, a copy of Routine 1 should help. You can add a line to CVBPA.
    If this helps, please remember to award the points and close the post.
    Cheers,
    Bhanu

  • Restricting the partner address change in both VA01 & VA02

    Hi All,
    In Sales Order Creation / Change i need to make the partner address fields editable but want a restriction on save.
    For that i am doing the following:
    Change:
    This is possible by restricting the update comparing YVBPA & XVBPA table using parameter UPDKZ.
    Create:
    In the create scenario YVBPA table remains empty.Are there any other tables I should look at to restrict this address data change?
    However, there is a table XVBADR , changes to which do not influence the final display address.
    Alternatively , do we have an alternative approach to restrict the partner address change in both VA01 & VA02?
    Thanks in advance!!!
    Regards,
    AP

    Resolved by using YVBPA & XVBPA tables.

  • VA01 user exit at line item with partner address

    I need a user exit for VA01 that is at the line item level.  The catch is I also need access to the partner address data.  I have found userexit_pricing_prepare_tkomk (include MV45AFZZ) but that doesn't give you the "instance" address information (the address data that is specific to that order, after being changed).  It only gives you the address number for the partner's default address.
    Does anybody know if such an exit exists?
    Regards,
    Aaron

    Hi Aaron,
    I had a similar requirement Long back & This was my code I written. Hope this helps you.
    *  Extract and Update field for partner-id - Goods Supplying vendor
      CLEAR TKOMK-Y_GSVN.
      PERFORM XVBPA_LESEN(SAPFV45K) USING 'WL'  VBAP-POSNR SY-TABIX.
      IF XVBPA-UPDKZ <> 'D'.
        TKOMK-Y_GSVN = XVBPA-LIFNR.
      ENDIF.
      PERFORM XVBPA_LESEN(SAPFV45K) USING 'ZP'  VBAP-POSNR SY-TABIX.
      IF XVBPA-UPDKZ <> 'D'.
        TKOMK-BSART = 'ZIN'.
        SELECT SINGLE LAND1 FROM LFA1 INTO TKOMK-Y_COMM_CTY  WHERE LIFNR = XVBPA-LIFNR.
      ENDIF.
    FORM XVBPA_LESEN USING US_PARVW US_POSNR US_TABIX.
    DATA: DA_VBADR   TYPE   VBADR.
    DATA: DA_VBPA    LIKE   XVBPA.
    CLEAR DA_VBPA.
    READ TABLE XVBPA INDEX 1 INTO DA_VBPA TRANSPORTING VBELN.
    XVBPAKEY-MANDT = VBAK-MANDT.
    XVBPAKEY-VBELN = DA_VBPA-VBELN.
    XVBPAKEY-PARVW = US_PARVW.
    XVBPAKEY-POSNR = US_POSNR.
    READ TABLE XVBPA WITH KEY XVBPAKEY.
    IF SY-SUBRC > 0.
       XVBPAKEY-POSNR = POSNR_LOW.
       READ TABLE XVBPA WITH KEY XVBPAKEY.
    ENDIF.
    IF SY-SUBRC > 0.
      CLEAR XVBPA.
      IF  US_PARVW = 'WE'.
        CLEAR KUWEV.
      ENDIF.
      IF  US_PARVW = 'RG'.
        CLEAR KURGV.
      ENDIF.
    ENDIF.
    US_TABIX = SY-TABIX.
    * CAM is not activated
    IF ZAV_FLAG IS INITIAL.
      IF NOT XVBPA-ADRNR IS INITIAL.
        CLEAR XVBADR.
        XVBADR-ADRNR = XVBPA-ADRNR.
        READ TABLE XVBADR.
        IF SY-SUBRC > 0.
          CLEAR XVBADR.
        ENDIF.
      ENDIF.
    * CAM is activated
      ELSE.
    *if there is an address
        IF NOT XVBPA-ADRNR IS INITIAL.
    *clear address data
          CLEAR XVBADR.
    *try to read address in internal table XVBADR
          READ TABLE XVBADR WITH KEY ADRNR = XVBPA-ADRNR  ADRNP = XVBPA-ADRNP.
    *if address is not in internal table XVBADR
          IF SY-SUBRC NE 0.
    *read address in CAM tables
       CALL FUNCTION 'SD_ADDRESS_GET'
          EXPORTING
            FIF_ADDRESS_NUMBER    = XVBPA-ADRNR
            FIF_PERSONAL_NUMBER   = XVBPA-ADRNP
            FIF_ADDRESS_INDICATOR = XVBPA-ADRDA
          IMPORTING
            FES_ADDRESS           = DA_VBADR
          EXCEPTIONS
            OTHERS                = 4.
            IF SY-SUBRC EQ 0.
              MOVE-CORRESPONDING DA_VBADR TO XVBADR.
              APPEND XVBADR.
            ELSE.
              CLEAR XVBADR.
            ENDIF.
          ENDIF.
        ENDIF.
      ENDIF.
    ENDFORM.
    Thanks & Regards,
    Dileep .C

  • VA01 - Add new partner automatically

    Hi all,
    in VA01, for every item I need to add a new partner function automatically, depending of a certain condition type.
    Does anybody tell me the correct user exit I have to use ? 
    Best regards

    Hi
    u need to set the partner for agent in the schema partner for sales document in your cutomizing, in the schema u need to assign X,Y or Z as source: that means the partener will be determined by a user-exit.
    Then u have to implement the user-exit EXIT_SAPLV09A_003
    Max

  • Restrict authorization in VA01 for partner function field

    Hi all,
    I need a way to restrict authorization in VA01/VA02 for users so that in the headers tab -> partners, the employee responsible field is locked. Other fields (i.e. ship-to/sold-to should still be changeable)
    What is the best way to achieve this?
    Thanks,

    This is not the solution for your query to make it non modifiable. You want it on user base but if you make it non modifiable it will be in display mode for all users. But if you want to try this you can make it non modifiable in following path
    Sales and distribution > Master Data > Customer Master > customer hierarchy > partner determination for sales document header.
    Im not sure the exact path because i have no access of system at this time. But you can find it in above nodes.
    Proper solution of your question is user exit as mentioned above.

  • Application server specific issue: Partner Func not shown up in VA01/02/03

    Hi,
    I got a strange problem in our system.
    We have 6 application servers in our ECC6.0 system, only one application server has this problem. If we log on to that server, in VA01/VA02/VA03, the partern function view for both header and item are empty, but if we log on to other server, the partner function is listed correctly.
    The sub screen of the partner function is in program SAPLV09C, screen 1000, when I debug that screen on that server, the PBO module update_subscreen_data_1000 does not execute subroutne set_listbox_data_1000, which I can not expain why.
    Does anyone encountered such strange problem, any hint?
    Thanks, Ke

    Well, the symptom is:
    Normally in the SO header, partner tab, we can see a drop up box display range with value PARALL (All parnters), you can change the display range to other values, like "All vendors" or "All employee".In the table control below the list box, we can see different partner functions, like Sold-to, Ship-to, bill to and payer,etc.
    But if we log on this specific application server, in that screen, we can only the value "All partners" in the list box, in the table control, no partner function is listed.
    If I debug the program SAPLV09C, PBO update_subscreen_data_1000, the program logic won't go into subroutine set_listbox_data_1000, and subroutines like update_data_from_v09a, set_tc_data_1000, etc are all skipped.
    Regards, Cliff

  • BADI or Exit for Partner Change in Sales order VA01,VA02

    Hi All,
    Please provide me with exit or badi to change the partner details(sold to , ship to , bill to etc...) before saving the sales order.
    I have tried to use 'MV45AFZZ' and treid to change XVBPA table but even though I update this internal table data is not getting updated into VBPA table of the database.
    Please help me out in this.
    thanks,
    Ayesha.

    Hi Valter,
    My requirement is whenever i change ship to party in sales order , bill to and payer need to be redetermined from ship to instead of sold to (as the standard does). I am doing this in MV45AFZZ. But I can see them updated in VBPA.
    But can see it in transaction as exit is triggering each time.
    suggest an alternative....
    thanks
    ayesha.

  • How to copy business partner in VA01 automatically

    Hi experts,
    Here's the problem I'm facing:
    When creating/changing sales order, if user input 'WE' partner in the sales order header, then should copy it as 'Z3' partner automatically. I tried coding in the user-exit 'USEREXIT_MOVE_FIELD_TO_VBAK' and then append to internal table XVBPA. I debuged the user-exit, although the data append to XVBPA successfully, but when back to screen, the record does not exit in the list of business parner. So I'm wondering whether the user-exit I used is not exact position or there might be some update flags should be set in XVBPA.
    Thanks a lot!
    Zhengning

    Hi,
    U can use customer exit for change partner role.
    V46H0001
    SD Customer functions for resource-related billing
    function module.
    EXIT_SAPLV46H_002              Customer Function for Partner Changes
    In above function module u have tables parameters to chnage partner .
    I think its solve ur problem..Try it
    Thanks & Regards
    Gupta............

Maybe you are looking for

  • Transport issue - Source system does not exist

    Hi at all! I've got a problem after transport from BW QA-system (EBW) to BW PRD-system (PBW). All transports got the same error message, that the Source System DEV500 doesn't exist. But DEV500 is the development R/3 system. How could it be? Because w

  • Newbie in SAP business one DTW

    Sir good day who's can help me About how to Create New Template using DTW and Excel. I'm a newbie and i want to learn about SAP business one. And i hope your reply will be picture..i want an format..and how to customize the table in SAP b1 bec. i wan

  • Program slow down from Labview 6.1 to 7.1

    I was using simplePID to control a sequence of temperture control. The program is in two independent while loops. one is for DAQ and output control, one is for generating the setpoint sequence for the PID controller. The DAQ is updating temperture ev

  • Quicktime can´t play .mov files

    Iphoto doesn´t recognize movies from iphone (.mov files) When I attach my iphone to import movies I made with my iphone 4 into iphoto, Iphoto tell´s me it can´t read the format (.mov files). Quicktime cannot play .mov files either. I reinstalles ILif

  • E-Mails don't appear in Mavericks

         I am an early adopter of Mavericks, and have being using it since the official launch. But I am experiencing a weird problem with mail app. Contents of some of my emails do not appear. Like some pictures, or other attachements, even the subject