Skip to Content

BAPI_QUALNOT_GETDETAIL refresh

Hi, I used this bapi ALV report. First run lt_notitem is true value but i used qm02 tcode changed value below first picture and second picture. My report click refresh button (below third picture) bapi lt_notitem table same value not get changed value. I turn back first screen select-option run F8 lt_notitem table get new value. where is problem ? How is solved ?

    REFRESH: lt_notlongtxt,
             lt_notitem,lt_notitem[],
             lt_notifcaus,
             lt_notifactv,
             lt_notiftask,
             lt_notifpartnr,
             lt_return.


    CLEAR   : lt_notlongtxt ,
              lt_notitem , lt_notitem[],
              lt_notifcaus ,
              lt_notifactv ,
              lt_notiftask ,
              lt_notifpartnr ,
              lt_return .


    CLEAR: ls_notifheader_export,
           ls_notifhdtext.


    CALL FUNCTION 'BAPI_QUALNOT_GETDETAIL'
      EXPORTING
        number             = ls_qmel-qmnum
      IMPORTING
        notifheader_export = ls_notifheader_export
        notifhdtext        = ls_notifhdtext
      TABLES
        notlongtxt         = lt_notlongtxt
        notitem            = lt_notitem
        notifcaus          = lt_notifcaus
        notifactv          = lt_notifactv
        notiftask          = lt_notiftask
        notifpartnr        = lt_notifpartnr
        return             = lt_return.

capture1.png (26.4 kB)
capture3.png (19.9 kB)
capture4.png (14.6 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • Best Answer
    Jan 02, 2017 at 09:58 AM

    Did you try to refresh memory of the FG behind the BAPI, call FM IQS1_REFRESH_ALL for this purpose.

    Regards,
    Raymond

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 27, 2016 at 02:46 PM

    With CL_GUI_ALV_GRID (?), the most frequent cause is that people create a new instance of the ALV grid (without freeing the previous ALV grid instance), and the effect is that only the first one is displayed. To free the first ALV grid instance, use these 2 lines:

    alv_grid->free( ).
    FREE alv_grid.

    Note that instead of freeing and creating, you may call the REFRESH_TABLE_DISPLAY method.

    CL_SALV_TABLE has the same issue if you use it in "container mode".

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 27, 2016 at 04:18 PM

    Hi,

    my problem is lt_notitem bapi table. I dont have alv refresh method.

    Add comment
    10|10000 characters needed characters exceeded

  • Jan 04, 2017 at 10:19 AM

    Thnks Raymond.

    Add comment
    10|10000 characters needed characters exceeded