Help Required for Sap Script

Moved to correct forum.  Please use an informative subject in future.
Hi,
can some one help in knowing whether can we write the text elements from sub routine being called from Sap script.
Actually i have to develop a script for check printing and in the table data i have to print 3 colums:REGUP-BUDAT,REGUP-XBLNR,REGUP-DMBTR in two section on the same window with 25 line each so that total 50 lines can be printed,Standard print prg is RFFOUS_C.can some one help in the same..
Thnxs
Edited by: Matt on Apr 9, 2009 10:06 AM

Hi Hemant,
use like this
<B0>Three Thousand only</>,,  <B4>&Name& </> <B8>&TOTAL& </>
HR Dept.
Thanks & regards,
Dileep .C

Similar Messages

  • Purpose of RSTXTRAN program for SAP-Script ?? ??

    Purpose of RSTXTRAN program for SAP-Script ?? ??
    when it is required to run that program ?

    Hi sarit,
    Purpose of RSTXTRAN program for SAP-Script Transfer of SAP script Texts to a Correction.
    The report RSTXTRAN allows a set of SAP script texts (or the text key) to be transferred to a correction or repair of the transport system. The name of the correction/repair can either be transferred as a report parameter, or the correction/repair can be selected later in a selection window. The text key can be qualified generically using the asterisk character (*).
    When the report has been executed, the list of selected texts appears. Individual texts can be deselected in this list. When the function "Continue" is executed, the final list of texts which are to be transferred is displayed. The transfer of texts to the correction/repair can now be activated by the appropriate function, and must be confirmed in a dialog box.The requirements for this as follows.
    There is a correction/repair in which the selected text keys can be entered, if it is not being processed. The report can only insert text keys in corrections or repairs, not however in transport requests. However, the objects contained in a correction can be transferred to a transport request with the correction and transport system transaction.
    It should also be noted that the report selects texts in the current client, but that the transport system generally exports texts from client 000.
    When the report has been executed,the output can be a list of the selected texts. Information about whether transfer to the correction/repair was possible is displayed for each text key.
    Reasons for failed transfer include
    o the correction/repair is currently being processed
    o the correction/repair does not exist
    For Example
    All German standard texts with the ID ST, whose names begin with SAPSCRIPT, are to be entered in the correction B20K009999. The report parameters are then assigned values as follows:
    o Correction: B20K009999
    o Text object: TEXT
    o Text name: SAPSCRIPT*
    Thanks,
    Usha

  • Search functionality for SAP script

    All,
    I am looking some of kind utility or report like RPR_ABAP_SOURCE_SCAN for sap script.
    This is my requirement
    One of the country code has been hardcoded in various forms (sapscripts) i like to scan all custom sapscripts and find all these form names so that i can easily change.
    Is there any way to do this ?

    REPORT ztextscan.
    TABLES stxh.
    SELECT-OPTIONS:
      object FOR stxh-tdobject DEFAULT 'FORM',
      name   FOR stxh-tdname,
      id     FOR stxh-tdid DEFAULT 'TXT',
      spras  FOR stxh-tdspras.
    PARAMETERS text TYPE string.
    DATA gt_lines TYPE TABLE OF tline WITH HEADER LINE.
    SELECT * FROM stxh
      WHERE tdobject IN object AND
            tdname IN name AND
            tdid IN id AND
            tdspras IN spras.
      CALL FUNCTION 'READ_TEXT'
        EXPORTING
          id                      = stxh-tdid
          language                = stxh-tdspras
          name                    = stxh-tdname
          object                  = stxh-tdobject
        TABLES
          lines                   = gt_lines
        EXCEPTIONS
          id                      = 1
          language                = 2
          name                    = 3
          not_found               = 4
          object                  = 5
          reference_check         = 6
          wrong_access_to_archive = 7
          OTHERS                  = 8.
      CHECK sy-subrc = 0.
      LOOP AT gt_lines.
        SEARCH gt_lines-tdline FOR text AND MARK.
        CHECK sy-subrc = 0.
        WRITE:/ stxh-tdid, stxh-tdspras, stxh-tdname, stxh-tdobject, gt_lines-tdline.
      ENDLOOP.
    ENDSELECT.

  • Translating   for SAP Script in ECC 6.0

    Hi All ,
    How we can do the transalations  for SAP Script in ECC6.0? . I was not able to do as we do in 4.7 version  where we follow the following path
    Translations -> Long texts -> forms .
    Can any ody help me inthis regard ?
    Thanks ,
    Dharma .

    Hi Anirban,
    I tried that way . When I entered  Scripti name in the filed " Object Name" , it is giving warning message "Object not found"( actaully it is existing ) . Even i tried to select by  F4, No thing I Could find .Transactional area defaultred to 999999( tried wiht blank also) .
    Can any body help for any alternative ?
    Thanks ,
    Dharma .

  • Printing problem for SAP Script

    Dear Friends,
    I am facing strange problem for SAP Script. In the billing document output the sold to party and ship to party address are displaying. When user print the billing document on laser printer it print the Country for Sold to and Ship to. But when it print the same billing document on normal printer (other than laser) the Sold to country not printing.
    The print preview of billing document in SAP  correctly display country for Sold-to and Ship-to.
    I have recently make changes in the SAP Script form (Address window) to display country for Ship-to which was never displayed before. I have added FROMCOUNTRY option after COUNTRY in address window. COUNTRY will be Ship-to and FROMCOUNTRY will be VBDKR-SLAND.
    Can any one help me to solve this problem.
    Regards
    Nilesh Shete

    Used custom address print option instead of using ADDRESS

  • DEMO PROGARM FOR SAP SCRIPT

    HAI,
            WHICH IS THE DEMO OR EXAMPLE PROGRAM FOR SAP SCRIPT IN SAP
    THANK YOU

    Hi
    See the sample code for Script driver Program to display the PO details
    You have to design the Script layout in SE71 and see the output
    *& Report  ZTEST12121
    *& SAPScripts Example 1
    REPORT  ztest12121.
    *DATABASE TABLES
    TABLES: ekko,ekpo,lfa1.
    *INTERNAL TABLES AND STRUCTURES
    DATA i_ekko LIKE ekko.
    DATA i_ekpo LIKE ekpo OCCURS 0 WITH HEADER LINE.
    DATA i_lfa1 LIKE lfa1.
    *PARAMETERS
    PARAMETERS: p_ebeln LIKE ekko-ebeln.
    *VARIABLES
    DATA MAT TYPE STRING VALUE 'MAT NO'.
    DATA iTe TYPE STRING VALUE 'ITEM NO'.
    DATA QTY TYPE STRING VALUE 'QTY'.
    DATA UOM TYPE STRING VALUE 'UOM'.
    DATA NET TYPE STRING VALUE 'NET PRICE'.
    Data var type integer value 0.
    *DATABASE SELECTS
    *Header data
    SELECT SINGLE * FROM ekko INTO i_ekko WHERE ekko~ebeln = p_ebeln.
    IF sy-subrc = 0.
    *Item Data
      SELECT * FROM ekpo INTO  TABLE i_ekpo WHERE ekpo~ebeln = p_ebeln.
      IF sy-subrc NE 0.
        WRITE 'PURCHASE DOCUMENT ITEM DATA ERROR'.
      ELSE.
    *Vendor Details
        SELECT SINGLE * FROM lfa1 INTO i_lfa1 WHERE lfa1~lifnr = i_ekko-lifnr.
        IF sy-subrc NE 0.
          WRITE 'VENDOR DOCUMENT ITEM DATA ERROR'.
        ENDIF.
      ENDIF.
    ELSE.
      WRITE 'THIS PURCHASE DOCUMENT NUMBER DOESNOT EXISTS'.
    ENDIF.
    CALL FUNCTION 'OPEN_FORM'
    EXPORTING
      APPLICATION                       = 'TX'
      ARCHIVE_INDEX                     =
      ARCHIVE_PARAMS                    =
      DEVICE                            = 'PRINTER'
      DIALOG                            = 'X'
        form                              = 'ZSCRIPT_1'
        language                          = sy-langu
      OPTIONS                           =
      MAIL_SENDER                       =
      MAIL_RECIPIENT                    =
      MAIL_APPL_OBJECT                  =
      RAW_DATA_INTERFACE                = '*'
      SPONUMIV                          =
    IMPORTING
      LANGUAGE                          =
      NEW_ARCHIVE_PARAMS                =
      RESULT                            =
    EXCEPTIONS
      CANCELED                          = 1
      DEVICE                            = 2
      FORM                              = 3
      OPTIONS                           = 4
      UNCLOSED                          = 5
      MAIL_OPTIONS                      = 6
      ARCHIVE_ERROR                     = 7
      INVALID_FAX_NUMBER                = 8
      MORE_PARAMS_NEEDED_IN_BATCH       = 9
      SPOOL_ERROR                       = 10
      CODEPAGE                          = 11
      OTHERS                            = 12
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
       ELEMENT                        = 'OFFICEAD'
       FUNCTION                       = 'SET'
       TYPE                           = 'BODY'
       WINDOW                         = 'OFFICEAD'
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
       ELEMENT                        = 'PODET'
       FUNCTION                       = 'SET'
       TYPE                           = 'BODY'
       WINDOW                         = 'PODET'
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
       ELEMENT                        = 'TOP'
       FUNCTION                       = 'SET'
       TYPE                           = 'TOP'
       WINDOW                         = 'MAIN'
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT I_EKPO.
    var = i_ekpo-netpr * i_ekpo-menge.
    CALL FUNCTION 'WRITE_FORM'
    EXPORTING
       ELEMENT                        = 'BODY'
       FUNCTION                       = 'SET'
       TYPE                           = 'BODY'
       WINDOW                         = 'MAIN'
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDLOOP.
    CALL FUNCTION 'CLOSE_FORM'
    IMPORTING
      RESULT                         =
      RDI_RESULT                     =
    TABLES
      OTFDATA                        =
    EXCEPTIONS
      UNOPENED                       = 1
      BAD_PAGEFORMAT_FOR_PRINT       = 2
      SEND_ERROR                     = 3
      SPOOL_ERROR                    = 4
      CODEPAGE                       = 5
      OTHERS                         = 6
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    SAPScripts
    http://esnips.com/doc/1ff9f8e8-0a4c-42a7-8819-6e3ff9e7ab44/sapscripts.pdf
    http://esnips.com/doc/1e487f0c-8009-4ae1-9f9c-c07bd953dbfa/script-command.pdf
    http://esnips.com/doc/64d4eccb-e09b-48e1-9be9-e2818d73f074/faqss.pdf
    http://esnips.com/doc/cb7e39b4-3161-437f-bfc6-21e6a50e1b39/sscript.pdf
    http://esnips.com/doc/fced4d36-ba52-4df9-ab35-b3d194830bbf/symbols-in-scripts.pdf
    http://esnips.com/doc/b57e8989-ccf0-40d0-8992-8183be831030/sapscript-how-to-calculate-totals-and-subtotals.htm
    SAP SCRIPT FIELDS
    http://help.sap.com/saphelp_erp2005vp/helpdata/en/d1/8033ea454211d189710000e8322d00/content.htm
    scripts easy material
    http://www.allsaplinks.com/sap_script_made_easy.html
    Reward points if useful
    Regards
    Anji

  • I m new for SAP script can anyone tell me step by step

    hi
    i m new for SAP script can anyone tell me step by step.
    how i can work with sap script and how can i call report programe by sap script
    thanks .

    Hi laxman,
    Follow these steps
    Goto transaction code Se71
    then give a name starting with Z r Y to create a new script then
    1) create header data and basic settings
    2)Pages u have to give ur pages number in character format only
    3)window here u have to create windows for different variables such as for logo and etc., there will be a default window named  as main mindow in this now u have to add new window for that
    4)Page windows to add page windows follow these steps
    goto edit option in the toolbar and select CREATE ELEMENT from which u can add already above declared windows
    5) paragraph formats Here u have to define allignments and all for u proper display
    Ex: A1, AF ....
    6)Character formats here u have to declare the character format depending on u requirement such as times ne roman etc.,
    After craeting all these press F9 so that u will be directed to coding part where u have declare the coding according to ur requirement
    Regards,
    Pavan

  • Hardware requirements for sap bw3.5 in windows environment

    Pls help me the hardware setup(harddisk,ram etc) required for SAP BW3.5 in windows environment.
    thanks in advance..
    Regards
    Ganesh

    Hi,
    HDD : 100GB
    RAM : 1 GB
    regards,
    Raju

  • System requirements for SAP Netweaver

    Hi All
        I would like to know the system requirements for SAP Netweaver installation on server.
    Thanks in advance
    Venkat

    Hi Venkat,
    Typically for EP it would be :
    On Windows:
    2 GR RAM,with 30-40GB HD,and with latest Windows SP`s and latest IE.
    If the server is for Production incease the RAM accordingly.
    For Portal RAM is very crucial,as SAPJ2EE Engine uses lot of RAM.
    I hope this helps.
    If yes,do award points.
    Rgs
    vikas

  • Advantages of using laster printers for SAP SCRIPTS

    Dear Friends,
    Here client is saying use scripts for Dotmatrix printer, for all graphics. can i know
    <b>Wht are the advantages of using laser printers for SAP Scripts and wht are the disadvantages of using Dot-matrix printer.</b>
    Thanks & Regards
    Hussain

    Dear Friends,
    Here client is saying use scripts for Dotmatrix printer, for all graphics. can i know
    <b>Wht are the advantages of using laser printers for SAP Scripts and wht are the disadvantages of using Dot-matrix printer.</b>
    Thanks & Regards
    Hussain

  • Advantages of using laser printers for SAP SCRIPTS compare to Dot matrix

    Dear Friends
    <b>Wht are the advantages of using laser printers for SAP Scripts and wht are the disadvantages of using Dot-matrix printer.</b>
    Thanks & Regards
    Hussain

    Dear Friends
    <b>Wht are the advantages of using laser printers for SAP Scripts and wht are the disadvantages of using Dot-matrix printer.</b>
    Thanks & Regards
    Hussain

  • Requirements for SAP Document management system in ECC 5.0

    Hi All,
    Can any one provide me the requirements for SAP Document management system in ECC 5.0.
    SAP Component   ECC 5.0
    OS    Solaris 5.9
    DB    Oracle 9.2.0.7
    Thanks in advance.
    Regards,
    Surendra
    <removed_by_moderator>
    Edited by: Juan Reyes on Aug 6, 2009 12:49 PM

    That info is available either at http://service.sap.com/pam or http://service.sap.com/quicksizer
    Please do some research before posting
    Read the "Rules of Engagement"
    regards
    Juan

  • Hardware requirement for SAP E-Sourcing 5.0

    Hi,
    Can any one tell me please about hardware requirement for SAP E-Sourcing 5.0.
    Thanks
    Sanjay Rai

    Hi
    Frictionless SRM 2005 SP3 has been rename SAP E-Sourcing SAP E-Sourcing 4.2.00.
    For detailed SRM Installation, Upgrade, Heardware requirments, Please go through the details of the Release-Independent Related OSS Notes given below ->
    Note 1093204 - Object Migration (This Note contains a detailed ZIP file)
    Note 1122739 - SRM E-Sourcing 5.0 Patch B (5.0.00_B) Release Notes
    Note 1094095 - SRM 2005 SP1 Patch O (4.1.00_O) Release Notes
    Note 1094094 - SRM E-Sourcing 4.2 Patch L (4.2.00_L) Release Notes
    Note 1094092 - SRM E-Sourcing 4.2 SP4 (4.4.00) Release Notes
    Do let me know.
    Regards
    - Atul

  • 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.

  • Urgent Requirement for SAP CONSULTANTS - all modules.

    TOP MNC NOW HIRING
    Urgent Requirement for SAP CONSULTANTS - all modules.
    Experience    2-5 yrs.
    Location - Gurgaon, Hyderabad,Pune.
    Interested candidates please forward your CV ASAP!!!!!!!! !!!!!!
    send your resumes at [email protected]
    Thanks,
    Rajender

    Hi,
    1. R you able to see the photo while accessing PA30 ?
    2. There is a function module to retieve the employee photo in URI.
    you can use that URI in your Iview.
    code:
    call function 'HRWPC_RFC_EP_READ_PHOTO_URI'
    exporting
    pernr = '00001185'
    DATUM = SY-DATUM
    TCLAS = 'A'
    importing
    uri = uri
    and URI should be of the type TOAURI-URI.
    Rgds,
    Shiva Kumar

Maybe you are looking for

  • Anyone using BlueTooth with MSI KT3 Ultra-Aru?

    Has anyone setup BlueTooth PC to PC network with the MSI KT3 Ultra-Aru? Where can one get the transmitter?  (assuming it works)

  • Close, new, back, forward icons are not shown

    Close, new, back, forward icons in firefox are not shown, so it makes difficult to use firefox. I am using latest firefox in ubuntu 11.04. Already asked here but no response :( superuser.com/questions/559381/in-firefox-back-tab-close-new-tab-icon-is-

  • Time stream from resource  not valid for total display period

    Dear Friends, In APO after PPDS Run, and executing  Product View, in period tab of product view I am getting an error with following meassge. Time stream from resource WP5_0110_001 not valid for total display period Message no. /SAPAPO/RRP_PT055 Diag

  • Workspaces in Snow Leopard?

    I'm really not grasping the concept behind Spaces, and maybe it's what I need and I'm just not using it correctly. What I want is to set up a group of windows and apps for doing a certain task. Say for task 1, I need to have iTunes open in the top le

  • Laptop gives me no access to songs

    I transferred my entire ipod library - latest system to the laptop with no problems. When I went to transfer it back to my desktop - version 10.3.9 - so I could sell the laptop, the songs came over with no user access. Command I tells me this under o