| Home • Tips • Tutorials • Sample Specs • Certification Q's • Interview Q's • Jobs • Testimonials • Contact Us | ||
Document Categories:
Email a FriendWhat's New?
Contribute?What's Hot? |
Adobe Forms - Using AlternativeBy Jayachandra Nagaram, YASH Technologies In
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. Step1:
Go to SFP transaction and create interface for the Adobe form.
Note:
Maintain Interface type ABAP-Dictionary
Base interface. (IN ECC6.0 Version)
Step2:
In interface you will find import, export and Exceptions. Create import parameters by clicking on below shown create
button.
Step3:
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.
Step4:
Create two global tables SPFLI and SFLIGHT to hold the data that needs to be
displayed in the output.
Step5:
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.
Step6:
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.
Step7:
After the interface part is done, create Form by going to SFP transaction.
Step8:
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.
Step9:
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.
Step10:
Drag and drop element FLAG into context area.
Step11:
Select folder YDEMO_ALTERNATIVE in context and create an ALTERNATIVE.
Right-clicking on the folder go to create--> Alternative.
Step
12:
In Alternative will find two nodes TRUE and FALSE. Initially both are blank.
|
|
|
Please send us your feedback/suggestions at webmaster@SAPTechnical.COM Home • Contribute • About Us • Privacy • Terms Of Use • Disclaimer • Safe • Companies: Advertise on SAPTechnical.COM | Post Job • Contact Us ©2006-2007 SAPTechnical.COM. All rights reserved. All
product names are trademarks of their respective companies. SAPTechnical.COM,
Inc. is in no way affiliated with SAP AG. Graphic Design by Round the Bend Wizards |
||