|Home • Trainings • Quiz • Tips • Tutorials • Functional • Cert Q's • Interview Q's • Jobs • Testimonials • Advertise • Contact Us|
Adobe Forms - Using Alternative
By Jayachandra Nagaram, YASH Technologies
this demo we will create adobe form, which displays two different table data in
different scenarios based on the given input. This functionality is achieved by
using Alternative in adobe forms.
Go to SFP transaction and create interface for the Adobe form.
Maintain Interface type ABAP-Dictionary
Base interface. (IN ECC6.0 Version)
In interface you will find import, export and Exceptions.
Create import parameters by clicking on below shown create
import parameters IT_SPFLI and FLAG.
The import parameter IT_SPFLI is used to input data and FLAG
is used to select the table that should be displayed in the Output. Here the
details of either SPFLI or SFLIGHT are displayed depending on the FLAG.
Create two global tables SPFLI and SFLIGHT to hold the data that needs to be
displayed in the output.
Code for fetching the data is written in the code initialization part of
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.
Write the below code in code initialization part. Check for errors and
activate the interface.
select * from spfli into table gt_spfli for all entries in it_spfli where carrid eq it_spfli-carrid and connid eq it_spfli-connid.
select * from sflight into table gt_sflight for all entries in it_spfli where carrid eq it_spfli-carrid and connid eq it_spfli-connid.
After the interface part is done, create Form by going to SFP transaction.
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
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. Content area will be blank initially. We need to drag the elements
that need to be displayed in output into the content area.
Drag and drop element FLAG into context area.
Select folder YDEMO_ALTERNATIVE in context and create an ALTERNATIVE.
Right-clicking on the folder go to create--> Alternative.
In Alternative will find two nodes TRUE and FALSE.
Initially both are blank.
Please send us your feedback/suggestions at webmaster@SAPTechnical.COM
©2006-2007 SAPTechnical.COM. All rights reserved.
product names are trademarks of their respective companies. SAPTechnical.COM
is in no way affiliated with SAP AG.
Graphic Design by Round the Bend Wizards