cancel
Showing results for 
Search instead for 
Did you mean: 

Probelm in printing of net price in PO print

former_member182379
Contributor
0 Kudos

Hi,

  In ME9F, we are facing problem of amount printing in case of non INR cureency   the actual PO value is AS BELOW

Net price    :   80.0000  USD Per 1 NO

Total value  :   2,880.0000  USD

but while printing system si shoing as below

Net price    :   80,0000  USD Per 1 NO

Total value  :   2.880.0000  USD

,  is coming as .  also the problem is not for all the Po in some Po we are facing this problem  , I have check thread on the same issue  some has given sugg. to chnage the Decimal Notation setting in user own data,  i try with all three options  X, Y and blank, but still the problem is same.

  While debuggin i have check that  the items are pass from table  EKPO,  same table is use in program  the value before the write form call in the program is OK with proper '. place  but while coming in sap script it is shoing as ,  insted of .

regards,

zafar

Accepted Solutions (0)

Answers (4)

Answers (4)

former_member16553
Active Participant
0 Kudos

Hi

     Please check the decimal notation , In country settings .

madhu_vadlamani
Active Contributor
0 Kudos

Hi Zafar,

http://scn.sap.com/thread/3190807

Is it working.

Regards,

Madhu.

Former Member
0 Kudos

Is your Form custom?

Can you see any special formatting for Netprice field.

Try to use set country in the script and check

SET COUNTRY 'US'

Check with this also, Go to your form where the amount is printing and give &NETPR(K)&.

Thanks,

Shambu

Former Member
0 Kudos

Hi Zafar,

You can try this in driver program.

WRITE <value> CURRENCY <curr_key> TO <char_field>.

OR

* Convert Internal SAP value to Currency value
  data:      p_intval like wmto_s-amount.   "Internal Amount
  data:      gd_disval  like wmto_s-amount. "Display Amount

  call function 'CURRENCY_AMOUNT_SAP_TO_DISPLAY'
       exporting
            currency        = po_tab-waers
            amount_internal = p_intval
       importing
            amount_display  = gd_disval
       exceptions
            internal_error  = 1
            others          = 2.

Thanks

Abhinesh

former_member182379
Contributor
0 Kudos

Hi,

Thanks for reply,  I have solve as per suggestion by doing the modification as below.

   FORM SAP_TO_DISPLAY_NETPR.
  CLEAR : PRICE.

  data:      p_intval like wmto_s-amount.   "Internal Amount
  data:      gd_disval  like wmto_s-amount. "Display Amount

   p_intval = ekpo-netpr.

  call function 'CURRENCY_AMOUNT_SAP_TO_DISPLAY'
       exporting
            currency        = EKKO-WAERS
            amount_internal = P_intval
       importing
            amount_display  = gd_disval
       exceptions
            internal_error  = 1
            others          = 2.

        PRICE  = gd_disval.
        CONDENSE PRICE.
  CLEAR : gd_disval,p_intval.

ENDFORM.

regards,

zafar