Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Negative amount on sales document

Former Member
0 Likes
4,677

Hi ,

Based on the document type of sales document required to be created ,debit credit memo/sales order/credit memo are the different types of business objects.

The FM used to create sales document is SD_SALESDOCUMENT_CREATE.

Requirement : I need to create a sales order with negative amount.

1. when I use the above FM for BUS2096 - I am able to create a negative amounted SD in R3. Perfect

2. when I use the same FM to create BUS2094 / BUS2032 type of SD with a negative amount, the value stored in SD is

changed to a positive value.

Is this a config issue , or do i need to search for any user exits where I could force a negative value for the SD.

Thanks in advance.

Edited by: Thomas Zloch on Mar 11, 2010 4:28 PM - replaced "-ve" by "negative"

Hi ,

Based on the document type of sales document required to be created ,debit credit memo/sales order/credit memo are the different types of business objects.

The FM used to create sales document is SD_SALESDOCUMENT_CREATE.

Requirement : I need to create a sales order with negative amount.

1. when I use the above FM for BUS2096 - I am able to create a negative amounted SD in R3. Perfect

2. when I use the same FM to create BUS2094 / BUS2032 type of SD with a negative amount, the value stored in SD is

changed to a positive value.

Is this a config issue , or do i need to search for any user exits where I could force a negative value for the SD.

Thanks in advance.

Edited by: Thomas Zloch on Mar 11, 2010 4:28 PM - replaced "-ve" by "negative"

7 REPLIES 7
Read only

Former Member
0 Likes
1,969

Hi Neelima,

I'm trying to make a sales order with negative amount, how did you do that?

Thank you,

Fábio Galvã

Read only

Former Member
0 Likes
1,969

You didn't say whether Dollar or Quantity. I'll assume quantity. A Credit Memo with a negative amount would then be a Debit Memo, wouldn't it? (-1 X -1). SAP handles the quantities as positive numbers. You'll see that throughout the system. There are fields that denote positive/negative for document amounts, but the amount is positive. Likewise, SAP programming handles a credit memo as a "subtraction" of a positive number.... I don't think I ever saw a sales document with negative quantities....you can't return -3 items....but you can return 3 items for a credit memo.

Read only

Former Member
0 Likes
1,969

Thanks for all your help. I had got a request to look into bapi for sales document create if -amount could be passed as possible through va01 .

I have managed to resolve this through configuration.

Read only

Former Member
0 Likes
1,969

Hello Neelima,

could I ask you how did you solve this?

Thank you

Read only

0 Likes
1,969

Hi Fabio ,

I resolved this issue myself. whether a field can have a -ve / +ve value for a condition type is set in SPRO . If the configuration is set as +ve and we try to force a -ve value on R/3 screen or through BAPI call ,the value will be converted to a +ve.

After the functional team rectified the spro setting for the specific condition type( as per business requirement) , BAPI for sales document create saved the values as -ve .

Hope this helps.

Neelima

Read only

0 Likes
1,969

It helped and a lot.

Thank you Neelima. Problem solved.

Read only

Former Member
0 Likes
1,969

I had the same problem, and I would like to answer the solution in case somebody else has same issue.

The problem is related with configuration. If you set up the credit note as a credit note and the item category is not marked as return; the pricing function multiply to -1 changing the amount to negative.

Field: VBAP-SHKZG

Set up the item category as return if the position is related with a credit note (also if it is without stock movement).

Regards,

Jorge Rosa.