adobe forms - using alternative

Upload: bhattahcarjee-rupak

Post on 10-Apr-2018

275 views

Category:

Documents


0 download

TRANSCRIPT

  • 8/8/2019 Adobe Forms - Using Alternative

    1/17

    Adobe Forms - Using Alternative

    By 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 inadobe 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.

  • 8/8/2019 Adobe Forms - Using Alternative

    2/17

  • 8/8/2019 Adobe Forms - Using Alternative

    3/17

    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 theoutput should be declared in the Input parameters and the variables to which the results are assignedneeds 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 spfliinto table gt_spfli

    for all entries in it_spfliwhere carrid eq it_spfli-carrid

    and connid eq it_spfli-connid.select *

    from sflightinto table gt_sflight

  • 8/8/2019 Adobe Forms - Using Alternative

    4/17

    for all entries in it_spfliwhere 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 creatingthe Form. This is the additional functionality in Adobe forms. One interface can be used for manyForms 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.

  • 8/8/2019 Adobe Forms - Using Alternative

    5/17

    Step10: Drag and drop element FLAG into context area.

    Step11: Select folder YDEMO_ALTERNATIVE in context and create an ALTERNATIVE. Right-clickingon the folder go to create--> Alternative.

  • 8/8/2019 Adobe Forms - Using Alternative

    6/17

    Step 12: In Alternative will find two nodes TRUE and FALSE.

    Initially both are blank.

    Step13: Drag and drop table GT_SPFLI from Global data to TRUE node and de-activate fields whichwe don't need.

  • 8/8/2019 Adobe Forms - Using Alternative

    7/17

    Step14: Drag and drop table GT_SFLIGHT from Global data to FALSE node and de-activate fieldswhich we don't need.

  • 8/8/2019 Adobe Forms - Using Alternative

    8/17

  • 8/8/2019 Adobe Forms - Using Alternative

    9/17

  • 8/8/2019 Adobe Forms - Using Alternative

    10/17

  • 8/8/2019 Adobe Forms - Using Alternative

    11/17

    Step17: In data view we will find subform ALERNATIVE, with in it tables will be placed in TRUE andFALSE subforms using choice subformset.

    Step18: Drag and drop complete ALTERNATIVE subform into body page from data view.

  • 8/8/2019 Adobe Forms - Using Alternative

    12/17

    Step19: Select body page and go to the object view from the pallets.

    Step20: Go to SUBFORM tab; make the body page content FLOWED, Flow direction TOP TOBOTTOM.

  • 8/8/2019 Adobe Forms - Using Alternative

    13/17

  • 8/8/2019 Adobe Forms - Using Alternative

    14/17

  • 8/8/2019 Adobe Forms - Using Alternative

    15/17

    Step26: Select the table IT_SPFLI to give the input data. Give inputs to the table.

    Step27: Now there are three entries in the table IT_SPFLI and the FLAG is BLANK.

    Step28: Subform TRUE will be triggered when FLAG is INITIAL. And SPFLI table data will bedisplayed in output.

  • 8/8/2019 Adobe Forms - Using Alternative

    16/17

    Step29: Maintain same data in IT_SPFLI and give 'X' in FLAG. Scenario 2 will be triggered.

    Step30: Output screen displays SFLIGHT table data;

  • 8/8/2019 Adobe Forms - Using Alternative

    17/17