메뉴 건너뛰기

SAP 한국 커뮤니티

간략히 설명하면   스마트폼 양식을 (OTF)  PDF파일로서 로컬에 다운받고자 합니다.


게시글을 참조하여 진행중인데, 다음과 같은 절차 중 return이 안되는 막힘을 겪고 있습니다.


 


 


(1) CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
    EXPORTING
     formname           = 'ZXXXXXX'  "스마트폼명
    IMPORTING
     fm_name            = func_mod_name
    EXCEPTIONS
      no_form            = 1
      no_function_module = 2
      OTHERS             = 3.


  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
           WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.


 


 


(2) output_options-tdimmed    = 'X' .
  output_options-tddelete   = 'X' .
  output_options-tdnewid    = 'X' .
  output_options-tdfinal    = 'X' .
  output_options-tdnoprev    = 'X' .



  control_parameters-no_dialog = 'X'.
  control_parameters-preview   = space.
  control_parameters-no_open   = 'X'.
  control_parameters-no_close  = 'X'.
  control_parameters-getotf = 'X'.


 


(3) CALL FUNCTION func_mod_name    


      EXPORTING
        control_parameters = control_parameters
        output_options     = output_options
        gs_head            = gt_hd
      IMPORTING
        job_output_info    = job_output_info
*        document_output_info  = document_output_info
*        job_output_options    = job_output_options
      TABLES
        it_item            = lt_lineitem
      EXCEPTIONS
        formatting_error   = 1
        internal_error     = 2
        send_error         = 3
        user_canceled      = 4
        OTHERS             = 5.


    IF sy-subrc = 0.
    ENDIF.


 


 



 


그리고나서  아래와같이 OTF 인터널테이블 값을 받는 작업이 필요합니다.


 


 


 


 it_otf[] = job_output_info-otfdata[].      // BUT, 디버깅 하면 값을 못받습니다.


       


(4)  CALL FUNCTION 'CONVERT_OTF'
      EXPORTING
        FORMAT = 'PDF'
        MAX_LINEWIDTH = 132
      IMPORTING
        BIN_FILESIZE = v_bin_filesize
      TABLES
        otf = it_otf
        lines = it_lines
      EXCEPTIONS
        ERR_MAX_LINEWIDTH = 1
        ERR_FORMAT = 2
        ERR_CONV_NOT_POSSIBLE = 3
        ERR_BAD_OTF = 4.


 


(5) CALL FUNCTION 'GUI_DOWNLOAD'
      EXPORTING
        bin_filesize = v_bin_filesize
        filename = v_filename
        filetype = 'BIN'
      TABLES
        data_tab = it_lines
      EXCEPTIONS
      file_write_error = 1
      no_batch = 2
      gui_refuse_filetransfer = 3
      invalid_type = 4
      no_authority = 5
      unknown_error = 6
      header_not_allowed = 7
      separator_not_allowed = 8
      filesize_not_allowed = 9
      header_too_long = 10
      dp_error_create = 11
      dp_error_send = 12
      dp_error_write = 13
      unknown_dp_error = 14
      access_denied = 15
      dp_out_of_memory = 16
      disk_full = 17
      dp_timeout = 18
      file_not_found = 19
      dataprovider_exception = 20
      control_flush_error = 21
      OTHERS = 22.



 


 


1 --> 5 번의 순서로 진행됩니다.


그런데 중간에


smartforms의 OTF파일을 받아서


CONVERT할 FUNCTION에


otf = it_otf 를통해 할당해야하는데 job_output_info-otfdata[] 값을 못받습니다.


그래서 conversion이구 뭐구 못하고있어요.


 


 


좀 도와주세요 고수분들


제가 뭔가 결정적으로  MISS한게 있는거 같은데;



 

번호 제목 글쓴이 날짜 조회 수
5049 <img src=3.gif>선택화면에서 라디오버튼 SCREEN-ACTIVE 관련 [9] file 맨날초보 2010.07.19 3269
5048 <img src=3.gif><img src=1.gif>[BC] SE09에서 릴리즈 문제...도와주세요~^^ 끼야호 2010.07.19 1418
5047 <img src=3.gif>[re] <img src=1.gif>[BC] SE09에서 릴리즈 문제...도와주세요~^^ [1] file 양키 2010.07.19 1302
5046 <img src=2.gif>alv 변경후 저장하지 않고 종료시 확인버튼뜨게하는법있나요 [2] khh0628 2010.07.19 1816
5045 <img src=2.gif>필드켓 setting 시 궁금한점 입니다.^^ [4] marco 2010.07.16 1920
5044 <img src=2.gif>프로그램 속성에서 상태랑 어플리케이션은 어떤 역할을 하나요? [1] file 기쁨 2010.07.16 1452
5043 <img src=3.gif>webdynpro abap 에서 popup에 파라미터 전달하는 방법 [1] 모포 2010.07.16 1946
5042 <img src=2.gif>자동으로 (default) 덧셈이 되어 화면에 뿌려줄 수는 없나요? [5] file marco 2010.07.15 1377
5041 <img src=2.gif>DYNPRO_FIELD_CONVERSION 에러가 왜 날까요... [4] file indianhead 2010.07.15 2022
5040 <img src=2.gif>BDC 실행 후 SUBRC 값에 대한 질문입니다. [2] kms 2010.07.15 1672
5039 <img src=3.gif>ALV에서 레이아웃 필드명 넓이 늘리는 방법. [5] file 맨날초보 2010.07.15 2588
5038 <img src=2.gif>select 문에서, 이렇게 들어가나요? [2] marco 2010.07.14 1220
5037 <img src=1.gif>'SET_PRINT_PARAMETERS' 함수는 어디에 쓰는 용도인지? [2] 써니 2010.07.14 1720
5036 <img src=3.gif>find 명령어에서 공백으로 검색시 subrc이 0으로 떨어지는 문제 [2] 부엉이 2010.07.14 1955
5035 <img src=2.gif>스마트폼미리보기 OR PDF다운받기 둘중에 하나만 되요 ㅠ [2] file 도라에멍 2010.07.14 2147
5034 <img src=3.gif>Webdynpro abap과 java의 차이점은? [1] 모포 2010.07.14 1827
5033 <img src=1.gif>NEW-PAGE PRINT ON LINE-COUNT 변경관련하여 질문드립니다. 국화꽃향 2010.07.13 1639
5032 <img src=3.gif>스마트폼시 nextpage 를 어떻게 구현하는건지 ..잘 안됩니다..도와주세요.. [2] hoon 2010.07.13 1796
5031 <img src=2.gif>계약수정시 품목 단가 수정 문제 [3] ABAP하는사람 2010.07.12 1946
» <img src=3.gif>smartform OTF->PDF변환인데 급해욧! ㅠ.ㅠ 도와주세요 [1] 도라에멍 2010.07.12 1974