To arrange in a proper format in SAP script

Hi all,
I have to display the text in the below format:
Column 1                                                                                Column2
Remit info                                                                               ACH/ info
Alexandra Technopark                                                           Bank Of America, Singapore
I have maintained this in window bank_details:
IF &NEXTPAGE& = '0' AND &BSID-BUKRS& EQ '0729'
POSITION XORIGIN '2,0' MM YORIGIN '+158' MM
BOX HEIGHT '30' MM FRAME 10 TW INTENSITY 15
BOTTOM
INCLUDE F_0729_HEADER_A OBJECT TEXT ID ADRS
INCLUDE F_0729_FOOTER OBJECT TEXT ID ADRS
ENDBOTTOM
ENDIF
And getting in the below format:
Remit info:
Alexandra Technopark
ACH/ info
Bank Of America, Singapore
Please suggest me how to arrange it in proper format.
Appreciate your help.
Thanks,
Kiran
Edited by: kiran162 on Feb 3, 2012 2:30 AM

Hi Kiran,
I did not mean you choose the tag column for the 2nd include in the sapscript editor. I meant you should edit your text of the 2nd include in the tcode for standard text SO10 with the given object text name and text ID. But this is just applicable if each of your include text as only 1 line.
Here's the details:
+ Go to tcode SO10, enter the text name as ' F_0729_FOOTER' and text ID as 'ADRS' and your language (I guess EN).
+ Go inside, choose the tag column for the text as continuous text ( yah, blank indicator again).
But each of you include text has more than 1 line, so this is not applicable. You can ignore my third suggestion. I have another suggestions for you here:
+ No1: you can present like in the followings in your sapscript editor:
   Remit info:
             ACH/ info      // blank inditor means continuous text
       /:   INCLUDE F_0729_HEADER_A OBJECT TEXT ID ADRS
       /:   INCLUDE F_0729_FOOTER OBJECT TEXT ID ADRS      // in SO10 for this text, leave the tag column blank
This means you should hard-code the name of the address info.
+ No 2:   - You can create 2 global text variables in the printing program.
              - Use FM 'READ_TEXT' to read your address from the text pool. Store in 2 text table.
              - Loop at the text table, transfer data from the text table to the 2 global text variable above, and write the window and the element here as well.
              - You can use some wrapping FM to wrap the text in each variable.
              - Then in the sapscript form, you just put the 2 global variables in the same line.
Hope you can complete the requirement.
Thanks,
Paul

