Standard RFC for update Purchase Order No. in Sales Order

Hi all,
It's allow the custoemrs to login in internet to change the fields of Purchase Order No & PO Date.
Is there any standard RFC to update the fields of Purchase Order No. (VBKD-BSTKD) & PO Date (VBKD-BSTDK) in Sales Order?

jack,
  Try with below FM
" BAPI_PO_CHANGE"
Don't forget to reward if useful..

Similar Messages

  • FM for Updating Installation date in Contracts + sales orders Item level

    Hi
    Plesae give any FM for Updating Installation date in Contracts + sales orders Item level for contracts tab.
    Thanks and Regards,
    Vishnuvardhan....

    Have used the billing transaction to set a Default Billing date at time of blling.

  • Create a new standard layout for the cost report of a sales order

    Hi,
    I would like to create a new layout to view costs in a sales order.
    path: view sales order (VA03), mark sales order item, go to environment cost report. At the moment the SAP standard layout 1SAP01 is shown.
    first question: how can I assign this layout as default layout?
    second question: how do I create the new layout, via report painter? can you give me a path or transaction code?
    thanks.

    i found it myself. You define the groups in the cost component structure. this structure is assignen to the costing variant of each cost object.
    thanks

  • Update Purchase order number in Sales order item level from inbound ORDCHG iDoc

    Hi Gurus,
    I want to update purchase order number from the iDoc 'ORDCHG' to sales order item level (sold to party purchase order number) i.e, VBAK-BSTKD.
    Which exit I need to use?  where to update?  Can you please help.
    Thank you in advance.
    Regards,
    San

    Finally Resolved the problem by writing 2 exits.
    one exit 'EXIT_SAPLVEDB_007'  for identify correct item in the sales order by updating the customer purchase order item number i.e., VBAP-POSEX.  if we update the POSEX field then it wont create new item instead, it will update the item which it is referring to .
    2nd exit for updating the purchase order number. 
    I have tried to pass the program name, screen number, field name, field value etc to bdcdata in the exit 'EXIT_SAPLVEDB_002'. but I observed that it is not going to that screen in the debugging.
    when I try E1EDP02 with QUALF '044' it will update ship-to party's purchase order number.  so to update ship-to party's purchase order number it is going to that screen. 
    so I have used that thing to update purchase order number in sold-to party's purchase order number.
    so when it is going that screen iam changing the field name 'VBKD-BSTKD_E' to 'VBKD-BSTKD' in bdcdata.  Then it is worked.
    This is the solution I found in my time.
    Any way it is solved.  Hope it will be helpful for others who will get this problem.

  • Need standard RFC for posting Payment Splitting in Loan Application

    Hi All,
    I am working in Loan Managment system, for creating loan application I am using RFC "BAPI_LOAN_CONTRACT_CREATE".
    The above mention RFC taking the loan detail, condition header, condtion item and BP details. But its not taking the "Payment Splitting"  details.
    can any one tell me is there any standard BAPI for update the Payment Splitting.
    Regards,
    Boopathi M

    Hi
    Try
    FIDCCP02 or FIDCC*
    Regards
    Neha

  • Duplication of Purchase Order while creating sales orders for a customer

    when we try to create sales order for one customer it have to create by picking up the purchase order from the table linearly.
    But the problem is that here when we are trying to create multiple sales orders the same purchase order is being picked.
    for example..when we create sales order 1 the purchase order picked is PO1 and
    for creation of sales order 2 the same purchase order PO1 is being picked up instead of PO2.
    No idocs are being generated in this, even to check them..
    How shall i resolve this...? Please help me out ASAP

    Hi Kumar,
    Thanks for the reply. But actually the problem is that this is related to some customized table in the project. When a EDI Batch job runs in the background then automatically the SO is created and the PO is being picked from the table(custom table) and then posted against the respective SO. we are not aware of that job which is triggering this to debug. Once if we can know that particular batch job or pgm or edi or idoc what ever it is then we can debug.
    Do you have any idea how can we find that particular pgm/edi/idoc/job name which triggers this creation of SO?

  • Urgent -Create  RFC for update the database and delete from the database

    Hi Guy's,
    Please help me how  to create the RFC for update to databse and delete from database(step-by-step) procedure.
    Thanks and Regards,
    Sai.

    Hi,
    Please go through the following link,
    reward if helps.
    [RFC Step By Step|https://www.sdn.sap.com/irj/sdn/wiki?path=/pages/viewpage.action?pageId=39728]
    regards,
    mahantesh

  • Cost analysis through Purchase Order created from Sales Order

    Hi Experts,
    This is the scenario: There is an Item No. which is not stocked in warehouse and is purchased only when customers ask for it. The cost of the sales order line having this item is calculated by the Purchase Order line on which the item is there. (The PO have items for other Sales Orders as well. And, Sales Orders have multiple item types) The Sales Order have the PO no. against it and Purchase Order has SO no. against the line. This is all done using MS Access and Sage Accounts. Lots of free typing and manual cost analysis involved.
    I have gathered from this forum that we can create Purchase Order from the Sales Order. The Document No. information can be pulled from one another using Formatted Search. Can we do the accounting and cost analysis as well?
    Please let me know if I have not made myself clear.
    Thank you in advance and kind regards.
    IC
    Edited by: iancameron03 on Sep 20, 2011 4:35 PM

    Hi Ian,
    I concur with Faraz, it is better if you use procurement document facility in doing back to back transaction from SO to PO.
    However, in your case, I'm afraid you can't analyze the gross profit and recording the accounting related activity as your request using standard SAP B1 function.
    As for gross profit case:
    Since you're actually using workaround in order to evade all hassles in maintaining all item master data related to this case, you create just one item code called S1 right?
    SO DocEntry - SO Line # - Item Code - Item Name - Quantity - Price
    1001 - 0 - S1 - Table - 2 - 100
    1001 - 1 - S1 - Chair - 8 - 25
    1001 - 2 - S1 - Cloth - 3 - 10
    PO # - PO Line # - PO BaseEntry (SO DocEntry)  - PO BaseLine (SO Line #) - Item Code - Item Name - Quantity - Price
    2001 - 0 - 1001 - 0 - S1 - 2 - 100
    2001 - 1 - 1001 - 1 - S1 - 8 - 25
    2001 - 2 - 1001 - 2 - S1 - 3 - 10
    Note that standard B1 gross profit calculation is that system will compare selling price for each item with item cost / certain price list of each respective item. However, in your case, you put all item as a single item master. Thus, system couldn't compare Table to Table, Chair to Chair, Cloth to Cloth since the item cost for these 3 items will be the same, the price list for these 3 items will also be the same since it is actually only one master data. Of course you could update the gross profit calculation manually for each SO, but to be honest it seems rather weird to do this manually.
    So, in order to simulate the gross profit calculation, you need to create a custom query and comparing PO line no with SO line no.
    As far as accounting related recording concern, I'm afraid you can't do it
    1. SO 1 : Item Table - Selling price 130 ; Item Chair - Selling price 30
    2. PO 1 (linked to SO 1) : Item Table - Purchase price 100 ; Item Chair - Purchase price 25
    3. SO 2 : Item Table - Selling price 150 ; Item Chair - Selling price 40
    4. PO 2 (linked to SO 2) : Item Table - Purchase price 110 ; Item Chair - Purchase price 30
    Correct me if I'm wrong, you want to record accounting wise that CoGS of Delivery based on SO 1 is 100 for Table and 25 for Chair, isn't it? No matter what costing method you use, you can't achieve this.
    If you use moving average, system will average both Table and Chair cost price, since it is actually one item master data. Even if you distinguish each item as a master data, system will average the cost price for Table and Cloth by the time GR for PO 1 and PO 2 occurred.
    Example (order by sequence of event):
    1. GR based on PO 1 - Table - Purchase price = 100, therefore Item cost = 100
    2. GR based on PO 2 - Table - Purchase price = 110, therefore Item cost = 105 (considering quantity only one for both PO)
    3. Delivery based on SO 1 - Table - CoGS incurred will be 105, not 100
    To certain extent, same thing could be said with FIFO costing method
    1. GR based on PO 1 - Table - Purchase price = 100 (qty 1)
    2. GR based on PO 2 - Table - Purchase price = 110 (qty 1)
    3. Delivery based on SO 1 - Table - CoGS incurred will be 100 (qty 1)
    4. Delivery based on SO 2 - Table - CoGS incurred will be 110 (qty 1)
    At first glance, it seems right since the CoGS for SO 1 is 100, tied up with purchase price for PO 1. And CoGS for SO 2 is 110, tied up with purchase price for PO 2. But we're using assumption here, we're assuming the sequence of Goods Receipt of PO and Delivery of SO occurred in the very same sequence as the issuance of SO and PO.
    1. GR based on PO 1 - Table - Purchase price = 100 (qty 1)
    2. GR based on PO 2 - Table - Purchase price = 110 (qty 1)
    3. Delivery based on SO 2 - Table - CoGS incurred will be 100 (qty 1)
    4. Delivery based on SO 1 - Table - CoGS incurred will be 110 (qty 1)
    If above scenario / sequence that happened, you will get the wrong figure of gross profit since the Delivery of SO 2 will take the item cost based on GR of PO 1. Since we're actually talking about real life business process, who can guarantee that above scenario wouldn't happen? It is possible that you send goods to customer who ordered late in real life, too much possibility that it is better for you to mitigate such result.
    My suggestion would be that you record the accounting transaction based on standard business process, no need to really capture the actual cost and actual gross profit for certain SO and PO. Too complicated, and the software itself doesn't cater this kind of requirement. Best thing you could do only create custom query for gross profit simulation calculation, but for very accurate accounting recording, IMO you should forget it. Hope this help.
    Best Regards,
    Hendry Wijaya

  • Purchase order based on Sales order

    Hi,
    I try to create Purchase order based on Sales order.
    The error message :
    "Base document card and target document card do not match"
    My code:
    oPurOrder.Lines.BaseEntry=oSalesOrder.DocEntry
    oPurOrder.Lines.BaseLine=oSalesOrder.Lines.Linenum
    oPurOrder.Lines.BaseType=17
    Could you help me please ?
    Tks.
    Laetitia

    Hi,
    Looking at your code I will check how you fill the fields in the oPurOrder object because the code you copied is only for the document lines and the error refers to the document itself (maybe you forgot to assign the cardcode property).
    If you are basing the document, a good and reliable method is to export the base to a xml file and load the target using this file. This way you garantee that all the info of the document is copied. After that you could use your code to update the info you want to change the same way you pasted it in your post.
    Hope it helps,
    -M

  • Uploading Purchase Order Against the Sales Order through DTW

    Hi Experts,
    I searched the forum but could not see anything regarding this.
    Can I upload Purchase Orders against the Sales Orders using DTW upload facility? Manually we do it through the Logistics Tab in Sales Order.
    Thank you in advance.
    Kind Regards,
    IC

    Hi,
    You can use the BaseType, BaseEntry and BaseLine columns for this in the row level template (DLN1):
    BaseType: it's the Object Type of base document (ORDR.ObjType) which is '17' in case of Sales Order
    BaseEntry: it's the Document Entry of the base document (ORDR.DocEntry)
    BaseLine: it's the row number of the line in the base document (RDR1.LineNum)
    If you import your Delivery Notes with this info, the link to the Sales Order will be updated just as if you used Copy To in SAP.
    Regards,
    Nat

  • Several purchase requsitions from one sales order

    Hi,
    I am using item category TAB to create a purchase requsition from a sales order, this works fine.
    What I really want to do is to create one purchase requsition for each condition type of a special kind from the TAB position in the sales order.
    Another possibility is to create several purchase orders from one purchase requsition, split on the earlier mentioned condition types. In any case, the end result should be several POs from one SO, split on condition types.
    Can this be done in config or do you have a suitable user-exit for me?
    Thanks in advance!
    Best Regards
    Viktor

    HI,
    The Cost Center Determination settings is in OVF3, the standard works only at the header level though, so it would not work if cost center is needed on the line item.
    For this case I suggest to try from CO view:
    A material is linked to a profit center. From this profit center you can determine a cost center using txn OKB9
    In combination with the material's account assignment field and account determination customizing, an alternate revenue account can be determined for this material. ("Normal" revenue accounts are to be used in combination with CO-PA).
    If this account is a cost element with category type "1" you need the entries in OKB9.
    Hope this help!
    Regards!

  • How to update the condition price in sales order while creating the invoice

    Hi,
    How to update the condition price in the sales order to carry out the new price while creating the invoice?
    While creating the invoice it should update the condition price in sales order.
    Thanks,
    Balaram

    No, pricing is not there in delivery.
    I found an exit for VF01transaction where we can update the price in order.
    Can you please tell me how to update the price if I have the order, material numbers and conditions number?
    Thanks,
    Balaram

  • Update error in  RV_SALES_DOCUMENT_ADD during Sales order creation

    I get an Update/ ABAP runtime error during Sales order creation. The error occurs during processing of the update module -RV_SALES_DOCUMENT_ADD.
    This error does not occuring always, as I am sometimes able to create a Sales order without getting update error. I am getting the error of all types of Sales orders and even contracts.
    Am I missing any configuration parameters?
    Thanks,
    Chitra

    Yes , I can see the error in ST22.
    While exceuting VA01 (Oder type OR, Entering Sold-to-party, Purchase order NO, Material, Qty, Plant),
    - I get run-time error "Run-time error "GETWA_NOT_ASSIGNED" occurred".
        Analysis of error shows:
         Update terminated in "Update module: RV_SALES_DOCUMENT_ADD"
          Fails in the Read table in one of the form
            Termination occurred in the ABAP program "SAPLV45U" - in "VBAP_BEARBEITEN"
    The main program was "RSM13000 ". In the source code you have the termination point in
    line 147 (READ TABLE FYVBAP WITH KEY VBAP_KEY.)
    of the (Include) program "LV45UF0V".
    The ABAP's say the functional module is trying to do an 'UPDATE' instead of 'INSERT" in the internal table FYVBAP.
    Thanks,
    Csuman

  • Link a Purchase order to a sales order

    I am looking for a way to link a specific Purchase order to a Sales Order so that when the Purchase Order is received the items are allocated to that specific Sales Order and another sales person cannot sell the murchasedise.  I know you can create a po from a sales order but it seems like when the po is copied to a goods receipt, anyone can invoice those items on a different sales order/ a/r invoice?
    Thanks,
    Don Shields

    Hi Don,
    What you are looking for is more of a hard allocation of Items to a SO.  This functionality does not exist in B1 today.
    If you want to manually create some processes and validation for this, it could be done. 
    1.  Use Batch numbers management for items and linking a Batch to a SO and use the same Batch number in the Goods Receipt.
    I have provided an ellaborate solution for this on this forum last year
    You may check this thread in the meanwhile
    Suda! Again to restriction of items from PO based on SO

  • Purchase order to create sales order and delivery

    Hello all,
    I am planning to create sales order and since i require customer Purchase order to create sales order, i am also planning to create purchase order.
    My question is who should i mention as vendor or who would be the vendor when i create a purchase order that would be used to create sales order.
    should it be the customer who orders the material or should it be the plant from which the material is going to be supplied.
    and also in the line item for the field "plant", should i enter the supplying plant or should i enter the ship to plant.
    Thanks,
    Maxx

    The moment you mention 'Vendor', the SAP synonym for it is 'Supplier' hence it would be the supplier (and not customer), that is the plant from which the marerial is supplied. Hence your vendor in customer PO will be the supplying plant.
    The 'Plant' in the line item in case of PO will be the receiving plant (the customer's Plant).
    I hope this answers your doubt.
    Amit G

Maybe you are looking for