program /s10/demopmitems.

class afru_db definition inheriting from /s10/any.

  public section.

* table fields for detail view, plus key fields

    data:
      rueck type afru-rueck, " Rckmeldungsnummer
      rmzhl type afru-rmzhl, " Zhler
      ltxa1 type afru-ltxa1, " Rckmeldetext
      arbid type afru-arbid, " ObjektId
      isdd  type afru-isdd,  " Start Durchfhren
      isdz  type afru-isdz,  " Iststart (Uhrzeit)
      iedd  type afru-iedd,  " Ende Durchfhren
      iedz  type afru-iedz,  " Istende (Zeit)
      ismnw type afru-ismnw, " Istarbeit
      ismne type afru-ismnu, " Einheit Arbeit
      aueru type afru-aueru, " X=Endrckmeldung
      werks type afru-werks. " Werk

* special fields
    data:
      isstart    type string,
      arbpllong  type string,
      htmlstatus type string,

      arbpl      type string.



    constants:
*     assign unit attributes
      begin of unit,
        ismnw type string value 'ISMNE', "Istarbeit
      end of unit,

*     database table name
      dbtablename type string value 'afru'. " for select

    methods:
      build_isstart
        importing
          isdd    type afru-isdd  " Start Durchfhren
          isdz    type afru-isdz " Iststart (Uhrzeit)
        exporting
          isstart type string,

      build_arbpllong
        importing
          arbid     type afru-arbid  " ObjektId
          werks     type afru-werks  " Werk
        exporting
          arbpllong type string,

      build_htmlstatus
        importing
          aueru      type afru-aueru
        exporting
          htmlstatus type string,


      validate_isdd
        importing
          isdd type afru-isdd,

      save,
      exit_dialog,

      s10dropdownlist  redefinition.



endclass.

class afru_db implementation.

  method s10dropdownlist.
    case attrname.

      when 'ARBPL'.

        data:
          arbidarbpl type string,
          arbidktext type string.

        select distinct arbpl ktext into (arbidarbpl,arbidktext)
               from  m_cramn
               where werks = werks and spras = sy-langu
          order by arbpl.


          ddlstring = ddlstring
                   && arbidarbpl && cl_abap_char_utilities=>horizontal_tab
                   && arbidktext && cl_abap_char_utilities=>cr_lf.

        endselect.
        return.


    endcase.

* default
    ddlstring = super->s10dropdownlist( attrname = attrname valuelist = valuelist condition = condition ).

  endmethod.


  method build_isstart.
    isstart = s10getuservalue( 'isdd' ) && | | && isdz(2) && |:| && isdz+2(2).
  endmethod.

  method build_arbpllong.
    data:
      arbidarbpl type string,
      arbidktext type string.

    select single arbpl ktext into (arbidarbpl,arbidktext)
           from  m_cramn
            where  spras = sy-langu and werks = werks and objid = arbid.

    arbpllong = arbidarbpl && | | && arbidktext.


  endmethod.

  method build_htmlstatus.

    if aueru is initial.
      htmlstatus = |<img src="../../../icons/iteminwork.png" style="height:16px;" />|.
    else.
      htmlstatus = |<img src="../../../icons/itemcomplete.png" style="height:16px;" />|.
    endif.

  endmethod.

  method exit_dialog.
    s10exitdialog( ).

  endmethod.

  method save.

* bdc data
    data:
      bdcdatawa type bdcdata,
      bdcdata   type table of bdcdata.

* message table for call transaction
    data:
      messtabwa type bdcmsgcoll,
      messtab   type table of bdcmsgcoll.

* create bdc data

* screen 3000
    clear bdcdatawa.
    bdcdatawa-program  = 'SAPLCORU'.
    bdcdatawa-dynpro   =  '3000'.
    bdcdatawa-dynbegin = 'X'.
    append bdcdatawa to bdcdata.

    clear bdcdatawa.
    bdcdatawa-fnam = 'CORUF-RUECK'.
    bdcdatawa-fval = s10getuservalue( 'rueck' ).
    append bdcdatawa to bdcdata.

    clear bdcdatawa.
    bdcdatawa-fnam = 'BDC_OKCODE'.
    bdcdatawa-fval = '=ENTR'.
    append bdcdatawa to bdcdata.

* screen 3200
    clear bdcdatawa.
    bdcdatawa-program  = 'SAPLCORU'.
    bdcdatawa-dynpro   =  '3200'.
    bdcdatawa-dynbegin = 'X'.
    append bdcdatawa to bdcdata.

    clear bdcdatawa.
    bdcdatawa-fnam = 'AFRUD-ISDD'.      bdcdatawa-fval = s10getuservalue( 'isdd' ).   append bdcdatawa to bdcdata.
    bdcdatawa-fnam = 'AFRUD-ISDZ'.      bdcdatawa-fval = s10getuservalue( 'isdz' ).   append bdcdatawa to bdcdata.
    bdcdatawa-fnam = 'AFRUD-IEDD'.      bdcdatawa-fval = s10getuservalue( 'iedd' ).   append bdcdatawa to bdcdata.
    bdcdatawa-fnam = 'AFRUD-IEDZ'.      bdcdatawa-fval = s10getuservalue( 'iedz' ).   append bdcdatawa to bdcdata.
    bdcdatawa-fnam = 'AFRUD-LTXA1'.     bdcdatawa-fval = s10getuservalue( 'ltxa1' ).  append bdcdatawa to bdcdata.
    bdcdatawa-fnam = 'AFRUD-ISMNW_2'.   bdcdatawa-fval = s10getuservalue( 'ismnw' ).  append bdcdatawa to bdcdata.
    bdcdatawa-fnam = 'AFRUD-ISMNU'.     bdcdatawa-fval = s10getuservalue( 'ismne' ).  append bdcdatawa to bdcdata.
    bdcdatawa-fnam = 'AFRUD-ARBPL'.     bdcdatawa-fval = arbpl.                       append bdcdatawa to bdcdata.


    if aueru ne '1'.
      bdcdatawa-fnam = 'AFRUD-AUERU'.     bdcdatawa-fval = ''.   .  append bdcdatawa to bdcdata.
      bdcdatawa-fnam = 'AFRUD-LEKNW'.     bdcdatawa-fval = ''.   .  append bdcdatawa to bdcdata.
    else.
      bdcdatawa-fnam = 'AFRUD-AUERU'.     bdcdatawa-fval = 'X'.   .  append bdcdatawa to bdcdata.
      bdcdatawa-fnam = 'AFRUD-LEKNW'.     bdcdatawa-fval = 'X'.   .  append bdcdatawa to bdcdata.
    endif.



    clear bdcdatawa.
    bdcdatawa-fnam = 'BDC_OKCODE'.
    bdcdatawa-fval = '=BU'.
    append bdcdatawa to bdcdata.



    call transaction 'IW41' with authority-check
        using bdcdata
        mode 'N'
        update 'S'
        messages into messtab.


    data: messagetext type string.
    loop at messtab into messtabwa.

