In smartform, dash(-) is printing as hash(#), How to avoid it.

In smartform, I am printing the customer address from KNA1,
In database, it is showing as dash(-)
but, it is printing as hash(#),
How to avoid it.
In debugging also, it is showing as dash(-).
Can u plz write the solution?

Hi Narendra,
"replace NO-BREAK SPACE U+00A0 to normal space
CALL METHOD cl_abap_conv_in_ce=>uccp
EXPORTING
   uccp = '00A0'  "(This is hex value of special char)
RECEIVING
   char = lv_rep.
replace all occurrences of lv_rep in lv_eknam with ' '. 
i use this to remove those spaces in record and appeared as #### in smartforms.
For your case, please pass in hex value for dash - instead.
It should work.
regards
Xiang Li

Similar Messages

  • ALV List Output: How to avoid data statistics from printing in Background

    Hi,
    I am running an ALV list display in Background mode and the output is showing the data statistics first and then the actual output of the ALV...
    I dont want the data statistics to be printed..
    How to avoid that.. is there any to do it...

    Hi Neela
    If you are using the good old REUSE_ALV_GRID_DISPLAY function module, you should be able to suppress the List Info if SY-BATCH is 'X' using the IS_PRINT parameter.
      MOVE 'X' TO is_print-no_print_listinfos .
    Presumably there is a similar parameter using classes.
    Cheers
    Lyal

  • How to avoid the printer device option screen when calling smartform?

    Dear gurus
    i have create a smartform and i have called it from my program.
    i dont want to show the printer device options how can i achieve that ?
    below is the code for calling my smartform.
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
        EXPORTING
          formname                 = 'ZSNAK_VF03_PRINTING'
       IMPORTING
        fm_name                  = smart_form_function_nm
       EXCEPTIONS
         no_form                  = 1
         no_function_module       = 2
         OTHERS                   = 3
      CALL FUNCTION smart_form_function_nm
        EXPORTING
          itab1              = itab1
          temp4              = temp4
          temp3              = temp3
          ref_doc_no         = ref_doc_no
          po_no              = po_no
          printno            = printno
        TABLES
          itab_tab           = itab_tab
        EXCEPTIONS
          formatting_error   = 1
          internal_error     = 2
          send_error         = 3
          user_canceled      = 4
          OTHERS             = 5.
    Regards
    Saad Nisar.

    Hi,
    check this link
    smartforms  -   print option
    Regards and Best wishes.

  • Standard SMARTFORM  for Check Printing/ Payment Advice

    Hi All,
      I have one important question...
    Standard <b>Script</b> Check Print Program =  <b>RFFOUS_C</b>
    Standart Script Layout Name  = F110_PRENUM_CHCK
                                &  F110_D_AVIS
    We have to modify it as per client requirment.
        But I want to know the <b>Standard SMARTFORM & Standard Smartform driver Program for CHECH printing & payment advice ?????????????</b>
    Is there no Smartform for check printing or if exist then please guide me?????????????????

    hi umesh,
    1)anyone can help me,while extending idoc,i added one segment to idoc by extending debmas.that segment has two fields.while populating data to idoc,i am getting problem like VSV0001.exit is not allowing me to write the code.
    plz anyone can help me on this issue.if you did't understand this problem plz tell me how to extend the idoc.more concentration on while populating the data in to idoc.like which function module i have to use.in customer master idoc.debmas.i am new to this environment.plz help me.like complet work till completion of task.
    2)and my next assignment is in smartforms.plz let me know .i was created the screen.according to that screen.i have to make print program.plz tell me how to give the text elements.
    like we have given in scripts, page window and then F9 to give the text elements.and make the program.like that any one can tell me clearly.how to make the complete smartforms programs.
    plz this requirement is very very urgent,plz could you send it for my [email protected]
    advance thanks for your help.
    thansk&regards,
    radhiks.

  • Reg smartform background n print prob?

    hi experts
    i have a requiremnt my sf has to run in backgorund mode by default. how to make it ?
    and i have to put a check box on my selection screen for print if the user checked it print should come . how to get this functionality?
    thanks & regards

    Hi Deepu,
    Refer to my post below thread
    Re: smartform into pdf...
    Regards,
    Sravanthi

  • Smartforms Multiple Page Printing

    Hi Guys,
    I know this could be regular posting from others but it seems that i can't any solutions around.
    The Problem is about printing multiple copies from Billing Document at a time. What user requested was to have the word "Original" in the first copy and the subsequent copies will have the word "COPY". i know that this can be done in SAPScript by modifying the print program but how about Smartforms???
    I tried NAST (IS_NAST) table as passed by smartform but the field ANZAL seemed to return '2' when i need 2 copies. How do i know when is printing the first copy and when is printing the subsequent copies? any status from any tables indicating i am printing the first or the subsequent copies? Tried NACH but it didn't help much neither....
    Please help!!!!!! Thanks a lot....
    Cheers,
    Andrew

    Ok,
    so  transaction SMARTFORMS
    set the name, press CHANGE
    Select Form Interface (in the tree)
    You are in the Import parameter, you have to create one import parameter. Choose a name for example WV_TYPE, with assignment TYPE and reference CHAR1.
    After this just generate the function module.
    And now, when you will show the new function module you have the WV_TYPE parameter that is present.
    So, in the Text_Element or anything else you just have to set in the Conditions the test  WV_TYPE = 'X'   to display this Text_Element
    I hope it's clear (sorry for my english)
    Frederic

  • How to avoid printing a page if does not contain data in smart forms

    deat all,
    here is urgent requirement for me .
    i have 3 pagelayouts in smartforms.
    if there is no data in page 2 how to avoid it from printing(the second page should not come in even if it contains hedings and logo)

    try like this
    if@section:IND=1
    this template
    end ifsectionbreak
    if@section:IND=2
    this template
    end if

  • How to avoid printing a blank page when there is 'no data' in the report.

    how to avoid printing a blank page when there is 'no data' in the report.

    try like this
    if@section:IND=1
    this template
    end ifsectionbreak
    if@section:IND=2
    this template
    end if

  • Cheque printing. How to avoid last page in case of check printing in F110?

    F-68 prints only one page whereas F110 prints 2 pages.
    How to avoid last page in case of check printing using F110? Is there any other option than changing the Script.

    Hi,
    Im also facing the same issue. Generates 1 page with F-58 but 2 pages with f110. Kindly let me know how to resolve.

  • My setup: iMac hardline to Canon i960 printer. Issue: endless printing of the same document. The printer window states that the pinter is in use and there is nothing listed in the Print Queue.  How can I stop printing the document?

    My setup: iMac hardline to Canon i960 printer. Issue: endless printing of the same document. The printer window states that the pinter is in use and there is nothing listed in the Print Queue.  How can I stop printing the document?

    Soution: Delete the printer and add the same printer back in, therefore creating a new print queue.

  • I've got a wireless network with one iMac and a Vista PC, on the Vista PC is through USB a printer connected. How can i print from my iMac to that particular printer ?

    I've got a wireless network with one iMac and a Vista PC, on the Vista PC is through USB a printer connected. How can i print from my iMac to that particular printer ?

    You need to turn on Printer Sharing on both the PC and OS X. I can't help you on Vista but in OS X it's System Preferences - Sharing - check the Printer Sharing box.

  • Standard Smartform for label printing for packages - pls advice

    Hi All,
    I need help in changing a print program ie Standard Smartform for label printing for packages ?
    Standard Driver program: SDPACKDR
    Please provide me with the detailed steps for editing the Std Smartform according to any requirement.
    Points will be rewarded promptly.
    Thanks.

    hi,
    1. The smartform name is SD_PACK_ETIK.
    2.Just copy the standard program into Zprogram and make chanes and assign in NACE with the form.
    3.But,in smartform lable printing is not possible.
    4.you can print barcodes.
    Regards,
    Kumar(Reward if helpful).

  • How to avoid printing a balnk page at the end in the Adobe form output

    Hello Experts,
        Can anyone please let me know as how to avoid/delete the blank page at the end of adobe form output.
    I have a master page with header n footer and a body page seperate.
    For ex.. I have 3 line items and i want each line item to be displayed in the new page. I am able to get this functionality . I have set the settings in the paginationb tab of the subform as
    "after " Go to Next content Area" " but an extra page is getting printed at the end. 3 + 1 extra pages total. I want to avoid this blank page. I have checked the Allow page break with in content box but it is still not working.
    Can someone guide me as how to solve this problem.
    Any help is appreciated. Thanks in advance.
    Regards,
    Mahesh

    hey mahesh,
    this normally happens because of triggering a new page manually, what u would have done is that you would be checking for the new line item and when this condition is satisfied , you are triggering a new page , the reason for the last blank page is that the condition gets satisfied ( beacuse the line item number changes from the last line item no to  initial or space).
    This can be handled by doing the following
    By knowing the number of line items by the following stmt.
    describe table itab lines v_lines.
    Now you have the value in v_lines.
    use a counter in ur form and keep it increasing it by 1  ( say v_sno ) ie v_sno = v_sno + 1 in the loop of ur internal table.
    ONLY WHEN V_LINES IS LESS THAN OR EQUAL TO V_SNO , TRIGGER THE NEW PAGE
    this should be along with the condition which u have already put, ie when ever line item no changes
    when both these conditions are satisfied , then only the new page will be triggered.
    Hope it helps,
    Reward if useful,
    Regards,
    KP.

  • How to avoid sample printout in check printing

    hi
    in fico check printing i have copied the standard script F110_PRENUM_CHCK
    and devloped a z  to add the company logo
    the problem with the printout is that it displays an additional sample printout on first page
    followed by the required print on the next page
    how to avoid the sample printout .
    the check printing is done through f-58
    thanks
    regards
    darshan

    Hello Darshan,
    In F-58: "Output Control" block there is a checkbox for "Test Prinout".
    Plz uncheck the box & you will not get the sample print out.
    Hope this helps.
    BR,
    Suhas

  • How to avoid printing of void cheques

    Hi Friends,
    In the check printing program FBZ5,  whenever there are more than 25 line items, the first two cheques are getting cancelled and the third cheque is getting printed and thereby wasting the first two cheques.
    I would like to know, how to avoid printing of such cancelled cheques.
    TIA.
    Regards,
    Mark K

    hi
    good
    you can use like this when you r going to FBZ5 tcode in the right hand side there is a tab called Output Control, there if you check the test print out it ll give you this result
    Indicator: Test Print
    If you select this indicator, the print program carries out a test print (for purposes of fine-tuning the printer output) before printing the actual payment media.
    so before taking the original print out you can able to understand which is going to be cancel and which one is going to print .
    Reward Point If Helpful
    thanks
    mrutyun^

