SAP script command for finding string length

Hi ,
Can anyone please let me know what is the equivalent command  to strlen() in sap script editor. I need to find the string length of a symbol in sap script editor itself without writing the logic in print program or by calling any includes in the sap script editor.
Regards,
Deepthi

Hi Deepthi,
As an alternative, you can use the perform statement in SAPscript so that it will execute a subroutine you implemented in another report.In the subroutine, you can do everything you want.
Have a look at this link to find out how exactly.
http://help.sap.com/saphelp_40b/helpdata/en/d1/803279454211d189710000e8322d00/content.htm
Best regards,
George

Similar Messages

  • Regarding SAP SCRIPT COMMAND

    Hi all,
    Can anyone tell me the which command i use in sap script for &itab-kunnr&.
    so many command are there so please suggest me...........
    and give command tutorial or link also....
    Zenithi.

    hi
    good
    check out all these SAP SCRIPT commands
    New-page <page name> Prints the text following this command on a new page (when a page name is specified then that page is taken as the next page)
    Protect ….. Endprotect This acts like a conditional page break. Putting the text within this command prevents the breaking of the text across multiple pages. If there is not enough space for the entire paragraph to be printed in the space remaining on the page, then the entire paragraph is printed on the next page
    Box <xpos> <ypos> <width> <height> <frame> <intensity>
    Position <xorigin> <yorigin> <window> <page>
    Size <width> <height> <window> <page>
    The BOX command draws a box as per the specifications. The x y co-ordinates are for the upper left corner relative to the values in the position command.
    POSITION command is used to set the x y co-ordinates with respect to the start position of the window.
    SIZE command is used to specify the size of the box that we need to draw.
    Varying these parameters also helps to draw a line instead of a box.
    IF ….. END IF This allows the conditional printing of the text on the output document. The various conditional operators that can be used are as follows
    = EQ Equal to
    < LT Less than
    > GT Greater than
    <= LE Less than or equal to
    >= GE greater than or equal to
    <> NE not equal to
    The logical operators that can be used are as follows
    NOT, AND, OR
    reward point if helpful.
    thanks
    mrutyun^

  • Sap script name for ERS invoice

    Hi,
    what is the sap script name for ERS invoice? ( transaction MRRL,calling program
    RMMR1MRS) .  Is there any way to supress the printing of the ERS invoice for some of the company codes/ countries?
    thanks in advance.
    Regards,
    Jyafip

    hi,
    Go to TNAPR table click table contents button and give the program name RMMR1MRS in field PGNAM and execute you will find the form name in FONAM field .. this is how generally we try to find for a form name for a corresponding program name .. but in this case i think the layout is not a script layout ..
    Regards,
    santosh

  • A command for finding an application's version number?

    Hello,
    I need a command for finding the version number of a specific application installed in OS X, and I need to be able to run it via the UNIX feature of Apple Remote Desktop, so that I can run it on hundreds of computers. First I tried this:
    system_profiler -detailLevel full
    It works, but it takes a long time to produce the output, because it's gathering and outputting all of the information that System Profiler provides. I don't know if there's a way to narrow it down so that it only gives me the version number of the specific application I need to know about. This is an example of what the output looks like for each application listed.
        iPhoto:
          Version: 9.2.1
          Last Modified: 10/27/11 10:05 AM
          Kind: Intel
          64-Bit (Intel): No
          App Store: No
          Location: /Applications/iPhoto.app
    Copying that to TextEdit and searching for the application's name takes way too long, especially for hundreds of computers. Are there any arguments or regular expressions I could add to the command to narrow it down, and make it only output the information I need?
    Someone suggested this command, which takes the information from Spotlight:
    mdls -name kMDItemVersion <path to file>
    That works for apps in the Applications folder, but the application I need the version number for is in the /usr/bin folder and I'm guessing that's not indexed by Spotlight, because it returns:
    kMDItemVersion = (null)
    Any help would be greatly appreciated!
    -Mike

    You rock! I'm definitely on the right track now. Yes, it's a regular application package, not a UNIX executable. Ok, so I use this command to display the Info.plist file inside that package:
    cat /usr/bin/uc/UndercoverRegistration.app/Contents/Info.plist
    And it outputs this:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
    <plist version="1.0">
    <dict>
        <key>CFBundleDevelopmentRegion</key>
        <string>English</string>
        <key>CFBundleExecutable</key>
        <string>UndercoverRegistration</string>
        <key>CFBundleIconFile</key>
        <string>Undercover</string>
        <key>CFBundleIdentifier</key>
        <string>com.orbicule.UndercoverRegistration</string>
        <key>CFBundleInfoDictionaryVersion</key>
        <string>6.0</string>
        <key>CFBundlePackageType</key>
        <string>APPL</string>
        <key>CFBundleShortVersionString</key>
        <string>4.5</string>
        <key>CFBundleSignature</key>
        <string>????</string>
        <key>CFBundleVersion</key>
        <string>4.5</string>
        <key>NSMainNibFile</key>
        <string>MainMenu</string>
        <key>NSPrincipalClass</key>
        <string>NSApplication</string>
    </dict>
    </plist>
    So can I add arguments to that command to have it only display the version number, which is on line 18 (the value is 4.5 here)? So would I be able to display only line 18, or display whatever is below the line that reads "<key>CFBundleShortVersionString</key>"? Thanks!

  • What is the form name (SAP script name ) for KO02 output .

    Hai ,
    what is the form name (SAP script name ) for KO02 output . and also pl guide how to customize that.
    thank u in advance

    spro---->controlling ->internal Order->Order Master Data----> Prepare Output and see the documentation of this.
    Regards
    Peram

  • All sap script commands are supported by smartform?

    hi experts
    pls answer me
    all sap script commands are supported by smartform?
    rewads apply.
    thanks.
    naresh.

    pls chk the link below:
    http://www.geekinterview.com/question_details/37873
    1.SCRIPTS ARE CLIENT DEPENDENT
      SMARTFORMS ARE CLIENT INDEPENDENT
    2.WE CANNOT ADD COLORS IN SCRIPTS
       WE CAN ADD COLORS IN SMARTFORMS
    3.WE CANNOT GET THE FUNCTION MODULE WHEN WE ACTIVATE THE PROGRAM
       WHEN WE ACTIVATE THE PROGRAM WE GET FUNCTION MODULE
    4.WE CAN WRITE ENTIRE CODE IN SMARTFROM ITSELF
    with luck,
    pritam.

  • Find the SAP Script name for the Output type RD00 and Appli V3

    Hi Gurus,
    My requirement was to copy the Std SAP Script for the output type RD00 and application name V3 and to do some modification.
    Please any one suggest me how to find the Std SAP script based on the above Output type and Appl ?
    Regards
    paul

    Hi,
    The script Name is LB_BIL_INVOICE
    You can find byNACE>V3>Output Types>RD00-->Processing Routines
    In thje output type Press Change button and select New entries.
    Regards
    Sandipan
    Edited by: Sandipan Ghosh on Mar 31, 2008 12:06 PM

  • Sap Script - Where to find "bipmap" objects.

    Hi All,
    In a window of the Sap Script I find this code:
    BITMAP EC_LG_0020 OBJECT GRAPHICS ID BMAP TYPE BMON
    INCLUDE EC_ST1_0020 OBJECT TEXT ID ST LANGUAGE IT PARAGRAPH H1
    My question: where can I find the objects saved on the Sap System, like EC_LG_0020?
    If I launch the tcode SO10 I can find only the object EC_ST1_0020.
    Any help will be well appreciated.
    Thanks in advance.
    Regards,
        Giovanni

    Hi
    All Images in SAP can be Found using SE78  Tcode , based on the whether it is Color or Blackn white image u can search in this Tcode.
    And all Standard texts can be found using SO10 tcode..
    for further information chk this link
    https://wiki.sdn.sap.com/wiki/display/ABAP/SAPscript
    surya

  • SAP SCRIPT function for converting  to lowercase or uppercase

    Hello,
    Does anyone know an built-in function for printing fields in lower or uppercase with SAP SCRIPT
    Regards

    hi,
    Check this way..
      DATA: DELIM(40) TYPE C VALUE ' '.
      DATA: CON_ANREX LIKE Q0002-ANREX.
      CALL FUNCTION 'STRING_UPPER_LOWER_CASE'
           EXPORTING
                DELIMITER = DELIM
                STRING1   = RECORD-ANREX
           IMPORTING
                STRING    = CON_ANREX
           EXCEPTIONS
                NOT_VALID = 1
                TOO_LONG  = 2
                TOO_SMALL = 3.
      IF SY-SUBRC EQ 0.
        RECORD-ANREX = CON_ANREX.
      ENDIF.
    Regards,
    Santosh

  • Sap script creation for SO & PO

    external subroutine creation for displaying Sales Order & Purchase Order scheduling details in the SAP script.

    Hi Shazia,
                 we can create SO,PO..etc through ABAP proxy.
                in proxy program you have to call BAP_PO_create...etc function module.
    please check the follwoing information regaring proxy.
    Proxy generation enables you to create proxies in application systems. Proxies encapsulate the creation or parsing of XML messages and the communication with the relevant runtime components required to send or receive the messages. The proxy runtime controls these processes and can itself be controlled in application programs by means of additional methods.
    Since the communication between the sender and receiver is decoupled, you can use proxies to exchange messages with various different communication parties, and also by using adapters. However, this section of the documentation only discusses the programming model for the proxy runtime.
    Please go through below docs
    XI: RFC or ABAP Proxy ? ....ABAP Proxies with attachments
    /people/michal.krawczyk2/blog/2006/04/19/xi-rfc-or-abap-proxy-abap-proxies-with-attachments
    /people/siva.maranani/blog/2005/04/03/abap-server-proxies - ABAP Server Proxy
    /people/ravikumar.allampallam/blog/2005/03/14/abap-proxies-in-xiclient-proxy - ABAP Client Proxy
    ABAP Proxy Runtime
    http://help.sap.com/saphelp_nw04s/helpdata/en/02/265c3cf311070ae10000000a114084/frameset.htm
    Setting Up Point-to-Point Connections with proxy
    http://help.sap.com/saphelp_nw04s/helpdata/en/85/78af1bf407434796aaf8dbd6d4e7b7/frameset.htm
    Reliable Messaging ? EOIO in ABAP Proxies
    /people/arulraja.ma/blog/2006/08/18/xi-reliable-messaging-150-eoio-in-abap-proxies
    /people/stefan.grube/blog/2006/07/28/xi-debug-your-inbound-abap-proxy-implementation
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3dfac358-0d01-0010-5598-d4900e81a30c
    regards
    mahesh.

  • SAP script form for Invoice

    Hi,
    I wanted to know SAP script for following output types :
    RD00 - Invoice - Application -V3
    LD00 - Delivery note - Application V2
    BA00 - Order Confirmation - Application -V1
    Thanks in Advance,
    Reshma

    Hi,
    BA00 -> RVORDER01
    RD00 -> RVINVOICE01
    LD00 -> RVDELNOTE
    Regards
    William

  • SAP script form for WM

    Hi,
           I want to know the standard script form for putaway in transaction LT31 .Is there any standard smart form for putaway in WM .And one thing you suggest that is it feasible to develop the smart form in WM?
    Kindly reply to all my queries .
    Regards
    Amit

    Hi Preet,
    Tracking number can be found in Delivery order
    Goto --> Header --> Shipment tab . Here the Bill of Lading number or Shipref number is the tracking number. You can get this number from LIKP-BOLNR.
    Hope this helps...
    Cheers
    VJ

  • Script commands for data header manipulation eg. HDLoad / HDSave / FileHDComment(n)

    I'm using the header manipulation commands extensively on DIAdem DAT files, these commands seems to not work with TDM files.
    What are the equivalent commands for manipulation the TDM header?

    Hi Sabcat,
    What I have done to get similar functionality is to register-load the data set and used the standard DIAdem variables such as ChnName, ChnComment to read off the attributes from the registered channels, instead of out of the TDM header.  File registration is available for TDM files and all other files which have a DataPlugin and is almost always instantaneous, because all it does is read the header info into the DataPortal-- not the data values themselves.  The command to programmatically register-load a data file is:
    Call DataFileLoad("FilePath", "TDM", "Register")
    Ask if you have further questions,
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • Key command for finding external startup drive??

    Hello -- I have an iBook G$ , running OS X 10.3.9. I fear the internal drive is dying. I have an external Firewire drive connected which has a OS X partition on it. I need to know what the KEY COMMAND is to force the iBook to find the OS X on the external drive. Does anyone know what this key command is?
    Thank you very much,
    Nick

    Hi Nick
    It is the Option Key you are after.
    Startup Manager: How to select a startup volume.

  • How to find string length in pixels

    Hi,
    I have a string "lucida bright regular". How can I get size of text in pixels.
    Can java.awt.Font work.
    An example wil really help.
    Thanks
    with regards

    Not exactly.
    I am applying font on text at web server using java
    and sending the resulting html to client end where
    is is displayed.
    Client can not change the
    font of that text.
    In that case you don't know the capabilities of modern browsers...
    Just because you want something bad enough doesn't make it happen.
    This is NOT Oz, this is the real world (or what passes for it for lack of alternatives).

Maybe you are looking for