* get message text
      message
        id messtabwa-msgid  type messtabwa-msgtyp number messtabwa-msgnr
        with messtabwa-msgv1 messtabwa-msgv2 messtabwa-msgv3 messtabwa-msgv4
        into messagetext.

      case messtabwa-msgtyp.
        when 'E' or 'A'.

* set focus for known input fields
          case messtabwa-fldname.
            when 'KNA1-LAND1'.  s10setfocus( 'LAND1' ).
            when 'KNA1-PSTLZ'.  s10setfocus( 'PSTLZ' ).
          endcase.

          s10errormessage(  messagetext ).

        when 'W'.


        when others.

          s10exitdialog(  'X' ).
      endcase.

    endloop.




  endmethod.


  method validate_isdd.

    if isdd > sy-datum.
      s10errormessage( |Arbeitsbeginn liegt in Zukunft, bitte korrigieren| ).
    endif.

  endmethod.

endclass.


class afvc_detail definition inheriting from /s10/any.

  public section.

* table fields for detail view, plus key fields

    data:
      aufpl      type afvc-aufpl, " Plannummer Vorgnge
      aplzl      type afvc-aplzl, " Zhler
      objnr      type afvc-objnr, " Objektnummer
      rueck      type afvc-rueck, " Rckmeldung
      bedid      type afvc-bedid, " Identnummer
      ltxa1      type afvc-ltxa1, " Kurztext Vorgang
      projn      type afvc-projn, " PSP-Element
      cpd_updat  type afvc-cpd_updat, " Zeitstempel
      arbid      type afvc-arbid, " Objekt-Id using Text
      banfn      type afvc-banfn, " Bestellanforderung
      plnnr      type afvc-plnnr, " Plangruppe
      packno     type afvc-packno, " Paketnummer
      vornr      type afvc-vornr, " Vorgang
      bedzl      type afvc-bedzl, " Zhler
      arbii      type afvc-arbii, " Objekt-Id using Text
      zaehl      type afvc-zaehl, " Zhler
      preis      type afvc-preis, " Preis
      plnkn      type afvc-plnkn, " KnotenPlan
      pvzkn      type afvc-pvzkn, " Zhler
      steus      type afvc-steus, " Steuerschlssel using Text Dropdown
      phseq      type afvc-phseq, " SteuerrezEmpfnger
      knobj      type afvc-knobj, " Zuordnungsnummer
      larnt      type afvc-larnt, " Leistungsart using Text Dropdown
      werks      type afvc-werks, " Werk using Text Dropdown
      rmzhl      type afvc-rmzhl, " Zhler
      prkst      type afvc-prkst, " Betrag
      prctr      type afvc-prctr, " Profitcenter using Text
      sakto      type afvc-sakto, " Kostenart using Text Dropdown
      pernr      type afvc-pernr, " Personalnummer
      gsber      type afvc-gsber, " Geschftsbereich using Text Dropdown
      werki      type afvc-werki, " Werk using Text Dropdown
      objektid   type afvc-objektid, " ObjektId
      bukrs      type afvc-bukrs, " Buchungskreis using Text Dropdown
      ekgrp      type afvc-ekgrp, " Einkufergruppe using Text Dropdown
      kalid      type afvc-kalid, " Fabrikkalender-ID using Text Dropdown
      vgwts      type afvc-vgwts, " Vorgabewertschl. using Text Dropdown
      sumnr      type afvc-sumnr, " Summenknoten
      matkl      type afvc-matkl, " Warengruppe using Text Dropdown
      ktsch      type afvc-ktsch, " Vorlagenschlssel using Text Dropdown
      lar02      type afvc-lar02, " Leistungsart using Text
      lifnr      type afvc-lifnr, " Kreditor using Text
      rfpnt      type afvc-rfpnt, " Bezugsort using Text Dropdown
      plnty      type afvc-plnty, " Plantyp using Text
      lar01      type afvc-lar01, " Leistungsart using Text
      sortl      type afvc-sortl, " Sortierbegriff
      infnr      type afvc-infnr, " Einkaufsinfosatz
      plnal      type afvc-plnal, " Plangruppenzhler
      lar03      type afvc-lar03, " Leistungsart using Text
      waers      type afvc-waers, " Whrung using Text Dropdown
      owaer      type afvc-owaer, " Objektwhrung using Text Dropdown
      ekorg      type afvc-ekorg, " EinkOrganisation using Text Dropdown
      qualf      type afvc-qualf, " Eignung using Text Dropdown
      evgew      type afvc-evgew, " Gewicht f. Fert.grad
      mat_prkst  type afvc-mat_prkst, " Materialvorplanung
      adpsp      type afvc-adpsp, " Bezugselement PM/PS using Text Dropdown
      aplfl      type afvc-aplfl, " Folge
      plnfl      type afvc-plnfl, " Folge
      kalsm      type afvc-kalsm, " Kalkulationsschema using Text Dropdown
      nprio      type afvc-nprio, " Prioritt using Text Dropdown
      mlstn      type afvc-mlstn, " Mlst.Verwendung using Text Dropdown
      scope      type afvc-scope, " Objektklasse using Text Dropdown
      rasch      type afvc-rasch, " Rstartenschlssel using Text Dropdown
      loart      type afvc-loart, " Lohnart
      rfgrp      type afvc-rfgrp, " RstfamGruppe using Text Dropdown
      rfsch      type afvc-rfsch, " RstfamSchlssel using Text Dropdown
      afnam      type afvc-afnam, " Anforderer
      indet      type afvc-indet, " Berechnungsschlssel using Text Dropdown
      func_area  type afvc-func_area, " Funktionsbereich using Text Dropdown
      peinh      type afvc-peinh, " Preiseinheit
      logrp      type afvc-logrp, " Lohngruppe using Text Dropdown
      erfsicht   type afvc-erfsicht, " Erfassungssicht using Text Dropdown
      vplnr      type afvc-vplnr, " Ref. Plangruppe
      otype      type afvc-otype, " Objekttyp using Text Dropdown
      anzma      type afvc-anzma, " Anzahl Mitarbeiter
      subsys     type afvc-subsys, " QDE-System using Text Dropdown
      vertl      type afvc-vertl, " Verteilung Eigenb. using Text Dropdown
      netzkont   type afvc-netzkont, " Kontierungskennz. using Text Dropdown
      anlzu      type afvc-anlzu, " Anlagenzustand using Text Dropdown
      esokz      type afvc-esokz, " Infosatztyp using Text Dropdown
      no_disp    type afvc-no_disp, " Dispos.wirksamkeit using Text Dropdown
      rstuf      type afvc-rstuf, " Reduzierungsstufe using Text Dropdown
      qppktabs   type afvc-qppktabs, " Prfpunktabschlu using Text Dropdown
      txtsp      type afvc-txtsp, " Sprachenschlssel using Text
      bnfpo      type afvc-bnfpo, " Banfpositionsnr
      aennr      type afvc-aennr, " nderungsnummer
      lar04      type afvc-lar04, " Leistungsart using Text
      zschl      type afvc-zschl, " Zuschlagsschlssel
      ebelp      type afvc-ebelp, " Position
      wempf      type afvc-wempf, " Warenempfnger
      kalnr      type afvc-kalnr, " Kalkulationsnummer using Text
      aufak      type afvc-aufak, " Ausschu
      fplnr      type afvc-fplnr, " Fakturierungsplannummer
      ltxa2      type afvc-ltxa2, " Vorgangsbeschr.
      selkz      type afvc-selkz, " Kalkulieren using Text Dropdown
      spanz      type afvc-spanz, " Anzahl Splittungen
      sched_end  type afvc-sched_end, " Banf zum Endtermin using Text Dropdown
      phflg      type afvc-phflg, " Kennzeichen Phase using Text Dropdown
      leknw      type afvc-leknw, " Keine Restarbeit using Text Dropdown
      rstra      type afvc-rstra, " ReduzStrategie using Text Dropdown
      clasf      type afvc-clasf, " ProjVerdichtung using Text Dropdown
      loanz      type afvc-loanz, " Lohnscheine Anzahl
      rsanz      type afvc-rsanz, " Anz.Rckmeldescheine
      pdest      type afvc-pdest, " Drucker Werkstattp.
      qkzprzeit  type afvc-qkzprzeit, " Zeitbezug using Text Dropdown
      ddehn      type afvc-ddehn, " Dauer dehnbar using Text Dropdown
      ch_proc    type afvc-ch_proc, " nderungsvorgang using Text Dropdown
      vplfl      type afvc-vplfl, " Ref. Folge
      vplal      type afvc-vplal, " Ref. PlnGrZhler
      stdkn      type afvc-stdkn, " Knoten
      vplty      type afvc-vplty, " Ref. Plantyp using Text
      qkzprmeng  type afvc-qkzprmeng, " Mengenbezug using Text Dropdown
      kzlgf      type afvc-kzlgf, " Losfixe Fremdbearb. using Text Dropdown
      qkztlsbest type afvc-qkztlsbest, " Letzte TL-Zuordnung using Text Dropdown
      qkzprfrei  type afvc-qkzprfrei, " Frei using Text Dropdown
      qlkapar    type afvc-qlkapar, " Kapazittsart using Text Dropdown
      zerma      type afvc-zerma, " VWErmittlungsart using Text
      uemus      type afvc-uemus, " Muberlappung using Text Dropdown
      ebeln      type afvc-ebeln, " Einkaufsbeleg
      equnr      type afvc-equnr, " Equipment using Text
      tplnr      type afvc-tplnr, " Technischer Platz using Text
      loekz      type afvc-loekz, " Lschvormerkung using Text Dropdown
      klvar      type afvc-klvar, " Kalkulationsvariante using Text
      frdlb      type afvc-frdlb, " Lohnbearbeitung

      afrudate   type d. " Letzte Rckmeldung

