Skip to Content
0
Former Member
May 16, 2011 at 01:59 AM

Problem of Discount Format at Order Confirmation Form /SMB40/SDORC_A

24 Views

Hi all,

at the Footer of the MAIN Window, there is a ABAP Code block, "HD_FORMAT_QUNATITY", under "HD_TAX_COND" as:

  • This piece of code can change the percentage

  • value KOMVD-KBETR to the right format

  • Example: customer discount "4 percent"

  • in the database table, it is stored as 40.00-,

  • The following code can get the right format

  • 4,000-%

WRITE <KO>-KBETR CURRENCY <KO>-KOEI1 TO GV_KBETR .

It seems GV_KBETR will be shown on the print-out with correct value format.

However, I cannot find such ABAP code under HD_SUM_LINE. The format for Header Condition is a wrong one on the form, like 4% become 40.00-%.

Can anyone tell me what is the problem?

Cheers,

Simon