BYPASS_BUFFER parameter of HR_READ_INFOTYPE FM

Hi all you ABAP experts!
I need to understand what exactly does the BYPASS_BUFFER of the HR_READ_INFOTYPE do? Could any of you please explain me if possible with an example what is intended for?
Many thanks in advance.

If a database table is read, then part of the table is/can be stored in a buffer. In this way, database reads are faster, cause the system gets the data from memory and does not have to read the data in the database.
If the table however is frequently updated, then it can happen that the data in the buffer is outdated.
You can avoid reading the buffers by using the BYPAS_BUFFER flag. All data will be read in the database. Data will be accurate, but your data retrieval will be a lot slower.

Similar Messages

  • FM: HR_READ_INFOTYPE Problem

    Hi all you ABAP experts!
    I'm working in a program (report mode) that has to read the data from an Infotype (in this case is IT0584) just after the IT has been created (by the same program, using CALL TRANSACTION). I am using the HR_READ_INFOTYPE FM as follows:
        CLEAR: p0584, p0584[].
        CALL FUNCTION 'HR_READ_INFOTYPE'
          EXPORTING
            pernr           = l_test_pernr
            infty            = l_infty
            "BYPASS_BUFFER   =  'X'
          TABLES
            infty_tab       = p0584
          EXCEPTIONS
            infty_not_found = 1
            OTHERS          = 2.
        " p0584 was declared using: INFOTYPES: 0584.
    As you can notice the BYPASS_BUFFER parameter is commented. The "problem" is that I can see the record just created in SE16 but I can't get anything into p0584.
    Now, if I uncomment the BYPASS_BUFFER I get the record(s) into p0584. Could anybody please explain me why this happens? How exactly does the BYPAS_BUFFER parameter is affecting p0584?
    This really confuses me because I'm using the same FM without the BYPASS_BUFFER at the begining of the program for the same Infotype and successfully getting the existing records by that moment.
    I will really appreciate if any can provide me the answer. Many thanks in advance!

    HI
    Hope this will help you.
    try to make use of FM
    'HR_INFOTYPE_OPERATION'
    and see the sample code:-
    https://www.sdn.sap.com/irj/sdn/wiki?path=/pages/viewpage.action&pageid=13160
    REPORT YBDC_NEW_586
    no standard page heading line-size 255.
    data: begin of i_upload occurs 0,
    pernr like pa0586-pernr,
    bedda(10) type c,
    ebdda(10) type c,
    pin01 like pa0586-pin01,
    pin02 like pa0586-pin01,
    pin03 like pa0586-pin01,
    pin04 like pa0586-pin01,
    pin05 like pa0586-pin01,
    pin06 like pa0586-pin01,
    pin07 like pa0586-pin01,
    pin08 like pa0586-pin01,
    pin09 like pa0586-pin01,
    pin11 like pa0586-pin01,
    pin12 like pa0586-pin01,
    pin13 like pa0586-pin01,
    pin14 like pa0586-pin01,
    pin16 like pa0586-pin01,
    pin17 like pa0586-pin01,
    pin18 like pa0586-pin01,
    pin19 like pa0586-pin01,
    pin20 like pa0586-pin01,
    pin21 like pa0586-pin01,
    pin22 like pa0586-pin01,
    pin23 like pa0586-pin01,
    pin24 like pa0586-pin01,
    pin25 like pa0586-pin01,
    ain01 like pa0586-ain01,
    ain02 like pa0586-ain01,
    ain03 like pa0586-ain01,
    ain04 like pa0586-ain01,
    ain05 like pa0586-ain01,
    ain06 like pa0586-ain01,
    ain07 like pa0586-ain01,
    ain08 like pa0586-ain01,
    ain09 like pa0586-ain01,
    ain11 like pa0586-ain01,
    ain12 like pa0586-ain01,
    ain13 like pa0586-ain01,
    ain14 like pa0586-ain01,
    ain16 like pa0586-ain01,
    ain17 like pa0586-ain01,
    ain18 like pa0586-ain01,
    ain19 like pa0586-ain01,
    ain20 like pa0586-ain01,
    ain21 like pa0586-ain01,
    ain22 like pa0586-ain01,
    ain23 like pa0586-ain01,
    ain24 like pa0586-ain01,
    ain25 like pa0586-ain01,
    end of i_upload.
    data: begin of p586 occurs 0,
    icode like pa0586-itc01,
    pinvt like pa0586-pin01,
    ainvt like pa0586-ain01,
    end of p586.
    data: p0586 like p0586 ,
    ia586 like pa0586 occurs 0 with header line,
    return like bapireturn1,
    pin_ainvt type pin_ainvt.
    S E L E C T I O N - S C R E E N D E F I N I T I O N *
    selection-screen begin of block b1 with frame title text-001.
    parameters: p_file like rlgrap-filename obligatory,
    p_begda like pa0586-begda obligatory,
    p_endda like pa0586-endda obligatory.
    selection-screen end of block b1.
    E V E N T H A N D L I N G - B E G I N *
    at selection-screen on value-request for p_file.
    perform get_file using p_file.
    START OF SELECTION - B E G I N *
    start-of-selection.
    data: lines like sy-index.
    *Getting the file data.
    perform upload using p_file.
    loop at i_upload.
    ia586-pernr = i_upload-pernr.
    ia586-endda = p_endda.
    ia586-begda = p_begda.
    perform col_row.
    perform do.
    append ia586.
    clear : ia586,p586.
    refresh : p586.
    endloop.
    loop at ia586.
    move-corresponding ia586 to p0586.
    CALL FUNCTION 'HR_EMPLOYEE_ENQUEUE'
    EXPORTING
    NUMBER = p0586-pernr.
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
    EXPORTING
    INFTY = '0586'
    NUMBER = p0586-pernr
    LOCKINDICATOR = ''
    VALIDITYEND = p0586-endda
    VALIDITYBEGIN = p0586-begda
    RECORD = p0586
    OPERATION = 'INS' or MOD or DEL
    NOCOMMIT = ''
    tclas = 'A'
    IMPORTING
    RETURN = RETURN
    EXCEPTIONS
    OTHERS = 0.
    CALL FUNCTION 'HR_EMPLOYEE_ENQUEUE'
    EXPORTING
    NUMBER = p0586-pernr.
    clear : p0586.
    endloop.
    *& Form GET_FILE
    Show "Open File" dialog box on F4
    -->P_W_FILE Name of the file selected by the user
    form get_file using p_w_file.
    call function 'KD_GET_FILENAME_ON_F4'
    CHANGING
    file_name = p_w_file
    EXCEPTIONS
    mask_too_long = 1
    others = 2.
    if sy-subrc ne 0.
    message id sy-msgid type sy-msgty number sy-msgno
    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
    endform. "GET_FILE
    *& Form UPLOAD
    Upload the file into the internal table for processing
    -->P_LOADFILE Name of file to upload
    form upload using p_loadfile.
    Read the file into the Internal Table
    CALL FUNCTION 'WS_UPLOAD'
    EXPORTING
    filename = p_loadfile
    filetype = 'DAT'
    TABLES
    data_tab = i_upload.
    if sy-subrc ne 0.
    message id sy-msgid type sy-msgty number sy-msgno
    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
    endif.
    endform. "UPLOAD
    FORM col_row .
    if i_upload-ain01 is not initial or i_upload-pin01 is not initial.
    p586-icode = '01'.
    p586-pinvt = i_upload-pin01.
    p586-ainvt = i_upload-ain01.
    append p586.
    clear p586.
    endif.
    if i_upload-ain02 is not initial or i_upload-pin02 is not initial.
    p586-icode = '02'.
    p586-pinvt = i_upload-pin02.
    p586-ainvt = i_upload-ain02.
    append p586.
    clear p586.
    endif.
    if i_upload-ain03 is not initial or i_upload-pin03 is not initial.
    p586-icode = '03'.
    p586-pinvt = i_upload-pin03.
    reward if help.

  • Disable buffering on custom infotypes

    Is there a standard way to bypass the buffering concept on custom infotypes? Possibly by using a field on T582A or T777D that would allow you to flag this part of code to be skipped at your request?

    Dear Justin,
    We normally advise the customer to call function module 'HR_PSBUFFER_INITIALIZE' before the call of 'HR_MAINTAIN_MASTERDATA' in order to clean the buffer data.  Or else passing `X` to Bypass_buffer parameter should solve your issue too.
    Hope it helps,
    Regards
    Christine

  • Refresh PS Table for FM : 'HR_READ_INFOTYPE' ( not 'BYPASS_BUFFER' )

    Hi Experts,
    I am using 'HR_PERSONEE_GETEMPLOYEE' in my code. This function module inturn calls FM 'HR_READ_INFOTYPE'
    with parameter 'BYPASS_BUFFER'  as ' ' to get IT0001 records and this cant be changed as  'HR_PERSONEE_GETEMPLOYEE'  is a standard FM. Which means the PS and other related internal tables holds previous states and new records are appended in each call.
    Now, the data volume of my application is about 4 lakh records, and after processing about 2.6 lakhs the internal tables are getting overflown, system cannot provide more memory space to the application.
    Is there any means to clear the PS tables and other related tables from the custom scope?
    Please suggest..........
    Thanks
    Akash

    There is a an FM as hrrefreshbuffer

  • How to use FM HR_READ_INFOTYPE

    Hello experts,
    I want to use FM HR_READ_INFOTYPE to read infotype 0000.
    I want to read the whole table PA0000 not only a certain pernr. So what value I have to pass to parameter pernr in order to read the whole infotype 0000 (table PA0000)?
    CALL FUNCTION 'HR_READ_INFOTYPE'
             EXPORTING
             TCLAS                 = 'A'
               pernr                 =
               infty                 = '0000'
             BEGDA                 = '18000101'
             ENDDA                 = '99991231'
             BYPASS_BUFFER         = ' '
             LEGACY_MODE           = ' '
           IMPORTING
             SUBRC                 =
             tables
               infty_tab             = lt_pa0000
            EXCEPTIONS
              INFTY_NOT_FOUND       = 1
              OTHERS                = 2.
    Where can I get comprehensive information about FM interfaces?
    Thanks
    hiza

    hi ,
    we cannot get data of all the pernrs using the fm but we get data of some of pernrs using the multiple selection we get the data as follows..
    tables:pa0000.
    data: begin of it_pa0000 occurs 0,
          pernr like pa0000-pernr,
          begda like pa0000-begda,
          endda like pa0000-endda,
          stat2 like pa0000-stat2,
          end of it_pa0000.
    select-options:s_pernr for pa0000-pernr.
    select pernr
           begda
           endda
           stat2
           from pa0000
           into table it_pa0000
           where pernr in s_pernr
           and stat2 = '3'.
    sort it_pa0000 by pernr .
    delete adjacent duplicates from  it_pa0000  comparing pernr.
    loop at it_pa0000.
    write:/ it_pa0000-pernr,
            it_pa0000-begda,
            it_pa0000-endda,
            it_pa0000-stat2.
    endloop.

  • Reg. FM HR_READ_INFOTYPE

    Hi all,
          I have a requirtement where in i used the FM HR_READ_INFOTYPE to fetch data from PA0001 and PA0105tables.
    Prior to this i am using theFM FM HRCA_GETEMPLOYEESDETAILS_FROMUSER, where i pass sy-uname and sy-datum and get the pernr . In this sy-uname will be our login id.
    I am loggging into SAP system with my id( say some XXXXX) now while executing the program when i change the sy-uname  in the FM HRCA_GETEMPLOYEESDETAILS_FROMUSER to some YYYYY then the FM HR_READ_INFOTYPE  fetches the data from PA0001but for PA0105 it yields no results.
    But when i am not changing the sy-uname then the FM HR_READ_INFOTYPE fetches the data from both PA0001 and PA0105.
    In PA0105 the data exist and the sy-uname in that table is XXXX.
    Does the FM HR_READ_INFOTYPE checks for any authorizations kind of thing.
    Or do we need to map the pernr everytime to the sy-uname.
    Please help me to know why data is not being fetched from PA0105.
    Thanks in advance.
    Regards,
    Durga.

    Hi,
    The logic goes this way..
    call function 'HRCA_GETEMPLOYEEDATA_FROMUSER'
        exporting
          username                  = sy-uname
          validbegin                = sy-datum
        importing
          employeenumber            = lv_pernr
        exceptions
          user_not_found            = 1
          countrygrouping_not_found = 2
          infty_not_found           = 3
          call_others               = 4
          others                    = 5.
    During debugging, changed  the sy-uname from XXXX to YYYY and got the pernr relating to YYYY.
    Now after this we r fecthing the data from IT0001 and IT0105 but when the sy-uname is changed to some YYYY unable to fetch data from IT0105 even though data is present in that infotype table for the pernr.
    call function 'HR_READ_INFOTYPE'
        exporting
          pernr           = lv_pernr
          infty           = '0001'
          bypass_buffer   = 'X'
        tables
          infty_tab       = it_p0001
        exceptions
          infty_not_found = 1
          others          = 2.
      if sy-subrc eq 0.
        sort it_p0001 by begda descending.
        read table it_p0001 into wa_p0001 index 1.
        "Passing the company code retrived to the output parameter list
        companycode = wa_p0001-bukrs.
          call function 'HR_READ_INFOTYPE'
            exporting
              pernr           = lv_pernr
              infty           = ' 0105'
              bypass_buffer   = 'X'
            tables
              infty_tab       = it_p0105
            exceptions
              infty_not_found = 1
              others          = 2.
          if sy-subrc eq 0.
       SORT THE INTERNAL TABLE TO GET THE LATEST VALUE AND READ THE TABLE.
            sort it_p0105 by begda descending.
            read table it_p0105 into wa_p0105 with key subty = '0010'
                                                            binary search.
            if wa_p0105-usrid_long ne ' '.
              emp_mailid = wa_p0105-usrid_long.
              "retrieving the mail id of the employee
            else.
             " error message when mail id not found.
              raise userid_not_found.
            endif.
    here it is raising exception n givin error tht "user id is not found".
    Edited by: durga bhavani on Jan 9, 2009 8:14 AM

  • Fetching data from HR_READ_Infotype

    Hi,
    I am fetching the data from pa0001,pa0002 and pa0105 using the function module 'HR_READ_Infotype' like below:
    CALL FUNCTION 'HR_READ_INFOTYPE'
        EXPORTING
          TCLAS                 = 'A'
          pernr                 = wa_pa0002-pernr
          infty                 = '0002'
          begda                 = sy-datum
          endda                 = sy-datum
      BYPASS_BUFFER         = ' '
      LEGACY_MODE           = ' '
    IMPORTING
      SUBRC                 =
        TABLES
          infty_tab             = it_pa0002
       EXCEPTIONS
         infty_not_found       = 1
         OTHERS                = 2
    But it_pa0002 does not contain anything after the processing though the data is there in the infotypes.
    I have declared the internal table as
    data it_pa0002 type standard table of pa0002.
    The wa is defined like:
    data: wa_pa0002 like line of it_pa0002.
    Please suggest the solution.

    Hi Sunil,
    Your both input (pernr) and output depend on the same table (it_pa0002) which is filled after the function is called -however as pernr is not yet determined the function returns empty-.
    Thus, you need to fill the pernr field from another internal table which is filled prior to this function ot you may fill the pernr field from the selection screen field directly.
    Regards,
    Dilek

  • Using function module HR_READ_INFOTYPE

    Hi,
    I am fetching the data from PA0001,PA0002 and PA0105 using function module HR_READ_INFOTYPE.But when I am passing the prnr as 7 , it is getting changed to 7000 in the function module. Thats why it is not fetching the data.Please suggest why is it happening. ALso I have to fetch name of the pernr. But from PA0002 , I am not able to fetch the name.Please suggest the solution.

    Make sure for data Declaration in you program you have defined Pernr like
            pernr         LIKE p0000-pernr,            "Personnel Number
    Also check the valid infotype records exists for the dates you are passing
      CALL FUNCTION 'HR_READ_INFOTYPE'
              EXPORTING
                 TCLAS                 = 'A'
                 pernr                 = g_t_table-pernr
                 infty                 = '0002'
                 begda                 = g_t_table-begda
                 endda                 = g_t_table-endda
    *             BYPASS_BUFFER         = ' '
    *             LEGACY_MODE           = ' '
    *           IMPORTING
    *             SUBRC                 =
              TABLES
                infty_tab             = p0002
              EXCEPTIONS
                infty_not_found       = 1
                OTHERS                = 2

  • Regarding HR_READ_INFOTYPE.

    Hi All,
    I have an internal table itab_ssn which contains pernr like '00060119'.
    I am using function module "HR_READ_INFOTYPE" and passing this pernr to read details of infotype 0001
    into table itab_0001. But in this table i am getting pernr like '60119000'.
    I am not getting why.
    Can anyone tell me please.
    CALL FUNCTION 'HR_READ_INFOTYPE'
        EXPORTING
    *   TCLAS                 = 'A'
          pernr                 = itab_ssn-pernr            " Here pernr is '00060119'
          infty                 = '0001'
    *   BEGDA                 = '18000101'
    *   ENDDA                 = '99991231'
    *   BYPASS_BUFFER         = ' '
    *   LEGACY_MODE           = ' '
    * IMPORTING
    *   SUBRC                 =
        TABLES
          infty_tab             = itab_0001            "When we loop on this itab pernr is '60119000'
    * EXCEPTIONS
    *   INFTY_NOT_FOUND       = 1
    *   OTHERS                = 2
      IF sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    Regards,
    Nidhi Srivastava.

    Hi Nidhi,
    Please check manualy through tcode:- SE37. Its return same or not......
    I think u r define internal table itab_0001 like PA0001... (If define PA0001.. please define P0001)......

  • Logical AND in MDX Reporting Services Parameter

    Hi, I would like to implement logical AND on a cube parameter. I have seen examples of hard-coded logical AND in MDX.
    (http://salvoz.com/blog/2013/12/24/mdx-implementing-logical-and-on-members-of-the-same-hierarchy/)
    But I'm not sure how to apply this to a parameter's MDX dataset.
    Here is an example of the automatically generated MDX which uses logical OR:
    This is the drop down parameter:
    WITH MEMBER [Measures].[ParameterCaption] AS [Department].[Department].CURRENTMEMBER.MEMBER_CAPTION MEMBER
    [Measures].[ParameterValue] AS
    [Department].[Department].CURRENTMEMBER.UNIQUENAME MEMBER [Measures].[ParameterLevel] AS
    [Department].[Department].CURRENTMEMBER.LEVEL.ORDINAL
    SELECT {[Measures].[ParameterCaption], [Measures].[ParameterValue],
    [Measures].[ParameterLevel]} ON COLUMNS
    , [Department].[Department].ALLMEMBERS ON ROWS
    FROM [MyCube]
    And the demo report dataset is:
    SELECT NON EMPTY { [Measures].[CompanyTbl Count] } ON COLUMNS,
    NON EMPTY { ([Product Level No].[Product Level No].[Product Level No].ALLMEMBERS ) }
    DIMENSION PROPERTIES MEMBER_CAPTION, MEMBER_UNIQUE_NAME ON ROWS FROM
    ( SELECT ( STRTOSET(@DepartmentDepartment, CONSTRAINED) )
    ON COLUMNS FROM [MyCube]) WHERE
    ( IIF( STRTOSET(@DepartmentDepartment, CONSTRAINED).Count = 1,
    STRTOSET(@DepartmentDepartment, CONSTRAINED), [Department].[Department].currentmember ) )
    CELL PROPERTIES VALUE,
    BACK_COLOR, FORE_COLOR, FORMATTED_VALUE, FORMAT_STRING,
    FONT_NAME, FONT_SIZE, FONT_FLAGS

    Hi,
    I can see there just one parameter @Department@Department in your script. But if you had two parameters that should return resultset affected by two parameters. You can do it as either select from subselect from subselect.
    Example 1
    SELECT
    {x} ON COLUMNS,
    {ROWS_SET} ON ROWS
    FROM
    (SELECT StrToSet(@Param1) ON COLUMNS FROM
    (SELECT StrToSet(@Param2) ON COLUMNS FROM
    [CUBE_NAME]
    Or crossjoin between 2 parameters
    SELECT
    {x} ON COLUMNS,
    {ROWS_SET} ON ROWS
    FROM
    (SELECT StrToSet(@Param1)*StrToSet(@Param2) ON COLUMNS FROM
    [CUBE_NAME]
    Jiri
    Jiri Neoral

  • Report RFKLBU10: Missing Parameter for Logical filename in Release ERP 2005

    Hello Experts,
    Report RFKLBU10 in Sap Release 4.6c hat a parameter "Old dataset logical name".
    The new version of this report in SAP Release ERP 2005 there is no such parameter.
    Is this a SAP-Bug ?
    Best regards,
    Mike

    There are no Export or Print events accessible for the viewer
    Since it sounds like you are creating the reportdocument object in your click event, the settings on this object become out of scope on successive postbacks executed by other events.
    to get around this without major changes, you can place your "report" object in session in this event and retrieve it from session on successive postbacks.  This should solve your problems around navigation, printing and exporting.  What you will need to do is check if the session object exists (usually in page_load or page_initialze) and if so, retrieve it from session and bind it to the viewer's reportsource.  If the session object does not exist, then do nothing (ie you have not clicked your button yet that retrieves the parameter values from session and loads the report).  Also, in your click event you can check if the report session object exists and if so, remove it so that it can be re-created with your new parameter values (ie i'm assuming the only time you want to set parameter values is in this event).
    Dan

  • Unable to capture the parameter values from a PL/SQL procedure

    hi.
    i'm trying to capture the parameter values of a PL/SQL procedure by calling inside a anonymous block but i'm getting a "reference to uninitialized collection error" ORA-06531.
    Please help me regarding.
    i'm using following block for calling the procedure.
    declare
    err_cd varchar2(1000);
    err_txt VARCHAR2(5000);
    no_of_recs number;
    out_sign_tab search_sign_tab_type:=search_sign_tab_type(search_sign_type(NULL,NULL,NULL,NULL,NULL));
    cntr_var number:=0;
    begin
         rt843pq('DWS','3000552485',out_sign_tab,no_of_recs,err_cd,err_txt);
         dbms_output.put_line('The error is ' ||err_cd);
         dbms_output.put_line('The error is ' ||err_txt);
         dbms_output.put_line('The cntr is ' ||cntr_var);
         for incr in 1 .. OUT_SIGN_TAB.count
         loop
         cntr_var := cntr_var + 1 ;
    Dbms_output.put_line(OUT_SIGN_TAB(incr).ref_no||','||OUT_SIGN_TAB(incr).ciref_no||','||OUT_SIGN_TAB(incr).ac_no||','||OUT_SIGN_TAB(incr).txn_type||','||OUT_SIGN_TAB(incr).objid);
    end loop;
    end;
    Error is thrown on "for incr in 1 .. OUT_SIGN_TAB.count" this line
    Following is some related information.
    the 3rd parameter of the procedure is a out parameter. it is a type of a PL/SQL table (SEARCH_SIGN_TAB_TYPE) which is available in database as follows.
    TYPE "SEARCH_SIGN_TAB_TYPE" IS TABLE OF SEARCH_SIGN_TYPE
    TYPE "SEARCH_SIGN_TYPE" AS OBJECT
    (ref_no VARCHAR2(22),
    ciref_no VARCHAR2(352),
    ac_no VARCHAR2(22),
    txn_type VARCHAR2(301),
    objid VARCHAR2(1024))............

    We don't have your rt843pq procedure, but when commenting that line out, everything works:
    SQL> create TYPE "SEARCH_SIGN_TYPE" AS OBJECT
      2  (ref_no VARCHAR2(22),
      3  ciref_no VARCHAR2(352),
      4  ac_no VARCHAR2(22),
      5  txn_type VARCHAR2(301),
      6  objid VARCHAR2(1024))
      7  /
    Type is aangemaakt.
    SQL> create type "SEARCH_SIGN_TAB_TYPE" IS TABLE OF SEARCH_SIGN_TYPE
      2  /
    Type is aangemaakt.
    SQL> declare
      2    err_cd varchar2(1000);
      3    err_txt VARCHAR2(5000);
      4    no_of_recs number;
      5    out_sign_tab search_sign_tab_type:=search_sign_tab_type(search_sign_type(NULL,NULL,NULL,NULL,NULL));
      6    cntr_var number:=0;
      7  begin
      8    -- rt843pq('DWS','3000552485',out_sign_tab,no_of_recs,err_cd,err_txt);
      9    dbms_output.put_line('The error is ' ||err_cd);
    10    dbms_output.put_line('The error is ' ||err_txt);
    11    dbms_output.put_line('The cntr is ' ||cntr_var);
    12    for incr in 1 .. OUT_SIGN_TAB.count
    13    loop
    14      cntr_var := cntr_var + 1 ;
    15      Dbms_output.put_line(OUT_SIGN_TAB(incr).ref_no||','||OUT_SIGN_TAB(incr).ciref_no||','||OUT_SIGN_TAB(incr).ac_no||','||OUT_SIGN
    TAB(incr).txntype||','||OUT_SIGN_TAB(incr).objid);
    16    end loop;
    17  end;
    18  /
    The error is
    The error is
    The cntr is 0
    PL/SQL-procedure is geslaagd.Regards,
    Rob.

  • Unable to capture value inside parameter T_LFBK of FK03 in display mode

    Hi Experts,
    I have to trigger a mail whenever there is a change in fields that are captured in parameter t_ffbk.
    However i am unable to capture the the screen values for this parameter as FK03 is in display mode.Please tell me how can i capture the screen field values in parameter T_LFBK.
    <Point offer removed by moderator>
    Thanks in advance.
    Edited by: Vinod Kumar on Jul 28, 2011 5:48 PM

    Hi Experts,
    I have to trigger a mail whenever there is a change in fields that are captured in parameter t_ffbk.
    However i am unable to capture the the screen values for this parameter as FK03 is in display mode.Please tell me how can i capture the screen field values in parameter T_LFBK.
    <Point offer removed by moderator>
    Thanks in advance.
    Edited by: Vinod Kumar on Jul 28, 2011 5:48 PM

  • Cannot assign an empty string to a parameter with JDBC type VARCHAR

    Hi,
    I am seeing the aforementioned error in the logs. I am guessing its happening whenever I am starting an agent instance in PCo. Can somebody explain whats going on?
    Regards,
    Chanti.
    Heres the complete detail from logs -
    Log Record Details   
    Message: Unable to retreive path for , com.sap.sql.log.OpenSQLException: Failed to set the parameter 1 of the statement >>SELECT ID, PARENTID, FULLPATH, CREATED, CREATEDBY, MODIFIED, MODIFIEDBY, REMOTEPATH, CHECKEDOUTBY FROM XMII_PATHS WHERE FULLPATH =  ?  <<: Cannot assign an empty string to a parameter with JDBC type >>VARCHAR<<.
    Date: 2010-03-12
    Time: 11:32:37:435
    Category: com.sap.xmii.system.FileManager
    Location: com.sap.xmii.system.FileManager
    Application: sap.com/xappsxmiiear

    Sounds like a UI browsing bug (when no path is selected from a catalog tree folder browser) - I would suggest logging a support ticket so that it can be addressed.

  • Replacing NULL and EmptyString('') with "Unknown" in SSRS parameter dropdown

    All,
    What I want to do is, in the SSRS parameter drop down, instead of showing NULL and Blank values(), i want to categorize them as "Unknown", so, if the user selects "Unknown" from the SSRS drop down parameter, he should be able to see all
    the records that have NULL values or empty strings in that particular column in the result set.
    Can you tell me, how should I handle it in my main stored proc as well as in the dataset?
    Right now, i have something like this:
    Where
    (t1.name in (select value from dbo.Split(@TName,',')) OR @TName IN ('All'))
    -- Where t1.Name has empty strings and NULL values. Both of these values should be categorized under "Unknown"
    -- How would the dataset query look like? Right now I have this query for populating the drop down for that parameter:
    Select All
    UNION
    Select Distinct Name
    Order BY 1

    Hello,
    Please refer to the following stored procedure:
    SELECT
    CASE WHEN TName IS NULL OR TName = ''
    THEN 'Unknown' ELSE TName END AS TName
    From DemoTable
    Then, use following query code to get the parameter values:
    SELECT Distinct
    CASE WHEN TName IS NULL OR TName = '' THEN 'Unknown'
    ELSE TName END AS TName
    FROM DemoTable
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

Maybe you are looking for