How to find the Purchase Orders from Sales Order number

Hi ...
Is there a way to write a query to find the Purchase orders
from the Sales Order number ....
I have notice the table POR9 (Purchase Order - base Document)
but it seems to be empty.
Could you please help me to figure this out,
Thank you very much
Kind Regards
Sanjaya

hi,
             u did mistake in selecting the table
SELECT T0.DocNum FROM ORDR T0                 for  sales order
SELECT T0.DocNum FROM OPOR T0                 for purchase order
how to find the table in SAP B1.
go to above menu view => system information. tick it(or select it)
then below status bar u can see the table and field name.
open the required form and just keep the  mouse cursor  on any field.
you can see the table and field name below.
hope now u can able to track the table name.
regards
sandip

Similar Messages

  • How to find the message_ID/Reference_ID from a IDOC number

    hi
    can some one tell me how to find the message_ID/Reference_ID from a IDOC number
    regards
    Buddhike

    hi,
    check the t.code IDX5 .
    also check the below link for reference
    Monitoring the IDOC Adapter in XI/PI using IDX5                         
    Monitoring the IDOC Adapter in XI/PI using IDX5                         
    regards
    kummari
    Edited by: kummari on Jul 28, 2008 9:20 AM

  • How to clear the delivery group in sales order?

    Dear All: 
          My sales order is auto created from CRM by BAPI, but in vbap table, the GRKOR field is 001, only one order ,  how to clear the delivery group in the sales order ?
    Regards
    Peter.

    Thread Locked - Reason Duplicate Post
    How to clear the delivery group in sales order?
    Please dont post the same query twice.  Continue all your queries in one thread
    G. Lakshmipathi

  • Automatic posting of purchase order from sales order

    hiii
    experts,
    i m doing automatic purchase order from sales order. i have generated purchase requisition number from sales order now when i m trying to do automatic po the system says no suitable purchase requisition available.I have maintained info record, source code,automatic po tick in material master and in vendor master.what could be the problem .waiting for ur valuable inputs.
    warm regards
    thanks
    subhash kulkarni

    Hello,
    Please check all the things mentioned by our experts e.g Source allocation ,infor record, source list.
    Beside that I would suggest check document flow whether already PO is created or not.
    If every thing is in place then try to create PO with reference to PR by transaction ME21N & see what error you receives.
    Hope this help you ,
    Regards,
    Prashant

  • Update Purchase Requisition from Sales Order

    Hi,
    My requirement is to Update Purchase Requisition from Sales Order based on the Vendor number in
    Purchase Requisition .
    I have used Userexit         :- MV45AFZB
                     Customerexit :- EXIT_SAPFV45E_002
                     BADI             :- ME_REQ_OI_EXT, ME_REQ_POSTED
    for my requirement, but in vain.
    Of these Userexit  MV45AFZB, Customerexit EXIT_SAPFV45E_002, BADI ME_REQ_OI_EXT are getting triggered in Sales order creation but, Purchase requisition is not yet triggered and we dont have the VENDOR value with which i need to do perform some checks and update the Purchase requisition.
    After I SAVE sales order, BADI ME_REQ_POSTED is getting triggered.Here, the purchase requisition is created ( not yet inserted into the database ) .I also have required VENDOR value, but in the given
    BADI ME_REQ_POSTED I can make checks according to my requirement but not able to update the new values into purchase requisition.
    Literally speaking, Iam struck up..Dont know what to do.....
    Please let me know any Userexit/BADI/BTE where I can  Update Purchase Requisition from Sales Order based on the Vendor number in
    Purchase Requisition .
    Thanks,
    Shivaa..

    Hi Max,
    It just struck to me...
    As suggested by you, I thought of calling BAPI BAPI_REQUISITION_CHANGE  from user exit USEREXIT_SAVE_DOCUMENT in MV45AFZZ .
    I f I give PReq no. , BAPI BAPI_REQUISITION_CHANGE  will take the particular PReq no., from database and then change it according to our requirements...
    But, in our scenario I am calling the BAPI BAPI_REQUISITION_CHANGE  and passing a PReq no..which doesnt exist in the d/b itself.....
    Anyways, let me try......
    Meanwhile ,please suggest any other options for resolving the issue in question......

  • Capture the purchase price during sales order creation

    Hi,
    User wanted to capture the item purchase price when a sales order is raised.
    Currently, the sales order capture the VPRS whcih is coming from the material valuation (MAP) price.
    Is there a standard condition type that will captured the purchase price in the PIR record or the PP condition?
    Thanks

    Hi
    As far as i know it is not possible to fetch the purchase price in sales order.
    May be you can define an another condition type asa statistical and maintain the condition records for that. But it will be a tedious job for maintaining all the things.
    regards
    Prashanth

  • How to find the form name  from VA02 T.code

    how to find the form name  from VA02 T.code

    Hi Rajyam,
    I guess you are looking out for the formname which prints sales related documents.
    If this is what you want,then go to the T-code NACE and select the option K1Sales activities and click on the Output Types button on the top.The new window has all the types of Output types listed.Select the most appropriate and double click on the Processing routines button in the left side screen.
    The new window lists the program names and the forms associated with that output type.
    In case you have any further clarifications,do let me know.
    Regards,
    Puneet Jhari.

  • How to change the Profit Center in Sales Order

    Hi Gurus,
    Previously they setted the profit center (YB999) in sales order, now i want to change the profit center and need to give the amount into this profit center 100500.
    So, could you guide me how to change the profit center in sales order.
    Thank you for your replies.....
    Thanks & Regards,
    Chandrababu.B
    Edited by: Chandrababu Naidu on May 25, 2011 12:44 PM

    Hi
    If this SO is processed partially - i.e. transactions happened - You cant change it
    You can use ABAP and change it in Debug mode, but not advisable... Better to short close the SO and open a new SO for Balance qty
    br, Ajay M
    Edited by: Ajay Maheshwari on May 25, 2011 5:10 PM

  • How to pack the More than one sales order delivery qty in one packing

    Hi Folks,
    How to pack the more than one sales order quantity combinely during packing?
    Thansk in advance and points wil be rewarded for the reply.
    Best Regards
    Srinivas

    Packing is done during Delivery.
    In Sales order also Packing function is available but as a Packing proposal.
    So actual packing is done in Delivery.
    When you process several sales orders together, the sales order items having same Ship-to-party, Shipping point, Route, Delivery due date & Incoterm are combined into one Delivery in the standard system.
    In the delivery overview screen,do the picking by subsequent function rom the menu bar, you will get a button "PACK", click on this system will take you to the packing screen.
    In the packing screen, give the packaging mterial number, select the materials to be packed, select the packaging material also and the click on the "PACK" button.

  • How to find the data loaded from r/3 to bw

    hi
    how to find the data loaded from r/3 to bw is correct . i am not able to find which feild in the query is connected to which feild in the r/3 . where i am geting the data from r/3 . is there any process to find which feild  and table the data is comming from . plz help
    thanks in advance to u all

    Hi Veda ... the mapping between R/3 fields and BW InfoObjects should take place in Transfer Rules. Other transformation could take place in Update Rule.
    So you could proceed this way: look at InfoProvider Data Model and see if the Query does perform any calculation (even with Virtual keyfigures / chars). Than go back to Update Rules and search for other calculation / transformation. At least there are Tranfer Rule and eventually DataSource / Extraction Enhancements.
    As you can easily get there are many points where you have to look for ... it's a quite complex work but very usefull.
    Once you will have identified all mappings / transfromation see if BW data matchs R/3 (considering calculations ...)
    Good job
    GFV

  • How to make the status of a sales order complete of which PART DELIVERY

    How to make the status of a sales order complete of which PARTIAL DELIVERY has already done. <b>(Assigning rejection status not accepted)</b>

    Hi Gyana
    There is no document with me. But I can confidently say that because I am using this functionality.
    In my case I have created a Order Reason as "Short Closed". once you short close this order only the balance quantity gets rejected (provided you have already made previous delivery and PGI).
    Try it in one of your test clients if you have. Once it is short Closed it wont also show in the orders due for processing in Production.
    Also you can generate reports based on this if your customer wants to know how many order he has short closed, qty of item short closed etc.
    Try it.
    Rgds
    Sunil

  • Budget control in project WBS'e  while creating the auto PR from Sale order

    Hi experts,
    we are creating the auto pr from sales order for trading process with budget wbs element. but commitment is not posted in project wbs were as pr is created through sale order
    pls suggest if any additional setting is required  to post commitment while creating auto pr from sale order.
    rgds
    rajesh

    Check account assignement categories in SD for PR creation and See if you can make PR to be created with WBS as account assignement like we do in OPTT.

  • May i ask how to find the history website from safari in the new Mavericks?

    may i ask how to find the history website from safari in the new Mavericks?

    Choose Show All History from the History menu.
    (93509)

  • Flowing of the Condition  type from Sales Order to invoice

    Dear All,
    I'm facing a problme in the copying the condition types from Sales order to Invoice.
    The details are as mentioed below:
    I have a Condition type CONC and made the Copy of the Condition typs as ZDIS.So that CONC's value will be debited and ZDIS' value will be credited in the FI..
    But ALL the condition types which i have mentioed including tax and discounts condition types are copying from Sales order to invoice.Except CONC.
    I have checked all the copy controls,i'm sure those are OK.Bcoz other condition types are working perfectly fine.
    What could be the reason for this???
    Will be any setting for on condition type level for copy controls???
    Please Guide me its URGENT.
    Thanks
    Vinay

    hi
    from which condition type u have copied this CONC , can u pl elaborate more on this.
    and just write what is exact scenario and whats going wrong?
    in copy controls check for pricing source and pricing type.
    regards
    mandar

  • Can u tell me any bapi to create the purchase req with sales order as refer

    can u tell me any bapi to create the purchase req with sales order as reference?

    Hi Mukesh,
    You can use 'BAPI_REQUISITION_CREATE' for the purchase requisition creation if through transaction, you use transaction ME51N for creating the purchase requisition.
    Cheers,
    Sujay

  • How to find the dsn name from an *.rpd file provided?

    How to find the dsn name from an *.rpd file provided? All the ODBC details which would require to run your dashboard.

    Hi
    DSN name is not a part of .rpd file. So There is no information about DSN name in .rpd file.
    Thanks
    Siddhartha P

Maybe you are looking for