Getting purchase order number from sales order number

Hi Experts,
My requirement is to fetch the following values from a sales-order number:
Purchase Order Number,
Delivery Date
Order Type(Source of Order EDI/EFAX/..)
Ship To,
Sold To.
We are trying to fetch this data from the ECC system in our CRM system.We are exploring the possibilty of RFC calls to get the data from ECC system.
Is there any standard FM present in ECC which gives the above information from the sales order number?
Thanks in advance
Regards
Shilpi

Hi,
Check the FM BAPISDORDER_GETDETAILEDLIST
It provides the whole data for a particular Sales order which you need to provide Sales order number in the table 'SALES_DOCUMENTS' in tables parameter.
You have to provide the view what you need and in the import parameter 'I_BAPI_VIEW' like all the views that are in the tables parameter...
HEADER, ITEM etc...
The fields
PO_METHOD
PURCH_NO
REQ_DATE_H
SOLD_TO " will provide you the details you need in the table 'ORDER_HEADERS_OUT'
SHIP_POINT in ORDER_ITEMS_OUT table provides the ship to
Regards
Sarves

Similar Messages

  • User-exit to copy collective number from sales order to purchase order

    Hi,
    Can any one help me  which user-exit/BADI  is used to copy collective number from sales order to purchase order?  please help me.
    Thanks,
    Alka

    hi
    copy control would be the better option to choose.. but still u can a give a search in list below and opt for the right one..Refer to the link below..
    http://www.planetsap.com/Userexit_List.htm
    User exits for Sales order
    1•USEREXIT_DELETE_DOCUMENT
    2•USEREXIT_FIELD_MODIFICATION
    3.•USEREXIT_MOVE_FIELD_TO_VBAK
    4.•USEREXIT_NUMBER_RANGE
    5.•USEREXIT_SAVE_DOCUMENT
    User exits for billing
    1.•USEREXIT_ACCOUNT_PREP_KOMKCV (Module pool SAPLV60A, program RV60AFZZ)
    2.•USEREXIT_ACCOUNT_PREP_KOMPCV
    3•USEREXIT_NUMBER_RANGE_INV_DATE (Module pool SAPLV60A, program RV60AFZC)
    4•USEREXIT_PRINT_ITEM (Module pool SAPLV61A, program RV61AFZB
    5.USEREXIT_PRINT_HEAD (Modulpool SAPLV61A, Programm RV61AFZB)
    Reward if Useful
    Thanx & Regards..
    Naren..

  • Assign batch number from sale order to production order automatic

    Dear all, I have a question for all. Please help me in this case
    My scenario is make to order
    I have a sale order, when i create sale order, i have assigned batch number at each line item.
    When i run MRP for sale order (MD50), the system generate a planned order for it and I've converted to production order.
    So when I view production order, I think that batch number what I've assigned to sale order will be assign to production order but that is not happen.
    So, can you help me solve this problem. I think that sap can assign batch number from sale order to production order automatic but i don't know how to configure that
    Thanks all

    Hi,
    To the best of my knowledge, when system is generating planned order / production order from sales order system doesnt copy batch number from sales order.
    In fact , you are following wrong practice for generating batch no.
    Follow procedure like this :
    Create sales order without any batch assigning there. Run MRP with MD50 and then convert planned order to Production Order.
    While creation / releasing of Production order, you have option to generate batch automatically by following way :
    Go to OPKP (Production Scheduling Profile) -> Take your plant & give suitable name to Production scheduling profile-> Batch Management tab -
    > Automatic Batch creation in the order maintain this field as
    1     Automatic batch creation at order creation
    or
    2     Autom. batch creation at order release
    This will generate batch number automatically at the time of creation or release of order.
    Then follow same process i.e. Goods Issue, Confirmation & GR for production order.
    So you will get sales order stock in the form of batch managed.
    Check & revert if any issue in above flow.
    Regards,
    Tejas

  • Function Module to fetch Customer Number from Sales Order or Process Order

    Hi Gurus,
    I am looking for a Function module which gives me customer number from Sales order or Process order.
    Please let me know of any FM's available.
    Regards,
    Madan

    Hi,
    Thanks for your response.
    I am actually looking for function modules which take "Sales Order" or "Process Order" as input (import parameter) and return Customer Number as output (export parameter).
    Please suggest some function modules you know any.
    Many Thanks,
    Madan

  • Production order creation from sales order

    Hi PP Gurus,
    I am creating a production order automatically from sales order by using strategy group exactly similar to 82. Once i create the sales order , its showing missing parts error in prouction order and if i check missing parts overview,it says over all confirmation date is not determine.We have stock in MMBE for that material and storage location combination.
    I have also chekced the requierement class and type and found ok.
    Please help me resolving this issue.
    Thanks in advance.!
    Regards,
    Sudheer

    Hi Mario,
    Yes, the availability check will check other stock types also. My concern is why the availability check is  failing and giving missing parts even if the components are there in stock after considering the reservations.
    I checked OPJJ setting, availability check is active and we did that.
    Can you please help me in this as we are stuck up at this point.
    Regards,
    sudheer

  • Getting the Net Price from sales order into PO

    Hi All,
    I want to get the netprice from sales order to PO just before creating the PO.
    Is there any user exit for that.
    Thanks,
    Praveen

    where u are creating PO ? How u are passing Sales Order Number to PO ?
    regards
    Peram

  • Issues to Production Orders created from Sales Order

    We have multiline Sales Orders that create a Production order for each sales order line (can be up to 70 or 80 per SO). We normally backflush these via multiple MB1A transactions after the SO has been completed. It is a lot of work doing the required issues to reduce stock levels and consequently they are always "late" being done and the stock is always out of date until the movements (type 261) are processed - generally monthly!!
    As a result, an Access Database has been created that reduces stock in that by entering the SO number and this is used for Stock enquiries. I would like to get rid of this Access database so as I'm sure other people have hit this same problem, is there a way of doing the same in SAP i.e. enter SO number and then relevant stocks are reduced accordingly.
    Any help would be appreciated.
    Thanks in advance
    Jim

    Hi,
    I am not clear why you are manually doing the process? When the production order is confirmed for each operation (CO11) the goods movement should be posted then, backflush selected in work centre or in the production order.
    Any failures can be processed via COGI rather than a database.
    Thanks.

  • Notification data copy to Service orders created from sales order.

    Hi,
    In our business scenario, we are creating sales order from service notification & service order from sales order. Document flow will be Service Notification  -> Sales Order -> Service Order.
    Here user wants that Notification data to be copied to service order. This is possible when we create service order directly from notification. Buit in our case we are not creating service order directly from Notification, we are creating service order from sales order. in this case notifiationdata is not getting copied to service order.
    Our ABAPer's are also tried to find the exit or enhancement points, but not able to find any thing for this requirement.
    Pl. suggest, how to do it.
    Thank you in advance.

    The only way I have seen to do this kind of billing is using Resource Related Billing (RRB) and customizing of the Dynamic Item Processer Profile (DIP Profile)
    It is not exactly like a simple flow of Notification > Sales Order > Service order (with all of the problems of how to copy notification data through to Service order) but might be a possible solution for you ?
    [http://help.sap.com/saphelp_erp60_sp/helpdata/en/3c/abae15413911d1893d0000e8323c4f/frameset.htm]
    This link will take you to the main CS help but then drill down into Call Management > Billing > Resource Related Billing > Billing Scenarios.
    regards,
    Tony

  • Goods receipt not ticked in production order converted from sales order req

    Hi all,
    In MTO scenario, where requirement trigger from Inquiry -> Quotatation -> Sales Order -> Plan Order -> Production Order, goods receipt indicator in production order was not checked if requirement is triggering from sales order, however it is ticked if requirement trigger from inquiry, therefore we are not able to do confirmation. Appreciate if anyone able to assist us as soon as possible.
    Thanks in advanced.

    Hi,
    I understood that---
    If u r creating Sales order directly without Quotation u r  not able to do the GR.
    If u create from Quotation, u r able to do GR. right?
    I think, Problem with Settlement. Please Look into that.
    Kiran.

  • Goods receipt not marked for production order trigger from sales order

    Hi all,
    In MTO scenario, where requirement trigger from Inquiry -> Quotatation -> Sales Order -> Plan Order -> Production Order, goods receipt indicator in production order was not checked if requirement is triggering from sales order, however it is ticked if requirement trigger from inquiry, therefore we are not able to do confirmation. Appreciate if anyone able to assist us as soon as possible.
    Thanks in advanced.

    Hi,
    I understood that---
    If u r creating Sales order directly without Quotation u r  not able to do the GR.
    If u create from Quotation, u r able to do GR. right?
    I think, Problem with Settlement. Please Look into that.
    Kiran.

  • Service order creation from sale order

    Hi Friends,
       Could you please tell me where is the setting for the automatic creation of service order from sale order.
        Iam using LEIS , TAD and CD as the sales documents and SM01 as service order document.
        Am I missing something?
        Please let me know.
        Regards,
        satish

    Hi Satish,
    The setting for creation of a service order from sales order can be found in the Requirement class configuration.
    To know how to link, check the procurement tab in the sales order, note down the requirement type associated to the line item. Requirement type is linked to requirement class. In requirement class you find the configuration.
    Standard SAP creates SM03 (refurbishment) type of service order from sales order.
    Reward points if useful.
    Regards
    Ananth

  • PLANNED ORDER CREATION FROM SALES ORDER SAVING (REQUIREMENT CLASS 200)

    Dear All,
    By using requirement class 200, assembly type 4 (dinamic planned order) Iwould like that at sales order registration the planned order for the sales order material is created.
    I have two problems.
    The system doesn't schedule the planned order, even if the scheduling parametres are entered for planned order type (relation between routing id and planned order type).
    So I have a planned order in which i have to manually schedule it.
    The second problem is that the planned order is firmed at creation. I would like that it was not firmed to adjust by MPS procedure the components from BOM modification. Infact at the creation of the sales order The complete BOM is not defined, and I don't want to unfirm the planned order so run th mps procedure.
    Can anyone answer to these questions?
    Thank's in advance
    Luca Pastura

    Hi Luca Pastura,
    For Scheduling
    1. You need to Give the appropriate check mark ( 1 or 2 ) In the capccity check of the requirement class configuration (ovzg)
    For Firming
    1. Since youare using dyanamic processing ""During dynamic assembly processing, you can not change the quantities and deadlines"
    2. kindly refer the F1 help for the assembly type inthe OVZG.
    Check and confirm
    Reg
    Dsk
    1.

  • Purchase order number from Sales order

    hi gurus,
             i wan to pull PO number from SO number.i saw the customer PO in VA03 for that SO.
    what is the customer PO(in vbkd-bstnk)?.what is the PO in EKKO-ebeln?what is the diffrent between these two?

    Pradeep Chintala is right!
    vbak-bstnk is not long enough!
    if you va01 create a SO with customer po num's length exceeding 20, you'll find the vbak-bstnk is incomplete.
    and you would never find the vbak-bstnk in screens of  va01, va02, va03
    but you can find vbkd-bstkd.

  • Want to copy Serial number from Sales Order to Delivery

    Hi Gurus, I want to copy the serial number from the sales order to the delivery. ¿How can I do this?
    Thanks in advance
    -ITalo

    Please check if you get some helpful tip from the link below:
    http://help.sap.com/bp_bl603/BBLibrary/HTML/126_EN_IN.htm
    Regards,
    Rajesh Banka

  • Idoc number from sales order in ECC

    Hi,
    Sales order is created by processing an Idoc. Now i want to trace back the idoc number for the sales order created.
    Please let me how we can do this in ECC. I saw couple of posts stating ICON SERVICE FOR OBJECTS...i couldn't really identify that icon. In someother post i saw this can found under Environment.
    Please let me know whether there are any prerequisites for this, and how i can i achieve this in ECC?
    Thank You in Advacne
    Thank You
    Challa

    Hi Challa,
    To find which idoc created the sales order, you can do the following,
    Check for the customer PO no in the sales order.
    Then go to any other inbound idoc which is bound to create a sales order, and see in which segment is the PO number.
    Then go to WE09 and put the dates etc and then go to " Criteria for search in Data Records"
    Put the segement no in Search in segement field.
    Put the idoc field in which you see the PO number
    and put the PO no in the " for Value" field and execute.
    You will get the idoc which created the sales order.
    Let us know.
    Regards,
    SB

Maybe you are looking for

  • Configure ZENworks Database fails in C1

    Afternoon everyone Background: Root ZEN Inventory server was using JDBC connection to a SQL 2000 DB for storing inventory but the SQL server was being decommissioned. The primary reason for moving it to SQL was to run Crystal queries on the data, but

  • Available quantity

    Hi, The calculation for Available Quantity is sometimes confusing for certain companies. In SAP, Available=InStock-Committed+Ordered. Several companies consider Available as InStock-Committed. It would be great if this calculation could be user-defin

  • InDesign CS5 Server SDK

    Hi, I notice that InDesign CS5 Server is available from the partner download area.  However, I haven't been able to find the InDesign CS5 Server SDK; I've looked in the partner download area and also on http://www.adobe.com/devnet/indesign/sdk/index.

  • Math expression in query

    Running Oracle 10g on Solaris 10 SPARC I have this expression within a query that I would like to round off to the nearest hundreths: select (x.VALUE/4800.00)*100 as Percentage, Value is equal to: 4145.22 I want the display to be:86.35 not 86.35875 (

  • Need Acknowledgement When Posting Goods Receipt Document

    Hi, My scenario is i want to post the Goods Receipt Document using an idoc MBGMCR02. After posting if any error occurs  i want acknowledgement file describing the error. How can i achieve this. Kindly suggest. Regards, Venkat