â2015 Sep 29 8:02 PM
Hi All,
If anybody knows how to write client specific code in BSP application . Please Share it .
Thanks
Kamesh
â2015 Sep 29 10:26 PM
Hi Kamesh,
What exactly your requirement is ?
Assuming you want to fetch records from some table based on the client you are running code on.
you can use query as follows :
SELECT MANDT KUNNR NAME1 FROM KNA1 CLIENT SPECIFIED INTO TABLE CUST_TAB WHERE
MANDT IN CLIENT.
If you want to have client (system) specific URL then you can use URL Parameters
sap-client > Specifies the client for a logon to the SAP Web Application Server; can be used in the URL or in HTML forms to override the default client.
Hope this will help.
Thanks-
Abhishek
â2015 Sep 29 10:35 PM
Hi Abhishek,
Can you tell me where I can do below . Is there any tcode ?
sap-client > Specifies the client for a logon to the SAP Web Application Server; can be used in the URL or in HTML forms to override the default client
â2015 Sep 30 1:00 AM
Hi Kamesh,
No there is no T-Code for this, this is Query string parameter you can send with your WD application URL.
Please have look to below url:
http://help.sap.com/saphelp_erp60_sp/helpdata/en/ce/3dd23a09313b37e10000000a11405a/content.htm
SAP URL Parameters - Web Dynpro for ABAP - SAP Library
Ex:
http://<your domain url>:<port>/sap/bc/webdynpro/<your app name>?sap-client=130&sap-language=EN&sap-wd-configId=<your config id>
If above url you will run in Browser then this will hit Client 130 if you will put sap-client=100 then this will hit Client 100 code.
If want to pass any other parameter using Query String you can define receiver parameter in window's handeldefault method.
This is how you can get values from those Query String parameters.
Hope this will help.
Thanks-
Abhishek