cancel
Showing results for 
Search instead for 
Did you mean: 

problem in ITS

Former Member
0 Kudos

Below is the flow logic of my ITS service.In this iam getting the personnel no from a text box and passing it to the remote enabled function module to fetch his details.However the requirement is that I should not pass the personnel no to the FM.Instead when a person is logging to the service his id should be detected automatically by the system.Is there any standard funtcion module or BAPI or any command in HTMLB or in FlowLogic to handle this requirement.

Flow Logic:

<flow>

<state name="Start">

<module name="Y_ESS_FL_GET_DETAILS" type="RFC">

<default next_template="FL_APPLY"></default>

<inputmapping source="PERSONNELNO" target="PERSONNELNO"></inputmapping>

<persistent name="FL_BALANCE"></persistent>

<persistent name="FL_EXPIRY_DATE"></persistent>

<persistent name="PERNR"></persistent>

<persistent name="RETURN1"></persistent>

</module>

</state>

<event name="Submit" next_state="Start"/>

</flow>

please give me some solution on this.

thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

gregorw
Active Contributor
0 Kudos

Hello Vadivel,

I think you should write your own RFC enabled Function Module which gets the personnel no of the logged in user.

Regards

Gregor

athavanraja
Active Contributor
0 Kudos

do you mean the user id? sy-uname will give the logged on user id.

or are you looking for a code to get the user id of a pernr?

select single * from pa0105 where pernr eq <pernr> and

subty eq '0001' and

endda ge sy-datum and

begda le sy-datum .

pa0105-usrid will be the user id for the pernr.

Regards

Raja