* afru table
    data: tabafru type table of ref to afru_db.


    constants:
*     assign unit attributes
      begin of unit,
        preis type string value 's10session.mainobject.myafvc.WAERS', "Preis
        prkst type string value 's10session.mainobject.myafvc.WAERS', "Betrag
      end of unit,

*     database table name
      dbtablename type string value 'afvc'. " for select

    methods:
      build_afrutab
        importing
          rueck   type afvc-rueck " Rckmeldungsnummer
        exporting
          tabafru type table,

      build_afrudate
        importing
          rueck    type afvc-rueck " Rckmeldung
        exporting
          afrudate type d.



endclass.

class afvc_detail implementation.

  method build_afrutab.
    s10databaseselect(
     exporting
       condition = |rueck = @rueck and stokz = '' and stzhl = ''|
   changing
      folder = tabafru ).

  endmethod.


  method build_afrudate.

    clear afrudate.

    if rmzhl = 0.
      return.
    endif.

    select single max( isdd ) from afru into afrudate where rueck = rueck and stokz = '' and stzhl = ''.

  endmethod.



endclass.

class afvc_short definition inheriting from /s10/any.

  public section.

* table fields for detail view, plus key fields

    data:
      aufpl         type afvc-aufpl, " Plannummer Vorgnge
      aplzl         type afvc-aplzl, " Zhler
      objnr         type afvc-objnr, " Objektnummer
      rueck         type afvc-rueck, " Rckmeldung
      bedid         type afvc-bedid, " Identnummer
      ltxa1         type afvc-ltxa1, " Kurztext Vorgang
      projn         type afvc-projn, " PSP-Element
      cpd_updat     type afvc-cpd_updat, " Zeitstempel
      arbid         type afvc-arbid, " Objekt-Id using Text
      banfn         type afvc-banfn, " Bestellanforderung
      plnnr         type afvc-plnnr, " Plangruppe
      packno        type afvc-packno, " Paketnummer
      vornr         type afvc-vornr, " Vorgang
      bedzl         type afvc-bedzl, " Zhler
      arbii         type afvc-arbii, " Objekt-Id using Text
      zaehl         type afvc-zaehl, " Zhler
      preis         type afvc-preis, " Preis
      plnkn         type afvc-plnkn, " KnotenPlan
      pvzkn         type afvc-pvzkn, " Zhler
      steus         type afvc-steus, " Steuerschlssel using Text Dropdown
      phseq         type afvc-phseq, " SteuerrezEmpfnger
      knobj         type afvc-knobj, " Zuordnungsnummer
      larnt         type afvc-larnt, " Leistungsart using Text Dropdown
      werks         type afvc-werks, " Werk using Text Dropdown
      rmzhl         type afvc-rmzhl, " Zhler
      prkst         type afvc-prkst, " Betrag
      prctr         type afvc-prctr, " Profitcenter using Text
      sakto         type afvc-sakto, " Kostenart using Text Dropdown
      pernr         type afvc-pernr, " Personalnummer
      gsber         type afvc-gsber, " Geschftsbereich using Text Dropdown
      werki         type afvc-werki, " Werk using Text Dropdown
      objektid      type afvc-objektid, " ObjektId
      bukrs         type afvc-bukrs, " Buchungskreis using Text Dropdown
      ekgrp         type afvc-ekgrp, " Einkufergruppe using Text Dropdown
      kalid         type afvc-kalid, " Fabrikkalender-ID using Text Dropdown
      vgwts         type afvc-vgwts, " Vorgabewertschl. using Text Dropdown
      sumnr         type afvc-sumnr, " Summenknoten
      matkl         type afvc-matkl, " Warengruppe using Text Dropdown
      ktsch         type afvc-ktsch, " Vorlagenschlssel using Text Dropdown
      lar02         type afvc-lar02, " Leistungsart using Text
      lifnr         type afvc-lifnr, " Kreditor using Text
      rfpnt         type afvc-rfpnt, " Bezugsort using Text Dropdown
      plnty         type afvc-plnty, " Plantyp using Text
      lar01         type afvc-lar01, " Leistungsart using Text
      sortl         type afvc-sortl, " Sortierbegriff
      infnr         type afvc-infnr, " Einkaufsinfosatz
      plnal         type afvc-plnal, " Plangruppenzhler
      lar03         type afvc-lar03, " Leistungsart using Text
      waers         type afvc-waers, " Whrung using Text Dropdown
      owaer         type afvc-owaer, " Objektwhrung using Text Dropdown
      ekorg         type afvc-ekorg, " EinkOrganisation using Text Dropdown
      qualf         type afvc-qualf, " Eignung using Text Dropdown
      evgew         type afvc-evgew, " Gewicht f. Fert.grad
      mat_prkst     type afvc-mat_prkst, " Materialvorplanung
      adpsp         type afvc-adpsp, " Bezugselement PM/PS using Text Dropdown
      aplfl         type afvc-aplfl, " Folge
      plnfl         type afvc-plnfl, " Folge
      kalsm         type afvc-kalsm, " Kalkulationsschema using Text Dropdown
      nprio         type afvc-nprio, " Prioritt using Text Dropdown
      mlstn         type afvc-mlstn, " Mlst.Verwendung using Text Dropdown
      scope         type afvc-scope, " Objektklasse using Text Dropdown
      rasch         type afvc-rasch, " Rstartenschlssel using Text Dropdown
      loart         type afvc-loart, " Lohnart
      rfgrp         type afvc-rfgrp, " RstfamGruppe using Text Dropdown
      rfsch         type afvc-rfsch, " RstfamSchlssel using Text Dropdown
      afnam         type afvc-afnam, " Anforderer
      indet         type afvc-indet, " Berechnungsschlssel using Text Dropdown
      func_area     type afvc-func_area, " Funktionsbereich using Text Dropdown
      peinh         type afvc-peinh, " Preiseinheit
      logrp         type afvc-logrp, " Lohngruppe using Text Dropdown
      erfsicht      type afvc-erfsicht, " Erfassungssicht using Text Dropdown
      vplnr         type afvc-vplnr, " Ref. Plangruppe
      otype         type afvc-otype, " Objekttyp using Text Dropdown
      anzma         type afvc-anzma, " Anzahl Mitarbeiter
      subsys        type afvc-subsys, " QDE-System using Text Dropdown
      vertl         type afvc-vertl, " Verteilung Eigenb. using Text Dropdown
      netzkont      type afvc-netzkont, " Kontierungskennz. using Text Dropdown
      anlzu         type afvc-anlzu, " Anlagenzustand using Text Dropdown
      esokz         type afvc-esokz, " Infosatztyp using Text Dropdown
      no_disp       type afvc-no_disp, " Dispos.wirksamkeit using Text Dropdown
      rstuf         type afvc-rstuf, " Reduzierungsstufe using Text Dropdown
      qppktabs      type afvc-qppktabs, " Prfpunktabschlu using Text Dropdown
      txtsp         type afvc-txtsp, " Sprachenschlssel using Text
      bnfpo         type afvc-bnfpo, " Banfpositionsnr
      aennr         type afvc-aennr, " nderungsnummer
      lar04         type afvc-lar04, " Leistungsart using Text
      zschl         type afvc-zschl, " Zuschlagsschlssel
      ebelp         type afvc-ebelp, " Position
      wempf         type afvc-wempf, " Warenempfnger
      kalnr         type afvc-kalnr, " Kalkulationsnummer using Text
      aufak         type afvc-aufak, " Ausschu
      fplnr         type afvc-fplnr, " Fakturierungsplannummer
      ltxa2         type afvc-ltxa2, " Vorgangsbeschr.
      selkz         type afvc-selkz, " Kalkulieren using Text Dropdown
      spanz         type afvc-spanz, " Anzahl Splittungen
      sched_end     type afvc-sched_end, " Banf zum Endtermin using Text Dropdown
      phflg         type afvc-phflg, " Kennzeichen Phase using Text Dropdown
      leknw         type afvc-leknw, " Keine Restarbeit using Text Dropdown
      rstra         type afvc-rstra, " ReduzStrategie using Text Dropdown
      clasf         type afvc-clasf, " ProjVerdichtung using Text Dropdown
      loanz         type afvc-loanz, " Lohnscheine Anzahl
      rsanz         type afvc-rsanz, " Anz.Rckmeldescheine
      pdest         type afvc-pdest, " Drucker Werkstattp.
      qkzprzeit     type afvc-qkzprzeit, " Zeitbezug using Text Dropdown
      ddehn         type afvc-ddehn, " Dauer dehnbar using Text Dropdown
      ch_proc       type afvc-ch_proc, " nderungsvorgang using Text Dropdown
      vplfl         type afvc-vplfl, " Ref. Folge
      vplal         type afvc-vplal, " Ref. PlnGrZhler
      stdkn         type afvc-stdkn, " Knoten
      vplty         type afvc-vplty, " Ref. Plantyp using Text
      qkzprmeng     type afvc-qkzprmeng, " Mengenbezug using Text Dropdown
      kzlgf         type afvc-kzlgf, " Losfixe Fremdbearb. using Text Dropdown
      qkztlsbest    type afvc-qkztlsbest, " Letzte TL-Zuordnung using Text Dropdown
      qkzprfrei     type afvc-qkzprfrei, " Frei using Text Dropdown
      qlkapar       type afvc-qlkapar, " Kapazittsart using Text Dropdown
      zerma         type afvc-zerma, " VWErmittlungsart using Text
      uemus         type afvc-uemus, " Muberlappung using Text Dropdown
      ebeln         type afvc-ebeln, " Einkaufsbeleg
      equnr         type afvc-equnr, " Equipment using Text
      tplnr         type afvc-tplnr, " Technischer Platz using Text
      loekz         type afvc-loekz, " Lschvormerkung using Text Dropdown
      klvar         type afvc-klvar, " Kalkulationsvariante using Text

      frdlb         type afvc-frdlb, " Lohnbearbeitung


      status        type string,
      afrudate      type d, " Letzte Rckmeldung

      s10detailview type string.

    constants:
