Designing table in Adobe Form


Let’s display the SFLIGHT table records on a adobe form.

So here we have a table type for the SFLIGHT table.

1

Go to Tx- SFP.

3

Create an interface. Provide a name and create.

4

Continue with Save.

5

Create an importing parameter.

6

provide the name and type. Activate the interface.

7

Create a Form. Provide a name and create.

8

Assign the interface and Save.

9

Map the Importing table from the Interface to the form context. Go to Layout.

11

In the Data View, Drga the Table and Drop on the design view. Automatically a table is created with header column with text and data is bindded automatically.

12

Activate and test.

13

14

Fill one record.

15

Execute the Function module.

16

17

Here the table.

18

Let’s call the form from abap program and pass all the records from SFLIGHT table.


 

DATA cp_outparam TYPE          sfpoutputparams,
               ip_funcname TYPE          funcname,
               lt_sflight  TYPE TABLE OF sflight.

SELECT  FROM sflight INTO TABLE lt_sflight.

CALL FUNCTION ‘FP_JOB_OPEN’
  CHANGING
    ie_outputparams cp_outparam.

CALL FUNCTION ‘FP_FUNCTION_MODULE_NAME’
  EXPORTING
    i_name     ‘ZTEST_FORM_03’ ” Pass the form name and
  IMPORTING                      ” it will give the fundtion odule name
    e_funcname ip_funcname.

CALL FUNCTION ip_funcname
  EXPORTING
*   /1BCDWB/DOCPARAMS        =
    it_sflight     lt_sflight
* IMPORTING
*   /1BCDWB/FORMOUTPUT       =
  EXCEPTIONS
    usage_error    1
    system_error   2
    internal_error 3
    OTHERS         4.

CALL FUNCTION ‘FP_JOB_CLOSE’
* IMPORTING
*   E_RESULT             =
  EXCEPTIONS
    usage_error    1
    system_error   2
    internal_error 3
    OTHERS         4.


 

19

Here is the form preview with all the records.

20

 


 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s