Skip to Content

Objective:

The article is written to support the Web Dynpro ABAP consultants who want to call the Interactive Adobe forms using Web Dynpro ABAP. This article illustrates an example to view the existing contents, change the existing content and insert new record in database using Adobe form.

Web Dynpro ABAP: Database update and insert using Interactive Adobe form

In this article, we will develop 2 views. In the first view, we will have an input field along with 2 buttons NEW and EDIT. Second view is Adobe Interactive form. Based on the value entered and the button clicked in the first view, second view will get called either with preloaded data or not. We will write the logic for billno to get generated automatically for new entries.In the second view, in the interactive adobe form, we will have a button SUBMIT which will help us to insert/update records in the database table.

Prerequisites:

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

Database table:

adb1..JPG

Web Dynpro component:

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

adb2.JPG

Create Outbound plug with importing parameter.

adb3.JPG

adb4.JPG

adb5a.JPG

adb5b.JPG

adb6a.JPG

Keep the enabled as checked. Choose the datasource as above and mention the event as submit and create it.Mention the template source say ZZZ_JAYTEST1. That is the adobe form which we are going to create now. Double click that name.

adb6b.JPG

Then press Context button in that. Then select context node ZZZ_JAYTEST1.

adb7.JPG

adb8.JPG

   Insert Web Dynpro Script in Form Layout as shown below.

adb9a.JPG

Activate the form. In Handle Default of Inbound Plug event, read the context node and write necessary select statements also as shown below.

adb9b.JPG

adb10a.JPG

adb10b.JPG

Code:

adb11.JPG

adb12.JPG

Window:

In the window (Say ZZZ_JAYTEST1), first embed the views Main and Next as shown below and from Main, create destination view from outbound plug.

adb13.JPG

Test:

Enter Bill no to edit.

adb15.JPG

adb16.JPG

To report this post you need to login first.

2 Comments

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

  1. Tabishul Haque

    Thanks Jayanthi for the helpful composition, I’ve a similar requirement but my interactive form gets disabled after the submit button has been pressed and data updated in backend database tables. Any idea why this is happening or suggestions to overcome this?

    HI, DOES IT HAVE ANY RELATION WITH EXTENDED READERS/USAGE RIGHTS….?

    (0) 

Leave a Reply