‎2011 Apr 18 10:57 AM
HI All,
My requirement is to create a screen program in which details of the item from VA02 t.code are present, when i press a check mark and save it then the particular price of the item should get updated in the VA02. now the price update and release is carried out manually for each material separately and now it has to be done just by viewing it through a single screen.
My question is .. is there any possible way to link my dialog program to the VA02 so that when i press "save" in my report, it should automatically approve the price in the VA02 order.
eg: if the discount of the item needs to be approved for each item manually, when i press update or save in my report for that particular change, then in the VA02 it should get automatically updated. Please help me out with the code and process.
‎2011 Apr 18 12:17 PM
Hi,
Try using this BAPI_SALESORDER_CHANGE.
Make the update flag as 'X' and the field which you want to update as 'X'. And then pass the updated value to the bapi with VBELN as a key. Then commit the transaction using BAPI_TRANSACTION_COMMIT. Hope this will solve your problem in updating the price.
Thanks and Regards,
Rinzy Deena Mathews
‎2011 Apr 18 2:55 PM
What exactly is your release procedure and are you using the 'Update' button to re-price the order item? What have you changed in the pricing at that time so that the line item will price differently?
You will nedd to change some value on the line item (such as a block release) and have your pricing condition/requirement set up accordingly. If you use a non-standard field for the release, you will also need to use the re-oricing user exit and make sure your item category is set up to reprice according to the user exit setting.