Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

how to give the vairables used in the RFC for the webdnypro developer

Dear Freinds,

i an abaper i have one specific doubt regarding icon which has been selected on the portal screen.

My requirement is we have portal screen on which i have two Buttons(or links) one Self and another for Dependents. i have to write an Bapi or RFC and give it to webdynpro developer.

i have to write logic in my RFC based on the button selected on the portal screen (self or dependent) .

in my RFC function module i have used import parameters & table parameters( return value for the webdynpro to pick up) . In the table parameters i have given structure z_struc & the Z_Struc has basically three fields

a) self b) depndt c) flag.

so i have written logic as

if v_flag_self = 'A'

logic for the self of the employee

elseif v_flag_dep = 'B'.

logic for the dependent.


so any one could please let me know how i should pass on to the webdynpro

or to recognize that the value for the Self he has to consider is A

and dependent button he has to take is B. Because based ont he this flag values

(A & B) only my logic works.

how i should pass this values to him .





If the flag is not already set, then depending on which button is clicked, you need to set it.


if sy-ucomm = 'SELF'.
v_flag_self = 'A'.
elseif sy-comm = 'DEP'.
v_flag_dep = 'B'.

Best regards,


0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question