‎2006 Sep 11 4:43 PM
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.
‎2006 Sep 11 4:50 PM
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
‎2006 Sep 11 4:49 PM
‎2006 Sep 11 4:50 PM
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
‎2006 Sep 11 4:52 PM
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
‎2006 Sep 11 4:52 PM
Hi
Try this code.
If sy-mandt eq 200 and sy-uname eq DEV.
endif.
‎2006 Sep 11 4:57 PM
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