Using SPELL_AMOUNT for passing converted text to Script

Hi all,
I tried to convert number to text using SPELL_AMOUNT function module, and when i specify the variable referring to SPELL inside script layout, it throws me error.
The script is not allowing me to specify  variables of type SPELL, but allows me to use only elementary data types.
Pls provide solution apart from using the function module  'HR_IN_CHG_INR_WRDS' (this works)..

karthikeyan 
i would suggest you to use subroutine pools for that.
You can use the PERFORM command to call an ABAP subroutine (form) from any program,
Syntax in a form window:
/: PERFORM <form> IN PROGRAM <prog>
/: USING &INVAR1&
/: USING &INVAR2&
/: CHANGING &OUTVAR1&
/: CHANGING &OUTVAR2&
/: ENDPERFORM
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 Field VALUE in structure ITCSY has the domain TDSYMVALUE (CHAR 80).
The internal table OUT_TAB contains names and values of the CHANGING parameters
in the PERFORM statement.

Similar Messages

  • What are Parameters? How are they differenet from Variables? Why can't we use variables for passing data from one sequnece to another? What is the advantage of using Parameters instead of Variables?

    Hi All,
    I am new to TestStand. Still in the process of learning it.
    What are Parameters? How are they differenet from Variables? Why can't we use variables for passing data from one sequnece to another? What is the advantage of using Parameters instead of Variables?
    Thanks in advance,
    LaVIEWan
    Solved!
    Go to Solution.

    Hi,
    Using the Parameters is the correct method to pass data into and out of a sub sequence. You assign your data to be passed into or out of a Sequence when you are in the Edit Sequence Call dialog and in the Sequence Parameter list.
    Regards
    Ray Farmer

  • No mnemonic or focus when using HTML for a components text

    When using HTML to set the text for a JLabel, JRadioButton or JCheckBox; mnemonics are never displayed and the outline depicting focus is never painted. Any ideas why? Any way of fixing this? Is it a known bug?
    JRadioButton radio1 = new JRadioButton( "<html>This is a test!</html>" );
    radio1.setMnemonic( KeyEvent.VK_T );
    radio1.setDisplayedMnemonicIndex( 8 );Thanks in advance,
    Jamie

    The accuracy of this response may vary depending on the look and feel you're using.
    The JRadioButton and, by virtue of being a subclass, JCheckBox are painted by the look and feel class. Those classes behave differently for HTML text. If the text property is HTML, that is there is a javax.swing.text.View that is responsible for rendering the text there is not even a call to paintFocus so the focus is never painted.
    Also, if there is no text the focus is not painted. This will happen if you create a JRadioButton with no String argument and use a separate JLabel with setLabelFor(Component) to associate it with the JRadioButton. The actual guts of the radio button never ever seems to show any indication of focus under any circumstances.
    I can only assume this is deliberate (rather than a bug) since there's fairly deliberate non-calling of methods and no provision for the focus indicator to be painted when there's no text associated with the JRadioButton or JCheckBox.

  • Beginner question - using pre for flexibility in text?

    Hi,
    Apologies for the beginner question, but I am struggling to work out whether it is more sensible to use <pre> in all my texts, as it seems more flexible.
    It seems that when I use <p> - paragraph - I can't use multiple space bars to align certain bits of text, but more disruptively I have gaps between text when I press Enter (I guess this defines the paragraph, but isn't always wanted).
    Well, basically, <pre> seems more flexible, but it behaves strangely sometimes. What do other people use?
    Many thanks!
    Ivan Reshetilov
    http://www.ivanreshetilov.co.uk

    Hi Ireshe, just a beginner like you.  Have never heard of <pre> tags, use <p> tags.  If you hit SHIFT enter after a sentence this puts in a <br> tag or line break which basically leaves a blank line between text.
    If you add     &nsbp;    or lots of them between words this gives you an extra space between letters.  How all your paragraphs sit on the page is defined by CSS.  E.g.
    p {
         margin:0;
         padding: 5px 0 0 10px;}
    This would place all text within <p> tags on your page, with a 5px gap at the top, no space to the right or bottom and 10px space to the left.  Hope this helps, good luck!
    Amanda
    www.kimberleywebdesign.com.au

  • Calling long text in script

    Hi everyone,
    can any one say the function module used to call the long text in scripts.

    Hi
    You can use read_text function module
    Important thing to notice while using READ_TEXT is that
    TEXT-ID field needs to be properly created based on Order number, Item no, Slaes Org, Distribution channel etc.
    Most of the time You will find that Sales organization field is of 4 characters lenght, (Say 0001) in this case Since SAP discards first 3 zeroes of the number to blank spaces, you need to append zeroes to the final text-id field making it of required 20 characters key field (Say).
    Therefore, you need to take care of append zeroes, shift spaces, concatenate command, etc. which depends on your scenario.
    you have to check the following parameters
    ID: this textid
    language:language u maintained the text,this also important
    name: The no in which text-id is maintained
    Usually we make mistake here,the no is combination of purchase order no and item no.
    Example:420000210000010(Puchase orderno:4200002100 item no:00010)
    Object:it change based on the text-id so u can check it the document no.
    CALL FUNCTION 'READ_TEXT'
    EXPORTING
    id = p_var
    language = g_f_langu
    name = g_f_tdname
    object = g_f_obj
    TABLES
    lines = g_t_lines
    EXCEPTIONS
    id = 1
    language = 2
    name = 3
    not_found = 4
    object = 5
    reference_check = 6
    wrong_access_to_archive = 7
    OTHERS = 8.
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Hope this definitely help.
    Regards
    - Atul

  • Hello! I used QuickTime for watch any videos on OS X Mountain Lion, but now, I'm passed to OS X Mavericks and QuickTime, when I open an .avi file, convert this in a .mov file. I'm sorry for my English, I'm French and I don't know speak English very well,

    Hello! I used QuickTime for watch any videos on OS X Mountain Lion, but now, I'm passed to OS X Mavericks and QuickTime, when I open an .avi file, convert this in a .mov file. I'm sorry for my English, I'm French and I don't know speak English very well, but what can I do for QuickTime opens on .avi and doesn't convert to .mov?

    HI GalaxieMusique,
    I'm french too, but I'm going to write this post in english so that everyone may understand it
    I have the same problem in Mavericks, but I'd say, more important, with QuickLook.
    Indeed Quicklook can't read avi movies anymore. Actually it always been the case, but with Perian we were able to fix it. The problem is that Perian is no longer available for Mac OS 10.9....
    I'd assume that our only hope is Apple themselves... It would be nice from Apple to creat an add-on for quicklook to be able to preview the avi movies.
    In regards with quicktime, you can download QuickTime 7 here:
    http://www.01net.com/telecharger/windows/Multimedia/lecteurs_video_dvd/fiches/10 0.html
    and ask all the .avi movies to be played by QuickTime 7 and not QuickTime X (included into Mac OS).
    Sorry for the english, we french people can make mistakes sometimes
    If anyone has a solution for QuickLook, please do not hesitate. This topic is becoming a real mess....

  • Using UDT's for passing rows to a PL/SQL procedure

    I'm trying to get a list of rows into a procedure...
    With ODP 11 - I thought that I would simply need to create a UDT of an object (i.e. user_id, first_name, last_name) and - then type which is a collection of that object.
    Then - using that object type collection as a parameter in my procedure - pass the numerous rows from .NET in.
    I've found a examples with varray's, nested varrays etc... but - nothing straight forward with passing a collection of rows.
    Does anyone know of any online examples that illustrate this?
    Thanks for your help!

    Hi,
    A BLOB variable is just a pointer to binary data and you are passing a text string to your procedure which is why you have the error. So to write a blob into a table in a procedure you need something like this:
    CREATE OR REPLACE PROCEDURE testone(
    V_TEXT IN VARCHAR2
    AS
    V_SIGIMG BLOB;
    BEGIN
    insert into sin_image values(empty_blob())
    returning blobcol into V_SIGIMG;
    -- then copy the text as binary data, this does not convert the text to binary data
    DBMS_LOB.WRITE(V_SIGIMG,1,LENGTH(V_TEXT),v_TEXT);
    commit;
    END;
    /However, if you want to upload images into the table it is easier to use the Apex functionality to upload the image into the APEX_APPLICATION_FILES table then move the blob into your table using an INSERT or UPDATE.
    Rod West

  • Change color of compoundPathItems created by converting Text to Paths using createOutline()

    I used createOutline() to convert Text to Paths. However, the return is a GroupItem and I had difficulty in changing its stroke and fill colors.
    Here is my script:
    var docActive = app.documents.add();
    var textFrame = docActive.pathItems.rectangle( 0, 0, 200, 20);
    var areaText = docActive.textFrames.areaText(textFrame);
    areaText.contents = "Hello My Friend";
    areaText.textRange.characterAttributes.size = Math.round(20*0.85);
    var textOutline = areaText.createOutline();
    // Trying to change stroke and fill colors of textOutline but got stuck here...

    try this, I added comments next to each line
    var docActive = app.documents.add();
    var textFrame = docActive.pathItems.rectangle( 0, 0, 200, 20);
    var areaText = docActive.textFrames.areaText(textFrame);
    areaText.contents = "Hello My Friend";
    areaText.textRange.characterAttributes.size = Math.round(20*0.85);
    var textOutline = areaText.createOutline(); // this is a group
    var compoundPaths = textOutline.compoundPathItems; // each letter is a compound path
    for (i=0; i<compoundPaths.length; i++) {    // loop thru all letters
        var compoundPath = compoundPaths[i];    // this holds one letter at a time
        var pathItems = compoundPath.pathItems; // all pieces (pathItems) of the compound path make up each letter
        for (j=0; j< pathItems.length; j++) {   // loop thru all letter parts
            var pathItem = pathItems[j];            // this holds one letter piece at a time
            pathItem.fillColor = docActive.swatches[5].color;       // fill it with the 5th swatch
            pathItem.strokeColor = docActive.swatches[4].color; // stroke it with the 4th swatch

  • Passing a login and password while using JNDI  for RT jobs

    Why can we not pass a user name and password when using JNDI for Real Time jobs?  Can it be passed in the URL line or somewhere else that I'm missing?  This is frustrating as we actually have to connect using Anonymous with no password which opens up so many security holes that we simply can't go to production with this.  Please advise.

    you can set the login using the JNDI properties file and create the file in the classpath, but again the password will be in plain text
    please file a case with Support I think this can be added to JMS adapter operation (user credentials)

  • Can I use OCR for just a single image in a text document?

    Hi All
    I have a 37page pdf document that is mostly recognised text. i think this document was created in MS word then converted to PDF. I did not make this document.
    There are images inserted on some pages that are scans from another document. The document has footnotes, page numbers, title, text paragraphs on the pages with the images i want to ocr. I have already used the highlight an sticky note functions for some of the recognised text and don't want them lost.
    I have tried using OCR for the whole document but it doesn't work (renderable error).
    Can I use the OCR function just on a selected image within a document that has renderable text for the most part?
    thanks.

    Read what it says on the ATT page
    http://www.att.com/ipad/?fbid=s18K8c1ujw3
     Cheers, Tom

  • Retrieve alert values for use as parameter in corrective action sql script

    I am trying to write a corrective action sql script to kill a session that is blocking other sessions. I have the "blocking session count" metric set and the alert is firing correctly.
    Is there any way to retrieve the sid and serial number from the alert generated and use it in a corrective action sql script?
    Here is the alert generated:
    Target Name=myproddb.world
    Target Type=Database Instance
    Host=myprodserver
    Metric=Blocking Session Count
    Blocking Session ID=SID: 522 Serial#: 5228
    Timestamp=Mar 4, 2008 5:57:12 PM EST
    Severity=Warning
    Message=Session 522 is blocking 1 other sessions
    Notification Rule Name=Testing Corrective actions
    Notification Rule Owner=sysman
    Clearly the sid, and serial # is contained within the alert Message field
    what I want to write for the sql script is :
    alter system kill session '%sid%,%serial_no%' immediate;
    and have GC pass in the sid and serial_no to the script.
    The "Target Properties" listed on the right of the Edit Corrective Action screen lists minimal details pertaining to the alert and certainly not the session sid, serial no.
    Generically, is there any way to retrieve the values from an alert and use them in a corrective action script or job?
    I've looked into getting the values from the mgmt$alert_history table, but I'm hoping that GC can pass the values to the sql script.
    thanks in advance for your help.

    Hi
    You can implementing a procedure like this.
    1. When a block session count alarms occurs, there is a column in the v$lock that you can examine.
    #!/bin/ksh
    #kill_block_session.sh
    #first export your variables
    export ORACLE_HOME=/oracle/product/10.2.0.3
    export ORACLE_SID=SIDNAME
    $ORACLE_HOME/bin/sqlplus "/ as sysdba" << EOF
    execute immediate killed_blocks;
    EOF
    # end
    The killed_blocks is a procedure:
    create procedure
    declare
    v_sid varchar2(15);
    v_serial varchar2(15);
    -- now a sql query that retrieve the sid and serial
    -- you can obtain these values from v$session and v$lock
    select vs.sid,vs.serial into v_sid,v_serial
    from v$session vs,v$lock vl
    where vs.sid=vl.sid
    and vl.block >0
    -- After this, you execute a dbms_put line with these
    -- values
    But you understant that this response action is very dangerous, because its possible that you kill sessions that the blocking are transitient.
    You must examine your enviroment and your application and establish the metric like UDM and not for only session blocking count.
    You must to see:
    - The type of block
    - The ctime time in the v$lock for to understatn the amount of time to determine that the block is need killed.
    - In my opinion you need a special UDM and deactivate the blocking sesion count
    If you want help to create this UDM send me a mail to [email protected]
    Regards
    Robert

  • How to perform a character protect when using include text in Script form?

    In my main window I have code as below:
    INCLUDE &GS_EKKO-EBELN& OBJECT EKKO ID F19 LANGUAGE EN
    INCLUDE &GS_EKKO-EBELN& OBJECT EKKO ID F19 LANGUAGE ZH
    There is nothing wrong with language zh but...
    For English,Every word at the end of line was splited
    EG:In text,It should be "I hate Sap script"
    But it is "I hate sap scr
                 ipt"
    I noticed that there is a protect in character which is used to prevent this,But text included is a command so I can't give them a character format.In default paragraph format there is only "para protect" which can't protect word but paragraph...
    I don't want to code in abap because I have static text and included long text appear alternatively,if coding,I will use so many text element one by one to loop the tdlines...
    So,If anyone can help me?
    Thanks~

    Thanks but
    If append tdlines...It would be
    /e Text element1
    xxxxxxxxxx
    /e tdlines1
    loop tdlines
    /e text element2
    xxxxxxx
    /e tdlines2
    loop tdlines
    /e text element3
    xxxxxx
    /e tdlines3
    loop tdlines
    Too many text element....
    Is there any other solution...?

  • Using Standard text in scripts

    Hi all,
    I had a problem while printing standard texts in scripts.
    I Know how to print standard text if we have to print it from the begining of window using
    INCLUDE &T024E-TXADR& OBJECT TEXT ID ADRS LANGUAGE &EKKO-SPRAS& PAR
    But my problem id i have print it after a hard coded text like
    Delivery schedule: 'here i have to print the standard text'.
    can any one please help me out how to solve the problem
    Thanks & regards
    sreehari p

    Hi,
    Here's one my brother taught me - you can actually trick the system to accommodate this requirement.
    Ensure that you use 2 different paragraph formats in your INCLUDE statement, using the PARAGRAPH and NEW_PARAGRAPH clauses, ie.
    INCLUDE &T024E-TXADR& OBJECT TEXT ID ADRS LANGUAGE &EKKO-SPRAS& PARAGRAPH P1 NEW-PARAGRAPH P2
    Paragraph P2 (which will be used as the first line) should be created as having a Line Spacing value of 1 TW (1 twip) which is less than 1/1000th of an inch.  Also, set the Left Margin value to an offset which brings the text to the right of the Delivery schedule literal.
    Paragraph P1 (which will be used for all subsequent lines) should be set up as normal - ie. use the same paragraph format as that for displaying your "Delivery schedule:" literal.  If you need the text to be indented in line with the first line, then copy your existing paragraph to a new paragraph but set the Left Margin value to the same as that in P2.
    What this does is to output the first line of text indented by the margin after skipping 1 twip, giving the illusion that it's actually on the same line.  Since subsequent lines are output with a normal (or normal/indented) paragraph, that just follows with normal spacing on subsequent lines.
    Hope this makes sense.
    Regards,  Andy

  • How to pass header text in bapi for sale order

    hai to all
    i am using BAPI_SALESORDER_CREATEFROMDAT2 to create sale order
    i can find order_text in tables parameters for creating item texts
    but in my senario i have to maintain header text
    please advice me how to proceed
    rgds
    vijay

    Hi Vijay,
    As I mentioned <b>it is very much possible to create sales order header text with this BAPI only</b>.
    Just check out following working code:
    REPORT yab_testso .
    DATA: orderheaderin LIKE bapisdhd1,
    orderitem TYPE TABLE OF bapisditm,
    wa_orderitem TYPE bapisditm,
    orderitemx TYPE TABLE OF bapisditmx,
    wa_orderitemx TYPE bapisditmx,
    orderpart TYPE TABLE OF bapiparnr,
    wa_orderpartner TYPE bapiparnr,
    ordertext TYPE TABLE OF bapisdtext,
    wa_text TYPE bapisdtext,
    orderret TYPE TABLE OF bapiret2,
    wa_ret TYPE bapiret2,
    lv_lines type i.
    orderheaderin-doc_type = 'ZZOR'.
    orderheaderin-sales_org = 'SS01'.
    orderheaderin-distr_chan = 'SH'.
    orderheaderin-division = 'ST'.
    wa_orderpartner-partn_role = 'SP'.
    wa_orderpartner-partn_numb = '1000000342'.
    APPEND wa_orderpartner TO orderpart.
    wa_orderpartner-partn_role = 'WE'.
    wa_orderpartner-partn_numb = '1000000342'.
    APPEND wa_orderpartner TO orderpart.
    wa_orderitem-itm_number = '10'.
    wa_orderitem-material = '000000111000000185'.
    wa_orderitem-target_qty = '10'.
    APPEND wa_orderitem TO orderitem.
    wa_text-text_id = '0012'.
    wa_text-langu = 'E'.
    wa_text-text_line = 'Test for text creation'.
    APPEND wa_text TO ordertext.
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
      EXPORTING
      SALESDOCUMENTIN               =
        order_header_in               = orderheaderin
      ORDER_HEADER_INX              =
      SENDER                        =
      BINARY_RELATIONSHIPTYPE       =
      INT_NUMBER_ASSIGNMENT         =
      BEHAVE_WHEN_ERROR             =
      LOGIC_SWITCH                  =
      TESTRUN                       =
      CONVERT                       = ' '
    IMPORTING
      SALESDOCUMENT                 =
      TABLES
       return                        = orderret
       order_items_in                =  orderitem
      ORDER_ITEMS_INX               =
        order_partners                = orderpart
      ORDER_SCHEDULES_IN            =
      ORDER_SCHEDULES_INX           =
      ORDER_CONDITIONS_IN           =
      ORDER_CFGS_REF                =
      ORDER_CFGS_INST               =
      ORDER_CFGS_PART_OF            =
      ORDER_CFGS_VALUE              =
      ORDER_CFGS_BLOB               =
      ORDER_CFGS_VK                 =
      ORDER_CFGS_REFINST            =
      ORDER_CCARD                   =
       order_text                    =  ordertext
      ORDER_KEYS                    =
      EXTENSIONIN                   =
      PARTNERADDRESSES              =
    describe table orderret lines lv_lines.
    READ TABLE orderret into wa_ret index lv_lines.
    IF wa_ret-type = 'S'.
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
      WRITE: / wa_ret-message_v2.
    ENDIF.
    Hope it helps.
    Regards,
    Akshay Bhagwat
    Note: Pls reward points if this helps you.

  • Pass the text file name to the command prompt using servlet

    hi to all,
    I have a HTML page that takes the user inputs. Once the user clicks on the submit button on the HTML page, these values will be capture by a servlet and then store into a text file. A new text file is generated each time the user clicks on the submit button.
    Now, i need to call a command prompt window and then pass the text file name to another program for execution. Any idea how i can pass the text file name to the command prompt???
    Thanx a lot....
    kinki

    hi, thanx 4 ur reply.
    But i not onli want to display the file name on the Tomcat command prompt. I must also able to call up a program to execute the command. If i used System.out.println(); it onli display the value on the console windows. But not executing it... anyway where i can do it???.
    thanx...
    Kinki

Maybe you are looking for

  • There are multiple users with the same display name

    Hi, We have a user and when she get an item assigned to her she sees the following alert: "There are multiple users with the same display name USERNAME and at least one of them does not have read permissions to some of the files" Now I looked in the

  • How can I have one "family" Apple ID and two icloud accounts one for me and one for the wife?

    MacVirgin!Just got new Air and iMac (iphones on the way). How can I have one Apple ID but two iCloud accounts (one for me and one for my wife)? I have set up one iCloud account and am attempting to share contacts between iMac, iCloud and Air, however

  • Display and Printing Problems

    I am using Photoshop CS5 extended on a minimac running 10.7.4. I have the lastest updates from Adobe installed for the Adobe Creative Design Premium Suite 5.5. I am having problems with photos not displaying correcting, but not all the time. This may

  • Export with timestamp check?

    Hi all i want to export data ( only tables ) by export syntax, my requirement is to restrict data accordingly to date range with respect to time stamp date. anyone can help if it is possible. Waiting............

  • Security Violation when using -link to sun APIs

    I'm interested in a work around for this irritating (but non-critical) bug: When I create application docs that -link to the sun APIs, moving from my Javadoc pages to the sun API pages causes a browser security violation: Line: 13 Error: Access is de