Call Adobe Form through ABAP Program

Scenario

Create an Adobe Form and call it through an ABAP Program

Pre-request:

1)  In the Front End System Adobe Life Cycle Designer has to install. Then only the Adobe Form  Layout  and Adobe form will open in the SAP system

2)  Adobe Reader 8.0 and above version has to installed

Steps to Create and Call the adobe form

1)  Create a Table Type for a Table

2) Create the Interface for the Adobe Form

3)  Create the Adobe Form and design the layout

4)  Write a Program to Call the Adobe Form

Step by Step Approach

1)   Create a  Table Type for a Table

Go to the Transaction Code "SE11" and give the Table Type name as "zmari_tb1".

Then click "Create" and a popup will appear as shown below.

Select the radio button "Table Type" and press enter

Enter the Table Name ‘MARI‘ in the line type.

Then save it as Local Object and activate it.

Activate the Table Type.

2) Create the Interface for the Adobe Form

Go to Transaction code ‘SFP‘ and create the Interface for the ADOBE FORM

Enter the Interface Name as ‘ZSUR_ADOBE_INTR‘ and click "Create"

Give the Description and click save.

Give Description and press enter

Save as Local Object

Then the below screen will appear.

Then Click "Append Row" icon as indicated below.

Then as new row will inserted and assign the Table Type ZMARI_TBL value as shown below.

Then activate it.

Then go back and Give the Adobe Form name click Create.

3) Create Adobe Form and design the layout in the Same Transaction Code "SFP"

Give the Description and the Interface name, which just created as indicated below.

Then Save as Local Object.

Then the below Screen will appear.

Expand the import button and you can find the Table Parameter ZMARI.

Then Drag and drop it to the Context as shown below

After Drag and Drop the Table type to Context, then below screen will appear.

Then Click the "Layout" Tab and the Below Screen will appear.

Drag and Drop the table type "ZMARI" to Design View Layout as indicated below.

Then adjust the Table in the Top center of the layout as shown below.

Select the ‘Text‘ from the Library and drop it the Layout ‘Design" View and give a description to the Table as shown below.

Then Activate the Adobe form

4) Write a Program to Call the Adobe Form

Go to Transaction code SE38 and Create a Test Program "ZCALL_ADOBE_FORM".

Save it as local Object.

Then enter the Below Code.

REPORT  zcall_adobe_form.

&-----------------------------------------------------------------------&

*& Author  : P Surjith Kumar

*& Purpose : Call the Adobe form in the ABAP Program

*&------------------------------------------------------------------------

DATA: fm_name           TYPE rs38l_fnam,      " CHAR300
Name of Function Module

      fp_docparams      TYPE sfpdocparams,    " Structure  SFPDOCPARAMS Short Description  Form ParametersforForm
Processing

      fp_outputparams   TYPE sfpoutputparams, " Structure  SFPOUTPUTPARAMS Short Description  Form Processing Output Parameter

      it_mari           TYPE zmari_tbl.       " Table Type ZMARI_TBL MARI Table Tyoe

* Sets the output parameters and opens the spool job

CALL FUNCTION
‘FP_JOB_OPEN‘                  
"& Form Processing: Call Form

  CHANGING

    ie_outputparams = fp_outputparams

  EXCEPTIONS

    cancel          =1

    usage_error     =2

    system_error    =3

    internal_error  =4

    OTHERS          =5.

IF sy-subrc <>
0.

*            <error handling>

ENDIF.

*&---- Get the name of the generated function module

CALL FUNCTION
‘FP_FUNCTION_MODULE_NAME‘          
"& Form Processing Generation

  EXPORTING

    i_name     =‘ZSUR_ADOBE_FORM‘

  IMPORTING

    e_funcname = fm_name.

IF sy-subrc <>
0.

*  <error handling>

ENDIF.

*-- Fetch the Data and store it in the Internal Table

SELECT * FROM mari INTO TABLE it_mari UP TO15ROWS.

* Language and country setting (here US as an example)

fp_docparams-langu   =‘E‘.

fp_docparams-country =‘US‘.

*&--- Call the generated function module

CALL FUNCTION fm_name

  EXPORTING

    /1bcdwb/docparams        = fp_docparams

    zmari                   = it_mari

*    IMPORTING

*     /1BCDWB/FORMOUTPUT       =

  EXCEPTIONS

    usage_error           =1

    system_error          =2

    internal_error           =3.

IF sy-subrc <>
0.

*  <error handling>

ENDIF.

*&---- Close the spool job

