Rpad alternate function

Hi All,
Can anyone tell me is there any alternate function for rpad in pl sql.I am using rpad in my application but there seems to be some problem as the query is returning some data but in the front end , it is showing as null.

REGEXP is available from oracle 10g , its not present in 9i.
Please check out for the alternative here -
Possibility of installing regexp for 9i
Hope this helps -
tempdbs :)
www.dwforum.net

Similar Messages

  • Any alternate function for FLD in NW7.5

    Hi All
    Is there any alternate function for FLD in NW7.5.
    I can't use FLD in NW.
    In one my script logic i need to get value from property and multiply with an account.
    Edited by: satish193 on Mar 29, 2011 2:15 PM

    Hi,
    You can try using something like:
    <member ID>.<property name>
    Hope this helps.

  • Any alternate function to EDIT_TEXT?

    Hi!
    is there any alternate function to EDIT_TEXT?
    I want to change the text length of a standard text/long text, which function module to use?
    Also, which function module SAP standard progam used to display a text and change a text length?

    REPORT ZTEXT .
    TABLES: PBIM.
    stxh, stxl, stxb - trans tables for text
    ttxit - text on text-ids
    ttxot - Short texts on text objects
    Transaction MD63
    SELECT-OPTIONS: S_MATNR FOR PBIM-MATNR,
                    S_WERKS FOR PBIM-WERKS.
    DATA: BEGIN OF HTEXT.
            INCLUDE STRUCTURE THEAD.
    DATA: END OF HTEXT.
    DATA: BEGIN OF LTEXT OCCURS 50.
            INCLUDE STRUCTURE TLINE.
    DATA: END OF LTEXT.
    DATA: BEGIN OF DTEXT OCCURS 50.
    DATA:   MATNR LIKE PBIM-MATNR.
            INCLUDE STRUCTURE TLINE.
    DATA: END OF DTEXT.
    DATA: TNAME LIKE THEAD-TDNAME.
    SELECT * FROM PBIM WHERE WERKS IN S_WERKS.
      MOVE PBIM-BDZEI TO TNAME.
      CALL FUNCTION <b><b>'READ_TEXT'</b></b>
           EXPORTING
              CLIENT                  = SY-MANDT
              ID                      = 'PB'
              LANGUAGE                = 'E'
              NAME                    = TNAME
              OBJECT                  = 'PBPT'
            ARCHIVE_HANDLE          = 0
         IMPORTING
              HEADER                  = HTEXT
         TABLES
              LINES                   = LTEXT
         EXCEPTIONS
              ID                      = 1
              LANGUAGE                = 2
              NAME                    = 3
              NOT_FOUND               = 4
              OBJECT                  = 5
              REFERENCE_CHECK         = 6
              WRONG_ACCESS_TO_ARCHIVE = 7
              OTHERS                  = 8.
      LOOP AT LTEXT.
        IF LTEXT-TDLINE NE ''.
          MOVE LTEXT-TDLINE TO DTEXT-TDLINE.
          MOVE PBIM-MATNR TO DTEXT-MATNR.
          APPEND DTEXT.
        ENDIF.
      ENDLOOP.
    ENDSELECT.
    LOOP AT DTEXT.
      WRITE:/ DTEXT-MATNR, DTEXT-TDLINE.
    ENDLOOP .
    regards
    vinod

  • Any alternate function for FLD

    Hi All
    Is there any alternate function for FLD in NW7.5.
    I can't use FLD in NW.
    In one my script logic i need to get value from property and multiply with that account.
    EX:
    Account                                     Tax
    A    -
                   50%
    B      -
                  60%
    Any idea

    Hi,
    You can try using something like:
    <member ID>.<property name>
    Hope this helps.

  • Alternate function of lead

    Hi,
    what is the alternate function of lead in oracle
    thanks

    Please, refer to:
    http://docs.oracle.com/cd/B19306_01/server.102/b14200/functions074.htm

  • RPAD NVL function

    I am using a function in a select statement (saturn_midd.stud_adm_util_miis_pkg.get_email_address(srbrecr_pidm)
    It is returning the right results but I am trying to line up correctly, it seems that if value before is null it will move the email
    the output, the email should be lining up
    00468474 Mr. Eamonn Gallagher 200998 QIPU CMQ LSWA LSAK [email protected]
    00469714 Ms. Ly Le P.O. Box 7907, Farin Easton PA 18042 200998 QIPU CMQ L [email protected]
    Can I do this in a function
    RPAD(NVL(saturn_midd.stud_adm_util_miis_pkg.get_email_address(srbrecr_pidm),' ',50, ' ') email_address,I am using the RPAD function like this
    CASE
                       WHEN spraddr_atyp_code = 'CR'
                       AND spraddr_atyp_code != 'CM'
                          THEN RPAD (NVL (spraddr_zip, ' '), 8, ' ')
                    END zip1,
                    CASE
                       WHEN spraddr_atyp_code = 'CR'
                       AND spraddr_atyp_code != 'CM'
                          THEN RPAD (NVL (spraddr_cnty_code, ' '), 8, ' ')
                    END cnty_code1,
                    CASE
                       WHEN spraddr_atyp_code = 'CR'
                       AND spraddr_atyp_code != 'CM'
                          THEN RPAD(NVL(spraddr_natn_code, ' '), 8,' ' )Edited by: user648177 on Apr 28, 2009 10:33 AM
    Edited by: user648177 on Apr 28, 2009 10:33 AM

    Hi,
    You asked
    Can I do this in a functionWell, yes:
    MHO%xe> create or replace function gimme_null
      2  return varchar2
      3  as
      4  begin
      5   return null;
      6  end;
      7  /
    Functie is aangemaakt.
    Verstreken: 00:00:00.73
    MHO%xe> select '$'||rpad(nvl(gimme_null, ' ' ), 10, ' ')||'$' from dual;
    '$'||RPAD(NVL(GIMME_NULL,''),10,'')||'$'
    $          $
    Verstreken: 00:00:00.01
    MHO%xe> select length(rpad(nvl(gimme_null, ' ' ), 10, ' ')) from dual;
    LENGTH(RPAD(NVL(GIMME_NULL,''),10,''))
                                        10So, I suspect not lining up correctly happens in some preceding column.
    Unfortunatly your sample data is unformatted and your query incomplete and we lack the column names you need.
    So, that's all I can say based on your inputs sofar....
    Edited by: hoek on Apr 28, 2009 8:06 PM turned <>'s into $ so it's visible

  • Alternate Function Module for ARCHIVELINK_URL_GENERATE in ECC 6.0

    Please suggest the alternate functiuon module for ARCHIVELINK_URL_GENERATE as this is obsoleted  IN ECC 6.0.
    Helpful answers would be rewarded.
    Thanks ,
    Rajesh.

    Hello Neeraj,
    I hope that you could help me with one question regarding the use of the functon module ARCHIVELINK_URL_GENERATE. We are on the very old 4.7 , the solution we have stores incoming invoices as doc class fax to an http content server. The end users are currently viewing the images using the abap viewier...
    What I want to archieve is a way to read the URL of the invoice and pass it as a link within an email message to approvers. This way, when they receive thier message, they could click on the link and it would open the image directly from the content server. Am I on the right track with this FM or do I need to re.think the approach a little?
    BR,
    Lola.

  • Function buttons/alternate functions

    I don't know exactly how it happened, but the functions of my buttons changed. Whenever I want to change my volume or pause a song and have to hold down the "Fn" key and then hit volume up or whatever. With the new functions of these keys it will jump to Spaces, or show all my open windows or show my desktop. So I actually kind of like the shortcuts my keys give me now, but I was just wondering how exactly they got switched and how to switch them back. Thanks

    Open Keyboard preferences in System Preferences. If you have the option to reverse the function key use checked then uncheck it to return to the "normal" usage.

  • Calling a function from procedure

    Please someone let me know if I'm going in the right direction or am I making it too difficult for myself. I'm only using the exam guide on programming units which assumes the reader already has a firm grasp on the material. I am entry level and need guidance.
    The problem:
    write a calling procedure and a function that will accomplish the following: The calling procedure will find all employees on the EMP table who's hire date is between Jan 01 and Apr 30, 1981. The function will then a 5% pay raise for each of the selected employees. The calling procedure will then display the employee number, employee name, and the new salary for each of the selected employees. Logically, then, the calling procedure will find the first employee within the date range, pass the employee current salary to the function, the function will compute the 5% pay raise and return the new salary to the calling procedure. The calling procedure will then display the required results..
    //Function
    create or replace function func_calc_emp_raise
    (p_sal IN OUT NUMBER)
    RETURN NUMBER
    IS
    BEGIN
    p_sal := p_sal * 1.05;
    RETURN p_sal;
    END;
    //procedure
    CREATE OR REPLACE PROCEDURE PROC_EMP_RAISES
    (p_empno VARCHAR2,
    p_ename VARCHAR2,
    p_sal NUMBER)
    IS
    v_empno emp.empno%type;
    v_ename emp.ename%type;
    v_sal emp.sal%type;
    CURSOR cur_raise
    IS
    SELECT empno, ename, sal
    FROM emp
    where hiredate between
    TO_DATE('JAN-01-1981','MON-DD-YYYY') and
    TO_DATE('APR-30-1981','MON-DD-YYYY');
    BEGIN
    open cur_raise;
    LOOP
    FETCH cur_raise INTO v_empno, v_ename, v_sal;
    EXIT WHEN (cur_raise%NOTFOUND);
    v_sal:= func_calc_emp_raise(v_sal);
    END LOOP;
    close cur_raise;
    end proc_emp_raises;
    Both compile correctly but how do I get output?
    Dee

    I am not getting the error that you are. Did you create the function as originally posted? What version of Oracle are you using? I am using Oracle 8.1.7. Although it seems to tolerate the parameter passed to the function as IN OUT and allows modifictaion of the p_sal parameter, earlier versions of Oracle may require that it only be IN and that you not modify the input parameter. I have listed an alternate function below:
    SQL> CREATE OR REPLACE FUNCTION func_calc_emp_raise
      2    (p_sal IN NUMBER)
      3    RETURN      NUMBER
      4  IS
      5  BEGIN
      6    RETURN p_sal * 1.05;
      7  END func_calc_emp_raise;
      8  /
    Function created.
    SQL> SHOW ERRORS
    No errors.
    SQL> -- Procedure:
    SQL> CREATE OR REPLACE PROCEDURE proc_emp_raises
      2  AS
      3  BEGIN
      4    FOR rec IN
      5        (SELECT empno, ename, sal
      6         FROM      emp
      7         WHERE  hiredate BETWEEN TO_DATE ('JAN-01-1981','MON-DD-YYYY')
      8                   AND       TO_DATE('APR-30-1981','MON-DD-YYYY'))
      9    LOOP
    10        DBMS_OUTPUT.PUT_LINE
    11          (rec.empno              || ' '
    12           || RPAD (rec.ename, 20)
    13           || ' '
    14           || TO_CHAR (func_calc_emp_raise (rec.sal)));
    15    END LOOP;
    16  END proc_emp_raises;
    17  /
    Procedure created.
    SQL> SHOW ERRORS
    No errors.
    SQL> -- Execution:
    SQL> SET SERVEROUTPUT ON SIZE 500000
    SQL> EXECUTE proc_emp_raises
    7499 ALLEN                1680                                                 
    7521 WARD                 1312.5                                               
    7566 JONES                3123.75                                              
    PL/SQL procedure successfully completed.

  • Function Module CALL FUNCTION 'SO_SPLIT_FILE_AND_PATH'

    Hello All,
    While using CALL FUNCTION 'SO_SPLIT_FILE_AND_PATH' to download to Unix file in GLD (Version 4.5b) the F.M is working fine, but in KLD(Version ECC 6.0)  CALL FUNCTION 'SO_SPLIT_FILE_AND_PATH' is not working & the error message is displayed saying incomplete filename.
    Could you let me know any alternate Function Module/ Method in this regard.
    Thanks

    Hi,
    In ECC6 also Its Working fine only.
    1. Go to SE37 -> Enter FM Name  -> Test(F8).
    2.  Give any file path and test it.
    Thanks,
    Reward If Helpful.

  • Unicode Error in DOWNLOAD function module

    Hi ABAPpers,
    I am getting the unicode error in using
    CALL FUNCTION 'DOWNLOAD'
           EXPORTING
             bin_filesize = v_bytecount
             filename     = v_download_filename
             filetype     = 'WK1'
           IMPORTING
             act_filename = v_download_filename
           TABLES
             data_tab     = i_download.
    If i try to use GUI_DOWNLOAD, it doesn't have importing parameter act_filename.
    What alternate function module should i use to rectify this unicode error?
    Regards,
    Rahul

    Hi,
    The answer is similar to the one for your previous post. You need to use both CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG and GUI_DOWNLOAD
    DATA: PRC_WINDOW_TITLE      TYPE STRING,
          PRC_DEFAULT_FILE_NAME TYPE STRING,
          PRC_INITIAL_DIRECTORY TYPE STRING,
          PRC_FILE_NAME         TYPE STRING,
          PRC_PATH              TYPE STRING,
          PRC_FULL_PATH         TYPE STRING,
          PRC_USER_ACTION       TYPE I.
    PRC_INITIAL_DIRECTORY = FILENAME.
    PRC_DEFAULT_FILE_NAME = FILENAME.
    PRC_WINDOW_TITLE      = 'Debitoren-Saldenliste'.
    CALL METHOD CL_GUI_FRONTEND_SERVICES=>FILE_SAVE_DIALOG
      EXPORTING
        WINDOW_TITLE         = PRC_WINDOW_TITLE
        DEFAULT_FILE_NAME    = PRC_DEFAULT_FILE_NAME
        INITIAL_DIRECTORY    = PRC_INITIAL_DIRECTORY
      CHANGING
        FILENAME             = PRC_FILE_NAME
        PATH                 = PRC_PATH
        FULLPATH             = PRC_FULL_PATH
        USER_ACTION          = PRC_USER_ACTION
      EXCEPTIONS
        CNTL_ERROR           = 1
        ERROR_NO_GUI         = 2
        NOT_SUPPORTED_BY_GUI = 3
        OTHERS               = 4
    IF SY-SUBRC = 0 AND PRC_USER_ACTION NE
    CL_GUI_FRONTEND_SERVICES=>ACTION_CANCEL.
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
         FILENAME                        = PRC_FILE_NAME
         FILETYPE                        = 'ASC'
         WRITE_FIELD_SEPARATOR           = '#'
        TABLES
          DATA_TAB                        = TAB_EXCEL
       EXCEPTIONS
         FILE_WRITE_ERROR                = 1
         NO_BATCH                        = 2
         GUI_REFUSE_FILETRANSFER         = 3
         INVALID_TYPE                    = 4
         NO_AUTHORITY                    = 5
         UNKNOWN_ERROR                   = 6
         HEADER_NOT_ALLOWED              = 7
         SEPARATOR_NOT_ALLOWED           = 8
         FILESIZE_NOT_ALLOWED            = 9
         HEADER_TOO_LONG                 = 10
         DP_ERROR_CREATE                 = 11
         DP_ERROR_SEND                   = 12
         DP_ERROR_WRITE                  = 13
         UNKNOWN_DP_ERROR                = 14
         ACCESS_DENIED                   = 15
         DP_OUT_OF_MEMORY                = 16
         DISK_FULL                       = 17
         DP_TIMEOUT                      = 18
         FILE_NOT_FOUND                  = 19
         DATAPROVIDER_EXCEPTION          = 20
         CONTROL_FLUSH_ERROR             = 21
         OTHERS                          = 22
    ENDIF.

  • Error with function module TABLE_COMPRESS?

    Hi all,
    What is the alternate function module for TABLE_COMPRESS?
    This is going fine in 4.7 version.
    But in ECC 6.0, if we use this function module we r getting SLIN error (Obsolate statements) .
    How can we rectify this SLIN error?
    So we have to use another funtion module for the same purpose.
    Can any one help on this?
    Rewards to all.
    Thanks & Regards
    Anu.

    Hi,
    I you have complex type in the parameter list you will get this error for example generic types, xtrings, strings, object references.
    But, function module can be called from programs.
    Check for Oss notes if you want to solve this problem
    Best regards..

  • Alternate BAPI for BAPI_SALESDOCUMENT - Mass creation

    We are trying to mass create Schedule lines for the SD contract items through the BAPI "BAPI_SALESDOCUMENT_CHANGE". The performance is very slow for bulk items.
    This scedule line creation is equivalent to creating scedule lines through the transaction VA42.
    Is there any alternate function module or BAPI for mass creation of schedule lines for the SD contract?

    Depends on your release: in ECC 6.0 i have BAPI_SALESORDER_CREATEFROMDAT2
    Nevermind: it's contracts not salesorder.
    Try BAPI_CUSTOMERCONTRACT_CHANGE or do a F4 on BAPICONTRACT
    Edited by: Maen Anachronos on Sep 16, 2010 1:19 PM

  • Obsolate statement for function module TABLE_COMPRESS

    Hi all,
    What is the alternate function module for TABLE_COMPRESS?
    This is going fine in 4.7 version.
    But in ECC 6.0, if we use this function module we r getting SLIN error (Obsolate statements) .
    How can we rectify this SLIN error?
    So we have to use another funtion module for the same purpose.
    Can any one help on this?
    Rewards to all.
    Thanks & Regards
    Anu.

    Hello,
    This Function Module belongs to the Function Group SYST. I really doubt if this is going to be made obsolete without providing an alternative. In such a case there would almost certainly have been an OSS Note. However, I could not find any OSS note for this.
    Moreover, the Function Module doesn't have "obsolete" flag set if you see from SE37. Therefore it must be really safe to use this function module in your program.
    Still, I will try to get a confirmation for this.
    Regards,
    Anand Mandalika.

  • Why don't "browser.fixup.alternate.suffix" work, I end up in Google search instead?

    I have entered ".se" as suffix and enabled fixup.alternate. But if enter "volvo" in the address field the browser doesn't proceed to www.volvo.se, instead I end up in www.google.se. Why, what is wrong? /Tomas

    I found the answer to this problem my self by browsing other questions with the same problem.
    I had to set "keyword.enabled" to "false" in order to get the the "browser.fixup.alternate" function to work!
    There is a good description of this function in Common questions under "Location bar search".

Maybe you are looking for