Вы находитесь на странице: 1из 12

This Tutorial demonstrates on using 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 ! "ndi#idual fields $carrid carrname% and an "nternal
Table$spfli%.


Step 3: Create Global Work Areas and Internal ables as s!o"n belo".
WA_SCARR TYPE SCARR
IT_SCARR TYPE SCARR_TAB
WA_SPFLI TYPE SPFLI
IT_SPFLI TYPE SPFLI_TAB
WA_FLIGHT TYPE TYPE_FLIGHT
IT_FLIGHT TYPE TABLE_TYPE_FLIGHT

Step 4: Code for fetc!in# t!e data is "ritten in t!e code initiali$ation part of interface.
In code initiali$ation t!e %ariables "!ose %al&es are bein# passed to t!e code to fetc! t!e
details of t!e o&tp&t s!o&ld be declared in t!e Inp&t para'eters and t!e %ariables to "!ic!
t!e res&lts are assi#ned needs to be declared in t!e (&tp&t para'eters.
Inp&t )ara'eters*
WA_SCARR
IT_SCARR
WA_SPFLI
IT_SPFLI
WA_FLIGHT
(&tp&t )ara'eters*
IT_FLIGHT


Step 5* Write t!e belo" code in code initiali$ation part. C!eck for errors and acti%ate t!e
interface.
* Fetching Flight Details fr! SCARR Ta"le#
SELECT *
I$T% TABLE it_scarr
FR%& scarr
'P T% () R%WS#
* Fetching Data fr! SPFLI Ta"le fr crres*n+ing Entries in SCARR#
SELECT *
I$T% TABLE it_s*,i
FR%& s*,i
F%R ALL E$TRIES I$ it_scarr
WHERE carri+ E- it_scarr.carri+#
* L*ing at SCARR Internal Ta"le#
L%%P AT it_scarr I$T% /a_scarr#
/a_,ight.carri+ 0 /a_scarr.carri+#
/a_,ight.carrna!e 0 /a_scarr.carrna!e#
* L*ing at SPFLI Internal Ta"le#
L%%P AT it_s*,i I$T% /a_s*,i WHERE carri+ E- /a_scarr.carri+#
* A**en+ing SPFLI Recr+s int the SPFLI *art f FLIGHT Ta"le#
APPE$D /a_s*,i T% /a_,ight.s*,i#
E$DL%%P#
* A**en+ing SCARR Recr+s int the SCARR *art f FLIGHT Ta"le#
APPE$D /a_,ight T% it_,ight#
CLEAR /a_,ight#
E$DL%%P#
Step 6: After t!e interface part is done+ create ,or' by #oin# to -,) transaction.
Step 7: In t!e creation of t!e ,or'+ "e need to #i%e t!e na'e of t!e interface for "!ic!
"e are creatin# t!e ,or'. !is is t!e additional f&nctionality in Adobe for's. (ne
interface can be &sed for 'any ,or's if it is s&itable.
Gi%e t!e .escription to t!e ,or' as s!o"n belo".

Step 8: In t!e Conte/t tab of t!e ,or' "e "ill find t"o sections Interface and Conte/t.
In Interface "e "ill find t!e data t!at "as created in t!e interface. We need to dra# t!e
ele'ents t!at need to be displayed in o&tp&t into t!e content area.

.eacti%ate t!e 0n"anted ,ields as s!o"n belo".

1ena'e Content Area to ContentArea2.

!en 1i#!t3Click on t!e Content Area and click on Insert -&b,or' and 1esi$e it
accordin#ly.

After t!at Click on Master )a#es and t!en .ra# and .rop a e/t and Enter any s&itable
e/t.

!en 1i#!t3Click on data and create one 'ore -&b ,or' and ali#n it as s!o"n belo".
&educe the si'e of Content Area as shown in figure below.

Step 9: Click on Subform and then in &ight(click on the Subform and then in Palettes click on
)b*ect and then under )b*ects Tab click on Subform and make the Content as Flowed as shown
below.

Then Create one more Subform and &ename it as Table and then &ight(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 abo#e case.

Step 10: Then "nsert two Sub Forms in the Table Sub Form rename it as +eader and ,ody
make sure to make them as Flowed too and make the Accessibility of the two Subforms as
+eader &ow and ,ody &ow respecti#ely.
Then "nsert a Static Te-t in +eader and insert the Field names as shown below.

Step 11: Then under .ata /iew indi#idually .rag and .rop the Fields from the table it0flight in
,ody Sub Form.
Fields are CA&&".
CA&&NA12
SPF3".

Step 12: Then under +ierarchy tab Select the 4 Fields $i.e. Carrid Carrname and SPF3"% and
then drag drop them in ,ody Sub Form as shown below.

Then make the ,ody Sub Form as Flowed as well as make its Flow .irection as 5estern Te-t as
shown below.

Step 13: .elete the Table +eader of SPF3" as shown.
Select the all Fields and make their Appearance as None.

"nsert a column to the left of connid as shown below.

Finally arrange the Fields as shown below.

Step 14: 6nder the Pagination Tab of ,ody Subform in )#erflow choose the Go To Content
Area#alue as ContentArea7.

Step 15: Change the ,inding of the ,ody Subform as shown below.

Step 16: Gi#e the binding for CA&&"..
Follow the same for CA&&NA12.

Change the binding for SPF3" as shown below.

Change binding for C)NN". and fields related to SPF3" as shown below.

Step 17:
Sa#e and Acti#ate the form.
Step 18:
2-ecute the form. The following output will be displayed.

Вам также может понравиться