`

Export form graphic to local PC

    博客分类:
  • ABAP
阅读更多
REPORT  ztest.

DATA: w_size TYPE i,
      w_graphic_xstr TYPE xstring.
*Internal table
DATA: BEGIN OF it_graphic_table OCCURS 0,
        line(255) TYPE x,
      END OF it_graphic_table.

START-OF-SELECTION.
  CALL METHOD cl_ssf_xsf_utilities=>get_bds_graphic_as_bmp
    EXPORTING
      p_object  = 'GRAPHICS'
      p_name    = 'XX_LOGO' "NAME
      p_id      = 'BMAP'
      p_btype   = 'BMON' " or BCOL(BMON:Bloack and White Bitmap Image; BCOL:Color Bitmap Image)
    RECEIVING
      p_bmp     = w_graphic_xstr
    EXCEPTIONS
      not_found = 1
      OTHERS    = 2.

  w_size = XSTRLEN( w_graphic_xstr ).

  WHILE w_graphic_xstr IS NOT INITIAL.
    it_graphic_table-line = w_graphic_xstr.
    APPEND it_graphic_table.
    SHIFT w_graphic_xstr BY 255 PLACES LEFT IN BYTE MODE.
  ENDWHILE.

  CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
      bin_filesize            = w_size
      filename                = 'C:\TEST.BMP'
      filetype                = 'BIN'
    TABLES
      data_tab                = it_graphic_table
    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.
  IF sy-subrc <> 0.

  ENDIF.


FM: DP_CREATE_URL->Generates a temporary URL that displays in a   temporary table
    SAPSCRIPT_ATTRIB_GRAPHIC_BDS->SAPscript Graphics and bitmaps
分享到:
评论

相关推荐

    excel graphic export

    export excel oledb shapes & images to files

    an introduction to problistic graphic models

    This is a nice book about graphic models

    Debbie Millman - How to Think Like a Great Graphic Designer.pdf

    “What actually drove me to a therapist was that I had a very unhealthy obsession with laundry.” 19 ca r in goldberg “When I was growing up, designers were anonymous. They didn’t do schtick....

    VC++深入详解-图形graphic

    Graphic.dsp This file (the project file) contains information at the project level and is used to build a single project or subproject. Other users can share the project (.dsp) file, but they ...

    怎么样使用Graphic画直线和曲线

    这个小作业我用Graphic做的一个画图程序,看了肯定会用Graphic了 仅对于初学者啊

    an introduction to graphic model (完整版)

    the second part of the book.. enjoy!

    ArcGIS for Flex开发中Graphic的attributes解析

    在ArcGIS for Flex开发中,我们经常会遇到图形(Graphic)对象,它们是地图上的几何对象,包含几何信息、符号信息以及属性信息。属性信息存储在`attributes`属性中,这是一个Object类型的键值对集合,用来存储图形的...

    Guide to Graphic Design 无水印原版pdf

    Guide to Graphic Design 英文无水印原版pdf pdf所有页面使用FoxitReader、PDF-XChangeViewer、SumatraPDF和Firefox测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 查看此书详细信息请在...

    Graphic绘图_graphic绘图_

    "Graphic绘图"这个主题主要涉及如何使用各种编程语言和库来创建动态和静态的图表,如曲线图、饼状图和条形图,以直观地展示数据。下面我们将深入探讨这个领域的几个重要知识点。 1. **曲线图绘制**: 曲线图是一种...

    graphic画图

    "graphic画图"项目显然关注的是这个领域,它旨在实现一个能够绘制、保存和编辑图元的画布系统。下面我们将深入探讨这个项目涉及到的关键知识点。 1. **图元绘制**: 在"graphic画图"中,图元是基本的绘图单位,...

    java Graphic 用法

    java中 Graphic类的继承及其基本用法,Graphic 作为抽象类,其用法继承组件,重写paint

    Business Graphic 组件开发

    《Business Graphic组件开发详解》 在信息技术领域,数据可视化已经成为不可或缺的一部分,特别是在商业分析和决策支持中。"Business Graphic组件开发"是一个专为创建高效、直观的商业图表而设计的技术主题。本文将...

    graphic_verification_code

    标题中的"graphic_verification_code"可能指的是一个用于图形验证码处理的Python库或工具。在描述中提到了一个链接,指向了一篇CSDN博客文章,详细介绍了如何使用这个库。这篇文章的详细URL是...

    Graphic_Vc_

    "Graphic_Vc_"这个项目显然聚焦于使用Visual C++(简称VC)来绘制基本的2D图形,包括直线、椭圆、矩形和点。让我们深入探讨一下如何在VC++中实现这些功能。 1. **MFC与GDI**: VC++通常使用Microsoft Foundation ...

    OpenGL的graphic engine

    这是OpenGL 的graphic engine,可以再Linux下编译使用,也可以在windows 下将单独的资源拉出来使用

    Photo/Graphic Edge v4.0

    如果你觉得照片或是其他的图片四四方方的不是很好看,哪你可以用Photo/Graphic Edge来为他们做些变化,例如加上更好看的边框等等。Photo/Graphic Edge是一种影像处理软体,它虽然不能直接拿来绘图,不过它却可以把你...

    Plot Graphic Library

    "Plot Graphic Library" 是一个专用于图形绘制的库,提供了源代码,这使得开发者能够深入理解其内部工作原理并根据需要进行定制。这个库可能是用C++或C#等编程语言实现的,因为文件列表中出现了".dsw"(Visual ...

Global site tag (gtag.js) - Google Analytics