*     assign unit attributes
      begin of unit,
        preis type string value 'WAERS', "Preis
        prkst type string value 'WAERS', "Betrag
      end of unit,

*     database table name
      dbtablename type string value 'afvc'. " for select


    methods:
      build_status
        importing
          rueck  type afvc-rueck
        exporting
          status type string,

      build_afrudate
        importing
          rueck    type afvc-rueck " Rckmeldung
        exporting
          afrudate type d.


endclass.

class afvc_short implementation.

  method build_status.

* Status zurcksetzen
    clear status.
    s10removecss( attrname = 'status' ).

    data: aueru type afru-aueru. "X = Endrckmeldung

* Rckmeldungen lesen
    select aueru from afru into aueru
      where rueck = rueck and stokz = '' and stzhl = ''.

* mindestens eine Endrckmeldung ?
      if aueru = 'X'.
        status = 'Endrckgemeldet'(002).
        s10addcss( attrname = 'status' cssclassname = 'itemcomplete' ).
        return.
      endif.

    endselect.

* mindestens eine Rckmeldung ?
    if sy-subrc = 0.
      status = 'Teilrckgemeldet'(001).
      s10addcss( attrname = 'status' cssclassname = 'iteminwork' ).
      return.
    endif.

* keine Rckmeldung
    status = 'Offen'(003).
    s10addcss( attrname = 'status' cssclassname = 'itemopen' ).

  endmethod.




  method build_afrudate.

    clear afrudate.
    select single max( isdd ) from afru into afrudate where rueck = rueck and stokz = '' and stzhl = ''.

  endmethod.




