How to get sales order number based on purchase order

hi,
what is the transaction code to find the sales order number based on the purchase order number
Regards,
Murali

Hi,
Go to Se16 (data browser), see the table VBKD, enter the PO number, if any, execute.
Prase

Similar Messages

  • How to get Information Template fields to Standard Purchase order Document.

    Hi Guy's
    I Created Information Templates to capture extra information to suit our business needs. But i dont know how to get populate those information into Standard Purchase order docuemnt. After Some research I found that we have to customize the PO_STANDARD_XSLFO.xsl. But i did not get how to get those information.
    If any one know knows or has done this type of customization let me know asap
    Thanks in advance
    Thanks & Regards
    Palakondaiah.U

    Hi,
    I resolved this as following :
    Since, i needed the Manufacturer Serial no. to be fetched in custom field at item level ( Enhanced via EEWB the item  ) , the moment there is a product  available in the sales doc header field.
    I wrote  badi implementation for definition : CRM_ORDERADM_I_BADI and utilized method  : CRM_ORDERADM_I_PRODUCT_DETERM . This method's signature if you check makes me available the header, item guids along with the product available in the field even before i save the sales document. There i fetch the serial number of product from custom table and then poulate the serial no. field in customer_i extension as follows:
      LS_CUSTOMER_I_COM-ZZCUSTOMER_I0803 = LV_MFR_SLNO.
      LS_CUSTOMER_I_COM-REF_GUID    = IV_ITEM.
      LS_CUSTOMER_I_COM-REF_HANDLE  = '0000000000'.
      LS_CUSTOMER_I_COM-MODE        = 'A'.
      APPEND LS_CUSTOMER_I_COM TO LT_CUSTOMER_I_COM.
      LS_FIELD_NAME_CUSTAB-FIELDNAME = 'ZZCUSTOMER_I0803'.
      APPEND LS_FIELD_NAME_CUSTAB TO LT_FIELD_NAME_CUSTAB.
      CALL FUNCTION 'CRM_CUSTOMER_I_MAINTAIN_OW'
        EXPORTING
          IS_CUSTOMER_I_COM    = LS_CUSTOMER_I_COM
    *        IV_EXTERNAL_CALL     = 'X'
        CHANGING
          CT_INPUT_FIELD_NAMES = LT_FIELD_NAME_CUSTAB
        EXCEPTIONS
          ITEM_CHANGE_ERROR    = 1
          ITEM_CREATE_ERROR    = 2
          ERROR_OCCURRED       = 3
          OTHERS               = 4.

  • Assigning a Sales Order Number to a Purchase Order

    My company has a requirement that for every purchase order we need to identify what sales order was created to generate the PR.
    I have found that by using the Account Assignment C - Sales Order, this opens the "Account Assignment" Tab and the fields for Sales order, item, and schedule Line.
    I have saved the PO and now am trying to receive the parts into inventory.  When doing so, the inventory needs to post to our inventory GL account, in our case is 135075.  By NOT assigning the GL with the sales order in the PO it doesn't post to this account it posts to a different GL account.
    How do I go about using the "Sales Order" field in the purchase order so I can record which sales order the line item of the PO corresponds to, and when receiving the inventory into stock have it post to the correct GL account?
    Thanks,
    Karen

    The company I work for is a distributor, and doing a Make to Order order type would not be in the best business practice for our company.  We tend to purchase stock for multiple orders and put them in inventory to be sold.  We are looking for a way to "document" what sales order the purchase order line item is being bought for, and sometimes their our multiple lines.
    I understand what you are saying regarding posting to an stock GL vs a consumption GL.
    I am going to research further and see how we can post to a consumption GL and then move the remaining stock over to a stock GL account after we have sold what we have purchased and received.
    I was able to get the receipt posted to the GL 135075 by taking off the "post automatically" indicator in the configuration of the GL account, but this then posed problems when doing other inventory postings such as cycle counting or moving inventory.
    Thank you,
    Karen

  • How to get sales invoice number when you know print spool id

    I'm using a version of program rstxpdft4 to download printed invoices to pdf.  I'd like to include the invoice number in the name of the download file, but I don't know how to determine that value.  I'm getting the spool id from table TSP01.
    Thanks,
    Den

    Hi,
    In case of Support project, we get the high severity issues from users and needs to be closed withn 2 hours... so what we do we get the requirement from user and checking the same in production from our id, but we can not save the sales order as we are not authorized to do the same, so in such cases it is required to get the sales order number before saving... where we can guide the users.... but actuallly it is not getting saved in the table until and unless u save it manually. It works like a material master... when u create material master, the material number appears in advance in material number field "MATNR"
    If it is possible can you please suggest step by step to work on parameter in SU3 for sales order number before saving.
    Thanks & regards,
    Rahul Verulkar

  • Sales order number based on Production order number.

    Hi,
    Can anyone provide me the relationship between the sales order and production order .
    I need to get the customer material description(ie from vbap for related sales document no) when i give the input  as a production order number ,now my question is how the data is  retriewed  i mean how the production order gets related to sales order and form it how the material no is picked up and its material description..
    Please provide me with the tables and what key fields  are related (clear view how tables are related and how could i fetch the data)

    Swetha,
    There is no exact relationship between a Production order and a Sales order in an MakeToStock environment.  I will therefore assume that you are speaking of MakeToOrder,  where there is an exact relationship between the Production order and the Sales Order/Item.
    Functionally, CO03 > enter the production order number.  On the display screen will be displayed the associated Sales order and item.  Double click on this and it will bring you to VA03.  Select the item of interest, and then Goto > Item > Purchase order data.  The customer material is displayed.  If you have entered a customer material description in your Customer Material Info Record (CMIR) (VD51), and if the Material in the sales order was determined by the customer material info record, then the description will be displayed instead.
    So, at table level:
    Look in AFPO to find production order number.  Contained in AFPO is AFPO-KDAUF and AFPO-KDPOS.
    Use these fields to look in VBAP to locate your sales order/item.  Find VBAP-KDMAT. This is customer material.
    The description of the 'standard' customer materials can always be found in KNMT.  To look this up, you need to know sales org, dist channel, customer, and material.  Lookup using a program is dicey, since it is possible, within a sales order, to determine the material from Customer material, or it is possible to just enter any customer material in the sales order.  When the material is determined, it depends upon your determination logic (sold to? Hierarchy?), which can differ from system to system, and from customer to customer.  To sum it up, it is possible to get the CustMat description from data found in VBAP and VBAK, but you first need to know how your CMIRs are structured.
    For a simple lookup, I suggest you just get to the customer material in VBAP, and stop there.
    For more info about how data is stored in the Sales documents, you might want to ask your question in one of the SD forums.
    Best Regards,
    DB49

  • Production order number onto a purchase order

    Hi guys,
             Is there  anyway I can pull the production order number onto the related purchase order(i.e, if a purchase order has an item which is procured for a production order ). I'd appreciate your ideas and suggestions on this.
    Thanks
    Cheris T

    hi sridhar,
    Thanks for the response, we procure components for a production order.put them in stock and use them for production.we donot consume them immediately, so we are not using acc. assignment category 'F'. can you plz suggest me how do we capture the production order number on the PO
    Thanks
    cheris T

  • Production order number in a purchase order

    Hi guys,
             Is there  anyway I can pull the production order number onto the related purchase order(i.e, if a purchase order has an item which is procured for a production order ). I'd appreciate your ideas and suggestions on this.
    Thanks
    Cheris T

    Hi Cheris,
    If the purchase requisition is created as a dependent requirement for an assembly as a result of MRP, then the account assigment is done automatcally by system to the production order of the assembly. You can see it by clicking on the Account assignment tab on the purchase requisition or purchase order.
    If you are manually creating the Purchase requisition,then you select the Account Assignment category as "F" order.
    Hope this clarifies your query.If you are satisfied reward points.
    Thanks and regards
    Murugesan
    Message was edited by:
            MURUGESAN THANGATHURAI

  • Sales document number based on pricing procedure ,sales area , customer pri

    Hi,
    where can i get saler document number based on pricing procedure ,sales area , customer pricing procedure and document pricing procedure.
    please tell me the table name.
    Thanks
    Edited by: pandu123 on Jun 16, 2011 8:22 PM

    I never heard of this requirement before, pulling sales document number based on pricing procedure based on customer pricing proc + document pricing procedure +sales area. These data are found in tables VBAK, T683,KNVV and TVAK. I dont think you can use ABAP query to join these table, check with an ABAP'er to develop a program for this requirement.
    Regards,

  • How to get Sales Text & Purchase Order Text in MM based on (MSEG-MATNR)

    Hi
      Am working on a Report based on Purchase order & Sales, Could any body tell How to get Sales Text & Purchase Order Text in MM based on (MSEG-MATNR).
    the Field i need to get are : SALES TEXT, PO TEXT.
    Sunil.

    Hi Sunil,
    For getting Material PO text and sales text, you have to rely on Purchase Order and Sales Order. And use READ_TEXT function module to fetch the text.
    Below are examples of PO text and Sales Text:
    1. PO text:
        CALL FUNCTION 'READ_TEXT'
         EXPORT
           ID = 'F03'
           LANGUAGE = SY-LANGU
           NAME = '450000011200010' conacte PO number and line item number
           OBJECT = 'EKPO'
         TABLES
           LINES = INT_TLINES "you will get text in this table
    2. Sales order text:
            CALL FUNCTION 'READ_TEXT'
         EXPORT
           ID = '0001'
           LANGUAGE = SY-LANGU
           NAME = '0000000036000010' conacte SO number and line item number
           OBJECT = 'VBBP'
         TABLES
           LINES = INT_TLINES "you will get text in this table
    ref: STXH and STXL tables.
    Hope it will solve the problem.
    Regards
    Krishnendu

  • How to get the pricing hierarchy based on the delivery date for sales order

    Hi,
    How to get the pricing hierarchy based on the delivery date for sales order other than system date.
    My requirement is to get the Pricing hierarchy based on the delivery date other than system date.
    Waiting for kind response.
    Best Regards,
    BDP

    HI Sai,
    please refer teh document already how to write FM based extration on generic extractors.
    and here  the logic to find the latest records values:-
    -> get the data in an internal table
    ->Sort the internal table data based from date descending
    -> Using READ statement , we can read the first record of the table which is nothign but your latest record.
    Regards.
    Sakthi

  • How to get sales order number before saving in VA01 by using parameter

    Hi,
    Please let me know how to get sales order number in transaction VA01 before saving it by using parameter in SU3.
    I tried to set parameter in SU3 "AUN", but it is not working as required, means sales order number is not appearing before saving.
    can you please suggest how to do it?
    Thanks & Regards.
    Rahul Verulkar

    Hi,
    In case of Support project, we get the high severity issues from users and needs to be closed withn 2 hours... so what we do we get the requirement from user and checking the same in production from our id, but we can not save the sales order as we are not authorized to do the same, so in such cases it is required to get the sales order number before saving... where we can guide the users.... but actuallly it is not getting saved in the table until and unless u save it manually. It works like a material master... when u create material master, the material number appears in advance in material number field "MATNR"
    If it is possible can you please suggest step by step to work on parameter in SU3 for sales order number before saving.
    Thanks & regards,
    Rahul Verulkar

  • How to get the delivery number for the sales order

    hi
    how to get the delivery number for the sales order

    Hi,
    1. IN VA03, enter the sales order and click on the document flow button. From there you can check the delivery document.
    2. In SE11, enter VBFA(Document flow) table and enter the sales order in VBELV field and in VBTYP_N field enter 'J' to specify that you want to check if there is already a delivery document for that sales order.
    Hope it helps...
    P.S. Please award points if it helps...

  • How to get the document number for a ware house order.

    Hello gurus,
    how to get the document number for a ware house order. [if GI is posted refering that WH order] .. is there any report?
    Thanks in advance

    There are several options.  When you post a Goods Movement, you can use LB12 -display Transfer Requirement for material document or LB11 Display TR for material.
    Depending on how your system is set up you may have gotten a Transfer Order automcatically.  In this case you can look at LT24 - Transfer Order for material.

  • How to get sales order data in substitution of fi-docu from GM posting ?

    How to get sales order data in substitution of FI documents from goods movement posting?
    When I posting a material document with movement type "501E", the system will creating a FI document automatically. And I need to get the sales order data in the substitution of FI document.
    I tried to export the data of the material document in user-exit "MB_CF001 Updating of material document data upon posting", but this user-exit does not triggered in the posting process at all. what's the problem?
    Do you have better solution or idea for this? Please help me. Thank you!

    Hello Harish,
    Please use BAPI_BUSPROCESSND_GETDETAILMUL to read details of sales order. This works as a remote enabled counterpart of CRM_ORDER_READ.
    Similarly if you want to display sales order from R/3, use FM BAPI_BUSPROCESSND_DISPLAY.
    Regards
    Kaushal

  • How to get Accounting document number from billing document number

    Hi,
    How to get Accounting document number from billing document number i.e. from VBAK- VBELN.
    Cheta Pant

    Hi,
    VBAK is the Sale Order header table, Billing document table is VBRK.
    Sales tables (VBAK,VBAP,VBRP,VBRK) do not store accounting document numbers.
    You do other way around. Just go to SE16 and enter the Billing document number in field Billing document VBELN in BSEG or BSID or BSAD table and execute, you will find the accounting document number.
    If you just want collect this information once then you can use table BSEG, but if you think to develope a report then use table BSID and BSAD.
    Regards,
    Chintan Joshi

Maybe you are looking for