How to use print control in Sap script

I would like to use print control in Sap script.Actualy my problem I have security font Troy ECF. Using this font I would like to print amount field in Check printing.
we count download this font with sap .we talked to customer care they told we should hard code in sapscript. pls can any1 help on this how to do and how to use print control for this fonts.

call this funcation. crate_text.
CALL FUNCTION 'CREATE_TEXT'
         EXPORTING
           FID               =
           FLANGUAGE         =
           FNAME             =
           FOBJECT           =
         SAVE_DIRECT       = 'X'
         FFORMAT           = '*'
         TABLES
           FLINES            =
       EXCEPTIONS
         NO_INIT           = 1
         NO_SAVE           = 2
         OTHERS            = 3
       IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
        WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
       ENDIF.

Similar Messages

  • How to use IF Conditon in SAP Scripts?

    Hi Guys,
                   I am having adoubt how to use IF conditon with multiple variables in SAp Scripts
    for ex If a>b and a>c and a>d
             Elseif b>a and b>c and b> d.
             Elseif .....
              endif.
              How to use above example in SAP Scripts.
    thanks,
    Gopi.

    hi Gopi,
    it is almost the same as normal ABAP, you only have to use & before and after the variable and the variable has to be in capitals and you have to make the line as command ( /: before the line )
    IF &A& > &B& AND ...
    text to print
    ELSEIF ...
    text to print
    ENDIF.
    hope this helps
    ec

  • How to know print program for SAP Script

    Hi friends,
    how to know print program for SAP Script form name ?

    Hi ,
      You can use the following code changes in the layout & see..
    You have to create a program Z_BC460_EX4_HF for that..
    /:PERFORM GET_NAME IN PROGRAM Z_BC460_EX4_HF
    /:  USING &CUST&
    /:  CHANGING &NAME&
    /:ENDPERFORM.
    Dear &NAME&
    The ABAP routine could be defined as follows:
    IMPORTANT: The structure itcsy must be used for the parameters.
    REPORT Z_HENRIKF_SCRIPT_FORM .
      tables scustom.
      form get_name tables in_tab structure itcsy
                           out_tab structure itcsy.
      read table in_tab index 1.
      select single * from scustom
        where id = in_tab-value.
      if sy-subrc = 0.
        read table out_tab index 1.
        move scustom-name to out_tab-value.
        modify out_tab index sy-tabix.
      else.
        read table out_tab index 1.
        move 'No name' to out_tab-value.
        modify out_tab index sy-tabix.
      endif.
    You could also fill the ouput parameter table this way
       READ TABLE out_par WITH KEY 'NAME1'.
       out_par-value = l_name1.
       MODIFY out_par INDEX sy-tabix.
    endform.

  • How to use perform statements in sap scripts

    how to use perform statements in sap scripts . and pls send me one progam for this
    thnaks
    raja

    Hi Raja,
    <b>PERFORM</b> key work is used to include subroutine in sapscript form...
    But the processing is lttle bit different form the one we use in ABAP.
    Here the paramters passed to form is stored in internal table of name-value table. there are two table one for inbound parameter and other for outbound parameters.
    Check out the example below to see how this is used..
    <b>Definition in the SAPscript form:</b>
    /: PERFORM GET_BARCODE IN PROGRAM QCJPERFO
    /: USING &PAGE&
    /: USING &NEXTPAGE&
    /: CHANGING &BARCODE&
    /: ENDPERFORM
    / &BARCODE&
    <b>Coding of the calling ABAP program:</b>
    REPORT QCJPERFO.
    FORM GET_BARCODE TABLES IN_PAR STUCTURE ITCSY
    OUT_PAR STRUCTURE ITCSY.
    DATA: PAGNUM LIKE SY-TABIX, "page number
    NEXTPAGE LIKE SY-TABIX. "number of next page
    READ TABLE IN_PAR WITH KEY ‘PAGE’.
    CHECK SY-SUBRC = 0.
    PAGNUM = IN_PAR-VALUE.
    READ TABLE IN_PAR WITH KEY ‘NEXTPAGE’.
    CHECK SY-SUBRC = 0.
    NEXTPAGE = IN_PAR-VALUE.
    READ TABLE OUT_PAR WITH KEY ‘BARCODE’.
    CHECK SY-SUBRC = 0.
    IF PAGNUM = 1.
    OUT_PAR-VALUE = ‘|’. "First page
    ELSE.
    OUT_PAR-VALUE = ‘||’. "Next page
    ENDIF.
    IF NEXTPAGE = 0.
    OUT_PAR-VALUE+2 = ‘L’. "Flag: last page
    ENDIF.
    MODIFY OUT_PAR INDEX SY-TABIX.
    ENDFORM.
    Hope this is clear to understand...
    Enjoy SAP.
    Pankaj Singh.

  • How to use Print Control in Print List.

    Please any body can explain me how to use print control when creating Print list?
    Thanks in advance.

    Please any body can explain me how to use print control when creating Print list?
    Thanks in advance.

  • How to deal with Print Controls in SAP SCRIPT

    Hello All...
    I have two requirement in SAP SCRIPT for which I will need to use PRINT CONTROLS.
    1) To print a window with 90 degree rotation
    2) In the same window I wanted to have black background and white text printed on it.
    For rotating the text,
    Primary basis I created two Z print controls using SPAD.
    One to rotate with 90 and another to rotate with 0.
    In SPAD I assigned \e&a90P and \e&a0P respectivaly in device type.
    Now in sap script window I specified below commands...
    /:  PRINT-CONTROL Z90
    =  TEST
    /:  PRINT-CONTROL Z00
    but in the SP01 the text is still printing Horizontally...
    Also Is there any standard print controls which set backgroud to black for specific window.
    and how to use that?
    Please help me to resolve this issue.
    Thanks in advance,
    Shweta

    Hi,
    Occassionally, when you make frequent changes to your SAPScript, the system can get out of sync.
    When you view the form, the old data get display without your changes. 
    This can be fixed by deleting the SAPScript LOAD with program RSTXDELL. 
    Hope it helps.
    Reward if helpful.
    Regards,
    Sipra

  • How to Hide Print Privew Option (Sap Script)

    hi friends,
    i dont want print privew option (SAP SCRIPT) after executing the program the report shows output directly insted of showing print privew option.
    please reply.
    thanks in advance.
    regards,
    bhaskar

    Hello,
    When using the OPEN_FORM
    Set the field of the <b>
    ITCPO-TDNOPREV = 'X'
    </b>
    VAsanth

  • How to use Standard text in SAP SCRIPTS

    Hi all,
    Please tell me how can we use the standard text what we have created in SO10 with sap scripts.

    Hi Gaurav
    You can create standard texts using the transaction SO10. Then to insert these standard texts in the SAPScript choose the menu, Insert->Text->Standard and choose the standard text that you want to choose.
    Alternatively, you can display standard texts in your SAP Scripts using the command:
    INCLUDE ZSTEXT OBJECT TEXT ID ST LANGUAGE EN
    where ZSTEXT refers to the Standard Text name.
    Reward pts if found usefull
    Regards
    Sathish:)

  • How to attach print program and sap script for F150 transaction

    How to attach print program and Z sap script for F150 transaction

    Hi,
    you can find the customization for dunning in transaction SPRO under this path: Financial Accounting->Accounts Receivable and Accaounts Payable->Business Transactions->Dunning.
    Kostas

  • How To use barcode in the sap scripts

    I have to put two windows in a form ,both windows should contain BARCODE
    so how i can proceed plz provide me solutions for same and possible few example code which can guide me .

    There is no change required to the print program the bar code conversion is handled by the SAPScript form.  What you do need to do is create a special character string.
    Simply click on the Character Formats button and then in standard attributes, select Bar Code in the appropriate field (it is labled Bar Code)  you probably need to talk to someone regarding which Bar Code format to use, since there is a quite a few  of them.
    Hope this helps.

  • How to use New page in SAP-Scripts

    Dear All,
    hope all are doing well, how to write a new page at new customer, with out blank page lastly.
    thanks.

    Hi,
    try this
    LOOP AT it_kna1.
      CALL FUNCTION 'WRITE_FORM'
        EXPORTING
          element  = 'ELE1'
          function = 'SET'
          type     = 'BODY'
          window   = 'MAIN'.
      DESCRIBE TABLE it_kna1 LINES records.
      IF window LT records.
        window = window + 1.
        CALL FUNCTION 'CONTROL_FORM'
         EXPORTING
              command         = 'NEW-WINDOW'
    EXCEPTIONS
      UNOPENED        = 1
    UNSTARTED       = 2
    OTHERS          = 3
      ENDIF.
    ENDLOOP.
    thankx,
    raji.

  • How to print u0080 in SAP Script

    Hi Experts,
       I have one small issue, i want to print €  symbol in sap script. If i puts this an hardcode vallue, but its not accepting this symbol.
      Plz anyone guide this, how to display and print the above symbel in script.
      This symbol is not available in displayable charactor area also.
    Point will be sure.
    Regards,
    Mohana

    Form to translate unicode symbol € to superscript €
    you can use this in subroutine i think this may be usefull to you before that you need to select the radio button of super script in charecter format for that perticular format
    FORM FORM_NAME TABLES  inttab STRUCTURE itcsy
                               outtab STRUCTURE itcsy.
    *Data Declaration.
      DATA : V_TEXT1(320).
      DATA: BEGIN OF ITAB OCCURS 0,
            WORD(40),
            END OF ITAB.
      READ TABLE inttab INDEX 1.
      V_TEXT1 = inttab-value.
      REPLACE ALL OCCURRENCES OF '€' IN V_TEXT1 WITH '<SP>€</>'.
      READ TABLE outtab INDEX 1.
      IF SY-SUBRC = 0.
        MOVE V_TEXT1 TO outtab-value.
        MODIFY outtab INDEX 1.
      ENDIF.
    ENDFORM

  • How to print ADDRESS in SAP Script

    Hi All,
    I want to print address using ADDRESS command in SAP script. I am using folowing code:
    ADDRESS PARAGRAPH AS
           TITLE       &ADRS-ANRED&
           NAME        &ADRS-NAME1&, &ADRS-NAME2&,
           STREET      &ADRS-STRAS&
           POBOX       &ADRS-PFACH& CODE &ADRS- PSTL2& CITY &ADRS-PFORT&
           POSTCODE    &ADRS-PSTLZ&
           REGION      &ADRS-REGIO&
           CITY        &ADRS-ORT01&, &ADRS-ORT02&
           COUNTRY     &ADRS-LAND1&
           FROMCOUNTRY &ADRS-INLND&
    ENDADDRESS
    Here in output I am getting Title, name1, & name2 in different lines. But I want that Title, name1 and name2 in same line.
    I tried putting title, name1 and name2 in same line but then neither title nor name1, name2 are getting displayed.
    Please tell me how I can do the same.
    I have heard that SAP displays the address according to country standard. Please let me know in which table the country specific setting is stored.
    Regards,
    Vijay

    Hi,
    country code stored in this T005T. Adjust the tab positions on script then only u will get all the title, name1, name2 will get in one line.
    regards,
    ravi shankar reddy

  • How to call a subroutine from sap script

    hi friends,
    Can anybody tell me How to call a subroutine from sap script .
    thanks n regards .
    Mahesh

    hi..
    Calling ABAP Subroutines: PERFORM 
    You can use the PERFORM command to call an ABAP subroutine (form) from any program, subject to the normal ABAP runtime authorization checking. You can use such calls to subroutines for carrying out calculations, for obtaining data from the database that is needed at display or print time, for formatting data, and so on.
    PERFORM commands, like all control commands, are executed when a document is formatted for display or printing. Communication between a subroutine that you call and the document is by way of symbols whose values are set in the subroutine.
    The system does not execute the PERFORM command within SAPscript replace modules, such as TEXT_SYMBOL_REPLACE or TEXT_INCLUDE_REPLACE. The replace modules can only replace symbol values or resolve include texts, but not interpret SAPscript control commands.
    Syntax in a form window:
    /: PERFORM <form> IN PROGRAM <prog>
    /: USING &INVAR1&
    /: USING &INVAR2&
    /: CHANGING &OUTVAR1&
    /: CHANGING &OUTVAR2&
    /: ENDPERFORM
    INVAR1 and INVAR2 are variable symbols and may be of any of the four SAPscript symbol types.
    OUTVAR1 and OUTVAR2 are local text symbols and must therefore be character strings.
    The ABAP subroutine called via the command line stated above must be defined in the ABAP report prog as follows:
    FORM <form> TABLES IN_TAB STRUCTURE ITCSY
    OUT_TAB STRUCTURE ITCSY.
    ENDFORM.
    The values of the SAPscript symbols passed with /: USING... are now stored in the internal table IN_TAB . Note that the system passes the values as character string to the subroutine, since the field Feld VALUE in structure ITCSY has the domain TDSYMVALUE (CHAR 80). See the example below on how to access the variables.
    The internal table OUT_TAB contains names and values of the CHANGING parameters in the PERFORM statement. These parameters are local text symbols, that is, character fields. See the example below on how to return the variables within the subroutine.
    From within a SAPscript form, a subroutine GET_BARCODE in the ABAP program QCJPERFO is called. Then the simple barcode contained there (‘First page’, ‘Next page’, ‘Last page’) is printed as local variable symbol.
    Definition in the SAPscript form:
    /: PERFORM GET_BARCODE IN PROGRAM QCJPERFO
    /: USING &PAGE&
    /: USING &NEXTPAGE&
    /: CHANGING &BARCODE&
    /: ENDPERFORM
    / &BARCODE&
    Coding of the calling ABAP program:
    REPORT QCJPERFO.
    FORM GET_BARCODE TABLES IN_PAR STUCTURE ITCSY
    OUT_PAR STRUCTURE ITCSY.
    DATA: PAGNUM LIKE SY-TABIX, "page number
    NEXTPAGE LIKE SY-TABIX. "number of next page
    READ TABLE IN_PAR WITH KEY ‘PAGE’.
    CHECK SY-SUBRC = 0.
    PAGNUM = IN_PAR-VALUE.
    READ TABLE IN_PAR WITH KEY ‘NEXTPAGE’.
    CHECK SY-SUBRC = 0.
    NEXTPAGE = IN_PAR-VALUE.
    READ TABLE OUT_PAR WITH KEY ‘BARCODE’.
    CHECK SY-SUBRC = 0.
    IF PAGNUM = 1.
    OUT_PAR-VALUE = ‘|’. "First page
    ELSE.
    OUT_PAR-VALUE = ‘||’. "Next page
    ENDIF.
    IF NEXTPAGE = 0.
    OUT_PAR-VALUE+2 = ‘L’. "Flag: last page
    ENDIF.
    MODIFY OUT_PAR INDEX SY-TABIX.
    ENDFORM.
    regards,
    veeresh

  • How to get the last page  SAP Script form

    How to get the last page  SAP Script form.
    I want to print a specific information in the last page of SAP form (Script). Please tell me how to get the last page number.
    Regards

    Hi
    You have to check the system variable &NEXTPAGE&, if it's 0 it means you're in the last page.
    From SAP Help:
    This symbol is used to print the number of the following page. The output format is the same as with &PAGE& .
    Note that on the last page of the output, in each window that is not of type MAIN, &NEXTPAGE& has the value 0.
    /: IF &NEXTPAGE& = '0'
       Last page
    /: ENDIF
    Max

Maybe you are looking for

  • Bank Analyzer - Error while creating the Position Structure

    Hi, We are implementing Bank Analyzer 6.0 and Implementing Financial Instrument and Financial Transaction. We facing an Error while creating the Position Structure, Error Message: Status of structure S40CURRACC is "New" Anyone has an idea how to fix

  • Problems after upgrading to iTunes version 6

    Hello, I've been going through the threads a lot since I have had problems after upgrading to iTunes v. 6. It looks like a lot of people have had the same issues, and I have tried some things that were recommended. After I upgraded, iTunes would not

  • Oracle 10g on slackware 10.1 or suse?

    dear gurus, I would like to asked, can i installed Oracle 10g on slackware 10.1 or suse new relase 10... what it makes differnece from red hat linux... as we could not find support of red hat in ksa, and red hat become more commerical flavor and aski

  • Opening an URL via a button in a new browser window?

    Hello, I'm integrating now Oracle Reports in my HTML DB application. Everything work well. I have create a launching page with paremeter items and a button that call a branching of type "Branch to Function Returning a URL". This branching construct t

  • Changing msec to hh:mm:ss

    How can I change msec to hh:mm:ss. ex. int msec = 45667 to hh:mm:ss thank you