메뉴 건너뛰기

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,


 

번호 제목 글쓴이 날짜 조회 수
307 <b>[완료]</b>smartform에서 새로운 page로 찍으려면 [7] file w 2007.12.04 4064
306 <b>[완료]</b>OBLIGATORY가 정확히 어디에쓰이는지.. 어떤것인지 궁금합니다.. 허접한 질문임다...^^ [5] 아밥입문자 2008.01.17 4075
305 sy-dynnr이 몬가여? [6] 정미영 2007.04.19 4078
304 <b>[완료]</b>[re] 개인pc에 SAP NetWeaver 2004s 설치방법에 질문입니다. [7] 로미오 2006.12.26 4087
303 <img src=2.gif>BDC FBV1 임시전표 생성하는데... [1] 파이냥 2010.04.12 4089
302 <b>[완료]</b>sap에서 엑셀매크로 연동할때 궁금한 것이 있습니다. [4] mean 2008.01.10 4091
301 [요청]ecc6.0 (unicode) 스마트 폼 pdf 처리 문제 양파 2008.06.23 4092
300 [요청]ALV 에서 checkbox 비활성 가능한가요? [1] 파파 2008.07.17 4094
299 [요청]alv register_edit_event 메소드 사용!! [6] genius 2008.04.15 4105
298 <b>[완료]</b>Carry out repairs in non-original system only if they are urgent???? [9] SD2 2008.11.21 4105
297 HINTS ?, 아래와 같이 쓰는 구문의 차이가 뭔지 알 수 있을까요? [6] 김창훈 2007.08.15 4109
296 <img src=2.gif>은행 계좌번호가 0으로 시작하는 경우 엑셀 다운로드시 문제점.. [6] 삼색볼펜 2010.03.22 4113
295 <img src=3.gif>Open SQL 에서 substring 하는 방법 [2] 모포 2010.06.23 4117
294 <img src=2.gif>급해요 !!! 화면에 옵션설정 하는 방법좀 알려주세요 . 옵션창이 어딨는지는 압니다. 그림첨부해요 [12] file 오렌지겅주님 2010.08.06 4121
293 <b>[완료]</b>if문 안에서의 commit work rollback work 구문개념좀 부탁드려요 [4] 아밥시작4일 2008.08.13 4123
292 <b>[완료]</b>Func ALV에서 라인별 control 질문 [5] w 2007.10.11 4125
291 <img src=3.gif>BAPI_INCOMINGINVOICE_CREATE 사용해 보신분요.. [2] 지니 2011.01.19 4155
290 <img src=3.gif>select 관련 질문 하나 드립니다. 답변을 애타게 기다립니다 ㅠ [13] 초밥 2010.12.01 4162
289 [요청]MB1A BAPI명 어떤건가요? [4] 벤또 2007.11.08 4175
288 <b>[완료]</b>Number RANGE OBJEC 삭제는 어디서 하나요? [3] 예슬짱 2008.12.09 4178