endclass.

class afvc_manager definition inheriting from /s10/any.

  public section.


* header data
    data: header_aufnr type aufk-aufnr.

* table fields for list view, plus key fields
    data:
      search_rsanz       type afvc-rsanz, " Anz.Rckmeldescheine
      search_pdest       type afvc-pdest, " Drucker Werkstattp.
      search_vplfl       type afvc-vplfl, " Ref. Folge
      search_vplal       type afvc-vplal, " Ref. PlnGrZhler
      search_plnnr       type afvc-plnnr, " Plangruppe
      vplty_range        type range of afvc-vplty, " Ref. Plantyp
      search_zerma       type afvc-zerma, " VWErmittlungsart
      search_vornr       type afvc-vornr, " Vorgang
      search_zaehl       type afvc-zaehl, " Zhler
      search_plnkn       type afvc-plnkn, " KnotenPlan
      search_steus       type afvc-steus, " Steuerschlssel Dropdown
      list_steus         type string,
      search_werks       type afvc-werks, " Werk Dropdown
      list_werks         type string,
      search_vgwts       type afvc-vgwts, " Vorgabewertschl. Dropdown
      list_vgwts         type string,
      search_ktsch       type afvc-ktsch, " Vorlagenschlssel Dropdown
      list_ktsch         type string,
      search_larnt       type afvc-larnt, " Leistungsart Dropdown
      list_larnt         type string,
      lar02_range        type range of afvc-lar02, " Leistungsart
      plnty_range        type range of afvc-plnty, " Plantyp
      lar01_range        type range of afvc-lar01, " Leistungsart
      search_plnal       type afvc-plnal, " Plangruppenzhler
      lar03_range        type range of afvc-lar03, " Leistungsart
      search_qualf       type afvc-qualf, " Eignung Dropdown
      list_qualf         type string,
      search_plnfl       type afvc-plnfl, " Folge
      search_ltxa1       type afvc-ltxa1, " Kurztext Vorgang
      search_loart       type afvc-loart, " Lohnart
      search_vplnr       type afvc-vplnr, " Ref. Plangruppe
      txtsp_range        type range of afvc-txtsp, " Sprachenschlssel
      lar04_range        type range of afvc-lar04, " Leistungsart
      arbid_range        type range of afvc-arbid, " Objekt-Id
      search_ltxa2       type afvc-ltxa2, " Vorgangsbeschr.
      search_aufpl       type afvc-aufpl, " Plannummer Vorgnge Hidden

      search_maxrowcount type string value '100'.

* ddl cache table
    data:
      ddlisttab type table of wdy_key_value.


    data:
      tabafvc            type table of ref to afvc_short,
      tabafvc_layout     type ref to /s10/tablelayout,
      tabafvc_layoutname type string,
      tabafvc_filter     type ref to /s10/tablefilter,
      tabafvc_filtername type string,
      tabafvc_refresh    type i,
      myafvc             type ref to afvc_detail.

    methods:
      list,
      exit_display_items,
      on_detail_tabafvc,

      cancel_afru,
      create_confirmation,

      set_defaults,
      s10dropdownlist  redefinition,
      build_tabafvc_layout
        exporting
          tabafvc_layout type ref to /s10/tablelayout,

      build_tabafvc_filter
        exporting
          tabafvc_filter type ref to /s10/tablefilter,

* validate methods
      validate_tabafvc_layoutname
        importing
          tabafvc_layoutname type string optional,

      validate_tabafvc_filtername
        importing
          tabafvc_filtername type string  optional,

