How to update Purchase Request automatically when update qty in sales order

When we create a sales order, the PR will be automatically generated.
Now we have a requirement to change the order qty for the sales order. also the PR should be automatically changed.
With VA02, the process is perfect.
But by using BAPI_SALESORDER_CHANGE  the SO is partly changed ( order qty is changed but the confirmed qty is not changed) and the PR is not changed.
So can you advise me how to update the PR by using the BAPI_SALESORDER_CHANGE, which indicator should be defined?
I've read the BAPI document but no such information.
Regards,

Hi Yang,
Workflow is the best approach for any issue related to business objects.
Since you want call FM BAPI_SALESORDER_CHANGE, it will change SO. It means everytime any SO is changed there will an event being triggered.
object type: BUS2032
event: Changed
simple solution:
1. Please create object type (SWO1) and its super type should be BUS2032.
2. Add your own method and attach your custom FM which actually updates the qty & PR)
3. Create Task (PFTC_INS)
in basic data:
- provide object type which you have created
- provide method which you have added
goto triggering events tab
- Choose Object Category as BOR object type
- provide object type (better give BUS2032)
- provide event as CHANGED
Please have look into very nice video blog which helps you to create your workflow.
blog: [Creating your first SAP Business Workflow]
Regards,
Sukhbold Altanbat.

