Display data vertically using sap script

Hi Developers,
Is there any way to display data vertically in a form using sap script?
thanx in advance,
binu

Hi Binu,
It is not possible to rotate text in SAPscript.  The usual work-around, provided this is static text and not from a variable, is to scan an image of the text and include it as a graphic.
Regards,
Nick

Similar Messages

  • Customer Statement using SAP Script and Standard print program RFKORD10

    Using sap script and standard print program RFKORD10 I need to create a customer statement where the main window will be as follows
    Invoice #     InvoiceDate  CustomerPO  Debit Amt  Credit Amt  Total
        6        7           8               9               10               11
        6        7           8               9               10               11
                                     Totals               12             13              14
    Where company code BKORM-KUKRS
                Invoice              BSID-BELNR
                Invoice date      BSID-BLDAT
                Customer PO    VBKD-BSTKD
    For each document number selected there will be one to many records in VBRP.  For each invoice item in VBRP:
    u2022     Select BSTKD from VBKD where
    o     VBELN = VBRP-VGBEL and
    o     POSNR = VBRP-VGPOS
    u2022     If no hits then select BSTKD from VBKD where
    o     VBELN = VBRP-VGBEL
    If there is more than one PO per invoice then list them in the Customer PO field without repeating the other fields.PO shouldnu2019t come more than once per invoice.
                 Debit Amt         if BSEG-SHKZG = S then WRBTR ELSE 0
                 Credit Amt        if BSEG-SHKZG = H then WRBTR ELSE 0
                 Total                  Debit Amt u2013 Credit Amt
                  Totals                Subtotals
    It will be of great help if some one can help me with the script and the alterations required in standard print program RFKORD10
    Points will b rewarded for sure.
    Thanks.

    Hi Suganya,
    The custom form is getting displayed properly. But the requirement is to have it as an editable PDF. So the functional team is working on configuring the settings of PDF forms with customers email address.
    But for right now, i customized the standard form F140_ACC_STAT_01 and standard print program RFKORD10_PDF and did the configuration. It is getting displayed (I tested only with the transaction FBL5N - customer open line items..)
    Please let me know any further details on this.
    Poornima

  • Missing fields in the output while using SAP SCRIPT

    Hi,
    I am working on an issue where we are using F110 to print some checks, and for this we have created a custom sap script and we are using a std driver program RFFOUS_C, we have also maintianed a custom subroutine pool ZRFFOUS which will retrieve the missing data for the sap script which was not there in the std. program. Now we have applied a SP to our system and since then we are having a problem...when we are printing the chechks its missing some fields.
    Surpisingly, it is happening for all scripts like Dunning, invoice......
    These scripts are working good in production which is not applied patches.
    I have tried in all ways, did debug, data is there in tables and scripts are exactly same as in production.
    Could you please share any ideas regarding this? What would be the effect of patches?
    Thanks
    Sha

    Hi ,
    I think u r printing the Check through the Tr Code F110.
    In that program u r using the Standard Driver Program RFFOUS_C and u create a New Sap script.
    and also u also mantained the custom subroutine pool ZRFFOUS .  when ru giving printing u are  not able to print some  field.
    In this case  when u using the Standard driver Program RFFOUS_C in that program there is a Include Progran  * RFFORI01---- check  , 
    in this program it is calling the Standard Form (F110PRENUM_CHCK) i--e t042e-zforn .as shown in the below and it is calling the function module 'OPEN_FORM'._
    Please copy  the form  asZF110_PRENUM_CHCK and  and do the changes in that form . and we need to maintained the Form as Company code level  -- and it will shown this Table T042E (Company Code-Specific Specifications for Payment Methods)
    Please go to Transaction Code FBZP  and U can maitained the  New Sap Script Form Company Code Level.
    one thing while u calling your new subroutine pool ZRFFOUS  Please call  this subroutine in  your Sap Script form then only u can see all values in your Check.  and Actvate the Sap script .
    Like U can call your new  subroutine ZRFFOUS  in your New Sap script Program.
    /E   CHECK
    /:   PERFORM XXXXXXX IN PROGRAM XXXXXX''                  
    /:   PERFORM CHECK_NAME IN PROGRAM  ZRFFOUS
    /:   USING &XXXXXXX&                      
    /:   CHANGING &XXXXXX&                   
    /:   ENDPERFORM                              
    In the subroutine pool ZRFFOUS   u have to call  as
    FORM CHECK_NAME TABLES t_data_in  STRUCTURE itcsy
                                                   t_data_out STRUCTURE itcsy.
    xxxxx
    xxxxx
    xxxxx
    ENDFORM.
    In this case  when u using the Standard driver Program RFFOUS_C in that program there is a Include Progran  * RFFORI01---- check  , 
    in this program it is calling the Standard Form (F110_PRENUM_CHCK) i--e t042e-zforn .
        open check form
          CALL FUNCTION 'OPEN_FORM'
               EXPORTING
                    form     =  t042e-zforn
                    device   = 'PRINTER'
                    language = t001-spras
                    options  = itcpo
                    dialog   = space
               EXCEPTIONS
                    form     = 1.
          IF sy-subrc EQ 1.                "abend:
            IF sy-batch EQ space.          "form is not active
              MESSAGE a069 WITH t042e-zforn.
            ELSE.
              MESSAGE s069 WITH t042e-zforn.
              MESSAGE s094.
              STOP.
            ENDIF.
          ENDIF.
    I thing it will help u to solve this issue.
    Thanks.
    Gagan

  • PO for item of service Level short and long text using sap script

    Please let me know how to do the PO for item of service Level short and long text using sap script.
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on May 5, 2009 10:25 AM

    Hi ,
          In the transaction related to PO select the path goto->header texts and then details of the texts like ID,objectname,language,name.Pass all theses details to 'READ_TEXT '   FM. Then you will get text lines described for a perticular Po ,similarly for item also.
    Thanks,
    Suma.

  • Get OTF data of an SAP SCRIPT

    Hi,
    I have a situation where I have to call a standard report from my custom report which is based on some condition.
    This is fine. But the standard report which I am calling is print program of an SAP Script.
    So, the requirement now is that my custom report should be able to send an email of the SAP Script output. For this I need to have the OTF data of the SAP Script in my custom report.
    How to get this?
    Your help will be highly appreciated.
    Thanks,
    -Sandeep

    Hi,
    Go through these links,here they mentioned how to capture OTF data into internal table
    http://scn.sap.com/thread/1083143

  • Need help with Signature on Checks using SAP SCRIPT

    Hi,
    I am looking for some help on how to get the Printer Resident Singature on to the Check using SAP Script. We have a HP Laser 8150 Priter in which the Chip Contains the Signature ( Printer Resident Singaure ) and currentlly the ORACLE application is able to print this signature on the checks. Right now we are in Migration to SAP and we are trying to get this Signature to print on the Check using SAP Script.
    Please help us.

    There are many ways to do this, the simplest way to print the signature is using HEX ENDHEX command.
    1. Print the Printer font list from the printer configuration menu, Find the signature in the font list, next to it there'll be esacape sequence in ASCII and Hex format.
    2. Add the following command in the window of the signature:
    /: HEX TYPE PCL
    /= Enter the Hex escape sequence(begins with 1B) from first step
    /: ENDHEX
    Regards
    Sridhar

  • Step by step method of using sap script

    Can u pls provide me step by step method of using Sap Script
    Ankesh

    Find below the Links for Step By Step SAP Script
    http://www.thespot4sap.com/Articles/SAPscript_Introduction.asp
    http://abapliveinfo.blogspot.com/2008/01/free-sapscript-made-easy-46-book.html
    http://www.thespot4sap.com/articles/SAPscript_example_code.asp
    http://idocs.de/www3/cookbooks/sapscript/sapscript_1/docu.htm
    http://idocguru.com/www5/cookbooks/sapscript/sapscript_1/example.htm
    www.geocities.com/wardaguilar25/sapscript-tutorial.html
    http://logosworld.de/www3/cookbooks/sapscript/sapscript_8/docu.htm
    Hope this helps
    Vinodh Balakrishnan

  • How to print BARCODE in DATAMAX Printer using SAP Script?

    Hi,
    Can anybody guide me how to print BARCODE using DATAMAX Printer?
    I need to develop a SAP Script, through which i need to print the BARCODE.
    Pls. let me know the parameters for Script and how to print using print program.....
    Regards,
    Hemant

    make one form in sapscript with one main window: like this
    /E           ETIKETT
    /*           Format = '57x19', Printer = 'Bradyprinter Model 1344'
    /           ~f350
    /           ~n
    /           ~M0500
    /           ~O0220
    /           ~SG
    /           ~s
    /           ~c0000
    /           ~e
    /           ^D
    /           ~L
    /           D11
    /           H20
    /           PC
    /           pC
    /           SC
    /           A2
    /           1911A1200400005&knmt-kdmat&
    /           1911A0800300005&knmt-postx&
    /           1911A0800100005VS-Nr   :         &KNMT-MATNR&
    /           1911A0800000005Datum   :         &date&
    /           Q0001
    /           E
    in this script   &mseg-matnr&    and    &mseg-charg&    are 2D Barcodes
    /E           ETIKETT
    /*           Format = '57x19', Printer = 'Bradyprinter Model 1344'
    /           ~f350
    /           ~n
    /           ~M0500
    /           ~O0220
    /           ~SG
    /           ~s
    /           ~c0000
    /           ~e
    /           ^D
    /           ~L
    /           D11
    /           H20
    /           PC
    /           pC
    /           SC
    /           A2
    /           1Wc99000001400082000012012&mseg-matnr&
    /           ySPM
    /           1911A1000380055&mseg-matnr&
    /           1Wc99000001501702000012012&mseg-charg&
    /           1911A0800260055&mkpf-budat&
    /           1911A0800140055&mseg-mblnr&
    /           1911A0600020008&makt-maktx&
    /           Q0001
    /           E
    then you need your own printprogram and everything is fine. with open_form ;  start_form ; write_form;  end_form
    you can communicate direct with the Datamax Programming Language  from SAPScript to the Barcode printer.
    i also have the datamax programmers manual as pdf if you want i could send it to you. let me know by PM.
    also have look into HW 490295  the bartender Solution works fine for me to create the SO10 text's
    greetz
    tony
    Edited by: Tony Wienhold on Jul 17, 2009 4:37 PM

  • Date printing in SAP SCRIPT

    hi friends,
    I am workin in sap script, here i had used  
    PERFORM GET_DATE IN PROGRAM ZTEST
    USING &EKPO-EBELN&
    USING &EKPO-EBELP&
    CHANGING &DEL_DATE&
    ENDPERFORM
    AND in subroutine program i had writen logic to fetch date,
    but when I am printing date in my script, it is printed in format yyyymmdd, and i wan it in dd.mm.yyyy
    so is there any standard way i can do it?

    hi,
    CONVERSION_EXIT_PDATE_OUTPUT , use this function module
    or
    Write the below code in your subroutine
    DATA : wa_date(8) ,
           wa_date1(10).
    wa_date = sy-datum.
    CONCATENATE wa_date+6(2) WA_DATE+4(2) wa_date+0(4) INTO wa_date1 SEPARATED by '.'.
    WRITE wa_date1.
    Thanks & Regards
    Edited by: Always Learner on Dec 11, 2008 10:01 AM

  • How To Display Minus value in SAP SCript

    Hello Guys.
    I am working on a Script. My Problem is that For a fields BSAD-DMBTR.
    I have to show this fields value as minus or plus as per condition with fields
    <b>bsad-shkzg</b>. In my Internal table it's update as minus but when  I am calling  Write form with loop.  the value is not display with minus sign.
    How can I display value with minus sign in SAP script.
    Regards
    Swati,,

    Hello Guys..
    Thanks for Reply. But I am doing that thing already. My Internal table is updated with minus value. My Problem is not That.
    let's suppose.
    itab-name  =  'xyz'.
    itab-value   =   100.
    append itab.
    itab-name  =  'xyz1'.
    itab-value   =   -1 * 100.
    append itab.
    loop at itab.
    CALL FUNCTION 'WRITE_FORM'
        EXPORTING
            element                  = 'LINE'
            function                 = 'SET'
            type                     = 'BODY'
            window                   = 'MAIN'
          EXCEPTIONS
            element                  = 1
            function                 = 2
            type                     = 3
            unopened                 = 4
            unstarted                = 5
            window                   = 6
            bad_pageformat_for_print = 7
            spool_error              = 8
            codepage                 = 9
            OTHERS                   = 10.
        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.
    Now when value is printed in SAP Script both value is display as plus .I want to display secound value as minus.
    Please reply it's urgent.
    Thanks
    Swati....

  • How to avoid displaying date,time using Enhancement point.

    Hi friends,
    i have to work on the standard report.
    stadard report displays date,time ,reportname on the top of the page. my requirement is not to display date ,time,reportname.
    they have used the following code,
    WRITE text-001 TO m_line+d_offset(4). " Time
    WRITE sy-timlo USING EDIT MASK '__:__:__' TO m_line+d_offset(08).
    WRITE text-002 TO m_line+d_offset(05). " Date
    WRITE sy-datlo DD/MM/YYYY TO m_line+d_offset(10).
    BY using Enhancement point how to achieve my task.
    kindly help me

    Post Author: jsanzone
    CA Forum: WebIntelligence Reporting
    basham,
    You didn't mention which type of DBMS you are using (i.e. Oracle, MS SQL, MySQL, etc), but in a nutshell using MS SQL here is the principle.  Your time that is recorded in the records is dependent upon a setting in your RDBMS.  For instance, the RDBMS can use the machine time (which would most likely be local time), or it can use the machine time with an offset (to accomodate GMT, for instance).  GMT is factored differently based upon your time zone (and time of year, i.e. DST or EST, etc).  I'm on the east coast so right now my offset is GMT - 5, so if my time right now is 1457, then GMT is 1957.  To get SQL to compute an offset you must take the number of hours to offset and divide by 24 (24 hours in a day) and add that to the record in the database.  For instance, to get GMT right now I would use:
    select cast(getdate()5/24. as char(12))rtrim(convert(char(12),getdate()5/24.,8))' GMT'
    Hope this helps.  If you're on Oracle, then the mathematical principles remain the same, just the formatting will be different.

  • Displaying Date value using ASP

    Dear all,
    I am currently trying to display the value in an Oracle date
    field using ASP. However, I encountered the following error :
    Microsoft OLE DB Provider for ODBC Drivers error '80020009'
    Multiple-step OLE DB operation generated errors. Check each OLE
    DB status value, if available. No work was done.
    My code is as follow:
    set abc= server.createobject("adodb.recordset")
    abc.activeconnection = gDBConnectString
    sqlstring = "select c_datetime from counter_tbl where c_variable
    = 'counter1'"
    abc.open sqlstring
    response.write abc("c_datetime")
    I have tried using to_Date to format the field but when I try to
    display it, there will be the same errors again. The SQL
    statement executes successfully in SQLPLUS.
    Please help. Thanks!
    Regards,
    Dara.

    Hi Colin,
    I may be misinterpreting your question -- so I don't know how much this will help you, but the Oracle-to-java mapping for database table columns with the DATE datatype changed in the "ojdbc14.jar" driver (from the "classes12.zip" driver), from "java.sql.Timestamp" to "java.sql.Date".
    However, since I saw no details in your post regarding your environment/platform, like I said before, this may not help you much!
    In any case, the mappings (Oracle-to-java) are detailed in the Oracle documentation -- which is available from the Tahiti Web site (in case you didn't know). Have you checked the documentation?
    Good Luck,
    Avi.

  • Step by step procedure to design  a form using SAP Scripts (SE71)

    Hello Experts, I am new to SAP Scripts ...I am interested to learn SAP Scripts,
    Please help me out to learn SAP Scripts  by giving some example codes.
    Thanks and Regards,
    Shaik.

    check the following link for the same.
    SAP Script, Change form , SE71
    Regards,
    Gauravjit
    Reward points if the link is helpful

  • Displaying last page in SAP Script.

    HI All
    I have created 3 pages.
    Data will be displayed in the first page and 3 page ie the last page will display a small Note.
    I have a requirement in which Both First and last page should be displayed.
    IF data is too long then after first the next page should get displayed  and then the last page.
    I tried using start_from and End_form . but the issues was not solved.
    Please help.

    Hi,
    Please try to control the printing of First and last page based on the Internal Table contents.
    Check if the internal table is empty after printing the first page and then put a if-condition in the script editor to control triggering of second page.
    Then you can print the last page with instructions.
    Regards,
    Lakshmi

  • Catch error in javascript when using SAP script

    All,
    I have a issue when using Javascript to control the SAP GUI in that I get a "syntax Error" raised by Internet Explorer if I attempt to get the SAPGUI runtime object from the runtime object table if SAP is not already running.
    For example:
    I have a javascript function embedded in a web page as follows:
    <script type="text/javascript">
    function displaymessage()
    var sapgui;
    var application;
    var connection;
    if (typeof(application) == "undefined")
       sapgui      = GetObject("SAPGUI");
       application = sapgui.GetScriptingEngine();
    if (typeof(connection) == "undefined")
       connection = application.children(0);
    if (typeof(session) == "undefined")
       session = connection.children(0);
    if (typeof(WScript) != "undefined")
       WScript.connectObject(session, "on");
       WScript.connectObject(application, "on");
    session.findById("wnd[0]/tbar[0]/okcd").text = "fb50";
    session.findById("wnd[0]").sendVKey(0);
    session.findById("wnd[1]/usr/ctxtBKPF-BUKRS").text = "0001";
    session.findById("wnd[1]/usr/ctxtBKPF-BUKRS").caretPosition = 4;
    session.findById("wnd[1]").sendVKey(0);
    </script>
    I have a simple HTML page with a button on it that calls the function.
    If I have already launched SAP GUI and logged in the code works fine and atuomatically navigates me to FB50.
    If SAP is not active and logged in then I get a syntax error!  The error is raised by IE when the GetObject("SAPGUI") is executed.
    Can anyone please help by either:
    a) explaining how I can catch this error in javascript
    b) suggesting a different way to call the GetObject
    c) suggesting a way that I can auto launch SAP to log people in if it is not already active.
    Note - Using VB is not an option as I need to embed the working Javascript code in a Siebel thin client application which only uses Javascript.
    All help welcome. Thanks

    Hey Gunter,
    Thanks much, that did work.
    The other error I spoke of was fixed with the new database, so apparently the two errors I spoke of weren't related.
    You seem to be a good help to this forum, thank you for that.... fixing my problem relieved me from much stress.
    Cheers,
    Derek Miller
    Dreamweaver Enthusiast

Maybe you are looking for

  • Hello There, I have a macbook pro 10.6.8 2GHz intel core i7 4gb 1333MHz DDR3, it is continuously crashing with the following report;

    Interval Since Last Panic Report:  38496 sec Panics Since Last Report:          1 Anonymous UUID:                    FE4BA934-8824-4E34-AEFC-47973A17907E Wed Oct 30 10:41:08 2013 panic(cpu 6 caller 0xffffff80002251cd): "TLB invalidation IPI timeout:

  • Help in Blackberry Data Recovery Torch 2

    I have managed to delete a very import contact a few months back and i am unable to recover it i would like to know if i can recover older backup . the problem i face is that i backed up my device after the incident so can i restore backup that is no

  • Flash client not cleaning up socket connections

    I have an embedded flex application which recieves asyncronous data updates from a Blaze DS server on Tomcat that is using spring integration. I'm currently using a single, unsecure channel just to make things simple. My problem is that I'm periodica

  • How to load Data in Info Object

    Hi, i have a info-object Called "TYPE" the value for this is always going to be "S1". I dont want to add it manually as i want this data to get filled up automatically when transported. the other objects i either get it from R/3 data source or Flat f

  • Need help - I2C write/read with TAOS TCS3414 light sensor using USB-8451

    Hello, I'm new to labview and need help setting up a vi that will allow me to communicate with a digital light sensor (TAOS TCS3414) using a USB-8451. I need to use the sensor to measure light from a light source that I designed and built as part of