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 dependent

abdulazeez12
Active Contributor
0 Likes
726

hii all,

iam working on an object where it is desired that the changes in the output should be made only in 200 client of DEV server. No changes should be made when the report is run in DEV210 client or QAS or PRD.

I am trying to write the code this way:

if sy-mandt EQ DEV,

-


---

endif.

But the above code will restrict only QAS and PRD. What should i do to restrict even DEV210?

Thanks for your help.

1 ACCEPTED SOLUTION
Read only

uwe_schieferstein
Active Contributor
0 Likes
701

Hello Shakir

If you want to assure that your report is running only at a single client within a given SAP system then code:

IF ( syst-sysid = 'DEV'    AND
     syst-mandt = 200' ).
  " assuming that your development system has sysid=DEV
  " run report
ELSE.
  message ... " tell the user why report does not run
  RETURN.  " leave report
ENDIF.

Regards

Uwe

5 REPLIES 5
Read only

Former Member
0 Likes
701

Hi Shakir,

use

IF SY-MANDT EQ '200'.

ENDIF.

Read only

uwe_schieferstein
Active Contributor
0 Likes
702

Hello Shakir

If you want to assure that your report is running only at a single client within a given SAP system then code:

IF ( syst-sysid = 'DEV'    AND
     syst-mandt = 200' ).
  " assuming that your development system has sysid=DEV
  " run report
ELSE.
  message ... " tell the user why report does not run
  RETURN.  " leave report
ENDIF.

Regards

Uwe

Read only

ferry_lianto
Active Contributor
0 Likes
701

Hi Shakir,

You can check on SY-SYSID (Name of SAP R/3 System) in addition to SY-MANDT.

Hope this will help.

Regards,

Ferry Lianto

Read only

Former Member
0 Likes
701

Hi

Try this code.

If sy-mandt eq 200 and sy-uname eq DEV.

endif.

Read only

Former Member
0 Likes
701

Hi

Sorry i return the code wrongly. U have to check for the server name. Once you get that give that name = DEV.

Even i will try it once i get it i will inform u.

Regards

Haritha