Similar Messages

  • Automatic credit release of blocked Sales orders with pre payment

    Hi ,
    We have a requirement as given below.Please suggest a better solution for this.
    The customers have the 'prepayment ' payment terms with different percentages of the sales order
    value to be paid before the delivery creation.
    When the sales orders are created, they are blocked for delivery by some credit block.
    The business use VKM1 transaction to view these blocked orders and release them manually for
    delivery creation after checking if the customer has made the prepayment.This is a tedious work
    (since there are too many sales orders )for the credit manager who dont have the complete
    visibility of how much prepayment the customer has made and need to manually check if the
    payment made covers the sales order prepayment amount to be paid.
    1. How can we do a automatic release of these blocked sales orders?
    2. Is there any program(which can be setup as batch job) to do a credit recheck and release the order
        automatically?
    3. Will Milestone billing plan functionality satisfy this requirement?If so how?
    We are using SAP version 4.7 without Project System.
    Thanks in advance.
    Regards,
    Ragesh

    Hello,
    This is not possible because when you created the sales order it has checked the credit limit for that credit limit and if you increase also now that block cant go automatically.
    Go to VA02 i.e change mode of sales order and change something and enter may be if you created a order for 2 quantity then go to VA02 and remove the quantity 2 and again type 2 then system will again check for credit and now that is increased so the order will not block..
    If this is for many order then you can run changes sales order  BAPI for mass update. Take help from ABAP guys.
    Cheers
    Say

  • How to get Manager id automatically when Employee Id is given.

    How to get Manager id automatically when Employee Id is given.
    1) I created a simple BO with two elements namely
        1.Employee Id
        2.Manager id
    How to get employee's first name and last name?
    And how will i get manager id  automatic when i click employee id in element field.
    Anbu.

    Have you tried to use "APPS.FND_CONCURRENT" API?
    http://etrm.oracle.com/pls/trm11510/etrm_pnav.show_object?c_name=FND_CONCURRENT&c_owner=APPS&c_type=PACKAGE
    http://etrm.oracle.com/pls/trm11510/etrm_pnav.show_object?c_name=FND_CONCURRENT&c_owner=APPS&c_type=PACKAGE%20BODY
    Thanks,
    Hussein

  • In windows 7, how to make firefox start automatically when I turn on the computer

    In Windows 7, how to make Firefox start automatically when I turn on the computer. Note, I am asking how to do this with Windows 7, not xp, not vista.

    You need to place a shortcut to open Firefox in the Start > Programs > Startup folder.<br />
    That is basically the same in all Windows versions.

  • How can java programs execute automatically when it connects to network

    Good Day dears...
    How can java programs execute automatically when it connects to network.
    Thanks in Advance friends Shackir

    884924 wrote:
    Good Day dears...
    How can java programs execute automatically when it connects to network.What is "it"? That is, execute when what connects to the network?
    Your computer? If that's what you mean, this is not a Java question. It's an OS operational/administrative question. Executing any program, whether written in Java or not, based on some system event has to do with that system, not with the program. If it's possible to do this, you'd do it exactly the same way for a Java program as you would for any other program.
    Or is "it" the program itself? If this is what you mean, then it's a nonsensical question. For the program to connect to the network and detect that it has connected to the network, it must already be executing, so asking how to execute it at that point is meaningless.
    Finally, I'll point out that "connecting to the network" is a pretty meaningless phrase. Or rather, it has so many potentially valid meanings that it's impossible to know which one you're referring to when you use that phrase. And I'd be willing to bet you don't have a clear picture of that yourself.

  • Automatic creation of project from Sales Order?

    hi..
    can someone guide me how to automatically generate PS Projects from SO USING TCODE HBS0?
    i have been able to generate projects automatically when i use tcode VA41 but my need is to do this for RE using sales browser and creation of Sales Order is by Tcode HBS0.
    when i save the sales order, no project is created. ( Note: Material i used is same one i used successfully in VA41+)
    thanks in advance..

    Hi Ramesh,
    Creation of project from sales order in SAP Project system is described as assembly processing.
    In the Project System only networks can be generated directly from a sales document during assembly processing. Indirectly the system can also generate work breakdown structures, when it creates the network.
    1.You start assembly processing by creating a sales document for a material. This sales
       document can be inquiry,quotation, sales order.
    2. The system then
        Configures the material, if necessary
        Creates a network using the standard network as a template
        Configures the network, if necessary
        Schedules the network backwards from the required delivery date
        Checks material availability
        Costs the network and transfers these costs to the sales document.
    3. When you save the sales document, the system saves the network together with the sales
        document. If applicable, it also generates a project definition and work breakdown structure.
        The project number is derived from the sales document number.
    Please refer link mentioned below to know more details
    http://help.sap.com/saphelp_47x200/helpdata/en/95/1613a8837b11d2b6700000e82d8bd1/frameset.htm
    Regards
    Tushar

  • How to club the downpayment and periodic billing scenario in Sales Order

    Hi experts,
    Could you please let me know how to club the downpayment and periodic billing scenario in Sales Order.
    Requirement is :  If you have 10 lacs total amount and out of that 50% should be the downpayment and rest of the amount should be distributed among three equated  instalments for 2 months each (periodic billing). This should work with one line item in sales order. Pls provide relevant inputs how to work out this scenario.
    Your help would be appreciable.
    regards....Diwakaran

    Hi Yang,
    Workflow is the best approach for any issue related to business objects.
    Since you want call FM BAPI_SALESORDER_CHANGE, it will change SO. It means everytime any SO is changed there will an event being triggered.
    object type: BUS2032
    event: Changed
    simple solution:
    1. Please create object type (SWO1) and its super type should be BUS2032.
    2. Add your own method and attach your custom FM which actually updates the qty & PR)
    3. Create Task (PFTC_INS)
    in basic data:
    - provide object type which you have created
    - provide method which you have added
    goto triggering events tab
    - Choose Object Category as BOR object type
    - provide object type (better give BUS2032)
    - provide event as CHANGED
    Please have look into very nice video blog which helps you to create your workflow.
    blog: [Creating your first SAP Business Workflow]
    Regards,
    Sukhbold Altanbat.

  • How to resrve the stock to the customer against the sales order

    hi,
    sap gurus,
    good morning to all,
    how to reserve the stock to the customer against the sales order if this process is not MAKE TO
    ORDER SCENARIO.
    the prices of the products will be often changing drastically so
    he is following MAKE TO STOCK Process in his production process.
    so with out using m.t.o. process how to reserve it against the customer.
    for eg:
    in the market when the customer/dealer/stockist coems to know that prices are going to increase
    then obviously he tends to purchase in bulk quantities and reserve it in godown.
    so how to map that process.
    help me on this.
    regards,
    balaji.t
    09990019711

    Dear Balaji,
         This can be done By MM consultant through movement type. to move the stock from unresticted stock to customer stock.
    Regards,
    Sudhir

  • When I create Return Sales Order through BDC sales order doesnu2019t create.

    Deal Guru,
    When I create Return Sales Order through BDC sales order doesnu2019t create.
    It shows created sales document number but when I display this document I am getting message Document is not in database.
    After executing my BDC, message received in SAP in box : SAPSQL_ARRAY_INSERT_DUPREC
    I am receiving following message in SAP inbox for following issue.
    But when I create Return Sales Order through VA01, it is working. Please give me some idea.
    Detail Message
    Update was terminated
    System ID....   PRO
    Client.......   900
    User.....   DEVELOPER2
    Transaction..   VA01
    Update key...   4961DBF46A6B09D2E10080020A02281C
    Generated....   05.01.2009, 16:03:40
    Completed....   05.01.2009, 16:03:40
    Error Info...   00 671: ABAP/4 processor: SAPSQL_ARRAY_INSERT_DUPREC
    Regards
    Makarand

    Hi Rory
      Try this link:
       BAPI can't to create SO,But used bapi data with manual can?
    Regards
    Neha

  • Restricted automatic creation of PO in sales order

    Hi Experts
    When we create a sales order (VA01), we had customized the automatic creation of a Production order (CO01); but our client is asking us to limit this automatic creation to a certain characteristics of the material.
    For example, we have to choose the colours (number and values), and for one colour, the production order donu2019t need to be created automatically.
    Please can anyone help me to find any solution for this matter?
    Thank you in advance
    Hachim EL ALAMI

    Dear Hachim,
    if there is only one material for which you don't want production order to be created you can restrict that particular material by using material exclusion from Logistics screen - Sales and Distribution - Master Data - Products - Listing/Exclusion
    and select condition type B001 for Exclusion  and now if you try to enter this material in the sales order system will give you an error
    OR
    you can use listing condition type A001 in order to include only those materials for which you want production order to be created for them
    Hope this will solve you purpose
    Regards,
    Sagar

  • Automatic return Delivery after return Sales Order

    Hello Experts,
    Is there any setting to do in order to create automatically a return delivery, when saving the return sales order?
    Thanks
    Regards

    Hi Moomoz,
    In the sales document type you have controls.
    In the VOV8 transaction, for the required order type, in the shipping data, you need to have the value "X" or "A" assigned to the field immediate delivery.

  • Cust  for Item number calculation when creating/changing a sales orders

    Hi
      I need to know if the item number when capturing/ modifying  a sales order can be calculated automatically with some route in the customizing,  or do I need to do it with some user exit in the sales order entry?.
    Thanks!
    Regards
    Soraya

    Hi,
    Goto the T.Code "VOV8".
    Select your order type.Details.
    Goto the "Number systems" tab.
    Maintain the value as "10" or "15" like this any number as per your requirement for the field "Item no.increment".
    So that the main item will be incremented by the number you specified here.Suppose you specified the number as "10" the line item numbers would be 10,20,30,.....
    Next is if you maintain the value for the field "Sub-item increment" then the sub items will be incremented by the number you specified here.
    It would be mainly used in the case of BOM.
    To get the numbers from the order,goto the T.Code "SE11/SE16".
    Enter the table name as "VBAP".
    Pass the order number.Execute.
    You will get the all line items with numbers.
    Regards,
    Krishna.

  • How toset maximum order qty in sales order

    Dear Gurus,
                     how to set maximum order qty in sales order level ,  my target qty is 100000 nos,  against this i will do billing  , when it reaches 100000 nos , system should not allow to create outbound or billing , how to achive this.
    regards
    rajakarthik

    That depends on the control you set in Item Caterogy KMN.
    You have following options in Completion Rule:
    A - Item is completed with the first reference
    B - Item is completed after full quantity has been referenced
    C - Item is completed after the target qty is fully referenced
    D - Item is referenced via contract release
    E - Item is completed after full target value is referenced
    So if you set "C" in Completion Rule in Item Category, system will not allow to create Sales Order after the Target Quantity is fully used.
    Hope this helps..
    Thanks,
    Jignesh Mehta

  • Two Purchase Requisitions created on MRP for one Sales Order

    Hi,
    A Sales Order has been created with one schedule line and one delivery date. When MRP is run it creates 2 Purchase Requisitions. The material in the Sales Order is a Prepack Material and has a component attached in the BOM. Please advice as to why the order is splitting when MRP is run and also why 2 PR's are created.
    Thank you for your help.

    Please check in OVZG................assembly type........if u maintained .3 or 4. It may be the reason
    Dynamic assembly order ---SAP HELP DOCUMENT
    If you create a sales order for a material with the 'assembly processing' technique, the system carries out an availability check for the components needed for the assembly. Depending on the results of the availability check, either one or several procurement elements are created. The quantity for a one-time delivery and/or the next possible deadline for a full delivery and/or a delivery proposal with then ext possible deadline are displayed on the availabililty control screen.

  • How can i find differnet output types for a given sales order ?

    hi all,
    answer my question please........?
    how can i find differnet output types for a given sales order ?

    hi
    check in NACO transaction if you have assigned access sequence to your output ytpes and if you have ticked checkbox "Access to output conditions" - otherwise it will not even try to access condition records.
    From help :
    Access to output conditions
    Indicates whether the system determines the output by searching for valid
    condition records.
    Procedure
    If you want the system to search condition records for the appropriate
    output, mark the field.
    Note
    If you leave the field blank and if you are processing sales, shipping,
    or billing documents, the system automatically determines output from
    information stored in the customer master record.
    regards
    ravish
    <b>plz reward points if helpful</b>

Maybe you are looking for

  • Error in populating table data through forms

    I had one SIM REPLACEMENT Form which has a base block table PPBS_SIM_CHANGE. Once all the entires are entered the table gets populated. But some times it seen that the base table does not get populated.Also the form does not gives any error.Pl help m

  • Error during BAPI_GOODSMVT_CREATE

    Hi Friends, I am using BAPI_GOODSMVT_CREATE for the doing GR for the Subcontracting Purchase order and getting the following Error messages. 1   Of the required quantity of material 0006140000001A,1.400 M remain(s) open. Message Id  LB Message No 031

  • Who can tell me how I can put my photo's from my I-Pod in a new computer?

    My computer has Windows 7, but all off my documents are gone. I have almost 4000 photo's in my I-pod, but hoe do I place these photo's back in my computer? Who can help me with this issu? I realy like to have my photo's back, but when I synchonise th

  • I said ok to updating my itunes to the latest version and now it will not open.  I have windows 7

    I said ok to updating my itunes to the latest version and now it will not open.

  • WIA not being triggered

    Hey all! We have Windows Integrated Authentication (WIA) working fine on our dev environment but for some reason can't duplicate it on our Prod servers. By accessing the dev url it auto-authenticates me and I can see the SSO via the IIS log files. Ho