* method to rebuild tabafvc
      rebuild_tabafvc,
* method to build up tabafvc
      build_tabafvc
        importing
          search_rsanz       type afvc-rsanz " Anz.Rckmeldescheine
          search_pdest       type afvc-pdest " Drucker Werkstattp.
          search_vplfl       type afvc-vplfl " Ref. Folge
          search_vplal       type afvc-vplal " Ref. PlnGrZhler
          search_plnnr       type afvc-plnnr " Plangruppe
          vplty_range        type table " Ref. Plantyp
          search_zerma       type afvc-zerma " VWErmittlungsart
          search_vornr       type afvc-vornr " Vorgang
          search_zaehl       type afvc-zaehl " Zhler
          search_plnkn       type afvc-plnkn " KnotenPlan
          search_steus       type afvc-steus " Steuerschlssel
          list_steus         type string
          search_werks       type afvc-werks " Werk
          list_werks         type string
          search_vgwts       type afvc-vgwts " Vorgabewertschl.
          list_vgwts         type string
          search_ktsch       type afvc-ktsch " Vorlagenschlssel
          list_ktsch         type string
          search_larnt       type afvc-larnt " Leistungsart
          list_larnt         type string
          lar02_range        type table " Leistungsart
          plnty_range        type table " Plantyp
          lar01_range        type table " Leistungsart
          search_plnal       type afvc-plnal " Plangruppenzhler
          lar03_range        type table " Leistungsart
          search_qualf       type afvc-qualf " Eignung
          list_qualf         type string
          search_plnfl       type afvc-plnfl " Folge
          search_ltxa1       type afvc-ltxa1 " Kurztext Vorgang
          search_loart       type afvc-loart " Lohnart
          search_vplnr       type afvc-vplnr " Ref. Plangruppe
          txtsp_range        type table " Sprachenschlssel
          lar04_range        type table " Leistungsart
          arbid_range        type table " Objekt-Id
          search_ltxa2       type afvc-ltxa2 " Vorgangsbeschr.
          search_aufpl       type afvc-aufpl " Plannummer Vorgnge
          tabafvc_layoutname type string
          tabafvc_refresh    type i
          search_maxrowcount type string
        exporting
          tabafvc            type table.

endclass.


class afvc_manager implementation.

* s10dropdownlist
  method s10dropdownlist.

    if tabafvc_filter->is_suppressed( attrname ) = 'X'.
      clear ddlstring.
      return.
    endif.

    if tabafvc_filter->is_dbfiltered( attrname ) eq 'X'.

      data:  ddlisttabindex type i.

      read table ddlisttab with key key = attrname binary search assigning field-symbol(<keyvalue>).
      ddlisttabindex  = sy-tabix.
      if sy-subrc = 0.
        valuelist = <keyvalue>-value.
      else.

        data: ddlisttabwa like line of ddlisttab,
              v           type table of string,
              dbattrname  type string.

*       replace short name with db  column name
        case to_upper( attrname ).
          when 'SEARCH_STEUS'. dbattrname = 'STEUS'.
          when 'SEARCH_WERKS'. dbattrname = 'WERKS'.
          when 'SEARCH_VGWTS'. dbattrname = 'VGWTS'.
          when 'SEARCH_KTSCH'. dbattrname = 'KTSCH'.
          when 'SEARCH_LARNT'. dbattrname = 'LARNT'.
          when 'SEARCH_QUALF'. dbattrname = 'QUALF'.
        endcase.

        if dbattrname is not initial.
          select distinct (dbattrname) from afvc into table @v.  "without search_
          sort v. "empty entry should be first on, otherwise lost by concatenation
          concatenate lines of v into valuelist separated by ','.
          ddlisttabwa-key = attrname.
          ddlisttabwa-value = valuelist.
          insert ddlisttabwa into ddlisttab index ddlisttabindex.
        endif.

      endif.

      if valuelist is initial.
        clear ddlstring.
        return.
      endif.

    endif.

    ddlstring = super->s10dropdownlist( attrname = attrname valuelist = valuelist ).

  endmethod.

* set default values
  method set_defaults.
  endmethod.

* display list screen
  method list.
    s10nextscreen( 'list').
  endmethod.

* return from itemdisplay
  method exit_display_items.
    s10exitdialog( ).
  endmethod.



* rebuild table tabafvc
  method rebuild_tabafvc.
    tabafvc_refresh = tabafvc_refresh + 1.
  endmethod.

