Add partner while creation of sales document

Hi All,
         I have a requirement in which I need to add a PARTNER FUNC (forwarding agent) to the partners tab in sales order (VA01). The partner is determined from a custom table based on shipping conditions, transportation group,landing zone and country. I have chosen USEREXIT_MOVE_FIELD_TO_VBAK ( MV45AFZZ) to put my logic in. After I enter item details and hit enter and go to header->partners I see a new entry partner function (Forwarding agent) and the Partner fields populated correctly. But the address fields (Name1, City, Street etc) are empty even though the address is maintained in the master data. Once I save the document and come back in change mode even the partner field is showing '0'. The VBPA table is properly populated, I am not able to figure out why its not visible on screen. Any input is greatly appreciated.
I tried USEREXIT_SAVE_DOCUMENT but it doesn't even populate the partner function.
Thanks,
Giri..

You can write the code under form routine(MV45AFZZ) :
FORM USEREXIT_SAVE_DOCUMENT_PREPARE.
ENDFORM.
if you update the address in VBPA,it will not update centrally,you should update ADRC Table,then it effects into centrally
Thanks
Seshu

Similar Messages

  • Unable to block creation of sales document from Quotation thru user status

    Dear Experts,
    I have maintained a status profile in my Quotation document through the use of user status. I have defined a status to forbid creation of sales document if the status has not yet been set to "Approved".
    However, even when the status is not yet "Approved", it still allows me to create subsequent sales document from this Quotation.
    Anything that I have missed here?

    Hi,
    It should not happen.
    Please check the Object types for which the status profile is created. It should be for either Sales Order header or Sales order Item.
    Make sure that the "create sales document" is "forbiddden" for the initial status only.
    Also please check Low- High numbers for each status.
    Hope this helps.
    Regards,
    Sharan

  • What are the img setting to be fullfilled while copy the Sales document typ

    Hi What are the setting to be fullfilled while copy the sales document type and item category.
    Note:  I have already copied, but unable do the PGI(Post goods issue),  and Billing.
    Thanks
    Prasanna

    Hi
    Answer for this Question.
    we have set the copy control for sales order type and delivery and billing
    Regards
    Prasanna R

  • Free form partner function field in Sales document header and item..

    Hello Experts,
    Is there anyway we can use the partner functions functionality in Sales document header and item level, so that we can enter a free form number in the Partner field? I mean is it possible to be able to enter a free form number WITHOUT getting validated against corresponding master data like Customer or Vendor master, Contact person, Personnel or User master records?

    Hi,
    It is not possible.
    Because partner function will be determined in the sales document header and item as per the configuration you have done in the partner determination.
    It is not possible to enter a number wihich is not created and assigned.
    Regards,
    Mullairaja

  • GL Account Missing While Saving The  Sales document

    Dear Frends
    While POstin the sales document,i am getting error like Gl account missing.This is related to Service Contracts.even i have checked the account determination in VKOA(FI-SD)..
    Kindly give me the solution
    Regards
    Sap Guru
    kischowdary

    Hi,
    Even though the determination is maintained in VKOA check in the determnation analysis if all the keys on which the you have maintained the determination;are recognised by the system.
    If any one particular field is missing then the GL account will not be determined.
    Reward points if useful
    Regards,
    Amrish Purohit

  • Multiple Partner Functions for a Sales document Item

    Hi,
    Can you please advise on modeling scenario for showing multiple partner functions for a given sales document in BI Report ..
    Because Key figure values should not be distributed for multiple records just becos of multiple partner functions but users want to see them in the reports along with sales doc and key figure
    I am explaining bit more clearly...
    I can achieve above requirement by having below model ..
    SDOC     ITEM  PF1  PF2  PF3  AMOUNT
    1000       10      AB    CD   EF    50000
    PF : Partner Function
    but as I feel it is a complicated task  to add more and more columns fro partner functions as and when new partner functions have been added or requested to show by users at sales doc level...
    So Can you please advise a better solution to meet the same requirement.
    Thanks & Regards,
    BRK
    Please advise me on this scenario
    Thanks & Regards,
    BRK
    Edited by: BRK on Jul 22, 2008 9:19 AM
    Edited by: BRK on Jul 22, 2008 9:29 AM

    SalesDoc______Item_______PartnerFunction________Amount
    80000_________10_____________A1_______________$1000
    80000_________10_____________A2_______________$1000
    80000_________10_____________A3_______________$1000
    This will be the normal display in the cube if there is only one Partner Function.
    But what we need is
    SalesDoc______Item_______PartnerFunction________Amount
    80000_________10_____________A1_______________$1000
    80000_________10_____________A2_________________' '
    80000_________10_____________A3_________________' '
    The Amount (KF) should be populated only for the first record for a SalesDoc / Item combo.
    You load data from source to the ODS, say delta.
    Suppose that the below record is already available in the ODS.
    SalesDoc______Item_______PartnerFunction________Amount
    80000_________10_____________A1_______________$1000
    And you get the following data as DELTA in the Data_Package from the source.
    SalesDoc______Item_______PartnerFunction________Amount
    80000_________10_____________A2_______________$1000
    80000_________10_____________A3_______________$1000
    If you populate the Amount again for these 2 records, then the total would sum to $3000, which is wrong.
    So what we do is,
    Write a Select stmt for ALL ENTRIES in Data_Package and fetch the records from the target ODS. Have it in an Internal table, say t_ODS1
    Take the SalesDoc / Item from the Data_Package and chk if it is present in the internal table t_ODS1.
    If it is present, then populate the Amount as ' ' (Blank)
    Else populate the Amount as $1000.
    Say, you are getting 3 new records, which is not present in the ODS1.
    In that case, your internal table t_ODS1 will be blank.
    Now again, we need to populate the Amount only for the first record among the 3 records.
    So, here comes the "Flag".
    Set the Flag as X, when we populate the Amount.
    Everytime chk the Flag <> X.
    Only if it is <> X, populate the Amount.
    Else Leave it Balnk.
    Hope I have explained in detail
    Regards,
    Balaji V

  • Automatic project creation from Sales Document

    Hi Experts,
    Could you please advise what are the steps needed to obtain automatic creation of project from Sales Inquiry?
    Thank you in advance!!
    Aleksandra

    Hi,
    1. Create standard WBS CJ91
    2.create standard Network CN01
    3.Assign material (Finished) to standard network CN08.
    SD Config:
    1. Create sales document type.
    2. Check requirement classes and requirement types take KMPN and 212
    Material Master Settings:
    3. For material in MM02 material master ,
    4.Maintain view MRP3 Strategy group 85 Assembly processing with network/project.
    Create Sales order:
    Assign material to sales order and while saving it will trigger project.
    Muzamil

  • Creation of sales document (DMR, CMR) from the archived billing document

    Hi all
    I read somewhere that one of the functionality in EHP3 is we can create sales document like debit memo request and credit memo request from the archived billing document. I am working on EHP3 system only but i am not able to create the sales document. the system throws an error that billing document doesnt exist
    If any one of you have worked on such functionality kindly suggest me why its not happening here also let me know Is ther any customization required for the execution of this functionality in spro.

    hi,
    the help says:
    You can use this business function to further optimize your electronic Sales and Billing Processes.
    Electronic data archiving regulations result in a high volume of data for sales documents and require invoices to be archived at an early stage. You can integrate archived billing documents in your business processes more easily. Since you still have electronic access to archived invoices during the sales process, you can manage archiving without delay and execute further sales processes electronically.
    You can more efficiently use the rebate agreements from SAP ERP for your marketing activities. In particular, customers who use SAP CRM (Trade Promotion Management) with a large volume of data for campaigns, target groups, and product segments can define a custom-made logic for their rebate determination and thus avoid potential database problems.
    Integration
    To implement the logic for rebate processing in SAP ERP, you use the Enhancements for Rebate Processing Business Add-In (BAdI). For more information, see the Implementation Guide (IMG) under  Sales and Distribution  Billing  Rebate Processing  Business Add-Ins (BAdIs)  Enhancements for Rebate Processing .
    Prerequisites
    You have activated the Logistics: S&D Simplification (SD_01) business function.
    Features
    You can integrate archived billing documents in your business processes as follows:
    Create sales documents with reference to archived billing documents, such as credit memo and debit memo requests.
    Display archived billing documents.
    When you do either of these steps, the system first looks for the invoice in the database and then in the archive.
    For the sales employee, the processing steps are identical, regardless of where the sales document is stored. As soon as the sales employee processes an archived billing document, they see the relevant information in the message line as well as in the title of the function.
    For rebate processing, you can store your company's check logic in the interface of the Business Add-In (BAdI) Enhancements for Rebate Processing.
    So check if you have activated the business function.
    I hope this helps.
    Balazs

  • Error while changing CRM Sales Document in R/3

    Hi All,
    I have done the download of customizing, condition & business objects in CRM 4.0.
    Now when I create a sales order in CRM, it gets replicated in R/3. I can see the order in tcode VA03.
    But when I try changing the same sale order in R/3 using tcode VA02, I get the following error:
    "Sales document &1 (5001169) is currently being processed (by user RFCUSER)"
    Would appreciate help from the group.
    Many thanks !

    Hi Krishna,
    The middleware user is locking the order so the document has not distributed through the system properly. 
    Try looking at the inbound queue (transaction SMQ2) and outbound queue (SMQ1) for errors.  Also look at the BDocs in error (SMW01).
    When CRM sends an order to R/3 it waits for a confirmation to be returned, looks like the problem is here, maybe in your delta downloads not being set correctly.
    Cheers
    Andrew

  • Credit Check while creation of Sales Order for Item Category Purchase Req

    Hi Experts,
    We are creating Sales Order using an Order Type ABCD for a material 1000. While creating Sales Order, we use Item categories (ZOVD, ZOVB,ZOST,ZOVP and ZOBO).
    Credit Check settings are there at Order Type ABCD as well as all the Item Categories (ZOVD, ZOVB,ZOST,ZOVP and ZOBO). We are trying to test a scenario where a customer does not have enough credit limit while creating a sales order.
    When we create a sales order for Item Categories (ZOVD, ZOVB,ZOST,ZOVP), credit check fails because our customer does not have enough credit limit, so that Sales Order gets created and Delivery does not get created (This is what we want), then we go into VKM1 manually and relase the sales order and then if we go to VA02 and check the status of the Sales Order, it says sales order status is complete. My Sales Team is saying here also Purchase Requisition is getting created.
    When we create a sales order for Item category ZOBO, it is going into Purchase Requisition screen. Once we give another plant in the create purchase requisition screen and save it we are getting a message that cannot create Purchase Requisiton because of Credit Block.
    The settings were same for all the Item categories.
    1) What made difference to complete Purchase Requisition for Item Categories (ZOVD, ZOVB,ZOST,ZOVP) and not for Item Category ZOBO when my customer is not having enough credit Limit.
    2) Why Purchase Requisition screen is not coming for us when we create an Sales Order for Item Categories (ZOVD, ZOVB,ZOST,ZOVP). We only get Create Purchase Requisiton Screen for Item Category ZOBO.
    Thanks
    Rajanikanth

    Hi,
    None of the Item Categories has Create PO Automatically.
    Thanks
    Rajanikanth

  • No commitment Item Update while creation of Sales order

    hi,
    I have  maintained Derivation Rule
    Co Code / GL/ BA/ Plant / S Loc/ = Fund / Comitement / Fund Center.
    Stil in that case at the time of creation of Sales order, systeme is giving error (++No commitment Item Update M V2225++)
    And also i have maintained the Comitement Item in GL master.
    Could you give me some solution.
    Thanks
    Nilesh R

    Hi Nilesh R,
    Please check the following information of Consulting Note 1268001 (the same for funds center is valid to commitment item):
    1.  You receive the error message in a Sales Order (SD) process.
       a) SD customizing settings for FM objects.
       You can set "commitment item" as an optional entry in SD customizing settings for field status. This can be checked in the IMG path: SPRO -> Public Sector Management -> Funds Management Government-> Actual and Commitment Update/Integration -> Integration ->
       Maintain Field Status for Assigning FM Account Assignments
       You should have a record with Object type = '04' (sales order).
       It is not necessary to have the field as required (unless you want to insert it in the origin process) due to the fact that
       this can avoid the account assignment derivation between CO objects and FM objects. The field can not be hidden otherwise it will be not derived.
       For more information, check note 572729.
    The system response depends on how you defined the fields of the FM dialog box using Customizing activity 'Maintain Field Status for Assigning FM Account Assignments':
         -  The fields of the FM dialog box are defined as ready for input ('Opt. entry' or 'Req. entry') in Customizing:
            If you change the reference object in the sales order, the system does not re-derive FM data automatically. For that, you
            must navigate to the FM dialog box and, by choosing icon 'Redetermine account (F5)', trigger the derivation manually.
         -   The fields of the FM dialog box are defined as not changeable ('Display') in Customizing:
             If the reference object is changed in the order, FM data is redetermined automatically.
         -  The fields of the FM dialog box are defined as not displayable ('Hide') in Customizing:
             FM data is not determined.
    Therefore, set the field status to optional permit the user to enter the FM objects manually and still benefit from the possibility to
    automatically derive the FM objects from a CO object.
    For more information on integrating Plant Maintenance, Sales and Distribution and Project System, see the SAP Library Accounting -> Public Sector Management -> Funds Management -> Actual and Commitment Update -> Integration with Plant Maintenance, Integration with Sales and Distribution and Integration with Project System (Network).
    You can also check the documentation available in the IMG menu of the status (written above).
       b) If you do not want to integrate sales order process within PSM-FM, you should consider to deactivate this integration in
          customizing transaction OFUP. In release EA-PS 1.10 and 2.00 modification note 591573 is available.
    Please also check consulting note 1267998 and let me know if you have used FMDERIVE trace tool.
    If you want to have SD integrated to FM, please check if in OFUP the flag of this integration is accordingly set.
    If you work with free-of-charge sales order line items mixed with line items having value, please consider to apply note 1441847 (if it is valid to your current release/package).
    I hope this answer your inquiry.
    Best Regards,
    Vanessa Barth.

  • Updating Batch Number while delivery creation from sales document

    Hi Experts,
         I have to write code inside user exit MV50AFZZ which updates batch number during delivery creation. Suppose I have a sales having more than one line items. Each line item have different material numbers, and one material number may have more than 1 batch number. And all these batch numbers have to be updated for their corresponding material numbers. Batch  number corresponds to LIPS-CHARG. So how we can maintain values for this field more than once for a particular material number?

    Hi Pankaj,
    Were you able to update the Batch Number?
    What is the function Module that you used? and where exactly did you code in the logic?
    Thanks,
    RV

  • While saving the sales document .this error is coming.

    Is there any body to help it out .......
    While saving the document this error is coming
    **Financial document: No financial document assigned**

    Dear dinesh
    It seems the field "Financial doc.no" is made as mandatory in VA01.  Also if I am right, you are trying to create an export sale order which is against L/C.
    To create L/C, go to VX11N, give the required datas and save.  While saving, system will generate a reference.  Make a note of this reference and now go to VA01, give the required datas and select header Billing tab where you can find a field "Financial doc.no.".  Assign the above reference here and now save.
    thanks
    G. Lakshmipathi

  • Partner determination rules in sales documents

    Good afternoon Experts
    I'm trying to determine responsible agents in a quotation document by using a rule with responsibilities
    ( in the access sequence of the responsible agent partner function). 
    Could someone please confirm how the rule container gets filled?  
    If the rule is based on a post code my understanding is that the post code of the sold
    to party is passed to the rule container and the responsible agent gets
    determined. Passing the post code to the rule container should be in this case hardcoded.
    What happens though if I need to determine the responsible agent based on another
    piece of information like "sales order type", "client tax classification" .
          -  How does the system know how to fill the rule container?
         -   Do  I need to create a new organizational attribute ? 
    On Sap help I've found :
    "If you use rule resolution using responsibilities, you do not have to assign
    attributes in the organizational model, other than the attributes distribution
    channel and division; these are necessary for showing the sales area."
    Where does the sales area come in for partner determination when using rules with responsabilities ? Is there a mechanism like sold to party/document -> sales area -> organisational attribute => attribute passed to rule container? 
    Any input would be appreciated.
    Best regards
    Razvan Zainea 

    Hi Razvan,
    you can use rules in your partner determination access sequence. Most attributes are filled in document processing for the rule container.
    You mentioned postal code. This is filled from the main partner of the document. The main partner of a sales order is the sold-to party, of an opportunity is the prospect, ....
    If you like a different main partner you can do this via process type customizing (field 'partner function ORG').
    If you need to fill your own container values you can use CRM_ORGMAN_BADI method CRM_ORGMAN_ATTRIB_VALUE_FILL.
    Or as mentioned by Shanto you can use your own logic with COM_PARTNER_BADI.
    Best regards
    Marion

  • Search for Open sales document during creation of sales Document

    I am creation quantity contract for a customer XXXX, I want to know about the open contract exist or not for perticular customer XXXX during contract creation. any relevant configuration available in the standard system for that?
    where i will do the Configuration to serch for open order/contract.
    I hv tried to serch it in Order type, item cetegory and copy control but not found any relevant fields for that.

    Check, "Outline agreement message" in Document type details in VOV8- (eg: CQ- Quantity Contract) under Transaction flow view.
    Use Indicator:A- Check at Header level.
    Then system pop ups the message saying " Already Contract is open for this Customer" - ( Assume, SOld to party already have Open Contract)
    similarly, for Material, for this you should use  Indicator" B- Check at Item Level.
    Hope it helps