CALL FUNCTION
‘FP_JOB_CLOSE‘

*    IMPORTING

*     E_RESULT             =

  EXCEPTIONS

    usage_error           =1

    system_error          =2

    internal_error        =3

    OTHERS               =4.

IF sy-subrc <>
0.

*            <error handling>

ENDIF.

Then activate and Execute (F8) it.

Then the printer screen will appear.

Click the Print Preview

Then the Output will shown as below.

时间: 2024-10-31 20:23:24

Call Adobe Form through ABAP Program的相关文章

ABAP Enhancement:第二部分

声明:原创作品,转载时请注明文章来自SAP师太技术博客:www.cnblogs.com/jiangzhengjun,并以超链接形式标明文章原始出处,否则将追究法律责任!原文链接:http://www.cnblogs.com/jiangzhengjun/p/4291296.html 第三代:基于类的增强(BADI)... 25 BADI新方式实现... 42 1-构建BADI. 42 2-实现BADI. 44 3-使用BADI过滤器... 49 4-多个实现时究竟调谁... 51 查找系统中的BA

使用ABAP和JavaScript代码生成PDF文件的几种方式

ABAP 方法1:使用ABAP + Adobe Lifecycle Enterprise Service 详细步骤参考我的博客Convert word document into PDF via Adobe Livecycle Enterprise service 方法2:使用ABAP Webdynpro里的InteravtiveForm控件 + Adobe Form Template 详细步骤参考我的博客Another way to preview PDF in CRM web client

Adobe CC 2015 中文破解版 破解补丁下载

Adobe Illustrator CC 2015 中文破解版 破解补丁下载 Adobe illustrator是一种应用于出版.多媒体和在线图像的工业标准矢量插画的软件,作为一款非常好的图片处理工具,Adobe illustrator 广泛应用于印刷出版.专业插画.多媒体图像处理和互联网页面的制作等,也可以为线稿提供较高的精度和控制,适合生产任何小型设计到大型的复杂项目. Adobe illustrator作为全球最著名的矢量图形软件,以其强大的功能 和体贴用户的界面,已经占据了全球矢量编辑

ABAP 订单转交货单

*& Report  ZSDR025 *& *&---------------------------------------------------------------------* *&程序名称 *&事物代码: *&导入模板:无 *&作者 *&时间: *&更新时间 REPORT zsdr025. TYPE-POOLS: slis. TABLES : vbak,vbap,vbep,ztsd024,t171t. SELECTION

ABAP程序互调用:SUBMIT、CALL TRANSACTION、LEAVE TO TRANSACTION

Calling Executable Programs(SUBMIT)... 343 设置选择屏幕参数值(SUBMIT...WITH)... 343 实例一:参数传递... 345 实例二:参数传递及返回值接收... 346 控制Called Programs中LISTS输出... 348 修改输出LISTS行列数... 348 将被调程序的输出列表打印到spool system.. 349 将输出列表保存到ABAP memory. 349 使用LEAVE语句退出被调程序... 350 CALL

How to Create a Java Concurrent Program

In this Document   Goal   Solution   Overview   Steps in writing Java Concurrent Program   Template Program:   Program Logic   Program Parameters   Database Operations   Setting request Completion Status   Register executable   Register Concurrent Pr

ABAP DEMO

sap Program DEMO 介绍 Program Description BALVBT01 Example SAP program for displying multiple ALV reports on one page BCALV_GRID_DEMO ALV Dialog grid demo (4.6) SHOW_COLO Displays all colours available SHOW_ICON Displays all icon available RGUGBR00 Sub

自动生成form Scripts

运行脚本: begin xxx_plsql_generator_pkg2.form_view_iud_p(p_block_name =>'CONTRACT_T' ,p_table_name =>'WPC_Contract_T' ,p_owner =>'apps' ,p_primary_key =>'FConId'); end; select * from all_tab_columns tc where tc.table_name = upper('cux_dis_return_i

abap金税上传EXCEL版

SAP ERP ECC6.0标准功能提供给了金税接口,对于一般的公司来说,这个接口基本也够了. 事务代码:GT_DLN 下载SAP发票信息: 事务代码:GT_ULN 上传金税信息到SAP中: 前提条件:SAP ERP ECC6.0 功能增强包EHp3及以上. 激活业务功能事务代码 SFW5选择业务功能FIN_LOC_CI_1,点击激活按钮. 激活业务功能包后,系统将执行一个后台任务,执行可能需要长达一小时. 参见SAP Note:Note 1290073 – China Golden Tax S