![]() |
|
|||||||
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Schedule lines creation with BAPI_SALESORDER_CHANGE | Ramma | SAP ABAP | 2 | 12-21-2011 09:18 PM |
| Sales Order Runtime Error | Ramma | SAP SD - Sales & Distribution | 2 | 10-03-2011 10:08 PM |
| No update of sales order 4xxxxxxxx from purchase order (error V1 154) | Rampa | SAP SD - Sales & Distribution | 2 | 09-13-2011 06:12 PM |
| Error while creating Order - ERROR S:\SAPAPO\RRP3 | Ramma | SAP PP - Product Planning | 2 | 09-08-2011 05:49 PM |
| Free goods determined in Delivery over Order Quantity in Sales Order Item | Ramma | SAP SD - Sales & Distribution | 1 | 09-08-2011 01:26 AM |
| Aprenda SAP! |
|
|
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Hi all,
I would want to compare the system price and the expected price for a sales order and in case of any discrepancy, set a 'reason for rejection' code. I'm using the bapi 'BAPI_SALESORDER_CHANGE' to make changes to the sales order (setting the rejection code). This is working fine in cases where there is some value for both the prices but is throwing an error while the system price is null. Is there any way to overcome this error and still set the rejection code? I pass all the required information to the BAPI, - Sales Order Number - Update Flag in HEADER_INX (U) - Item Number and Reason for Rejection in ITEM_IN - Item Number, Update Flag, Reason for Rejection (X) in ITEM_INX However I'm able to manually set RFR even if system price is null but not through BAPI. Is there any additional details that needs to be passed. Error Details: Error Message: No Sales Price (YYYY) for material XXXXX line IIII. Order will be incomplete. Message no. ZZ054 Diagnosis The system could not determine a Sales Price (YYYY) for material 1. line 2.. System Response The entire order will become incomplete when you save it. The issue is that I'm not able to use the BAPI to change the sales order and set RFR while I'm able to do that manually via VA02. Is there any possible way to overcome this? Thanks and regards, SAPMM |
| Sponsors |
|
#2
|
|||
|
|||
|
Hi SAPMM,
I suggest you do a where used list for the message and try to figure out why the BAPI is issuing it and not the transaction. Regards, Golfi |
|
#3
|
|||
|
|||
|
Hi Golfi,
I have checked the custom coding and the condition under which the message is popping up. I'm curious to understand why this is bypassed while setting RFR using VA02 while not in BAPI. It does not stop here while debugging. Also, once the RFR is set using VA02 and if I try to modify anything in the sales order or revoke the RFR, I get to this custom code. Thank you for your valuable time. Regards, SAPMM |
| Entre a los Links relacionados |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|