Skip to Content

Requirement :  Adding Data to Z table using create Web Service & Link with Third Party SW

Steps :

  • Create Z table ( zpptest1 )
  • Create Remote-Enabled FM
  • Create Web Service
  • SOAMANAGER Configuration



     Create Z table


Create Table with 3 fields,

NUM1 – Value Entered from Third Part SW

NUM2 – Value Entered from Third Part SW

TOT   – Value Calculated from FM and pass it to Table Using Web service and RFC

ScreenHunter_16 Jul. 23 11.35.jpg



Create Remote-Enabled FM



SE37—> Go to —> Function Group —>Create Group —> Create FM under Functional group.


1. Select “Remote-Enabled Module” in Radio Button as below.


ScreenHunter_17 Jul. 23 13.33.jpg



2. Tick on “Pass Value” option for All imports and exports Parameters.


ScreenHunter_19 Jul. 23 13.39.jpg


ScreenHunter_20 Jul. 23 13.39.jpg


3.  Write Source code  as below.

function zpptest.

*”———————————————————————-

*”*”Local Interface:

*”  IMPORTING

*”     VALUE(GV_A) TYPE  I

*”     VALUE(GV_B) TYPE  I

*”  EXPORTING

*”     VALUE(GV_TOT) TYPE  I

*”———————————————————————-

   data: gs_save type zpptest1.

   gv_tot = gv_a + gv_b.

   gs_savenum1 = gv_a.

   gs_savenum2 = gv_b.

   gs_savetot = gv_tot.

   insert zpptest1 from gs_save.

   clear gs_save.

endfunction.

Create Web Service



SE37—> Enter Functional module Name –> Change


ScreenHunter_21 Jul. 23 15.10.jpg


utilities –> More Utilities –>Create Web Service –> From the Functional Module



Add service Definition & Description

ScreenHunter_22 Jul. 23 15.25.jpg

Enter Functional Module Name , Tick Map Name ,  Click On Continue

ScreenHunter_23 Jul. 23 15.28.jpg

Change Profile & Click on Continue..

ScreenHunter_25 Jul. 23 15.34.jpg


Click On  Local Object or Assign Request and Click on Continue


ScreenHunter_26 Jul. 23 15.38.jpg



ScreenHunter_27 Jul. 23 15.41.jpg



Now Web Service is Completely Created


ScreenHunter_28 Jul. 23 15.44.jpg


Now go to T-code SE80. There you can see the Web service you have created under you package

name-> enterprise services folder.

ScreenHunter_29 Jul. 23 15.47.jpg



SOAMANAGER Configuration

Go To SOAMANAGER

ScreenHunter_30 Jul. 23 16.43.jpg

Search From Web Service Name

ScreenHunter_31 Jul. 23 16.45.jpg

Double click on Highlighted ( Created Web Service )

ScreenHunter_32 Jul. 23 16.47.jpg

Create Service

ScreenHunter_33 Jul. 23 16.50.jpg

Fill Related Fields & Click On next to Create Service

ScreenHunter_34 Jul. 23 16.51.jpg

Tick on No Authentication & enter User Name with Password

ScreenHunter_35 Jul. 23 16.54.jpg

Click on Next

Click on Finish

ScreenHunter_36 Jul. 23 17.01.jpg

Now Web Service is Created.

Click on below Icon & get

ScreenHunter_37 Jul. 23 17.05.jpg

ScreenHunter_38 Jul. 23 17.07.jpg

Thank You

Pramod Pathirana


To report this post you need to login first.

3 Comments

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

Leave a Reply