Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_QUALNOT_GETDETAIL refresh

former_member283640
Participant
0 Kudos

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.

1 ACCEPTED SOLUTION

raymond_giuseppi
Active Contributor
0 Kudos

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

Regards,
Raymond

4 REPLIES 4

Sandra_Rossi
Active Contributor

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".

former_member283640
Participant
0 Kudos

Hi,

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

raymond_giuseppi
Active Contributor
0 Kudos

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

Regards,
Raymond

former_member283640
Participant
0 Kudos

Thnks Raymond.