Skip to Content

Objective:

The article is written to help the Web Dynpro ABAP consultants who want to call the Adobe forms in popup Window using Web Dynpro ABAP.

Web Dynpro ABAP: Adobe form in popup Window

In this article, we will develop 2 views. In the first view, we will have an input field(say Billdate) along with a button POPUP. Second view is Adobe Interactive form. Based on the value entered and the button clicked in the first view, second view will get called.

Prerequisite:

Consultants should have basic Web Dynpro ABAP and Adobe form basic knowledge.

Database table:

adb1.JPG

Web Dynpro:

Create an Web Dynpro component (say zzz_jaytest3). In view, design context as below.

adb2.JPG

Do the mapping for context inside Main View as below.

adb3.JPG

Design layout as shown. Bind the value for input field billdate to the context attribute billdate.

adb4.JPG

Create events CLICK for button DETAILS.Now create another view called POPUP. Map the context of the view POPUP as mentioned here.

adb5.JPG

Create the element Interactive form. Since we are not going to interact with it during runtime, it is enough if we maintain the property enabled as unchecked.

adb6.JPG

Mention the form name which we are going to create in template source and then double click the same.

adb7.JPG

Then choose Context button.Interface and then form will get generated automatically.

adb8.JPG

Mention the layout of form as ZCI_LAYOUT and from Utilities use Insert WebDynpro script.

adb9.JPG

adb10.JPG

Then create a table using Table assistance and then wrap it in subform.

adb11.JPG

Activate the form.Create another window called POP_ADB and then embed the view POPUP inside the window.

adb12.JPG

Now in coding, we need to write the logic in ONCLICK method in Main view to open Adobe Form.Read context for Billdate.

adb13.JPG

Then call the POPUP window.

adb14.JPG

Write the necessary select statements and then finally bind the internal table to the node bill.

Code:

   adb15.JPG        

         adb16.JPG

Then create WebDynpro Application(say ZZZ_JAYTEST3).

Test:

Enter Bill date and then click details.

adb17.JPG

To report this post you need to login first.

Be the first to leave a comment

You must be Logged on to comment or reply to a post.

Leave a Reply