Thursday, August 9, 2007

Adobe Forms - Step by Step

Hi ,
Normally Adobe forms are developed if the Customer needs to Convert the Existing SAP Scripts or Smartforms if any to PDF form. In any case, it can also be developed from scratch for a whole new req.

Some quick steps that can be followed for Conversion from Script to Adobe forms are:

1. Collect the MetaData from the SAPSCRIPTS by downloading the form. Check the windows how they are getting populated from which structure etc.

2. Design a Struture, Say STRU in SE11 with all the fields req in the Form.

3. With this information, goto Txn SFP, and first select the Interface button to create the Interface b/w the Form and the Print Program.

Here you define an Interface of type STRU.The interface defines which data a program can possibly pass on to a form. It also contains global data and initialization coding that can be used in a form. Interfaces are reusable. They are Repository objects. Save and Activate the Interface.

4. Then Come back, and select the Form Radiobutton to Create the actual Form.

5. Under this, it is divided into 2 parts, Context and Layout.
Context is the Data Container for the form that is retrived Via the Interface that will now be visible on the left side of the window.
Drag the Interface stuffs into your Context and you can also add any more fields required like system date,time etc into the context.

6. With this information, goto Layout Tab to design the form using the Standard Palettes available for Box,Text, Numeric field, Checkbox etc... Grouping can be done using the Subform UI.

Well, Play with those palettes , you will understand what all it can offer.

7. Now,Print Prog : We can use the existing Print Prog if SAPSCRIPTS or design a new one. There is some diff b.w the F.M's here... In Place of "Open_Form", we have "FP_Job_Open". In Place of "Close_Form", we have "FP_Job_Close".

Similar to Smartform, a FM is generate for the form that has to be determined in the program by calling a FM " FP_FUNCTION_MODULE_NAME ".

Pass the form name in the parametrs, it will import the FM name that was generated with that form.

Then call the Generated FM. Well, I guess its always going to be tough to explain this way....

No comments: