SAP-Forum.ORG
   
This web site isn't affiliated with, sponsored by, or approved by SAP AG. Is only a SAP users community.

Go Back   SAP-Forum.ORG > SAP Forums > SAP ABAP

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!
Reply
 
Thread Tools Display Modes
  #1  
Old 01-31-2012, 08:57 PM
SAPMM SAPMM is offline
Senior Member
 
Join Date: May 2010
Location: Virginia
Posts: 238
Default Sales Order - BAPI_SALESORDER_CHANGE Error.

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
Reply With Quote
Sponsors
  #2  
Old 01-31-2012, 08:59 PM
Golfi Golfi is offline
Senior Member
 
Join Date: May 2010
Location: Delaware
Posts: 824
Default Re: Sales Order - BAPI_SALESORDER_CHANGE Error.

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
Reply With Quote
  #3  
Old 01-31-2012, 09:01 PM
SAPMM SAPMM is offline
Senior Member
 
Join Date: May 2010
Location: Virginia
Posts: 238
Default Re: Sales Order - BAPI_SALESORDER_CHANGE Error.

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
Reply With Quote
Entre a los Links relacionados
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT. The time now is 09:20 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Forum Design By inferno