Maybe you are looking for

  • Multiple projects in one web role using Azure cloud?

    How to run One webrole with multiple projects using azure? In my solution One WCF service and ane website i want run both on one solution, How to run both in one domain? anilbabu

  • How do I change the email associated with my Firefox account on my computer?

    In the right hand corner where my drop down box is - it is showing an old email address I am getting ready to cancel. I have a new email address that I would like to enter but I cannot seem to find the right place to enter. I found the place to chang

  • Manual creation of Oracle RAC Database

    Hello Guru's, I successfully installed Oracle Grid(clusterware) and Oracle RDBMS 11.2.0.1.0 for RAC containing 2 nodes on Linux 5.3 64 bit. All the clusterware services and ASM instance are running fine on both nodes. Now im planning to create databa

  • Use an external hard drive as your system drive?

    I use both my iMac (studio) and my white MacBook (live) with Logic and Ableton Live. This has two disadvantages: I have to synchronise anything I do (install updates, copy presets etc.), and the MacBook is somewhat unstable (= crashes sometimes), may

  • NetBoot a Mac OS X 10.4 from Mac OS X Server 10.3

    Is it possible ? each time I start netbooting, the iMac G5 displays the spinning globe under the apple for a few seconds and then a kernel panic occured : +Unable to find driver for this platform: PowerMac8,1+ My image disk was made with DeployStudio