cancel
Showing results for 
Search instead for 
Did you mean: 

Pricing error while creating sales document

former_member431487
Participant
0 Kudos

Hello gurus,

We have a requirement to automate sales order creation. We are creating sales order through BAPI. BAPI calculates Base price condition type (PR00) as a percentage of internal order value and updates it in sales order condition tab. Due to this reason we are not maintaining condition record for PR00 else it will appear twice in sales order - one through the condition record and other through BAPI.

Now the problem is that when BAPI creates the sales order, in the initial screen it gives a warning that PR00 condition is missing since condition record is not maintained but subsequently updates the PR00 value from internal order in the sales order condition tab and saves the document. So even though sales order and billing document is created with PR00 by BAPI we are still getting PR00 missing warning (not an error).

Is there any way to suppress this warning? Can we control this by adding a routine in the pricing procedure that it should not throw a warning if the PR00 value is picked from BAPI instead of condition record or any such logic.

Help would be really appreciated.

Thanks in advance,

Karan

Accepted Solutions (0)

Answers (2)

Answers (2)

former_member431487
Participant
0 Kudos

Hi Narendra and Kashif,

PR00 is ticked as mandatory in Pricing procedure since there will be scenarios where sales order will be created manually and in such case there should be a check to stop user from saving the order without entering the base price.

My question is that whether there is a way to keep PR00 as mandatory in Pricing Procedure and still get the value from program without getting any warning.

Appreciate your response.

Regards,

Karan

Shiva_Ram
Active Contributor
0 Kudos

What is the error message number? Can you check your incompletion log? Normally when in the pricing procedure, if PR00 is set as mandatory, then it gives hard error. So I am not clear, when you say warning message is popping-up.

Can you copy+paste the screen shot of the error message and message number, so that further guidance can be provided.

Regards,

former_member431487
Participant
0 Kudos

Hi Shiva,

Please find screenshot of the error message. This comes in the first screen when sales order is created. After this BAPI updates the PR00 vaue in conditions tab but the warning still remains that PR00 is missing (but document ets saved)

The reason this is happening is because system is checking for condition record for PR00 but it is not maintained. So even after updating PR00 value from BAPI, system is still giving this warning since condition record is not maintained.

Is there a way to make the system bypass checking condition record for PR00 and checking condition record for other condition types only which are not updated from BAPI?

Regards,

Karan

former_member184065
Active Contributor
0 Kudos

Dear,

Actually,when you check Field " Required "in V/08 then if that condition type is missing in Sales Oder or else if there is not condition record with valid validity period hen system will give you this kind of problem until you fill u this .

If you have any doubts please let me know.

Thanks,

Naren

kyusufzai
Participant
0 Kudos

Hi Karan

You can remove REQUIRED Tick against PR00 in pricing procedure.

Thanks