Nested Tables in Adobe Forms
Nested Tables in Adobe Forms
Nested Tables in Adobe Forms
Step1: Go to SFP transaction and create interface for the Adobe form.
Note: Maintain Interface type ABAP-Dictionary Based interface. (IN ECC6.0 Version)
Step 2: Create Global Types as shown below by clicking on Types, here we are creating a
Nested Table type which consists of 2 Individual fields (carrid, carrname) and an Internal
Table(spfli).
Step 3: Create Global Work Areas and Internal Tables as shown below.
Step 4: Code for fetching the data is written in the code initialization part of interface.
In code initialization the variables whose values are being passed to the code to fetch the
details of the output should be declared in the Input parameters and the variables to which
the results are assigned needs to be declared in the Output parameters.
Input Parameters:
WA_SCARR
IT_SCARR
WA_SPFLI
IT_SPFLI
WA_FLIGHT
Output Parameters:
IT_FLIGHT
Step 5: Write the below code in code initialization part. Check for errors and activate the
interface.
Step 6: After the interface part is done, create Form by going to SFP transaction.
Step 7: In the creation of the Form, we need to give the name of the interface for which
we are creating the Form. This is the additional functionality in Adobe forms. One
interface can be used for many Forms if it is suitable.
Give the Description to the Form as shown below.
Step 8: In the Context tab of the Form we will find two sections Interface and Context.
In Interface we will find the data that was created in the interface. We need to drag the
elements that need to be displayed in output into the content area.
Then Right-Click on the Content Area and click on Insert SubForm and Resize it
accordingly.
After that Click on Master Pages and then Drag and Drop a Text and Enter any suitable
Text.
Then Right-Click on data and create one more Sub Form and align it as shown below.
Reduce the size of Content Area as shown in figure below.
Step 9: Click on Subform and then in Right-click on the Subform and then in Palettes click on
Object and then under Objects Tab click on Subform and make the Content as Flowed as shown
below.
Then Create one more Subform and Rename it as Table and then Right-click on this Form and in
Palettes click on Accessibility make the Subform role as Table and make its Subform content as
Flowed as in above case.
Step 10: Then Insert two Sub Forms in the Table Sub Form, rename it as Header and Body,
make sure to make them as Flowed too, and make the Accessibility of the two Subforms as
Header Row and Body Row respectively.
Then Insert a Static Text in Header and insert the Field names as shown below.
Step 11: Then under Data View, individually Drag and Drop the Fields from the table it_flight in
Body Sub Form.
Fields are CARRID,
CARRNAME,
SPFLI.
Step 12: Then under Hierarchy tab Select the 3 Fields (i.e. Carrid, Carrname, and SPFLI) and
then drag drop them in Body Sub Form as shown below.
Then make the Body Sub Form as Flowed as well as make its Flow Direction as Western Text as
shown below.
Step 15: Change the Binding of the Body Subform as shown below.
Change binding for CONNID and fields related to SPFLI as shown below.
Step 17:
Step 18: