Partner Roles In Sales Order Header

Hi Experts,
I am developing a Module Pool Program for Following reason.
People having not authoruzation to VA02 can change  certain fields / Parameters in Partners and Additional Data B tab .
my developments should work similar to standard transaction ( VA02 ) .
Please help me to do the followings :
I have all Partner Information.  I want to know how to make this work like Standard Transaction ( VA02) . There Certain Partners Functions and Partners are Disabled / Enabled.
for ex Sold to party  and Partners are disabled
        Ship to party is disabled and its partners are enabled like that..
I tried using  table TPAER with  PAPFL and AENDB still its not working . And also tell me how to switch contents when we change Display Ranges in Partners.
Is there any Function Module from where we can get this information ? Please help me to solve this problem.
Thanks,
Shrikanth

http://abap.wikiprog.com/wiki/BAPI_SALESORDER_CHANGE

Similar Messages

  • How to include a new Z Partner Function in Sales order header drop down lis

    Hello SAP experts,
    We have come up with a new requirement to include a custom Partner Function-ZI  in dropdown of SO header-Partners field.
    Current scenario- Presently we are maintaining this partner function  ( Say ZI-  Institute ) in customer master data-Sales area tab.There could be more than one partners under this PF in master data. While entering sales Order, all partners associated are displayed in Header- partners tab, where only SP, SH, BP, PY partner functions are displayed.
    Requirement- 1. Is to  provide Drop down of this ZI-Institute partner function (which I did not find presently) in SO header-partners field and user should be able to provide one of partner function as available in Customer master ( as there are more than one partners that can be set in Customer master data but user need to be able to provide ONE of this ZI partner fucntion in DROPDOWN of PF tab in SO header ).
    2. In addition, How can I link this new partner function in related sales reports against that particulat order and invoice?
    Kindly suggest your valuable inputs as what should be the procedure to get this.
    Many thanks in advance.

    Hi,
    Go to partner determination by VOPA
    OR
    IMG >> SD >> Basic function >> Set up partner functions >> set up partner function for sales document header
    click on partner function and Maintain partner function ZI  and back
    Then select your existing partner determination procedure (Standard is TA) and click on PARTNER FUNCTIONS IN PROCEDURE and add partner function. and make it mandatory so even user forget to mention then at the time of saving system can remind user 
    Then double click on PARTNER DETERMINATION PROCEDURE ASSIGNMENT
    Assign partner procedure to sales document
    Now when you creating sales order go to header partner tab and enter you institute partner number
    For sales order and invoice report
    Execute this report by selecting partner function ZI in VA05N and VF05 respectively
    kapil

  • Changing the Ship-to partner details in Sales order header through exit

    Hi all,
      I have a requirement where in during the process of the sales order creation, based on certain
      criteria, the details in the ship-to partner would have to be modified.
      These details like the Name, Street, etc would be maintained in a local table and based on the criteria,
      the appropriate record from this table would be fetched and updated to the ship-to partner.
      I was trying to implement this in the MV45AFZZ user exit. However, I was not able to update this through the exit.
      Would I have to somehow update the ADRC table directly through this exit or is there any better method.
      Please suggest.
    Regards,
    Sudeep

    Hi,
    If you could not find Street in this Routine call the BAPI BAPI_BUPA_ADDRESS_CHANGE to update Street and required details ..
    Thanks and regards,
    Sree.

  • Partner at sales order header

    I have a requirement where a partner function is needed at sales order header level where sales order handler can assign any value. the partner function should allow any free value to be entered without any need to actually define a master record for the value to be entered in the partner function at sales order header level.
    Please guide how can a new partner function be defined with this facility.  Thanks !

    Hi
    Goto SPRO>SD>Basic functions>Partner determination>sales docuemnt header.
    Define a new partner function.
    Assign it to your partner determination procedure.
    Don't make it as mandatory.
    Assign that partner procedure to your sales order type.
    now test it.
    try and revert

  • Updating email address in Sales order header partner address -VA01/VA02

    I got the requirement to update the email address in Sales order-> header-> partner address.
    The mail address will be picked from ZTABLE and updated in header partner address through user exit
    I cannot find any field for updating email address in partner address in user exit "MV45AFZZ"
    Is there any other user exit/option to update email address in header partner address of sales order?
    Thank You,
    GM

    Hi Rajesh,
    I agree with you but this Scenario is different.
    Just as you have mentioned the address change will not reflect in the Old Sales orders but it should in the new Sales orders right??
    But that is not happening..The Address was changed say two months back and the new address is not appearing in the Sales orders created these days say yesterday or today..
    In such a case,what is should I check to get the address updated??
    Please advice.
    Regards,
    Sophia Xavier

  • Creating multiple partner function for a sale order @ header level

    Hi All,
    I have a requirement where in i have to create more than one partner funtion for a sale order @ header level. But the system did not allow this sort of scenario and i got the error,
    Partner function ZZ can only occur  1 times in procedure TA (Sales Document Header)
    the function module that was giving this error was SD_PCHECK_PARVW_COUNT_OK
    here the function module checks if a partner function already exists if so it throws that error. This also updates the VBPA table where partner function is one of the key fields.
    Our issue is that we have to allow the system to enable posting 2 or more partner function for the same sale order. It was also verified that the unique key was unchecked during configuration.
    is there any other way of over coming this issue as we are updating the standard table. Is it possible??
    Thanks a lot in advance for your reply....

    I believe this is a configuration setting, based upon the details of your post.  Typically, a sales order can have multiple partner functions, but usually the partner type is not duplicated at a single level (header or one item).  For example, it would not be logical to have multiple ship-to partners at the header level...these would be unique at the item level, if required.
    Speak to your SD functional specialist about the configuration controls for partners, if you must have more than one partner with parvw = ZZ, for the entire order (header level).
    Edited by: DaveL on Aug 23, 2011 3:00 PM

  • Clearing the the street,Postal code and city in partner tab at sales order

    Hi Experts,
    I have a requirement like in sales order header or Item, In partners tab, when they are selecting the particular partner function like CR and the customer number is 500, and if they press enter then automaticaly it fetches the name,street,postal code and city at the right side for that entry. My requirement is like for particular customer 700, they want to hide the customer address in that Partner tab while sales order creation VA01. If they select the partner function CR and customer 700, after pressing enter, it shouldn't fetch the automatic address of that customer. They just want the customer name and remaining fields like street,postal code,city should be blank.
    Can you please let me know how to reach this requirement ate sales order creation or change level in partner function tab.
    I test these exits EXIT_SAPLV09A_001 to EXIT_SAPLV09A_004 but no use. Let me know possible ways to achieve this?
    Any idea on these?
    Thanks in advance ,
    Edited by: dolly B on Jan 18, 2010 11:36 AM

    Hi,
    This is happening because you have not maintained your data in sales order.
    Billing document takes the reference of order and delivery document for taking the data.
    Now if you donu2019t maintain your partner function in order nor in delivery then it wont be determine in billing document.
    If you want ZZ to shown in billing document then you have to make that function visible in sales order.
    While creating sales order it will take it from customer master data but when you are creating billing it wont search in customer master data it will search in sales order only.
    You can do one thing make that function non modifiable in partner determination procedure.
    So it cant be change in sales order.
    But I want to know why you want that should not be visible in sales order.
    Hope so I will be correct with my explanation.
    Regards
    Raj.

  • Change of partner analyse in sales orders

    Hello,
    I changed the partner analyse for sales orders and added a new mandatory partnerrole.
    In new documents the partner analyse works fine, but in the existed sales documents I cant´t see, that a mandotory role is missing.
    How can I see that this role is missing in the exsting documents???
    Thanks for info
    Nicole

    You can create a custom report but there is no standard way to do this.
    When a document is created in SAP, it is a "snapshot" of that configuration, master data, and information as it exists when the document is created.  On the SD side there are a few things you can influence, for example, SAP contains some standard tools for mass updating of pricing information.  Most of the document exists in its unchanged state though. 
    You *may* be able to use VA05 and do this (although I doubt it, no system in front of me right now).  Other than that transaction or a custom report there really aren't a lot of options.
    If you are familiar enough with the tables, you can do a "quick view" or an ABAP Query to get the info.  However the SAP partner table is recursive so to avoid getting lots and lots of duplicates you will either have to add some code to a full query, or do offline manipulation of the data.
    If you're looking for soild SAP experience to help through some of these hurdles, please contact me.
    Bill Wood - President
    R3Now Consulting
    http://www.r3now.com SAP thought leadership!
    Platinum SAP Solutions
    (704) 905 - 5175
    http://www.linkedin.com/in/billwood

  • Multiple bill to partner function in sales order

    How can a partner function be setup that it can appear more than once in a sales order ? 
    Need to make a sales orders with more than one "bill to partner".  When I add the same partner function with another customer in the header of the sales order I get error message VPD012  :  "partner function ZX can only occur 1 times in procedure ZEXP (sales document header) .
    I searched OSS,  and debugged for a while to try to find where that "1" is coming from. 
    In function SD_PCHECK_PARVW_COUNT_OK,  a counter is set to "1" based on the field TPAER-PAREI (line 86).  Allthough the flag "unique" is not set in partner function ZX, I get this error.
    Some further in the function, there is the comment :
    102     *     currently uniqueness of a partner is mandatory in sales docs, so
    103     *     if no CAS-Doc, partner has to be unique if not AA or AW
    Perhaps, in sales orders it is not at all possible to use multiple partners with the same partner function in sales orders ?
    Anyone having experience with this ?
    Thanks,

    Hi Dries,
    Even after you created your order you can maintain different bill to party.
    Go to VA02 screen
    Enter your order number.Enter.
    Goto item details Partners tab:
    Now all the details are in editable mode.enter your bill to party.Make sure your bill to party is in same sales area and company code as of sold to party.After entering the taxes will be redetermined message will come.
    Enter.
    Save.
    Now You do the same for all other items.
    Regards,
    Mohan.

  • Partner determination for sales doc header

    Dear all
    I assigned 2 SH to 1SP in customer master but in sales order system allowing manually to select any SH which is not assigned to SP.
    waiting ur reply

    Hi Lucky,
    To map your requirement please use the following path:
    IMG> Sales and Distribution> Basic Functions > Partner Determination> Set Up Partner Determination--> Select (Set Up Partner Determination for Sales Document Header). Here Select the Standard order & select Partner function in Procedure. Here against Ship-to-party Line you can see the ORIGINAL TABLE coloumn Here select "C" - Partner function from customer master (table KNVP).
    By doing the above settings the system will allow only partners from Customer master records.
    Hope this works for you.
    REWARD if it helps you!!
    Regards,
    Ajinkya

  • Making Mandatory of Partner functions in Sales Order

    Hi All,
    My requirement is as follows:
    While creating configenment Issue with ref to Fillup, In Sales Order Header(Issue) Bank Partner function should be mandatory.
    For that I have tried:
    In Partner function i have made the Partner as mandatory( I have ticked on Check box(M)).But still it is solving the purpose.In fact in the Bank Partner customer Number is getting copied.
    Please advice for the same
    Regards,
    Vinay

    Hi Vinay,
    If you set field "Mandatory function" in partner determination procedure for bank Partner function,
    then the document is incomplete when the partner is missing.
    However, bank partner function couldn't be the only one mandatory function, because sold-to, ship-to, bill-to and payer are also mandatory according to standard design. Please refer to note 381062.
    Regards,
    Smile

  • VA01 Sales order - Header-- Accounting tab need to add a field

    Dear All,
    The requirement is,
    1. I need to add a field in Sales order.
    Path for the same is as follows:
    VA01> Goto> Header--> Accounting tab
    2. The field will be a date field that needs to calculate date on.
    a)create a new field. ex - zchdt (chq due date)
    b)when customers enters value in Assignment,
    i.e vbak-zuonr
    after that trigger logic is
    3.vabk-kunnr = knvv-kunnr
    a)sy-date + knvv-kvgr2 (exclude sundays)
    example - 14 sept + 30 days = 14th october
    should populate value - 14th october i.e. field (zchdt)
    4. This activity needs to be triggered before the sales order is saved.
    kindly know whether this is possible or not.
    if possible how & which exit & also with example code.
    if you could give me your contact(cell no).
    Regards,
    Nagendra D.S.
    Mobile - +91 9819899082

    Hi All,
    VA01 Sales order - Header--> Accounting tab need to add a field. field name - zchdt(cheque due date)
    when customer enters value in Assignment i.e zuonr & after that trigger logic is
       1.     vbak-kunnr = knvv-kunnr
       2.     sysdat + knvv-kvgr2 (exclude sundays)
    example - 16 sept + 30days = 16 oct
    in field zchdt value 16 oct as to populate
    Pls help me in the code.
    Regards
    Nagendra

  • How to update the sales order header & item data in TM system

    Hi Experts,
    Greetings!
    I need your help,I have a one requirement sales order data came from ECC these sales order data need to update in TM Sales order header table as well as item table also these fields are additional fields.
    Can anyone please guide me I am very new in TLM .
    Thanks in advance.
    Thanks&Regards,
    Siva.

    Hi Siva
      "/SCMTMS/TRQ~ROOT" is for sales order header and "/SCMTMS/TRQ~ITEM" is for details.
      I assume you need to
    enhance the structures for these nodes to hold your add. fields;
    and do the same for the input parameter of service TransportationRequestRequest_In (which is used to create OTR) from PI side;
    Pass the add. fields during service call (impelment in ERP system);
    Map the fields from service paremeter to node attribute (implement in TM system, BAdI   /SCMTMS/TRQ_SE_TPNRQ_REQ~CHANGE_MODIFICATION create modification table for the input parameter).
    I cannot find source code for all of that; hope it helps.
    Sensen

  • How to update TEXT in Sales order header

    Hello ,
    I have requirement in which I am creating SO via IDOC calling BAPI_SALESORDER_CREATEFROMDAT2.
    Question: Can any one help me in finding a solution to update the TEXT in sales order header which is confogured IN TEXT CONTROL in SD.
    I have tried various option using CREATE_TEXT but it is only updating STXH table , the text is not coming in the sales order.
    If someone knows about this , <removed by moderator>.
    Edited by: Thomas Zloch on Nov 15, 2010 4:20 PM - please do assign priorities > normal

    Sounds like a text determination config issue - have you assigned the text in VOTXN?  Have you run the text determination analysis from VA02 in the document?

  • Update Sale Order Header Text through Enhancement

    Hi Experts,
             I Have a requirement to update the sale order Header Text , when the sale order is opened in VA02 and saved.
    Here in I tried using edit_text, it updates sale order header text  directly in DB during run time even before the save action is completed.
    But I need to just fill the header text and that has to be saved during the save action only.
    I tried coding the same in the user exit (userexit_save_document) but this user exit gets triggered only when there is some changes made to the document when opened in VA02 & Saved.
    Is there any  user exist to pass sale Order Header text and save when save button is clicked irrespective of the document been changed or not.
    Thanks in advance
    Sathish

    Hi Brad Bohn,
        My actual requirement is to trigger an Idoc when the user goes to VA02 transaction and clicks save.
    IDoc gets triggered only when there is some changes to that document, that is through NAST table entry based on the output configurations in NACE transaction.
    Now that the user wants to trigger an IDoc even if there is no change (ie. to reprocess the IDoc) when he just opens a sale order in VA02 and click save.
    It is not possible to trigger an IDoc through configurations when there is no actual change in VA02 and saved.
    So it has to be forcefully sent by making some additions to the Order through coding, so I choose that Text box to fill some additional data and save .
    Kindly Let me Know any thing could be done for this scenario.
    Thanks in advance
    Sathish

