What is a table containing sales order and the contract it refers to

Hi,
I have a following problem (ECC6.0):
A sales order is created in VA03 and referenced to a contract. I need to locate the table or tables (or FM) which contains the information of the sales order number and the contract number.
Problem with VA03 is that I can see both numbers in the document flow screen; i.e. sales order (Doc.no) is xxxxx and the Preced.Doc field contains the contract number. However, this is only an ALV view. I cannot get anywhere from the program SAPMV75F.
I have checked table VBAK and it contains most of dat but not the link itself as it has any sales document. I need to have an entry containing the link between a given sales order (+item) and the contract.
Instead of creating with "Create with reference" and select Contract (which you need to refer to),  the system is defined so that contract is used with a hierarchy customer. Debugging of creating did not help as the linking was conducted in the background without activation of debugging screen. I'm not an SD and no experience with contract.
Help is highly appreciated,
Pipsa

Hi,
The field VBAK-GUEBG is used for valid from and valid to date,
you can find the Preceding and Subsequent sales and distribution document under table 'VBFA'.
under SMOD, you can find below exit use for Contract data modification:
V45W0001 Function module exit for copying sales header data into
items.
This enhancement contains the user exit:
-   EXIT_SAPLV45W_001
regards
Vivek.
Edited by: Vievk Vardhan on Jan 29, 2010 3:13 PM

