cancel
Showing results for 
Search instead for 
Did you mean: 

Condition Pricing Unit truncation from 10,000 to 0,000 ?

Former Member
0 Kudos


Hi,

I am facing issue in standard program RV16ACHD (change document for condition).

when we are running the program for Transaction VK11, it is truncating  10,000 to 0,000.

It is happening in 4.7 and 6.0 both, Please respond if someone has any solution for that?

Regards,

Amit soni

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos
Adding some more details to my post :
After debugging in SAP 4.7 version I found that In FM 'SD_CONDITION_CHANGE_DOCS_LOAD' , there is include 'LSCD2F01' and here some shift opration is truncating if it is a big value like mine (10000). Below is the code @ line 545 :
Same issue is happening with standard program RSSCD100 also.
ELSE.
        WRITE pp16 TO value_out.
        length = 254 - <f_tabinfo>-outputlen - 1.
        SHIFT value_out BY length PLACES.
        h_value = value_out.
        ASSIGN h_value+<f_tabinfo>-outputlen(1) TO <l_h>.
        IF <l_h> = '-' AND h_value(1) = space.
          SHIFT value_out BY 1 PLACES.
        ENDIF.
      ENDIF.
I didnt find  any useexit to fix this issue. I am in sap 4.7 now.
JL23
Active Contributor
0 Kudos

Since you discovered the error in a standard program you should search for a SAP note in https://support.sap.com/kb-incidents/notes.html

If you cannot find any related to this issue then open a call at SAP support.

The price unit is a 5 digit decimal field with zero decimals.

I think SAP missed the portion that presenting a 5 digit long value gets an extra separator and actually needs a length of  6 in the output  to be presented in its full content to the user.