Maybe you are looking for

  • Need to automatically display update date and user in update form field

    Hi all, Hopefully someone can help me with this... I am using dreamweaver cs4 and php/mysql.  I have a database table that will be updated by 1-5 different people at random times.  I have everything set up and working, as far as the update function,

  • IDOC Syntax Error E0072 with status 26 after upgrade to ECC6.0

    Hi We have upgraded SAP R/3 from 4.6C to ECC6.0. After upgrade, when we create PO and output EDI, we are seeing this IDOC syntax error E0072 for Mandatory Segment E1EDK01. In 4.6C it was working fine with no issues, only after upgrade this problem st

  • Change in PO Price

    Hi Experts, We have a PO created last November 2009.  GR and Vendor Invoice (MIRO) were already processed also on November 2009. There were already sales for all the materials indicated in the PO last December 2009. This February 2010, they wanted to

  • Problem switching devices

    Hello guys, trying to switch config from a 8310 to a 8900 using desktop manager 5.0.0.11. It gave an error and finished. The problem is that it cleaned information from source device. Do you know where is saved the temporary backup? Thanks in advance

  • 16 Bit Printing

    Canon has just announced two new printers that will use 16 bit printing. I suspect that is reflected in the print driver. Does anyone know if LR will send 16 bit files to these printers? Wil