Problem in printing amount in different currencies in adobe form

Hi All,
I have a requirement to print the amount as space for thousand seperator and comma for decimals.
I have set the pattern format such that the amount is printing in below format as required.
Locale---Italian.
Space as thousand seperator and comma as decimal seperator.
for example 1 234,45
As some of the Currencies will not have decimals, now users would like to print amount without decimals. For example in my case amount  printing in KRW ( Korean currency ) is also similar to the above format which is wrong.
for example Now amount is printing as 55 000,00. But actually it should be 550 000. Similarly for JPY currency also, as it doesnot haves decimals ( checked in TCURX table ).
I have written some logic in the interface. below is the logic.
WRITE:
    wa_mhnd1-wrshb to wa_item-wrshb CURRENCY WA_ITEM-WAERS.
*READ TABLE lt_tcurx INTO lwa_tcurx WITH KEY currkey = wa_item-waers BINARY SEARCH.
  IF sy-subrc  = 0.
  IF lwa_tcurx-currdec = '0'.
  REPLACE ',' WITH SPACE INTO WA_ITEM-WRSHB.
  REPLACE ',' WITH SPACE INTO WA_ITEM-WRSHB.
  else.
   REPLACE ',' WITH SPACE INTO WA_ITEM-WRSHB.
    REPLACE ALL OCCURRENCES OF '.' in  wa_item-wrshb WITH ','.
endif.
ENDIF.
a. when the write statement gets executed amount will be in ,. ( 1,234.45 )format. Then my logic gets executed correctly. In this company code is CH10 ( EUR ) and KR10.
b. But sometimes after the write statement gets executed amount will be in ., format ( 1.234.45 ). In this case my logic works, but gives the wrong value. In this case company code is VN10 ( EUR )
In both the cases currency is EUR.
Will the decimal format change accordingly based on the company code code currency.Can anyone please tell me why write statement behaved differently.
Do I need to change any locale in the adobe form, or any other logic to be written in interface. ?  I am trying it out from long time, but not able to fix it. I will have to fix it ASAP.
Can anyone kindly please help me how to achieve this ?
Thanks and Regards,
Karthik Ganti.

Hi Ayan,
Thanks for your reply.
I have already made the locale to default in adobe form and tried. In the interface I have written the logic to print the amount in particluar currency.
WRITE:
    wa_mhnd1-wrshb to wa_item-wrshb CURRENCY WA_ITEM-WAERS.
*READ TABLE lt_tcurx INTO lwa_tcurx WITH KEY currkey = wa_item-waers BINARY SEARCH.
  IF sy-subrc  = 0.
  IF lwa_tcurx-currdec = '0'.
  REPLACE ',' WITH SPACE INTO WA_ITEM-WRSHB.
  REPLACE ',' WITH SPACE INTO WA_ITEM-WRSHB.
  else.
   REPLACE ',' WITH SPACE INTO WA_ITEM-WRSHB.
    REPLACE ALL OCCURRENCES OF '.' in  wa_item-wrshb WITH ','.
endif.
ENDIF.
I dont know why the above write statement is behaving differently. In one case the value is shown as 1,234.00, but in another test case it shows 1.234,00.
In both the test cases the currency is 'EUR'. In case if the above write statement works correctly, my issue will be solved.
Can anyone tell me why the write statement is behaving differently. Will the currency be dependent on any other factor ( for example company code,customer )
I would like to fix this ASAP.
Thanks and Regards,
Karthik Ganti.