* select database values and fill table tabafvc
  method build_tabafvc.

    data: condition type string,
          join      type string,
          search    type string.

    if search_rsanz is not initial.
      search = search_rsanz.
      if condition is not initial.
        condition = condition && | and |.
      endif.
      condition = condition && |RSANZ EQ '| && search && |'|.
    endif.

    if search_pdest is not initial.
      search = search_pdest.
      if condition is not initial.
        condition = condition && | and |.
      endif.
      condition = condition && |PDEST like '%| && search && |%'|.
    endif.

    if search_vplfl is not initial.
      search = search_vplfl.
      if condition is not initial.
        condition = condition && | and |.
      endif.
      condition = condition && |VPLFL EQ '| && search && |'|.
    endif.

    if search_vplal is not initial.
      search = search_vplal.
      if condition is not initial.
        condition = condition && | and |.
      endif.
      condition = condition && |VPLAL EQ '| && search && |'|.
    endif.

    if search_plnnr is not initial.
      search = search_plnnr.
      if condition is not initial.
        condition = condition && | and |.
      endif.
      condition = condition && |PLNNR EQ '| && search && |'|.
    endif.

    if vplty_range is not initial.
      if condition is not initial.
        condition = condition && | and |.
      endif.
      condition = condition && |vplty in @vplty_range|.
    endif.

    if search_zerma is not initial.
      search = search_zerma.
      if condition is not initial.
        condition = condition && | and |.
      endif.
      condition = condition && |ZERMA EQ '| && search && |'|.
    endif.

    if search_vornr is not initial.
      search = search_vornr.
      if condition is not initial.
        condition = condition && | and |.
      endif.
      condition = condition && |VORNR EQ '| && search && |'|.
    endif.

    if search_zaehl is not initial.
      search = search_zaehl.
      if condition is not initial.
        condition = condition && | and |.
      endif.
      condition = condition && |ZAEHL EQ '| && search && |'|.
    endif.

    if search_plnkn is not initial.
      search = search_plnkn.
      if condition is not initial.
        condition = condition && | and |.
      endif.
      condition = condition && |PLNKN EQ '| && search && |'|.
    endif.

    if tabafvc_filter->is_selectmultiple( 'search_steus').
      if list_steus is not initial.
        search = s10selectlist( valuelist = list_steus attrname = 'search_steus' ).
        if condition is not initial.
          condition = condition && | and |.
        endif.
        condition = condition && |steus IN | && search.
      endif.
    else.
      if search_steus is not initial.
        search = search_steus.
        if condition is not initial.
          condition = condition && | and |.
        endif.
        condition = condition && |STEUS EQ '| && search && |'|.
      endif.
    endif.

    if tabafvc_filter->is_selectmultiple( 'search_werks').
      if list_werks is not initial.
        search = s10selectlist( valuelist = list_werks attrname = 'search_werks' ).
        if condition is not initial.
          condition = condition && | and |.
        endif.
        condition = condition && |werks IN | && search.
      endif.
    else.
      if search_werks is not initial.
        search = search_werks.
        if condition is not initial.
          condition = condition && | and |.
        endif.
        condition = condition && |WERKS EQ '| && search && |'|.
      endif.
    endif.

    if tabafvc_filter->is_selectmultiple( 'search_vgwts').
      if list_vgwts is not initial.
        search = s10selectlist( valuelist = list_vgwts attrname = 'search_vgwts' ).
        if condition is not initial.
          condition = condition && | and |.
        endif.
        condition = condition && |vgwts IN | && search.
      endif.
    else.
      if search_vgwts is not initial.
        search = search_vgwts.
        if condition is not initial.
          condition = condition && | and |.
        endif.
        condition = condition && |VGWTS EQ '| && search && |'|.
      endif.
    endif.

    if tabafvc_filter->is_selectmultiple( 'search_ktsch').
      if list_ktsch is not initial.
        search = s10selectlist( valuelist = list_ktsch attrname = 'search_ktsch' ).
        if condition is not initial.
          condition = condition && | and |.
        endif.
        condition = condition && |ktsch IN | && search.
      endif.
    else.
      if search_ktsch is not initial.
        search = search_ktsch.
        if condition is not initial.
          condition = condition && | and |.
        endif.
        condition = condition && |KTSCH EQ '| && search && |'|.
      endif.
    endif.

    if tabafvc_filter->is_selectmultiple( 'search_larnt').
      if list_larnt is not initial.
        search = s10selectlist( valuelist = list_larnt attrname = 'search_larnt' ).
        if condition is not initial.
          condition = condition && | and |.
        endif.
        condition = condition && |larnt IN | && search.
      endif.
    else.
      if search_larnt is not initial.
        search = search_larnt.
        if condition is not initial.
          condition = condition && | and |.
        endif.
        condition = condition && |LARNT EQ '| && search && |'|.
      endif.
    endif.

    if lar02_range is not initial.
      if condition is not initial.
        condition = condition && | and |.
      endif.
      condition = condition && |lar02 in @lar02_range|.
    endif.

    if plnty_range is not initial.
      if condition is not initial.
        condition = condition && | and |.
      endif.
      condition = condition && |plnty in @plnty_range|.
    endif.

    if lar01_range is not initial.
      if condition is not initial.
        condition = condition && | and |.
      endif.
      condition = condition && |lar01 in @lar01_range|.
    endif.

    if search_plnal is not initial.
      search = search_plnal.
      if condition is not initial.
        condition = condition && | and |.
      endif.
      condition = condition && |PLNAL EQ '| && search && |'|.
    endif.

    if lar03_range is not initial.
      if condition is not initial.
        condition = condition && | and |.
      endif.
      condition = condition && |lar03 in @lar03_range|.
    endif.

    if tabafvc_filter->is_selectmultiple( 'search_qualf').
      if list_qualf is not initial.
        search = s10selectlist( valuelist = list_qualf attrname = 'search_qualf' ).
        if condition is not initial.
          condition = condition && | and |.
        endif.
        condition = condition && |qualf IN | && search.
      endif.
    else.
      if search_qualf is not initial.
        search = search_qualf.
        if condition is not initial.
          condition = condition && | and |.
        endif.
        condition = condition && |QUALF EQ '| && search && |'|.
      endif.
    endif.

    if search_plnfl is not initial.
      search = search_plnfl.
      if condition is not initial.
        condition = condition && | and |.
      endif.
      condition = condition && |PLNFL EQ '| && search && |'|.
    endif.

    if search_ltxa1 is not initial.
      search = search_ltxa1.
      search = to_upper( search ).
      if condition is not initial.
        condition = condition && | and |.
      endif.
      condition = condition && | upper( LTXA1 ) like '%| && search && |%'|.
    endif.

    if search_loart is not initial.
      search = search_loart.
      if condition is not initial.
        condition = condition && | and |.
      endif.
      condition = condition && |LOART EQ '| && search && |'|.
    endif.

    if search_vplnr is not initial.
      search = search_vplnr.
      if condition is not initial.
        condition = condition && | and |.
      endif.
      condition = condition && |VPLNR EQ '| && search && |'|.
    endif.

    if txtsp_range is not initial.
      if condition is not initial.
        condition = condition && | and |.
      endif.
      condition = condition && |txtsp in @txtsp_range|.
    endif.

    if lar04_range is not initial.
      if condition is not initial.
        condition = condition && | and |.
      endif.
      condition = condition && |lar04 in @lar04_range|.
    endif.

    if arbid_range is not initial.
      if condition is not initial.
        condition = condition && | and |.
      endif.
      condition = condition && |arbid in @arbid_range|.
    endif.

    if search_ltxa2 is not initial.
      search = search_ltxa2.
      if condition is not initial.
        condition = condition && | and |.
      endif.
      condition = condition && |LTXA2 like '%| && search && |%'|.
    endif.

    if search_aufpl is not initial.
      search = search_aufpl.
      if condition is not initial.
        condition = condition && | and |.
      endif.
      condition = condition && |AUFPL EQ '| && search && |'|.
    endif.


    data: maxrows type i.
    maxrows = search_maxrowcount.

* fieldlist from current layout
    data: visiblecolumns  type string,
          databasecolumns type string,
          groupbycolumns  type string.

    visiblecolumns = tabafvc_layout->visiblecolumns( ).
    databasecolumns = tabafvc_layout->databasecolumns( importing groupbycolumns = groupbycolumns ).