Maybe you are looking for

  • Managed server is not starting -  Upgrading OBIEE from 11.1.1.6.2 to 11.1.1.7

    We are in the final stage of the installation. We are following the steps mentioned in http://www.rittmanmead.com/2013/04/upgrading-obiee-to-11-1-1-7/ . while running the  'Configuration Assistant' to update the BI domain the Managed server is not ge

  • Keynote 6.0.1: How To Set Rulers?

    Yo, Keynote fans. Since upgrading to Keynote 6.0.1 (on Mavericks), the new RULERS functionality is stumping me. How do I set (or re-set) the 0/ZERO values of the horizontal & vertical rulers to appear at the middle of each slide, and not in the (defa

  • -9972 upon trying to verify harddrive (Kernal panic linked...)

    Hey everyone, I having a major kernalpanic that I am having major trouble repairing. I tried running first aid (I do not own Disk warrior- and I'm on a student budget) and it was not able to successfully verify and repair my disk. I was returned the

  • Divided Open With menu

    In Leopard, but never an OS before, the Open With Menu has some dividers in it. They don't always show up, or show up in the same places, and I've not been able to make sense out of it. I don't have any classic apps installed. Any idea why or how thi

  • Smart Link Backup Question

    I have a RV042 small business router.  I have the Dual WAN setup in Smart Link Backup mode. WAN1 is setup for ISP 1 with a static IP Address and  DNS servers specified. WAN2 is setup for ISP 2 with a dynamic IP Addess (Obtain an IP automatically) wit