cancel
Showing results for 
Search instead for 
Did you mean: 

Retrieving User’s Computer Name in a Web Application for SAP BTP CAPM with Fiori UI

srijayant
Explorer
0 Kudos

Hello Community,

I am currently developing an application on SAP Business Technology Platform (BTP) using Cloud Application Programming Model (CAPM) with Fiori UI. The application has a unique requirement where it needs to read the user’s computer name.

The reason for this requirement is that we have a table in HANA Cloud which maps user systems to cloud printers. When a user wants to print, the application needs to select the printer corresponding to the user’s computer name from this table and send the print job to this cloud print solution (Bartender).

I understand that due to security reasons, JavaScript running in a browser does not have access to the client’s system information, including the computer name. I have also researched and found that using JavaScript to get the user’s computer name may not be possible in modern browsers.

Given these constraints, I am looking for alternative approaches to retrieve the user’s computer name. Here are my specific questions:

  1. Are there any alternative methods to retrieve the user’s computer name in a web application running on SAP BTP CAPM with Fiori UI?
  2. Are there any best practices or recommended approaches for handling this kind of requirement, considering the security implications?
  3. If retrieving the computer name programmatically is not feasible, what would be the best way achive this functionality ?

Any guidance or suggestions would be greatly appreciated.

Thank you in advance for your help!

Best Regards, Sri

Accepted Solutions (0)

Answers (2)

Answers (2)

yogananda
Product and Topic Expert
Product and Topic Expert
0 Kudos

sri.jayant

Just a thought, bring a SAP Build apps as frontend web application or Mobile app, which can capture the hostname of the request coming which you be matched to your hana table entry.

gregorw
Active Contributor
0 Kudos

You could ask the user after the login to confirm the printer or choose another one.

srijayant
Explorer
0 Kudos

I was also thinking on the same lines, to ask the user and store as a Cookie, and dont ask untill the cookie is cleared.

But, this is a migeration project from ECC -> (S4/BTP) and today in ecc we could read system name from GUI based transaction.

So, to change something that did not need user input other way around, and increase a step, might not be acceptable.

what to do ?