Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Client specific code in BSP

kamesh_g
Contributor
0 Likes
1,210

Hi All,

If anybody knows how to write client specific code in BSP application  . Please Share it .

Thanks

Kamesh

3 REPLIES 3
Read only

AbhishekSharma
Active Contributor
0 Likes
1,090

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

Let's learn together as much as possible...
CodeInMins
Read only

0 Likes
1,090

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

Read only

0 Likes
1,090

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

Let's learn together as much as possible...
CodeInMins