Download - Using Where Conditions to Relate Header and Item Tables in Adobe Forms

Transcript
  • 8/11/2019 Using Where Conditions to Relate Header and Item Tables in Adobe Forms

    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 inpre"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!

    http://www.saptechnical.com/Tutorials/AdobeForms/Alternative/page1.htmhttp://www.saptechnical.com/Tutorials/AdobeForms/Alternative/page1.htmhttp://www.saptechnical.com/Tutorials/AdobeForms/Alternative/page1.htmhttp://www.saptechnical.com/Tutorials/AdobeForms/Alternative/page1.htmhttp://www.saptechnical.com/Tutorials/AdobeForms/Alternative/page1.htm
  • 8/11/2019 Using Where Conditions to Relate Header and Item Tables in Adobe Forms

    2/13

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

    #tep84 #elect 'AA 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!

  • 8/11/2019 Using Where Conditions to Relate Header and Item Tables in Adobe Forms

    3/13

    #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!

  • 8/11/2019 Using Where Conditions to Relate Header and Item Tables in Adobe Forms

    4/13

    #tep

  • 8/11/2019 Using Where Conditions to Relate Header and Item Tables in Adobe Forms

    5/13

    Step1,:'ouble clic7 table "+#F.I"H and go to the where conditions tab a6ailable in lowerpart of the window!

    %reate the where condition for the table loop!

    his internally creates below code!

  • 8/11/2019 Using Where Conditions to Relate Header and Item Tables in Adobe Forms

    6/13

    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!

  • 8/11/2019 Using Where Conditions to Relate Header and Item Tables in Adobe Forms

    7/13

    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 subforms 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 inbelow snap! @eep note that the subforms created for sflight fields should be place inside thespflidata subform!

  • 8/11/2019 Using Where Conditions to Relate Header and Item Tables in Adobe Forms

    8/13

    &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

  • 8/11/2019 Using Where Conditions to Relate Header and Item Tables in Adobe Forms

    9/13

    #ubform4 spf#idata

    #ubform4 sf#i$htta/#e

  • 8/11/2019 Using Where Conditions to Relate Header and Item Tables in Adobe Forms

    10/13

    #ubform4 sf#i$htdata

    Step10: 0ow your F* is ready, chec7 for synta and acti6ate it!

    ecute the form and follow the below to get the data in hierarchy le6el! Header and itscorresponding item details!

  • 8/11/2019 Using Where Conditions to Relate Header and Item Tables in Adobe Forms

    11/13

    *utput4 (a$e1

  • 8/11/2019 Using Where Conditions to Relate Header and Item Tables in Adobe Forms

    12/13

    (a$e&

  • 8/11/2019 Using Where Conditions to Relate Header and Item Tables in Adobe Forms

    13/13