* read data
    s10databaseselect(
     exporting
       condition = condition
       maxrows = maxrows
       fieldlist = databasecolumns
       groupby = groupbycolumns
     changing
       folder = tabafvc ).

    if tabafvc_layout->collectmode ne '0'.
      s10collect( foldername = 'tabafvc' columns =  visiblecolumns ).
    endif.

    s10sort( foldername = 'tabafvc'
    columns = visiblecolumns
    userformat = 'X' ).

  endmethod.
* show details in list (line selection)
  method on_detail_tabafvc.

* read current table row.
    data: tabindex type i.
    tabindex = s10actionparameter( ).
    read table tabafvc index tabindex assigning field-symbol(<row>).

* set table key and read detail attributes
    create object myafvc.

* set keys from table row object
    data: keytab  type table of string,
          keylist type string.

    field-symbols:
      <myfld>  type any,
      <rowfld> type any.
    append 'AUFPL' to keytab.
    append 'APLZL' to keytab.

* move key values
    loop at keytab assigning field-symbol(<keyname>).
      assign myafvc->(<keyname>) to <myfld>.
      assign <row>->(<keyname>) to <rowfld>.
      <myfld> = <rowfld>.
    endloop.

* key list for database read
    concatenate lines of keytab into keylist separated by ','.

    myafvc->s10databaseread( keylist = keylist ).

  endmethod.
  method build_tabafvc_layout.

* init table layout
    if tabafvc_layout is initial.
      create object tabafvc_layout.
      tabafvc_layout->init( parent = me foldername = 'tabafvc' ).
    endif.

  endmethod.

  method build_tabafvc_filter.

* init table filter
    if tabafvc_filter is initial.
      create object tabafvc_filter.
      tabafvc_filter->init( parent = me foldername = 'tabafvc' ).
    endif.

  endmethod.

* validate layout name
  method validate_tabafvc_layoutname.
    tabafvc_layout->read( tabafvc_layoutname ).
  endmethod.

* validate filter name
  method validate_tabafvc_filtername.
    tabafvc_filter->read( tabafvc_filtername ).
  endmethod.


   method cancel_afru.

* hidden key fields from HTML page
    data:
      aufpl type afvc-aufpl,
      aplzl type afvc-aplzl,
      rueck type afru-rueck,
      rmzhl type afru-rmzhl.

    s10fromcontextinfo(  exporting key = 'aufpl'  changing result = aufpl ).
    s10fromcontextinfo(  exporting key = 'aplzl'  changing result = aplzl ).
    s10fromcontextinfo(  exporting key = 'rueck'  changing result = rueck ).
    s10fromcontextinfo(  exporting key = 'rmzhl'  changing result = rmzhl ).

* read current table row.
    read table tabafvc
        with key table_line->aufpl = aufpl  table_line->aplzl = aplzl
        assigning field-symbol(<row>).

* Warning
    if s10confirmation(
      |Mchten Sie die Rckmeldung | && rmzhl && | wirklich stornieren?| ) ne 'X'.
      return.
    endif.

* cancel confirmation via BAPI
    data:  bapiret2 type bapiret2.

    call function 'BAPI_ALM_CONF_CANCEL'
      exporting
        confirmation        = rueck
        confirmationcounter = rmzhl
      importing
        return              = bapiret2.

* any error?
    if bapiret2-type eq 'E' or bapiret2-type eq 'A'.
      call function 'BAPI_TRANSACTION_ROLLBACK'.
      s10errormessage( conv string( bapiret2-message ) ).
      return.
    endif.

* commit with wait
    call function 'BAPI_TRANSACTION_COMMIT'
      exporting
        wait = 'X'.


* read table row data again and invalidate build fields
    <row>->s10databaseread(  ).
    <row>->s10rebuild( ).

* force transport of detail area
    <row>->s10detailview = 'X'.

* set key fields
    create object myafvc.
    myafvc->aufpl = aufpl.
    myafvc->aplzl = aplzl.

* read detail data again
    myafvc->s10databaseread(  ).

  endmethod.

  method create_confirmation.

* read current table row.
    data: tabindex type i.
    tabindex = s10contextinfo( )->rownumber.
    read table tabafvc index tabindex assigning field-symbol(<row>).

* read table row data
    <row>->s10databaseread(  ).

    data: myafru type ref to afru_db.
    create object myafru.

* set some defaults
    myafru->rueck = <row>->rueck.
    myafru->isdd = sy-datum.
    myafru->isdz(2) = sy-uzeit(2) - 2.   myafru->isdz+2(4) = '0000'.
    myafru->iedd = sy-datum.
    myafru->iedz(2) = sy-uzeit(2) - 1.   myafru->iedz+2(4) = '0000'.
    myafru->ismnw = '1'.
    myafru->ismne = 'STD'.

    myafru->werks = <row>->werks.
    myafru->arbpl = 'ST006'.  "demo value, user parameter in real applications


    data: rc type string.
    rc = myafru->s10dialog( 'create' ).

* no save ?
    if rc ne 'X'.
      return.
    endif.

* refresh item detail data
    create object myafvc.
    myafvc->aufpl = <row>->aufpl.
    myafvc->aplzl = <row>->aplzl.
    myafvc->s10databaseread(  ).

* read table row data and invalidate build fields
    create object <row>.
    <row>->aufpl = myafvc->aufpl.
    <row>->aplzl = myafvc->aplzl.
    <row>->s10databaseread(  ).

* force transport of current detail area
    <row>->s10detailview = 'X'.


  endmethod.

endclass.




* main class for this application
class main definition inheriting from /s10/any.

  public section.

    data: my_afvc_manager type ref to afvc_manager.

    methods:
      display
        importing
          aufnr type aufk-aufnr.

endclass.

class main implementation.


* display item table in popup
  method display.

*  create manager object
    create object my_afvc_manager.

* set defaults
    my_afvc_manager->set_defaults( ).

* set aufnr
    my_afvc_manager->header_aufnr = aufnr.


* determine aufpl from afko
    select single aufpl from afko into my_afvc_manager->search_aufpl
        where aufnr = aufnr.

* not found ?
    if sy-subrc ne 0.
      s10errormessage( |Invalid order number specified when calling display method: | && aufnr ).
    endif.


* start display
    my_afvc_manager->s10dialog( 'display_items').

  endmethod.


endclass.
