New line in smart form CL_ABAP_CHAR_UTILITIES= New line

Hi
We are trying to display new line in a table cell using the cl_abap_char_utilities=>newline but it display 'c' instead of newline while  concatenate the text and also we are trying with  cl_abap_char_utilities=>cl_rf but it display '#' instead of newline .
we want to display a new line while concatenate the string in a table cell.
Please provide us exact functionality to display new line.
Thank You
Swtha.c

HI friend,
I think these links will be helpful for you.
Link : [Displaying Contents in Cells|http://help.sap.com/saphelp_nw70/helpdata/en/fa/0c1447d30111d3b568006094192fe3/content.htm]
Link : [Specifying Table Output|http://help.sap.com/saphelp_nw70/helpdata/en/0b/5da4de2cf511d5b692006094192fe3/content.htm]
I too studied all the documentation of the class which you have mentioned and its two methods. It should work fine, but you are facing an issue. So try using the methods which they have specified in the above links and see are you arriving to your required solution.
Revert back to me if you have any queries.
Thanks,
Sri Hari

Similar Messages

  • New Smart form for Tax calculation

    Dear Consultants,
    I am new for ABAP module, I want to create one smart form, for tax calculation. As per the attachment Most of the fields are standard, only the value I want to pick from Different Infotypes and RT table. please suggest how to create smart form.
    Thanks & Regards,
    Naresh

    Hi,
    create a executable program, pass the all values to Internal table.
    create the structure as same as internal table.(eg: ztable).
    create table type for this structure(eg: ytable)
    T-code: Smartforms.
    click the Form Interface tab, click table . click table
    in that declare the  variable (itab like ytable).
    click the form Painter,
    desgin the output structure.
    Select "Fieldlist on/FF''.
    drag and drop the fields
    Right  click on the main window create a Window -> right click on create window -> click table.ble
    add vertical lines to the table.
    Right click on the mainwindow->flowlogic->loop. enter the itab name.
    activate the smartforms. execute.
    copy the generated number.
    goto to abap editor program.
    Delcare:
    DATA : FM_NAME TYPE RS38L_FNAM.
    CONSTANTS C_FORMNAME TYPE TDSFNAME VALUE 'ZSMARTFORM4'. (smartforms name)
    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
                     EXPORTING
                       formname                 = c_formname
    *                 VARIANT                  = ' '
    *                 DIRECT_CALL              = ' '
                    IMPORTING
                      FM_NAME                  = fm_name
    *               EXCEPTIONS
    goto to pattern paste the number and execute.
    comment the number and add fm_name.
    execute.
    Regards,
    Venkat.

  • How to delete a line in smart forms

    Hi all
    i have data in my itab  in following format
    Month   1  2  3   4   5   6  7   total
    nov      a   a  a   a   a  a  a    7a
    dec       P   A  P   P  A  p  A   4p
                                                 3a
    i have to print data from col month to 7 in main area of the table in smart forms but it shows the 3rd line as well(an empty extra line) . is there any way that i may be able to delete or truncate third line ? as  i have to print total below some where.
    Regards
    Ammad

    Hi Ammad
    i have a solution to ur question.
    well u only want to print a line in the smartform Main window table if u have data in the first field of ur internal table lets take name as T_FINAL.
    So u want to print lines in Smartform if T_Final-Field1 (which for month) is not empty.
    For this go to the Condition tab of the Line (ROW) inside ur MAIN AREA  In TABLE which must be there in any window probably in the Main window.
    Double click on the Line (ROW) in MAIN AREA, It will contain 2 tabs Output option and Condition.
    Click On condition and write under FIELD NAME the field of ur internal table WA u r using in TABLE for eg T_Final-Field1 if its Internal table with header line or if u r using a separate Work area use the work area like WA_Final-FIELD1, then click on the Square button just in front of it to select an RELATIONAL OPERATOR  , put there the RELATIONAL OPERATOR as "Not Equal to" and in the comparison value column write a space quoted with single quotation as ' '.
    After u do this any  line encountered with its first field of WA_FINAL i.e wa_final-field1as empty wont be printed.
    This Reloves ur issue.
    Regards,
    Akash Rana

  • How to draw vertical lines in SMART FORMS

    Hi Guys,
    Can anyone please let me know how to draw vertical and horizontal lines in smart forms, i have to do this in the secondary window.
    thanks,
    Ramesh

    Hi Ramesh,
    In the window output options you have option of check box to get lines.
    Then you need to give the spacing for vertical and horizontal.
    Another option is putting a template on window and getting the boxes, but it is quite little bit complex.
    Put the cursor on the WINDOW in which the lines you want.
    Right click on it>create>complex section.
    In that select the TEMPLATE radio button.
    Goto TAB TEMPLATE.
    Name: give some name of line.
    From: From coloumn.
    To: To coloumn
    Height: specify the height of the line.
    Next give the coloumn widths.
    Like this you can draw the vertical and horzontal lines.
    If the above option doesnot workout then u can try the below option also
    any how you can draw vertical and horizontal lines using Template and Table.
    for Template First define the Line and divide that into coloumns and goto select patterns and select the required pattern to get the vertical and horizontal lines.
    For table, you have to divide the total width of the table into required no.of columns and assign the select pattern to get the vertical and horizontal lines.
    if this helps, reward with points.
    Regards,
    Naveen

  • How to add New field in SMART forms.

    How to add new field in the SMART FORMS. Please know me the step.
    Please help me soon.
    Moderator message: Welcome to SCN!
    Moderator message: please search for available information/documentation, do not use a priority higher than normal (no "soon", "ASAP", "earliest" etc.).
    [Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
    [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers]
    Edited by: Thomas Zloch on Jun 17, 2011 12:31 PM

    How to add new field in the SMART FORMS. Please know me the step.
    Please help me soon.
    Moderator message: Welcome to SCN!
    Moderator message: please search for available information/documentation, do not use a priority higher than normal (no "soon", "ASAP", "earliest" etc.).
    [Rules of engagement|http://wiki.sdn.sap.com/wiki/display/HOME/RulesofEngagement]
    [Asking Good Questions in the Forums to get Good Answers|/people/rob.burbank/blog/2010/05/12/asking-good-questions-in-the-forums-to-get-good-answers]
    Edited by: Thomas Zloch on Jun 17, 2011 12:31 PM

  • PO smart form e-mail attachments - both PO and PO line item attachments

    Hi,
    Our release is ECC5.0. By configuration the PO smartform can be e-mailed to vendor as PDF attachment by standard output medium,external send. And this already works. However, the additional functionality required is:
    1.) The documents attached to the actual PO line items should also be e-mailed as attachments to the vendor.
    How can I accomplish this?
    Do I need to write addition logic in my print program to retrieve these attachments by PO number and send them as a seperate e-mail with attachment? OR
    Is there any way to send these attachments on the same e-mail where the PO is sent as a PDF attachment. OR
    Can this be done by configuration?
    Regards,
    K..

    Hi Ravi
    You can send the Smart form as an attachment to an e-mail using the Function module:<b>SO_NEW_DOCUMENT_ATT_SEND_API1</b>
    For your complete reference, please see the code posted in the following link:
    Smart Forms by e-mail
    Hope this helps you.
    Reward points if useful
    Regards
    Message was edited by:
            Blue moon
    Message was edited by:
            Blue moon

  • Need to draw line after the 2nd line item(Smart Forms)

    Dear Friends,
    I need to draw horizontal line after the 2nd line item  and 3rd line item in smart forms.How can i achive this.
    Plz help.
    Edited by: farook shaik on May 19, 2009 8:19 AM

    This is what you need to do:
    1> In the tables->details section define two line types LT1 and LT2.
    2> Come back to tables section pressing the table painter button.
    3> Select a line type for which you want to have an underline(say LT2).
         a] If the anchor cursor does not come click the draw lines and columns button( the pencil icon nutton)
         b] select the line type ( it will become black after selection. Press and hold down ctrl to select
             multiple cells.
         c] after selection click the lower 'frame button' ( which is right at the top of box and shading).
    4> Now goto data section where you have given your internal table name and work area.
         a] in the sort criteria put your field POSNR and check the Event on Sort end chk box.
         b] you will see an extra node under the main area of the table.
         c] Create a table line with the line type LT2 in the node.
         d]Also in the Main area add another table line with LT1 as the line type.
    5> If POSNR remains unchnged LT1 will be triggered.
    6> if Posnr changes then LT2 will be triggered with the underline.
    This will suffice your requirement.

  • New smart form picking enjoy purchase order /SAPDII/SPP_ORDER

    Hi Experts,
    Ours is a new implementation project.
    Requirement is to design a new smart form for purchase order.
    The print program for the purchase order is loaded.
    When I go for print preview the print program is calling the enjoy PO and not my form.
    I checked in the transaction NACE
    PRINT PROGRAM : Z_SMBZA_ZA_FM06P
    FORM ROUTINE :ENTRY_NEU
    FORM : -
    PDF/SMARTFORM : Z_MMPO_ZA
    My print program has 2 includes
    INCLUDE Z_SMBA0_AA_FM06TOP.
    INCLUDE Z_SMBA0_AA_FM06PE02.
    Every thing is working fine except with the following piece of code
    IF NOT tnapr-sform IS INITIAL.
        lf_formname = tnapr-sform.
      ELSE.
        MESSAGE e001(ssfcomposer).
      ENDIF.
    Here I am getting tnapr-form as /SAPDII/SPP_ORDER and not Z_MMPO_ZA
    If I change the field to Z_MMPO_ZA in debugging it works fine and I am getting the output of my form.
    In the table TNAPR the field SFORM  shows Z_MMPO_ZA
    In the table NAST the field PFLD3 shows /SAPDII/SPP_ORDER
    Can some one help me how to make the program by default read my form and not /SAPDII/SPP_ORDER
    Thanks
    Joshi

    Hi,
    IF NOT tnapr-sform IS INITIAL.
    lf_formname = tnapr-sform.
    ELSE.
    MESSAGE e001(ssfcomposer).
    ENDIF.
    In debugging check what is value in TNAPR-KSCHL and confirm whether this is the desired output for PO printing.
    Also check in PO Header --> Messages, what is the output type configured there. If it is not the desired output type, try adding your desired output type there and chek the print preview.
    Also confirm the NACE settings are correct for your Output Type used wihile taking the PO printout.
    Thanks & Regards,
    Harish

  • Adding a new table in smart form

    HI,
    I want to add a new table to a smartform. like say i want to print LIKP-ROUTE in the main window of the smart form, (islikp like likp)
    I have added this table in the table tab of form interface, then in the mainwindow, i have added a new loop and mentioned
    islikp into islikp.
    and in text i have mentioned
    route : &likp-Route&.
    But its giving a dump.
    Do i have to a create a new program and add the function module.
    pls suggest.
    Thanks,

    If you are passing the internal table values from the driver program, then you need to export the internal table from the driver program and have to declare it in the 'Tables" tab of the form interface in the smartform.
    Eg:-
      CALL FUNCTION wrk_funcmodu
        EXPORTING
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
         control_parameters         = st_cntrl
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
         output_options             = st_outopt_info
      USER_SETTINGS              = 'X'
          invoiceno                  = wrk_doc_num
          invoicedt                  = wrk_doc_dt
       IMPORTING
      DOCUMENT_OUTPUT_INFO       =
         job_output_info            = st_prnout_info
      JOB_OUTPUT_OPTIONS         =
        TABLES
          it_likp                = it_likp
    If the internal table value is not passed from the driver program and if it has to be used inside the smartform then declare the internal table in the "Global definitions", under the tab "Global data".
    *intenal table declaration
    Variable name  type assignment            Associated type    
    IT_LIKP            TYPE TABLE OF     LIKP 
    WA_LIKP             TYPE          LIKP
    loop the internal table it_likp to loop into the work area wa_likp.
    drag and drop(from the fiel list) the work area field to the text element.

  • Hi! i am new to abap.Now i am having doubt in smart forms

    I am creating a table in smart form for that ztable i create a driver program.I am getting an output for driver program.But in smart while i am executing i am getting only header fields in the table. I am not getting body and also the table format also i am not getting.
    While executing the driver program in the print prieview i am getting the body data also.
    But in the smart form i am not getting the table format as well as body data. Plz give me the solution

    Hi,
    There are 2 approcahes..
    (1) user enters data and smartform is displayed based on his/her filters and requirements
    (2) no user input data required.....a predefined criterion fetched data
    (1) For custom programs -user interactive : If you run the driver program only data will be passed to the smartform based on user filters and selection ..once data is passed it will be populated in the table/item of the smart form and it is seen...If the smart form is executed directly without a driver program the table will not be populated and it will not show...since header fields have been created with text elements or hardcoded text it may show up if we test run smartforms in t-code smartforms...
    Usually we assign a custom transaction and assign the driver program to it..end users will not be directly running smartforms ...so as long as we have a driver program and the smartforms work ok on running the driver program..it is fine
    (2)No user interaction :We write code in "program lines" in the smart form to fetch data and/or write code in initialisation part of the global data for fetch and data manipulations...it works without the driver program -> used mainly in cases of replacing forms for standard t-codes(through SPRO) where driver program attachement option is not available or a case where we just go and fetch data based on predefined conditions not changable by user
    Hope it helps
    Regards
    Byju

  • How to use At New Cntrol Break in smart form LAyout

    Hi all respected seniors and experts.....
    I am facing one problem in smart form I am creating layout for Tax Invoice in that I want to display in Header area "ARKTX" Short text for sales order item and sum of quantity "FKIMG" and Rate "GKBETR" and Gross amount after multiplying of FKIMG and GKBETR with respected to cheking Rate "GKBETR" and "ARKTX " .
    Rate is changing for diffrent documnet no. e.x VBELN .....
    means some time for changing of every  VBELN  rate is different "GKBETR"
    so i want to print the same RATE's quantiy on one page and changing of Rate should print on next page onwards .....
    and details of quantity with all diffrent vbeln should display on Body of layout....
    I think it will solve by using At New control break .....but can any body tell me what is the exact solution of this problem
    Thanx in advance

    Hi,
    Please check this link ... and please ensure you sorted the internal table prior to use the control break events (at new and at first).
    http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db9f1f35c111d1829f0000e829fbfe/content.htm
    Regards,
    Ferry Lianto

  • How to print different  header & item data in new pages using smart forms.

    Hi,
    In smart forms I am trying to print header data & their item data. But there are more than one header data for a given input.
    I want to print all the different header data with their item data in new pages using smart forms. Can any one please help to solve the issue.. Its very urgent for me..
    Regards,
    Brajesh

    Hi
    U need to use control break statements to acheive ur requirement.
    Regards,
    Priya

  • Tcode for creating new page size in smart forms

    dear friends ,
    can any one tell me the tcode for creating new page size in smart forms.
    thanks&regards
    veerachamy

    page formats?
    check in SPAD.
    Regards
    Prabh

  • Multipl line item for single line item in smart form

    Hi
    I have an issue wwith smart form. i Designed a Smarform with main window but each line item have again multilpe line items.Example.My smartform should print like this
    SNO.......Descriptions..................................................................Specifications
    1..............     Pepsi.......................................................................500ML Bottle
    ................................................................................................Rs.20.
    ................................................................................................No sugar COntent
    ................................................................................................Buy one get one free.
    2..............Coke.......................................................................1000ML Bottle
    ...............................................................................................Rs.$10.
    ...............................................................................................Added flavours COntent
    ...............................................................................................Buy one get 2 free.
    IN the above example Sno and Descriptions are from one internal table and Specifcations are form
    other internal table and both the tables are linked with one common field.
    Any inputs please.
    Regards
    Farook
    Edited by: farook shaik on May 15, 2009 11:56 AM

    Hi Farook,
    Either you cam merge in the driver program as said before -this is the best option.
    OR in smartform:
    Create a line type with columns for sno ,descr ,specification.
    Use a DATA TABLE  for the first internal table with the above line type and fill the first 2 columns.
    and a LOOP inside the data table's 3rd column  for specifications with the common field in where condition.
    eg
    first table - DATA TABLE
    HEAD
    MAIN
      |___ linetype
              |-cel1
                  |-Sno-text
              |-cel2
                  |-Descriptions text
              |-cel3-Specifications
                    |__loop for second table  in where condition - match common fields.
                          |-text for Specifications
    FOOTER
    Regards,
    Fonseca DC
    Edited by: Fonseca Christina on May 15, 2009 1:10 PM

  • New to smart form

    hi i am new to sap smartform, i have a requirement to develop a form that consist of employee offer letter. can anybody help me to develop these form , any sugessions where i get gud practice notes for this, plzz do me this as early as possile,  if any body have notes send me to my mail ID.: [email protected]
    thanks in advance.
    from srujan.

    for Smartforms material
    http://www.sap-basis-abap.com/sapsf001.htm
    http://www.sap-press.com/downloads/h955_preview.pdf
    http://www.ossincorp.com/Black_Box/Black_Box_2.htm
    http://www.sap-img.com/smartforms/sap-smart-forms.htm
    http://www.sap-img.com/smartforms/smartform-tutorial.htm
    http://www.sapgenie.com/abap/smartforms.htm
    How to trace smartform
    http://help.sap.com/saphelp_47x200/helpdata/en/49/c3d8a4a05b11d5b6ef006094192fe3/frameset.htm
    http://www.help.sap.com/bp_presmartformsv1500/DOCU/OVIEW_EN.PDF
    http://www.sap-img.com/smartforms/smart-006.htm
    http://www.sap-img.com/smartforms/smartforms-faq-part-two.htm
    Re: Need FAQ's
    check most imp link
    http://www.sapbrain.com/ARTICLES/TECHNICAL/SMARTFORMS/smartforms.html
    step by step good ex link is....
    http://smoschid.tripod.com/How_to_do_things_in_SAP/How_To_Build_SMARTFORMS/How_To_Build_SMARTFORMS.html
    Subtotals - Check the link...
    Re: Subtotal with Table Node in smartforms
    Go through these SAP Standard programs also,
    sf_example_01
    sf_example_02
    sf_example_03.

Maybe you are looking for

  • Problem in smartforms

    Hi I am trying smartforms in that i am facing one problem I have define 2 tables  say MARA & MAKT and I want to Print matnr & maktx on the form.     in Form I am defining itab & jtab in form interface-table also in global definations workarea for bot

  • Change Pointers not being created for HR-PA Custom Infotype

    Problem Description: We have a custom Infotype in SAP to store the data for contingent employee - Infotype 9001. Change pointers is turned on. We are running the program RBDMIDOC to send changes to Oracle IDM using message HRMD_A. The change detected

  • Additional fields for service order

    Hi all. how can I add new fields to the service order ? I now how to add fields to activity but I can not add fields to the service.

  • How to start in linux ?

    I use creator in linux and i would lije to know how to start creator in command line (shell) what should i type ? studio creator ? or java studio creator ? Please help me !!!!!!

  • How do I find out if my phone has been hacked?

    A friend informed me that someone we know may have hacked into my phone. This is in order to track emails text messages and conversations. How do I find out if my phone has been hacked? If it has how do I resolve the problem?