메뉴 건너뛰기

SAP 한국 커뮤니티

<b>[완료]</b>ALV 조회 후 Export / Local File 클릭 시 에러

다크호스 2008.11.29 23:49 조회 수 : 4337



ALV 프로그램으로 데이터 조회 후 조회 내역을 엑셀로 다운 받기 위해 버튼 Export / Local File 클릭을 하면 아래와 같은 에러가 발생 합니다.


어디가 잘못된건지 답변 부탁드립니다.


 


_______________     에러 내용      _______________


 


Short text
    The current statement requires a character-type data object.


 


What happened?
    Error in the ABAP Application Program


    The current ABAP program "SAPLKKBL" had to be terminated because it has
    come across a statement that unfortunately cannot be executed.


 


Error analysis
    At the statment
         "STRLEN( obj )..."
    , only character-type data objects are supported at the argument
    position "obj".


    In this particular case, the operand "obj" has the non-charcter-type type
    "I".


 


Trigger Location of Runtime Error
    Program                                 SAPLKKBL
    Include                                 LKKBLF99
    Row                                     3,908
    Module type                             (FORM)
    Module Name                             GEN_FIELD_OUT2


 


Source Code Extract


Line  SourceCde


 3878            using edit mask gs_fc-edit_mask.
 3879     if gs_fc-inttype ca 'NnIiPpBbSs'.  "Y7AK010240
 3880       condense gs_out-hlpchar.
 3881     endif.
 3882     gs_out-hlplen = strlen( gs_out-hlpchar ).
 3883 * Bei NUMC führende '0' und ' ' nicht berücksichtigen
 3884   elseif gs_fc-tech_form = 6.


 3887       condense gs_out-hlpchar.
 3888     endif.
 3889     gs_out-hlplen = strlen( gs_out-hlpchar ).
 3890   elseif gs_fc-tech_form = 11.                              "INS TECH11
 3891 *   Min. Ausgabelänge für ein Datum ist immer 8
 3892     if gs_fc-datatype = 'DATS'.                             "INS TECH11
 3893       gs_out-hlplen = 8.                                    "INS TECH11
 3894 *    Min. Ausgabelänge für eine Uhrzeit ist immer 6
 3895     elseif gs_fc-datatype = 'TIMS'.                         "INS TECH11
 3896       gs_out-hlplen = 6.                                    "INS TECH11
 3897     endif.                                                  "INS TECH11
 3898   elseif gs_fc-tech_form = 1 or gs_fc-tech_form = 90.
 3899 *   Überführung int. in ext. Format via Konvertierungsexit
 3900     if not gs_fc-convexit is initial or                     "INS TECH11
 3901        not gs_fc-inttype ca 'CN'.
 3902 *   elseif not gs_fc-convexit is initial.            "DEL TECH11
 3903       write <field> to gs_out-hlpchar left-justified.
 3904       gs_out-hlplen = strlen( gs_out-hlpchar ).
 3905 *   ansonsten entspricht sich min. Ausgabelänge und Ausprägungslänge
 3906     else.
 3907       if gs_fc-tech_form ne 99.
>>>>>         gs_out-hlplen = strlen( <field> ).
 3909       endif.
 3910     endif.
 3911   endif.
 3912 *   Falls Ausprägung abgeschnitten wird, dann wird noch ein weiterer
 3913 *   Charakter für die Visualisierung mittels Symbol reserviert
 3914   if gs_out-hlplen > gs_fc-outputlen.
 3915     if gs_fc-outputlen = 0.
 3916       gs_out-hlplen = 0.
 3917     else.
 3918       gs_fc-outputlen = gs_fc-outputlen - 1.
 3919       ">>Unicode/Doublebyte 1
 3920       get parameter id 'SLI' field g_sli.
 3921       if g_sli eq 'UNICODE' or g_sli eq 'MULTIBYTE' or
 3922       not cl_gui_alv_grid=>m_multibyte is initial.     "Y7AK013723
 3923         data:
 3924           im_pos_vis   type i,
 3925           im_pos_tech  type i,
 3926           ex_pos_vis   type i,
 3927           ex_pos_tech  type i,


 

번호 제목 글쓴이 날짜 조회 수
2787 [요청]Trial 압축 파일을 푸는데 에러가 납니다. 도와주세요. [2] bi 2008.12.07 1773
2786 <b>[완료]</b>프로그램에서 엑셀로 다운로드를 하려고 합니다 [2] 설련 2008.12.06 1760
2785 [요청]append와 insert 차이점에 질문입니다. [3] 캔디^^ 2008.12.06 3408
2784 <b>[완료]</b>TABLE CONTROL이 처음 실행될때 입력필드 활성화가 되지 않게하고 싶습니다. [2] 냥냥 2008.12.05 1917
2783 [요청]BAPI_DOCUMENT_CRETE2를 써서 파일 업로드한 후 문서번호 생성 했습니다. [3] 아밥걸 2008.12.05 2189
2782 <b>[완료]</b>batch input 과 table구조 다운로드.. [3] sdking 2008.12.05 1595
2781 <b>[완료]</b>회사코드와 회계전표를 이용해 필드그룹을 도출하려 합니다만.. [3] 우락부락 2008.12.05 1531
2780 [요청]국가별 통화(화폐)에서 출력시 100을 곱해주는 통화는 KRW 말고 또 무엇이 있나요? [3] Norton 2008.12.05 4338
2779 [요청]SORT it_tab BY 에서 BY 뒤에 정렬필드는 맥시멈이 있나요? [1] 기쁨 2008.12.05 1486
2778 [요청]GUI_DOWNLOAD 앞에 사용할 팝업창으로 [3] 피크민 2008.12.05 2224
2777 [요청]엑셀다운시 필드에 색상을 추가해 줄 수 있는 방법은 없을까요? [1] 삐러 2008.12.05 2070
2776 <b>[완료]</b>화면 변경시 체크해주는 변수(?) [2] tenyearsago 2008.12.04 1483
2775 [요청]간단한 연산인데 이해가 잘 안됩니다. 도움 부탁드려요. [4] bi 2008.12.04 2129
2774 [요청]타시스템과 연동해서 데이타를 가져올 경우 텍스트가 깨지는 것 해결방법 요청합니다.. [1] 무한반복 2008.12.04 990
2773 <b>[완료]</b>엑셀파일 업로드(GUI_UPLOAD) 질문 [8] 예슬짱 2008.12.04 3092
2772 <b>[완료]</b>급질문입니다~~테이블 생성시 default값으로 Y나 N을 넣어주고 싶습니다. [5] SD2 2008.12.04 2156
2771 [요청]refresh_table_display와 cl_gui_cfw=>flush 의 차이점에대해서 알고싶습니다 [3] 고양이야옹 2008.12.04 6029
2770 <b>[완료]</b>between관련 문의 입니다.급해서요 [2] 쭈니 2008.12.04 2569
2769 <b>[완료]</b>ABAP 개발 중국어 관련 질문입니다. [4] Mike 2008.12.04 1562
2768 [요청]alv에서 다중선택시 한필드별로 정렬된 값중 하나의 라인만 선택하게 하는 방법 문의.. [1] hogun 2008.12.04 2285