cancel
Showing results for 
Search instead for 
Did you mean: 

How to connect the diff ECCu2019s Depending upon the UserName by using WDJ Appl

Former Member
0 Kudos

Hi Friends,

I have one doubt in WDJ.

Presently I am working by connecting to ECC UK, Now I want to connect to multilple ECC Systems based on usernames and by using single WDJ Application.So here i was maintain User Groups.

For Example:

Now I am connecting to ECC UK. Now i want Same Application will connect to Multiple ECC System(ECC North America, ECC USA, And ECC INDIA).

How to Connect to the multiple ECC Systems.

Regards

Vijay K

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hello Vijay,

You can get the Country of the user using UME API. The Country of the user is maintained in the User Profile this can read by getting the IUser and then reading the country through API.

and for calling different systems we need to create the RFC detisnations with standard names and at the end we need to add the Logical system name of the different ECC systems

WD_MODELDATA_DESTABC and WD_RFC_METADATA_DESTABC

here WD_MODELDATA_DEST and WD_RFC_METADATA_DEST are the standard names and we should not change that names while creating the JCO and we need to append the Logical system names of differenct ECC systems in the above example it is ABC.

now while importing the model you need to give the model destinations as WD_MODELDATA_DEST and WD_RFC_METADATA_DEST and while executin the model we need to append the logical system name in the URL as belo

http://<hostname>:<port>/webdynpro/dispatcher/local/ESSProject/ESSApp?

sap-wd-arfc-useSys=WD_MODELDATA_DEST:ABC&

sap-wd-arfc-useSys=WD_RFC_METADATA_DEST:ABC

Regards,

Raju Bonagiri

Former Member
0 Kudos

Hi,

Are you trying to fetch data from ECC system through RFC? If it is so then you can use JCO connections and modify its parameter during execution in WDJ based on your user logic to connect to different systems.

Regards,

Manoj

Former Member
0 Kudos

Yes Manoj,

I can use JCOu2019s from Diff Systems.here my doubt is how to write codeing in init(). By using user Group.

For Exaple.

XYZ User Belongs to India. XYZ User longin into the Portal he will connect to India ECC System. So that we can write Some doing in init().

ABC User Belongs to North America.ABC User longin into the Portal Depending upon user group. He will connect the ECC NA System.

Here what I am thinkg is.

If(user is avaliable in INDIA user group)

{

Here we will Pass to the INDIA ECC System Details. Means we are able to Connect the ECC System. I think here we can pass Client and MODEL Date and META Data Details

}

else if (user is avaliable in USA user group))

{

Here we will Pass to the USA ECC System Details. Means we are able to Connect the ECC System. I think here we can pass Client and MODEL Date and META Data Details .

}

I am thing like this. Is it Possible to develop the codeing in Init()

Regards

Vijay K

Former Member
0 Kudos

Hi,

I don't find any problem in this. Offcourse you need to know how to check the logged-in user in different group.

Also you can refer this [link|http://wiki.sdn.sap.com/wiki/display/Snippets/DynamicJCOHandling-Creation,Updationetc] to create connection object and then get Jco client for the connection to set to your model object for execution.

Regards,

Manoj