get status name for batch input session

3257 단어 session
Line 601 in program SAPMSBDC_CC
loop at itab_apqi.
    case itab_apqi-qstate.
      when ' '.
        call function 'ICON_CREATE'
          exporting
            name = icon_create
            info = 'neu'(036)
          importing
            result = itab_apqi-status
          exceptions
            others = 1.
        if sy-subrc <> 0.
          itab_apqi-status = icon_status_ok.
        endif.
        itab_apqi-status_text = 'neu'(036).
      when 'F'.
        call function 'ICON_CREATE'
          exporting
            name = icon_status_ok
            info = 'verarbeitet'(037)
          importing
            result = itab_apqi-status
          exceptions
            others = 1.
        if sy-subrc <> 0.
          itab_apqi-status = icon_status_ok.
        endif.
        itab_apqi-status_text = 'verarbeitet'(037).
      when 'E'.
        call function 'ICON_CREATE'
          exporting
            name = icon_status_critical
            info = 'fehlerhaft'(035)
          importing
            result = itab_apqi-status
          exceptions
            others = 1.
        if sy-subrc <> 0.
          itab_apqi-status = icon_status_critical.
        endif.
        itab_apqi-status_text = 'fehlerhaft'(035).
      when 'R'.
        call function 'ICON_CREATE'
          exporting
            name = icon_execute_object
            info = 'in Bearbeitung'(038)
          importing
            result = itab_apqi-status
          exceptions
            others = 1.
        if sy-subrc <> 0.
          itab_apqi-status = icon_execute_object.
        endif.
        itab_apqi-status_text = 'in Bearbeitung'(038).
      when 'C'.
        call function 'ICON_CREATE'
          exporting
            name = icon_create_text
            info = 'in Erstellung'(039)
          importing
            result = itab_apqi-status
          exceptions
            others = 1.
        if sy-subrc <> 0.
          itab_apqi-status = icon_create_text.
        endif.
        itab_apqi-status_text = 'in Erstellung'(039).
      when 'S'.
        call function 'ICON_CREATE'
          exporting
            name = icon_background_job
            info = 'im Hintergrund'(046)
          importing
            result = itab_apqi-status
          exceptions
            others = 1.
        if sy-subrc <> 0.
          itab_apqi-status = icon_background_job.
        endif.
        itab_apqi-status_text = 'im Hintergrund'(046).
      when others.
        itab_apqi-status = '?'.
        itab_apqi-status_text = '?'.
    endcase.
    modify itab_apqi.
  endloop.

좋은 웹페이지 즐겨찾기