100% found this document useful (2 votes)
3K views13 pages

Using Where Conditions To Relate Header and Item Tables in Adobe Forms

This document provides steps to create an Adobe form that displays related data from two tables (Header and Item) using 'Where conditions' in the form content. It involves dragging the tables from the interface to the content area, setting up loops for each table, and nesting the item table loop within the header table loop. Fields are dragged from each table and wrapped in subforms to maintain the hierarchical relationship between header and item details when the form is executed.

Uploaded by

Rakesh Rai
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
100% found this document useful (2 votes)
3K views13 pages

Using Where Conditions To Relate Header and Item Tables in Adobe Forms

This document provides steps to create an Adobe form that displays related data from two tables (Header and Item) using 'Where conditions' in the form content. It involves dragging the tables from the interface to the content area, setting up loops for each table, and nesting the item table loop within the header table loop. Fields are dragged from each table and wrapped in subforms to maintain the hierarchical relationship between header and item details when the form is executed.

Uploaded by

Rakesh Rai
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 13

In this demo we will create an Adobe form, which displays relating data from two tables (Header and

Item) by using
Where conditions in Form contet!
Step1: "o to transaction #F$ and create interface for the form!
In this demo we can use the interface YDEMO_ALTERATI!E which is used in pre"ious
tutoria# usin$ a#ternati"es%
Step&: %reate Form &'()*+,A-.(.(/(.
ote: )aintain Interface type A'A()Dictionar* 'ase interface% (I0 (%%1!2 /ersion)
&ou will see two parts in screen Interface and contet!
Step+: 'rag and drop "lobal table ",+#$F.I from interface to contet area!

#tep34 #elect all fields which are not re5uired to display and deacti6ate the fields! (right clic7)

#tep84 #elect 'A,A under table ",+#$F.I and right clic7!
"o to create99: .oop
,his will create a table i!e!, a sub loop under the main loop!
ote: when you drag a table in to contet it will internally create a loop processing in the form!

#tep14 A dialog bo will open as7ing for table which you want to loop inside main loop!

#tep;4 %lic7 the F3 help button, it shows the tables that eists in the interface!

#tep<4 #elect the table ",+#F.I"H, (item details)
It will internally create a sub loop i!e, a table ",+#F.I"H, under the table #$F.I data!
#tep=4 #elect the fields which are not re5uired to display and deacti6ate!


Step1,: 'ouble clic7 table ",+#F.I"H, and go to the where conditions tab a6ailable in lower
part of the window!
%reate the where condition for the table loop!
,his internally creates below code!
Loop at GT_SPFLI.
Loop at GT_SFLIGHT where CARRID eq GT_SPFLI-CARRID
and CONNID eq GT_SPFLI-CONNID.

.............................. } -----> ode proe!!"n#
..............................
$nd%oop.
$nd%oop.
Step11: "o to .ayout4 in data 6iew a nested loop (table) will be displayed!
#F.I"H, under #$F.I! %reate the boiler plate ob>ects if needed!

Step1&: 'rag and drop all the fields under ",+#$F.I table into body page!
ote: 'o not drag the entire table into body page! We need to follow creating table using sub
forms concept!
"o to hierarchy 6iew? #elect all fields of spfli, Wrap the fields into sub form by right clic7ing!
Again wrap the sub form in to another sub form! #ub form properties are maintained latter!

Step1+: 'rag and drop the fields from sflight into body page and create sub forms as showed in
below snap! @eep note that the subforms created for sflight fields should be place inside the
spflidata subform!
&a"nta"n na'e! a! !p("ta)%e
*-->!p("data
*-->!("#htta)%e
---> S("#htdata
Step1-: %ontent of body page should be flowed!

Step1.: )aintain the subforms properties as showed in the below snaps!
#ubform4 spf#ita/#e

#ubform4 spf#idata

#ubform4 sf#i$htta/#e

#ubform4 sf#i$htdata

Step10: 0ow your F*A) is ready, chec7 for synta and acti6ate it!
(ecute the form and follow the below to get the data in hierarchy le6el! Header and its
corresponding item details!



*utput4 (a$e1

(a$e&

You might also like