Similar Messages

  • Regarding Paragraph format in SAP Script

    Hi SAP Gurus,
    Can any one please tell me the use of TABS in paragraph formats in SAP Script.
    Thanks & Regards,
    Pavan Bandaru.

    Hi
    first you define you tab in paragraph formats.
    whene you must use this pharagraps you
    just insert double comma before the text.
    ,,&matnr&
    attention because if you define more than a tabulator il will take the tabulator in sequence.
    ,,(1st tab)&matnr&,,(2nd tab)&matnr&
    if i define a tabulator of 2cm and another of 3cm and you insert 4 comma
    ,,,,&matnr&
    it will take the summ of the two tabulator.

  • How to change the format in sap script

    Hi,
    I am working on a report which calls a sap script and i have to modify the script i.e. the values which are displaying in it. i had never worked on SAP SCRIPTS ,plzz provide me guidlines how to change the format of the data displayed in it.

    hi,
    this will give you the whole idea about the scripts in SAP the t-code is SE71.
    refer this link::
    [SAP SCRIPTS|http://help.sap.com/saphelp_40b/helpdata/en/d6/0dc169494511d182b70000e829fbfe/applet.htm]
    [WIKI|https://wiki.sdn.sap.com/wiki/display/ABAP/FormPrinting-SAPscript%2CSmartforms]
    regards
    sarves
    Edited by: Sarves Sombhatla on Feb 20, 2009 1:38 PM

  • Page format for SAP-Script not working in 4.6C

    Hi all,
    I have a problem regarding check printing.
    I am using SAP version 4.6C
    The size of paper for check printing is
              width  = 231 mm
              Height = 304 mm
    So for this I have created a new page format with these details in SPAD.
    Then I assigned this Page format to spool format and assigned that spool format to SAPWIN driver. I have assigned this page format to the SCRIPT that is used for check printing .
    But when I am taking the print out for the check with new page format, the printer don’t print till the end of page, it prints till the total amount on check and then stops there. So this creates an alignment problem when taking printout for multiple checks.
    Please give some solution for this.
    Regards,
    Bharat.

    I guess you are printing on dot matrix printer. If yes, try to do some physical printer settings for the dot matrix printer by following the printer manual. I guess you have to change the page size.. or set default printer settings... it may help you to solve your problem...
    if not goto your device types tab in SPAD and select device types.. select your device from the list (for ex, SAPWIN) click format and goto the format that you have inserted for this device types.. double click on your format, you will see printer Indialization.. try to write code like this
    set page length to 8.5 inch (=52 lines at 6 LPI)
    \e\0x43\0x44
    Note the above hexa decimal value can be obtained by going through the printer manual.
    Close the thread once your question is answered.
    Regards,
    SaiRam

  • Change the charcter format in sap script

    hi experts,
    i m working first time chaneg in sap script i don't know how to change the sap script charcter.plz any body help me how can i change in sap script charcter format..
    thanks in advance
      kamal

    Hello Kamal,
    PLZ is an character format with the length 8. In VBScript it is a string.
    You can use e.g. the VBScript commands CLng(PLZ) to convert it into a number, FormatNumber to format the number or any other string command. What do you mean exactly with change character format? From ASCII to Unicode or from one character set to another, maybe from ISCII to TSCII?
    Cheers
    Stefan
    Edited by: Stefan Schnell on Dec 19, 2011 4:04 PM

  • How to Print PDF Format In SAP SCRIPT

    Hi All,
    I have a requirement to print the output in PDF format.
    First we can pass the parameter from Excel sheet,through on the parameters , we can fetch the output and print the PDF format.
    Please help me.
    regards
    raghava

    Hi Ragha,
    SAP has created a standard program RSTXPDFT4 to convert your Sapscripts spools into a PDF format.
    You will get the spool number from transaction SP02.
    Also go through the following document:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/49e15474-0e01-0010-9cba-e62df8244556
    Regards,
    Nitin.

  • What are methods for converting otf to pdf format in sap script

    Hi,
    I have a requirement in script i have to convert that that otf file to pdf format,when i use function modules its corrupting that pdf file,So i want convert otf to pdf using class method any one can help me for that.If any sample coding for class method.
    Thanks.

    ok
    CALL FUNCTION 'CONVERT_OTF'
         EXPORTING
           format                = 'PDF'
    *      max_linewidth         = 255
         IMPORTING
           bin_filesize          = lv_bin_filesize
    *      bin_file              = pdf_xstring
         TABLES
           otf                   = lt_otf
           lines                 = lt_pdf_table
         EXCEPTIONS
           err_max_linewidth     = 1
           err_format            = 2
           err_conv_not_possible = 3
           err_bad_otf           = 4
           OTHERS                = 5.
    CALL FUNCTION 'GUI_DOWNLOAD'
         EXPORTING
          bin_filesize                    = lv_bin_filesize
          filename                        = c_name
          filetype                        = 'BIN'
    *     APPEND                          = ' '
    *     WRITE_FIELD_SEPARATOR           = ' '
    *     HEADER                          = '00'
    *     TRUNC_TRAILING_BLANKS           = ' '
    *     WRITE_LF                        = 'X'
    *     COL_SELECT                      = ' '
    *     COL_SELECT_MASK                 = ' '
    *     DAT_MODE                        = ' '
    *     CONFIRM_OVERWRITE               = ' '
    *     NO_AUTH_CHECK                   = ' '
    *     CODEPAGE                        = ' '
    *     IGNORE_CERR                     = ABAP_TRUE
    *     REPLACEMENT                     = '#'
    *     WRITE_BOM                       = ' '
    *     TRUNC_TRAILING_BLANKS_EOL       = 'X'
    *     WK1_N_FORMAT                    = ' '
    *     WK1_N_SIZE                      = ' '
    *     WK1_T_FORMAT                    = ' '
    *     WK1_T_SIZE                      = ' '
    *     WRITE_LF_AFTER_LAST_LINE        = ABAP_TRUE
    *     SHOW_TRANSFER_STATUS            = ABAP_TRUE
    *     VIRUS_SCAN_PROFILE              = '/SCET/GUI_DOWNLOAD'
    *   IMPORTING
    *     FILELENGTH                      =
         TABLES
           data_tab                        = lt_pdf_table
    *     FIELDNAMES                      =
        EXCEPTIONS
          file_write_error                = 1
          no_batch                        = 2
          gui_refuse_filetransfer         = 3
          invalid_type                    = 4
          no_authority                    = 5
          unknown_error                   = 6
          header_not_allowed              = 7
          separator_not_allowed           = 8
          filesize_not_allowed            = 9
          header_too_long                 = 10
          dp_error_create                 = 11
          dp_error_send                   = 12
          dp_error_write                  = 13
          unknown_dp_error                = 14
          access_denied                   = 15
          dp_out_of_memory                = 16
          disk_full                       = 17
          dp_timeout                      = 18
          file_not_found                  = 19
          dataprovider_exception          = 20
          control_flush_error             = 21
          OTHERS                          = 22.
       IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
       ENDIF.
    TRY.
           GET PARAMETER ID 'RECEIPTENT' FIELD lvs_recipient1.
           send_request = cl_bcs=>create_persistent( ).
    *      lt_attach_bin = cl_document_bcs=>xstring_to_solix( ip_xstring = lt_solix ).
           APPEND 'Test message' TO lt_text.
           l_sub_50 = lc_test1.
           document = cl_document_bcs=>create_document( i_type    = 'RAW'
                                                        i_text    = lt_text
                                                        i_subject = l_sub_50 ).
           document->add_attachment( i_attachment_type    = 'PDF'
                                     i_attachment_subject = 'script.pdf'
                                     i_att_content_hex    =  lt_attach_bin ).
           l_sub_line = lc_test1.
           TRY.
    * Build subject line for email.
               CALL METHOD send_request->set_message_subject
                 EXPORTING
                   ip_subject = l_sub_line.
             CATCH cx_send_req_bcs INTO loref_obj_error.
               PERFORM sub_catch_error1 USING loref_obj_error.
           ENDTRY.
           send_request->set_document( document ).
    *      sender    = cl_cam_address_bcs=>create_internet_address( '[email protected]' ).
           recipient1 = lvs_recipient1-objkey.
           recipient = cl_cam_address_bcs=>create_internet_address( '[email protected]' ).
    *      send_request->set_sender( sender ).
           send_request->add_recipient( i_recipient = recipient
                                        i_express   = 'X' ).
           sent_to_all = send_request->send( i_with_error_screen = 'X' ).
           COMMIT WORK.
         CATCH cx_bcs INTO bcs_exception.
           MESSAGE 'eee' TYPE 'S'.
           EXIT.
       ENDTRY.

  • Urgent ......regarding date format in SAP Script

    In my MAIN WINDOW  I have date fields like Date of Manifacture, created date and Expiry date.
    So, currently  I am using SET DATE MASK = 'YYYY-MM' and it is printing same format for all fields.
    But now my requirement is I want to show date for Expiry Date like 'YYYY-MM-DD'. For this I defined one temparary variable in the form like below
    DEFINE &outdate& = &mchar-vfdat&
    SET &outdate& MASK = 'YYYY-MM-DD'.
    but still it is showing format YYYY-MM...
    Plz help me how to print my desired date format...
    I am waiting for ur reply...
    Regards,
    Kumar

    Hi Kishore kumar,
    What you can do is befor printing the Expiry date set the date Mask as 'YYYY-MM-DD' and after printing your Expiry Date again set the DATE MASK to 'YYYY-MM'
    i.e.
    /: SET DATE MASK = 'YYYY-MM-DD'
       &mchar-vfdat&
    /: SET DATE MASK = 'YYYY-MM'
    Regards,
    Sunil

  • How to get pt 9 in paragraph format in sap script

    Hi,
    I have a requirement to bold the data in output screen in main window,But that paragraph format font size is 9.0 pt if in font tab i select bold radio button then its comming bold in output screen some cases but some cases its not happening.So if i take font size - 8.0 pt then its bold happening for all cases.
    but i cannot put 8.0 pt because it is very old paragraph format so in pt 9.0 only i want bold.any body can help me for that.
    Thanks,

    Hi madhurao123 ,
    Thank u so much.
    I have configured the device type as pdf printer.
    And Now I can able to get the PDF File downloaded.
    Thanks       
    Alagappan

  • Sap script question - char format

    Hi,
    What is the use of Selection checkbox available in character format of sap script?
    What willl happen if we check or uncheck that?
    Appreciate your suggestions.
    Regards,
    Guru

    its not like that gurus......
    c if u tick that check box in the top there is a field called mark
    it will ON ......the marker is used
    Character string attribute: marker
    This character string attribute allows search keys to be specified in
    the information within the angled brackets of the character string. In
    the output format created by SAPscript, the search key is entered
    explicitly when such a character string occurs.
    Example: The character string "MK" is used for marking (the marking
    attribute is set). The search keys are then entered in the text editor
    as follows:
    This is a <MK:KEY1234>Search key</>
    The word "Search key" is therefore marked with "KEY1234".
    Marking keys may not be more than 50 characters long. The characters " "
    (blank), "=", and ";" are not allowed in the key.
    if it is usefull....Plz Rewards
    Regards
    Anbu

  • Print JPEG/PDF Files in SAP Script

    Hi,
      I just want to know is it possible to print an Image of type JPEG/JPG in SAP Script, these images are
      uploaded from transaction OAOR not from Se78, so is it possible to display images uploaded from
      OAOR in SAP Script, if it is possible then please tell how to display these Images in SCript?
    Thanks In advance..
    Kalyan..

    Hi,
    [How to Print PDF Format In SAP SCRIPT]
    [Re: How to Print PDF Format In SAP SCRIPT]
    [https://forums.sdn.sap.com/click.jspa?searchID=22871024&messageID=7056757]

  • How to print last page in sap script in ladscape format?

    Hi all,
    can any 1 tell me How to print last page in sap script in ladscape format?
    Thanks In advance.
    Pravin

    Hi Pravin Sherkar,
    we can do this in SAP Scripts.
    we need to create two pages, one of landscape and another of potrait.
    now after filling the data at last we need to call the page which is of format landscape using START_FORM  function module.
    You can use condition &PAGE& = &FORMPAGES&.
    Please check this link
    Printing Portrait/Landscape in sapscript
    Re: Landscape and potrait in same layout?
    http://www.sap-img.com/ts013.htm
    Best regards,
    raam

  • Upload data from excel( XLS/xs format) in SAP CRM

    Upload data from excel( XLS/xs format) in SAP CRM  7.0 as there is no *ALSM*EXCEL*ITAB* like FM there unlike ECC 6.0...?

    hello Buddy,
    plz go through below links
    http://wiki.scn.sap.com/wiki/display/CRM/CRM+Web+UI+-+Uploading+data+from+Excel+files
    http://scn.sap.com/docs/DOC-50732
    http://scn.sap.com/docs/DOC-31985
    Hope This will Help You...

  • Where to find Crystal Report Formats for SAP B1 8.8 (India Localization) ?

    Hi Experts,
    do anybody knows Where to find Crystal Report Formats for SAP B1 8.8 (India Localization) ?
    For example
    Sales Register
    Purchase Register
    Journal Register
    Sales Analysis - Crystal Report
    Purchase Analysis - Crystal Report
    Check Register - Crystal Report
    Production register
    Pending Sales Order
    Outstanding Receivable
    Outstanding Payable
    BankBook
    CashBook
    General Ledger
    BP Ledger (Customer / Supplier)
    Trial Balance
    Balance Sheet
    Profit & Loss Statment
    Cash Flow statment
    Excise reports
       RG 23 A Part I
       RG 23 A Part II
       RG 23 C Part I
       RG 23 C Part II
       Daily Stock Account
       RG 1
       ER 1
       etc....
    Documets Layout
       Incoming Payment
       Outgoing Payment
       Journal Entry
       Transaction Journal Report - Crystal Report
       Sales Quotation
       Sales Order
       Sales Delivery
       Sales Return
       Sales Invoice (A/R Invoice)
       Purchase Order
       Goods Receipt PO
       Purchase Goods Return
       Purchase Invoice (A/P Invoice)
      Inventory Transfer
      Inventory - Goods Receipt
      Inventory - Goods Issue
    Best Regards,
    Samir Gandhi

    Hi Neetu,
    Do you wish that at all customer site all concern involved in implemtation do the same work ?
    I believe ERP is meant for single entry system, and it should be true for implementation also, why to invest man hours for the same task ?
    I expect it standard reports should be released by SAP, so that speed of implementation improve, we have more nos. of satisfied customers.
    customised reports is all together different and it is understood that it is needed to be developed after study the exact requirement.
    Best Regards,
    Samir Gandhi

  • Print BDS document(in PDF format) from SAP R/3

    Hello ,
    I have a requirement to print BDS document(in PDF format) from SAP R/3 without user interaction.
    In simple way, if I execute the program - PDF document will get printed on local default printer.
    Please help me if anybody worked on similar requirement.
    Thank you very much,
    Liliya

    Hi Liliya,
    First you should create a smartform for BDS  Layout and give output parameter like this..
      wa_param-langu     = sy-langu.
      wa_param-no_dialog = 'X'.
      wa_param-getotf = 'X'.
      wa_param-DEVICE = '     '.                               " (here you can give the path of your printer)
      lv_output_options-tdnewid = 'X'.                      "Print parameters,
      lv_output_options-tddelete = space.                "Print parameters,
      lv_output_options-tdnoprev    = 'X' .
       lv_output_options-TDIMMED    = 'X' .               " it will give the immediate output of form in given output device
    I hope it will help you.....
    Enjoy...

Maybe you are looking for

  • How do I move my photos from my iPhone?

    I have a lot of photos on my phone. I want to archive them on my Mac, but not import them into iPhoto.  The phone doesn't appear in Finder, nor can I list the photos as files to be copied somewhere else.  Is there any way I can do that?

  • Not allowing clearing of resetting of pre migration cleared document

    HI all SAP Experts We have recently migrated to new GL . One entry for outstanding liabilty was posted  in March 10 & same entry was cleared in Current year ( i.e April 10 - March 11) & cleared entry was again resetted in current year. However the sa

  • Session state values

    I have two pages.The first page branches to the second page when the submit button is clicked.The first page has a text item.I am able to set the item value in the session but not able to set it to a text item in the second page when the page loads a

  • IRM Instalation

    Hi all, Can anyone tell me what is the best installation of IRM server. My server needs to be open on the internet, so that outside people can use it. I know that it needs to be in dzm. How many servers do i need? Only one for the database and IRM an

  • Looking for media picker ANE

    Hi Does anyone know of a Media Picker native extension for iOS and Android? On iOS the extension would allow me to bring up an MPMediaPickerController, select a song from the user's library (iPod), and somehow give me a way to load and play that song