Similar Messages

  • Link tables of Sales Order and Purchase Requisition

    Hi,
    thru which tables we can get the data of purchase requistion for a sales order.
    regards,
    balu

    Dear Balu,
    the fields VBEP-BANFN and VBEP-BNFPO are filled in the third-party process only. It means that there is 1:1 connection between the schedule line of the sales order and the purchase requisition. In the third-party process during saving the sales order the purchase requisition is created automatically and is linked to the order.
    If the fields are empty, it means, you have no third-party process and no 1:1 connection between the sales order and the purchase requisition. Probably the sales order created normal requirements, which generate purchase requisition(s) after MRP run. In this case you cannot see the purchase requisition from the sales order as there is no 1:1 connection. You have no chance to get the data from sales order to the purchase requisition.
    The only possibility which you (may be, it depends on the process) have, is to find sales order numbers from the purchase requisition: so to develop the process backwards. These data are stored in the database table EBKN: Purchase Requisition Account Assignment.
    Please use the following fields:
    EBKN-BANFN  - Purchase requisition number (key field)
    EBKN-BNFPO  - Item number of purchase requisition (key field)
    EBKN-LOEKZ  - Deletion indicator in purchasing document (key field, can be helpful)
    The corresponding sales orders are stored in:
    EBKN-VBELN  - Sales Document Number
    EBKN-VBELP  - Sales Document Item
    EBKN-VETEN  - Schedule line number
    I hope, this information will help you further and will solve your problem.
    Kind regards,
    Akmal Vakhidov
    Development Support SD, SAP, Walldorf/Germany

  • Creation of Sales Order and Service Contract from Inbound IDOC

    Hi Experts,
    My requirement is to create a Sales Order as well as a Service Contract from one Inbound IDOC. I am getting the Inbound IDOC from a third Party. The message type is ORDERS and Basic Type is ORDERS02. How ever i am using an extension type IDOC which carries all the required data for Sales Order and Service Contract. My requirement is like, to create a Sales Order first.
    I have created a Z FM which is attached to the Process Code and subsequently to the message type. Inside the FM i an calling FM 'IDOC_INPUT_ORDERS' for creation of Sales Order. After that i am changing the IDOC data for the Document Type. I am changing the document type which is responsible for Contract Creation.
    Then I am again calling the FM 'IDOC_INPUT_ORDERS' for creation of Contract with the help of IDOC data. But here the Contract is not getting created. It's getting failed during the Batch input session.
    I need to solve this problem as soon as possible. Please help me. If there are any other options also please share.
    Thanks in Advance.
    Regards,
    Priyabrata

    Actually there is problem with BDCDATA. Inside the FM it's calling transaction with help of BDCDATA. If i am creating a Sales order or contract alone its creating successfully. But when i am trying to create both, it's retuning sy-subrc '1001' after calling the transaction on the second attempt. Is there any problem with BDCDATA like we can't handle with less time gap? Please help and give your inputs.
    Regards,
    Priyabrata

  • Sales Orders And Downpayment Invoices

    Hi,
    I am trying to get a link between the Sales Order and the Downpayment Invoices.
    As I open a Sales Order I cannot directly figure out weather it has a down payment
    invoice or not. (DP Invoices will not show on Target Document Button on the tool bar)
    Is there a way to Find it out??
    When I am going through the ORDR Table I have noticed DpmDrawn, DpmPrcnt, DpmAmnt, DpmAmntFC, DpmAmntSC, Columns.
    DpmDrawn Shows Values 'Y' or 'N' but rest of the fields are just showing default values (null or 0.00)  for every Sales order.
    Is there any setting I have to set up to fill those fields?
    or is there a better way to check that Sales Order has a Downpayment Invoice??
    Thank you very much for your help.

    Hi Suda,
    Thanks for the quick answer. True, that is the way I use to find the DP invoices.
    Problem is no one check it before they generate a new DP invoice for the Sales Order.
    We end up creating few DP invoices for the same Sales order.
    I just want to stop that. Thats why i am trying find out a link between sales order and the
    DP invoice and show it with the Sales order or give a rule.
    Thank you very much for the help.
    Kind Regards
    Sanjaya

  • SD Report with Sales Order and IncoTerms

    Hi, is there any standard transaction where I can list Sales Orders and the Inco Terms?
    Just curious... Thanks,

    Hi,
    As far as my understanding there is no standard report is availbale
    see in va05 and in layout see inco term option is available or not
    Otherwise you can develop zreport, extract this from table VBKD
    Kapil

  • Dump after creating new header text on sales order and invoice.

    Hello,
    We have created one header text on sales order and the same text for invoices, on VOTXN customizing.
    Testing the new text, system let us save the text fine, but later, if we display the text, system give us dump error.
    My question is, after transport the customizing to the next environment, is necessary run a standard program. Since VOTXN, we have generated the new access created, but dump appear displaying text header tab.
    Any help on this?
    Thanks in advance

    Hello Customer master table man
    1) Did you review the dump analysis- ST22?  Do that because the dump amy or may not be related to the Text config changes.
    2) You are also mentioning about transporting?  Did you already transport and are facing this issue in the target client or is it happening in the source client and you want to avoid it in the target? OSS note 1117467 throws light on transporting issues.
    Review the following OSS notes:
    548615 - FAQ: Text determination in SD II
    548517 - FAQ: Text determination in SD I
    1117467 - Text Customizing change not transferred in target system II
    970153 - Change to Customizing text not transferred to target system
    Hope this helps.

  • Link between sales order and purchase order

    plz explain the link between the sales order and purchase request

    Hi Javed,
    Their are 2 scenario for this.
    1) You create a sales order and the system automatically creates a PR and then you convert to PO.This is third party sales.In PO account assignment the sales order number is directly copied to the PR And PO.
    2) You create a PO wrt to SO .The goods received will be reserved for that SO. third party PO Vendor will directly deliver the goods to customer.The delivery address is copied from sales order.
    Techincally
    EKKN table you have sales order and Item fields (VBELN and POSNR)
    using these fields search for the deliveries in LIPS table
    EKKN-VBELN = LIPS-VGBEL and
    EKKN-POSNR = LIPS-VGPOS
    Edited by: Raj on Jun 19, 2008 6:58 PM

  • MRP Generated production orders greys out Sales Order and Customer fields

    Hi there,
    The MRP generated production orders greys out the Sales Order and Customer fields for some reasons. These fields are really important as they link the production order to the sales order and the customer's purchase order. Could the SAP team please fix this or advise alternative way of getting the sales order and customer info on production order? Thanks.

    Hello
    MRP only poulated this fields in case the material master has been set up with a strategy group hich is make to order (normally 20). Otherwise MRP summarizes all the requirements from different Customer orders and creates a production order
    Stephan

  • Different pricing procedures on Sales order and billing documents

    Hello All,
    I have come across a situation where I will have to maintain seperate pricing procedures for Sales order and the corresponding billing document.
    I was just wondering if this is normal. In my previous projects I always had same pricing procedure for the order and the billing.
    Please share your experience.
    Appreciate your help.
    Thanks,
    Raj

    Hello Friend
    This is a very common requirement in many implementations depending on the scenario
    Sales order with one pricing procedure The same sales order when goes for billing
    Billing document with another pricing procedure
    Settings needed
    Order type VOV8 has a document pricing procedure  Say A
    Billing type VOFA has a document pricing procedure  Say B
    Sales area 1000,10,00 and CPP is 1
    OVKK settings is like this
    1000,10,00 DPP A, CPP1 Pricing procedure is  RVAA01
    1000,10,00 DPP B,  CPP1 Pricing procedure is RVAA02
    The control data in both  RVAA01 and RVAA02 is different
    In VTFL between your del type to billing type aunder the header that item level The pricing type should be B (carry out new pricing) if delivery related billing
    In VTFA betwen your ord type to billing type aunder the header that item level The pricing type should be B (carry out new pricing) if ordery related billing
    Now the same sales order will carry PP RVAA01at order level and RVAA02 at the billing document
    There can be some business scenarios you want to add some extra discount at the time of billing
    That time you have a discount type added in the billing PP so that it is reflected in the billing
    This is scenario dependent
    Hence SAP has given the option of DPP in VOFA so that by billing documentwise we can differentiate
    To achieve this Copy control settings and DPP should be different both in VOV8 and VOFa
    Regards
    Raja

  • Delete or insert item in Sales Order and Purchase Order will update as well

    Hi,
    Is anyone got the program code that when i delete or insert item in Sales Order and the back to back Purchase Order will do the same action.
    Please help.
    Regards,
    Anna

    Hi,
    I guess u can try the following,
    Once the SO is updated, check with a SQL query if there are any target docs for that SO then, if there are any target docs u have to check for the item thats updated and then update ur PO using DI.
    Hope it helps,
    Vasu Natari.

  • How-to extend the Sales Order with the Project ID?

    Hello ByD Community,
    My problem is the following:
    I want to add an extension field to the Sales Order Header, which would be the Project ID assigned to this Sales Order.
    My use case only involve one Project ID per Sales Order, and the task will be the same from a Line Item to another. So I can only use the GetFirst() to retrieve only the first Line Item.
    Past week, I asked a similar question for the Purchase Orders and I succeeded to do it after a hint from Dan!
    As for the Purchase Order, I thought the Project Assignment was built through the SalesOrder.Item.ItemAccountingCodingBlockDistribution.AccountingCodingBlockAssignment.ProjectReference, but it seems that it is different.
    So as soon as I try to check if this Association IsSet() it just returns me that it is not!
    I succeeded to bluntly push the TaskUUID in my Extension field for testing purpose, without any check and verification, but not the Project ID neither with good validations.
    I also tried to see with the SalesItem Association instead of the Item Node, but it is the same. Any time I try a different check it returns me the N/A for my field, which is my last condition if the association is not set! What is driving me crazy is that you have the Project ID is shown on the top of the Sales Order, but I just cannot find how to retrieve it in the Studio!!!
    Here is my sample code in my After-Modify event (I also tried with a On-Save) where the ProjectIDSalesOrder is my extension field in the Cloud Solution:
    import ABSL;
    if (this.Item.GetFirst().ItemAccountingCodingBlockDistribution.IsSet())
      if (this.SalesItem.GetFirst().ItemProduct.ProductCategoryHierarchyProductCategoryIDKey.ProductCategoryInternalID.Matches("130"))
           this.ProjectIDSalesOrder = this.SalesItem.GetFirst().ItemServiceTerms.ProjectTaskUUID.content.ToString();
         /*what I need actually is : this.ProjectIDSalesOrder =      this.Item.ItemAccountingCodingBlockDistribution.AccountingCodingBlockAssignment.GetFirst().ProjectReference.ProjectID.content;*/
      else {this.ProjectIDSalesOrder = "No project assigned";}
    else {this.ProjectIDSalesOrder = "N/A";}
    If anybody could help me on this, it would be greatly appreciated.
    Thank you community!
    Best regards.
    Jacques-Antoine

    Hello all,
    To follow up on this issue, I found that a QueryByElements is available in the SalesOrderOverview node. And we can Query the SalesOrder by ProjectID.
    Fine! However, we cannot retrieve the ProjectID. It is never proposed as a result in the Query. We can query againt a ProjectID but not retrieve it.
    As the ItemAccountingblockDistribution association seems to never be set, we can't retrieve the ProjectID from it neither.
    I will post an incident to see if the ProjectID can be released as an entity in the SalesOrderOverview. QueryByElements results, so as to be able to use it.
    Thanks for your attention.
    Jacques-Antoine

  • Swap between two different item categories in sales orders for sub-contracting

    Dear gurus,
    my requirement is to have the ability to swap between two different item categories for sales orders for sub-contracting.
    This should be controlled by a combination of the material and a value maintained the Usage field in the Customer Material Info Record (for example by entering a ‘V’).  A combination of Sales Doc Type, Item Cat Group and Usage should result in the creation of a purchase requisition.
    In the event that a process order is required instead of a purchase requisition (i.e. the product is to be manufactured in-house instead of sub-contracted) the user must have the ability to change the Item Category within the sales order to produce a process order.
    The user would just change the item category within the sales order, and the system would automatically remove the purchase requisition assigned to the SO, and create a process order and assign it to the SO.
    Can you suggest any possible solution?
    Thank you in advance.

    Hi Majlo,
    In my system, I checked.  First created sales order with third party line item and then changed item category to normal item category.
    Till Purchase order not created, I can change Item category of my sales order line item.
    In this case SAP inform by log and once save delete purchase requisition of that line item .
    For this you need to assign another item category as an manual item category in SPRO Item category assignment.
    After this user can manually change item category to other one manually, if PO do not exist.
    Please let me know if your query is different.
    Regards

  • Table For Open Sales Order And Customer Invoices

    Dear Gurus,
    Are there any table to know open Sales orders and pending invoices for Customers?
    Wishes,
    Abhishek

    Hi,
    Go to T code VA05 and select open sales order radio button. Put other input parameters like date range or sold to . Execute you shal get list of all open sales order.
    For pending invoices go to T code VL04 and you get list of all billing not yet created even though GI is done.
    These are standard SAP functionality and can be used rather than looking in a table level.
    Regards
    Vivek

  • Any table keep track of Sales order and relevant IDOC

    hi all,
    Do we have any table to keep track Sales order and its relevant IDOC in the system?
    A list of sales order# given by user, from the list, we would like to find a faster way to get the corresponding IDOC.
    thanks.

    Hi Reetha,
    EDIDS table would have the IDOC Number & sales order number. Parameter 2 is the field in EDIDS which would have the sales order number.
    I understand that this table would have many records but i dont think any other table would have the above combination. If you get any other table, then pls. do update @ it on this thread.
    Thanks,
    Best regards,
    Prashant

  • Sales Order and Purchase Order linkage in tables  for third party orders

    Hi all ,
    For third party process order s
    In which table can I find the Sales order and Purchase Order linkage .
    thanks
    ksr

    Hi Sridhar ,
    Refer Table EKKN for PO and SO Linkage.
    Table EBKN for PR and SO Linkage.
    Regards
    Ramesh Ch

Maybe you are looking for

  • Ipod Classic 120GB, to be repaired or not to be repaired?

    That is the question. So I've had this baby for a few years now, got it in 08 or 09, and she's been great to me up until the last few months. It still technically works, but it's got many issues. The most frequent problem is freezing/delay, I'll clic

  • N8 problem

    Hello Nokia users, I had a problem with my N8, no responds but i could turn it off and on So i have with ovi-suite reinstalld the nokia software, now it works wel, but i can't turn my nokia in Dutch language. Annyone any suggestions?

  • Un-install Acrobat Pro 7.0 - No Install disk

    I need to uninstall Acrobat Pro 7.0 from my computer I do not have the installation disk It is not listed in control panel - add/remove programs I've tried downloading the latest version (Acrobat XI) to install the trial version... Installing Acrobat

  • Workflow agent not created

    We are using employee workflow for last 1 year and there was no problem in using workflow to send the mail to the supervisor of the person, when the person is hired. This week we got the problem for the first time. In the employee workflow task, the

  • BED , AED , SEC value as zero

    Hi , When I posting invoice I am getting warning message as  BED , AED , SEC value as zero. How do I sort out the issue . What are the pre-requisites required to be maintained for the same.