Similar Messages

  • Print the attachements added in the adobe form

    Hi,
    I added the attachments in the adobe form.But when ever i print this adobe form , i want to make sure that the attachments are also printed in addition to the original adobe form.
    Is there any automatic way of doign it or any alternatives to avoid adding it as an attachment ,
    i have  a word document stored in the database.
    so when ever i print my form need to print the document sthat are stored in the database also.
    Please help me.
    Regards,
    Sasi

    "Discrepancies"?

  • Problem with printing amounts in SAP Script

    Hello All,
    I have multiple line items to be printed in which one of the column contains amount value. I have a problem printing amount value aligning it to the right of the column.
    The amount is printed as below
    1.202,00
    18.202,00
    19.202,00
    I want to print 1.202,00 right justified so that it would be aligned to the other amount values.
    Pls help me out.

    Sorry:-)
    if you define the line format with the name RJ(right justified) you must use this like follow.
    RJ|     &12334,11&
    and not
    <br>&12345,11& </>
    now is that clear?? is hard to explain
    Marco

  • Printing to multiple trays from an Adobe form

    Hi,
    Does anyone know if it's possible to create a button on an Adobe Form that will send a print job to multiple trays? We have several Adobe forms that need to be printed in triplicate on different coloured paper. Ideally we'd like a button on the Adobe form that will send the print job to all 3 printer trays.
    Apologies if this is a basic question, hope someone can help.
    Thanks.

    Ok thanks, that's beyond my skill set unfortunately! I was hoping it might possible in similar way that macros are used in Word/Excel.
    Thanks anyway.

  • How to avoid Print pop-up while using a Adobe form.

    Hi Experts,
    I am calling a adobe form from a BAPI.I am using the following function modules FP_FUNCTION_MODULE_NAME and CALL FUNCTION fun_name. But when I try to execute the BAPI a print preview pop-up appears.Please let me know the steps to avoid the print preview pop-up while execution of the BAPI.
    Thanks in Advance.
    Warm Regards,
    Arun.

    Hello
    I don´t understand the connection between BAPI and the printing program. I guess - at least that is what I have done - is to generate the form when creating and invoice or something, then I could understand.
    When you ask for GETPDF = 'X' then you always get the PDF data back and not the popup.
    Or if you would like to display the print preview without a print settings popup. Or variants...
    FUNCTION ZPDF_SET_OUTPUT_MODE.
    *"*"Lokální rozhraní:
    *"  CHANGING
    *"     VALUE(FP_OUTPUTPARAMS) TYPE  SFPOUTPUTPARAMS
    fp_outputparams-dest     = 'ZPDF'.
    fp_outputparams-nodialog = 'X'.
    fp_outputparams-preview  = 'X'.
    ENDFUNCTION.
    regards Otto

  • Problem with text formatting within a table in Adobe Forms

    Hi all,
    I have a table on a non-interactive Adobe form (which is a copy of the standard expense form PTRV_EXPENSE_FORM.  The table in ABAP has a text field with CHAR50.  On the form, the text field has a width which allows approximately 35 characters.  Therefore the text wraps onto a second line.  My problem is that the text is not formatted and words are just split randomly.
    For example:
    The fox ran across the fields and into the woods.
    would be output as:
    The fox ran across the fields and i
    nto the woods.
    How can the text be formatted to only output complete words?
    I have tried defining the textfield as text only and rich text, but nothing changes the output.
    Interestingly, even if I change the font size from say 10 to 8, the text is output the same, even though there is enough space for at least one more word on the first line.
    Has anyone else come across this problem?
    Thanks,
    Patricia

    Hi Syed
    The table is IT_RECEIPTS_ADD_INFO, field VALUE_CHAR.  In the form it is called Receipts_addl_info.
    I have just found out that the data is being re-formatted in the interface.  That caused the problem.  Many, many thanks for your help. 
    Best regards
    Patricia

  • Print preview need to hide for Adobe form

    hi frineds
      I have created a function module which converts the adobe form in pdf using the function module FP_FORMOUPUT, When ever i execute the function module it ask for print preview. I dont want print preview. Since i need to use this custom function module in my worklfow. If its a smartform i can hide the print preview nodialogue = 'X'. But there is no such option in Adobe form. How can i achieve this. Am using ABAP not webdynpro.
    Regards
    vijay

    Answer there is a function module FP_JOB_OPEN which is used to hide print preview, dialog and so on. This function module only i was looking on. I got by myself.

  • Report painter question regarding amounts in different currencies

    Hi,
    I have a report created in GRR2 using library 1VK. We display the total costs SWOG here but have the request to see in addition these costs in USD simulteanously. For that I included the basic key figure SWZG. When executing the report there is now a new selection parameter Target currency, Exchange rate date and Exchange rate type. I can see a new column with USD values, so far so good. But when I check the calculation I find that it can't be right, it differs from what it should calculate.
    If I execute the report and select currency tranlsation of the key figure SWOG with exactly the same exchange parameters as above I'm getting different values in USD which match my manual calculation.
    Any idea why this happens? What do you recommend to have both currencies ate the same time on the screen?
    Thank you
    Exberliner

    hii sanjeev.
    try this,
    FM - > spell_amount
    OR
    data: words(50) type c.
    call function 'HR_IN_CHG_INR_WRDS'
         exporting
              amt_in_num   = '100000'
         importing
              amt_in_words = words.
    write:/ words.
    OR
    RF_SPELL
    rgds
    anver

  • Totaling Different Currencies in Smart Forms

    Hi Experts,
    I am able to print smart form in the form of table ,
    Country | Employee No. |Visa Type |Amount| Currency
    USA        1                     B1             500       USD
    USA        1                     L1             200       USD
    UK          1                     WP            100      GBP
    UK          1                     BV             500       GBP
    NL          1                      BV             500      EUR
    DK          1                     BV             100       EUR
    But I want to sum up differnet currencies total wise.
    Please advice.
    Regards,
    IFF

    IFF,
    can you not create program line in Smartforms and use
    At end of for summing up?
    Amit.

  • Printing text on last page of adobe form

    Hi abapers,
    My requirment is that i have to print a particular text in the footer.
    But this has to be printed only on the last page.
    how do i go about doing this.
    thanks in advance.

    Hi Aditya,
    Give the condition as.
    If &SFSY-NEXT-PAGE & = 0.
    print what text u wanna to print.
    endif.
    Best Regards,
    Flavya

  • Reg: Arrow to navigate different contracts in adobe form

    Hi,
    When there are multiple contracts, multiple reports are generated and there is an arrow to navigate between the contracts  in top of PDF form how can we add a counter to show what that the user is viewing contract 1 of 6
    How can we handle this.
    Regards,

    Thanks for the reply
    No.. i'm not looking for the page numbers.
    I have the 2 contract no..
    For eg: for 1st contract no has the 4 pages of details and 2nd contract no has the 2 pages of details..
    now i want to display in the top of 1st page of contract no:1 is 1of 2 and the top of 1st page of contract no:2 is 2 of 2..etc n of n
    in adobe form, we have the navigation keys in the top for next '>'  '>|' or for previous '<'  '|<'.
    Regards,

  • Current page printing problem - while repeating pages : Adobe forms

    Hi Experts,
    I have a problem in printing current page number of an adobe form.
    My requirement is that , my form got 2 pages. On first page i am not printing page numbers and excluded from numbering.
    Numbering starts from second page. The second page needs to be repeated twice.
    In this case my page printing should look like :
    First page - no page number
    second page - 1 of 1
    Third page - 1of 1 (as it is a copy)
    IF second page extends to multiple pages (eg.. 2)
    First page - No Page no
    First instance of second page - 1of 2 , 2 of 2
    Second instance of second page - 1 of 2 , 2 of 2 . Presently it is printing like : 3 of 2 , 4 of 2. I need to initialize current page count. I could able to set the total page count 2 via variable from print program. But while printing the second instance, I am not able to initialize the current page count.
    I have seen the following thread which exactly talks about my problem but with out any solution.
    Re: Adobe Forms - Page Count
    Can any one help me in this regard.
    Thank You,
    Regards,
    Naresh.

    Hi,
    I am not sure how your page design looks like.
    Assumption:
    During runtime, ONLY 1 page for Page1, multiple pages for Page2 and Page3, same number of pages for Page2 and Page3.
    This is what i did:-
    I have 3 pages:
    Page1: With NO page number: ONLY 1 page
    Page2: With page number: Multiple page
    Drag the "Insert -> Custom -> Page n of m"
    - TextField: "CurrentPage",
    -- replace the original script: "this.rawValue = xfa.layout.page(this)" with "this.rawValue = xfa.layout.page(this) - 1"
    - TextField: "PageCount",
    -- replace the original script: "this.rawValue = xfa.layout.pageCount()" with "this.rawValue = ( xfa.layout.pageCount() - 1 ) / 2"
    Page3: With page number: Multiple page
    Drag the "Insert -> Custom -> Page n of m"
    - TextField: "CurrentPage",
    -- replace the original script: "this.rawValue = xfa.layout.page(this)" with "this.rawValue = xfa.layout.page(this) - 1 - ( xfa.layout.pageCount() - 1 ) / 2"
    - TextField: "PageCount",
    -- replace the original script: "this.rawValue = xfa.layout.pageCount()" with "this.rawValue = ( xfa.layout.pageCount() - 1 ) / 2"
    Good luck.

  • Amount in Local Currency of documents of material  (mov 251)

    Hello Gurus,
    We have a problem in the Amount in Local Currency of documents of material  (mov 251), resulting from the idoc WPUUMS01. When is the posting date before the current period.
    example:
    Material X
    August  Moving Price  150u20AC >>Total Stock 10 Total Value1500u20AC
    September Moving Price  181.82u20AC >> Total Stock 11 Total Value 2000u20AC
    If we integrate an August sale, the system registers the document with the cost of September (Amount Local Currency 181.82u20AC).
    After registration of the document is the stock with the following values
    August Total Stock 9 >>Total Value 1318,19u20AC
    September Total Stock 9 >> Total Value 1636,36u20AC
    If we manually register the movement 251 by MIGO or MB11  with a date of August, the system records the cost value of 150u20AC (MAP August).
    Any suggestion?
    Regards,
    Vera Monteiro

    Hi,
    Please check SAP report-S_P00_0700139 this will help to investigate exact reason for change of moving average . This is one of the best report of sap ,it will give you moving average price based on every transaction happened in SAP.
    Hope this will be helpful.
    Thanks & Regards,
    Sandesh Sawant

  • Print Adobe form pages on different printers based on the condition

    Hi All,
    I am new in Adobe forms. We have requirement to print first 5 line items in adobe form (which are printing on first page) on one printer and remaining pages on another printer.
    What solution I was thinking was, in print program call the adobe form twice with flag as a importing parameter. For the first call the flag value will be set and for second run a blank value will be passed in flag.
    If flag is set then call make the first page "visible" and if flag is cleared then "hide" the first page and make the remaining pages "visible".
    But as its an item data which is designed on "Design" view I am not able to write a script to hide the page. Any suggestion you can give to resolve this issue.
    Thanks,
    Mihika.

    If it is OK to have the default printer defined/maintained in the user master (like tcode Su01 or System > User profile > Own data, Then the standard logic may suit your needs. I think you will need to undo some config for the whs. Te standard logic works as detailed below. the system needs to get to #4 below, then the SAP userid printer will be selected.
    the system proceeds with automatic printer determination as described below Config Tcode is OMLV.
    1) First the system checks whether a printer is set in the configuration "Printer-Movement". If so, the printer determination is complete at  this point.                                                         
    2) If not, the system uses the parameter "PriSrcTyp" defined in the configuration "Printer-Movement" to decide how it will proceed.  If the parameter is set here, the system checks if a printer is defined in the setting "Printer Picking Area" and then proposes this printer.                                                            
    3) If the system finds no printer, it searches in the setting "Printer - Storage Type" and uses this, if a printer is set.                   
    4) If the system cannot find a printer using the methods described above it selects the printer defined in the user master of the user currently logged on.                                                
    5) If no printer is defined here, the system automatically proposes LP01
    This writes the data to the spool file.

  • Printing all Adobe form in one attempt

    Hello Experts,
       I have one print program where I am generating Adobe forms. If I enter 10 pernrs in the selection screen.. I will get 10 adobe forms in the output. By clicking right/left arrow in the application tool bar which appears if there are more than one form generated, I can see all forms and I can print each form.
    Now the problem is, I got the requirement where I can click on one push button or icon on the output screen and It should print(sending to Printer) all 10 forms in one attempt.
    Please let me know if you need any further information on this.
    Thanks,
    Naveen Inuganti.

    can you please elaborate what exactly do you need?
    Say we developed report to generate pay slip for employee.
    What my program is doing now..
    I can enter one or more employee IDs in the selection screen and I can see one or more statement in the output
    If we have more than one statement, I should click on right / left arrows in the application tool bar
    As you know we can take print out for each form
    Now user wants to have  push button, Where he/she can click on it and get all forms print.
    Note that its not output display.. its all about paper print outs. Still we can display statements separately. In fact we should.
    Thanks,
    Naveen.I

Maybe you are looking for