Authorization-check in company code for GR55 reports
Hi to all!
Created User: ZTESTUSER
The scenario is this.
We created a report in GR55(Report Painter) and we want users (ex. ZTESTUSER) to access only company codes 7000 to 7999. How will I be able to do that?
I am thinking of creating a role or profile then assign it to the user, but I was not be able to locate an authorization object for GR55 reports.
The authorization object in GR51 is not doing what we want. It only control the create/change/display and execution transactions.
I tried using validation in GGB0 but I can't find a parameters where the GR55 reports will be checked so the users will be limited by company code.
Can somebody help me?
Thanks a lot.
I programmed a company code check for a report like this.
===========================================================
data: lv_text(4) type c.
if p_bukrs is not initial.
select single * from T001
where bukrs = p_bukrs.
if sy-subrc <> 0.
message e321(FR) with p_bukrs.
endif.
AUTHORITY-CHECK OBJECT 'F_SKA1_BUK'
ID 'BUKRS' field T001-BUKRS
ID 'ACTVT' field '03'.
if sy-subrc <> 0.
clear lv_text.
lv_text = p_bukrs.
message e800(FR) with p_bukrs.
endif.
endif.
============================================================
but I was not able to do that in GR55 reports because the program is automatically generated by SAP named GPXXXXXXXXXXXXXXXXXXXXXXXXXXXX.
Similar Messages
-
Transaction code KO88 need to be check at company code leval
Dear Experts,
I need maintain authorization check at company code level for the transaction code KO88
Can you suggest what are the better approaches/solutions to meet this requirement
Thanks in Advance
Guru PrasadHi,
it does not look like you can use standard authorization objects assigned to this transaction. This transaction is from CO module and this module does not use company codes directly. It uses controlling areas instead. You can see it in authorization object K_VRGNG which is checked in KO88.
It does not look like there is a suitable BADI either. So if you are on Netweaver you can try to use enhancement framework. In program KO71 which corresponds to transaction KO88 is subroutine ACTIVITY_AUTHORITY_CHECK where FM K_VRGNG_AUTHORITY_CHECK is used to check authorization for object K_VRGNG. It looks to me that it's a good point to use implicit enhancement point of this subroutine to add additional authorization check. In your case check for company code attached to internal order. But you need to test it properly and it might work only for this transaction. So if user can start settlement from somewhere else that your additional check might not be performed.
Cheers. -
Authorization object in Fi for company code for execute
Hi All,
I am searching authorization object of company code in FI for execue.
Do you have any idea abt that?
regards,
AmarHi,
Check following
- F_LFA1_BUK
F_KNA1_BUK
F_BKPF_BUK
F_SKA1_BUK
Regards,
Prashant -
Transaction code for Custom report
Hi,
How to create transaction code for Custom report ?
the custom report is a drilldown report of COPA, which can seen in tcode FDI3.
then how to add this new transaction to the menu path Easy assess->FI->AR->Information system->Reports->customers:items.
Thanks,
SwethaHi Swetha,
There is a special way to assign tcodes to such reports. Normally you create the report via report painter/writer. These reports are part of library and report group.
Create the tcode in SE93. Then at the bottom of the screen you would find option to specify report group, report name, variant to lauch with. Don't have system to specify the exact way of specifying, if you need I can provide on monday. You can take some existing COPA standard report and check from SE93.
--Ram -
How to find expense and revenue of a company code for a particular period
Hi Gurus,
I am new to FI. I need to find out the revenue, expense and gross profit of a company code for a particular period.
for eg: I need to find the revenue, expense and GP of a comapany code 'ZYZM' for the month of july. Is there
any standard report for this or any way to see P&L statement for this period?
Thanks and regards,
Ashish KumarHi Ashish
You can use report S_PL0_86000030 - G/L Account Balances (New) for the period wise report.
You can select as Mani mention P&L account statement type as X in dynamic selection and give the period for which you require the balance.
The report will give you the three balances
Opening
Till previous period
for the period
Hope this report will help you.
Regards
Pankaj P -
Validation for Company code for a vendor in LFB1 TABLE.
Hi Experts,
New to ABAP Objects!! I need to write a method which will have two input parameters Vendor number and company code. and i have check wether company code exist for given vendor number.
Can any one send the code for the above validation.
Thanks in advance for your help.
-Chris.Hello Chris
I have checked on ERP 6.0 and there is no standard class available for checking vendors.
However, within your method simply call BAPI_VENDOR_EXISTENCECHECK.
If the vendor exists but not for the company code the BAPI returns the message E522(FN):
Vendor &1 exists, but is not created in company code &2
You may have a look at classes beginning with CL_REEX..., e.g.:
CL_REEXC_COMPANY_CODE Company Code (T001)
CL_REEXC_CONTROLLING_AREA Controlling Area (TKA01)
Regards
Uwe -
Double Invoice check across company code
Hi All,
I have been trying to use the double invoice check functionality across company codes. i.e. when an invoice is posted in Company code A with ref no: xxx, and when I try to post a new inovice with the same reference ie. xxx in company code B, system does not give error message.
Please note: I have maintained message in application F5, no: 117 and 312.
Also in customization for double invoice check, I have unchecked "Check Company code" and checked "check reference" and "check invoice date"
I have also maintained the double invoice check flag in the vendor master.
Please help at the earliest.
Regards,
AnkushHi Ankush,
Good Day,
Duplicate invoice check across company code will not check for FI related invoice ( Like FB60)
But you can able to achive this with BTE ( SAMPLE_PROCESS_00001110 for FI Duplicate invoice check)
Steps for Implementing a BTE
(1)Goto transction FIBF menu Environment->Info System (P/S )
(2)Select the BTE you want to implement.
(3)Press button Sample function module
(4)This brings you to SE37 - Copy the sample function module to a Z-function module (First create a new function group for the function module) . Note: The name of the Z-functionmodule is not important
(5)Edit the code in the new function module
(6)Go back to transaction FIBF - Menu Settings->Products -> Of a customer and create a new product whicj identifies the new product . Remember to mark the Active field.
(7)Go back to FIBF menu Settings->P/S function modules->of a customer - Create an entry that links the BTE and Product with the new function module
Best Regards,
KSK -
Create a Transaction code for a Report
Hi
I have created a report through report painter. How can i create a transaction code for the report.
Thanks
JHi,
T.Code: SE93 - Maintain Transaction
Transaction Code = Zxxxxxx
Click on Create.
Short Text = Name of Report
Click on the radio button for 'Transaction with Parameters'
Press Enter.
Transaction = GR55
Parameters Window...
Screen Field : Screen field can be viewed in technical information screen of the report group to which report belongs for which t.code is to created.
Value: Report Group
Click on Save.
Now you have a custom transaction for the report(s) in a report group.
Hope this helps.
Please assign points to say thanks. -
Blocking a company code for all transactions.
A compnay code is having two plants assigned. No open documents in that company code.
How to block the company code for any transactions including purchase document creation?
However all the past data to be available for viewing and reference.
Thanks in advance.
NarasimharaoDear Narasimharao ,
You can remove authorization from user profile to use this company code.
And when someone try to save any documents , error message will be send.
hope this could help you.
best regards,
Carlos Moçatto -
Why "You do not have authorization to display company codes" ? Thanks
Hello,
Using the Tutorial BAPI which comes with the JCO Tutorial,I just wanna call the first function.
When I run the code, it display "You do not have authorization to display company codes".
Could any body please help me to explain why?
Thanks a lot
BELOW IS THE CODE:
package com.sap.slc.teamweb.test;
import com.sap.mw.jco.*;
public class TestBapi1 extends Object {
JCO.Client mConnection;
JCO.Repository mRepository;
public TestBapi1() {
try {
// Change the logon information to your own system/user
JCO.createClient("001", // SAP client
"<userid>", // userid
"****", // password
null, // language
"<hostname>", // application server host name
"00"); // system number
mConnection.connect();
mRepository = new JCO.Repository("SAPJCO", mConnection);
} catch (Exception ex) {
ex.printStackTrace();
System.exit(1);
JCO.Function function = null;
JCO.Table codes = null;
try {
function = this.createFunction("BAPI_COMPANYCODE_GETLIST");
if (function == null) {
System.out.println("BAPI_COMPANYCODE_GETLIST" + " not found in SAP.");
System.exit(1);
mConnection.execute(function);
JCO.Structure returnStructure = function.getExportParameterList().getStructure("RETURN");
if (!(returnStructure.getString("TYPE").equals("") || returnStructure.getString("TYPE").equals("S"))) {
System.out.println(returnStructure.getString("MESSAGE"));
System.exit(1);
codes = function.getTableParameterList().getTable("COMPANYCODE_LIST");
for (int i = 0; i < codes.getNumRows(); i++) {
codes.setRow(i);
System.out.println(codes.getString("COMP_CODE") + '\t' + codes.getString("COMP_NAME"));
catch (Exception ex) {
ex.printStackTrace();
System.exit(1);
try {
codes.firstRow();
for (int i = 0; i < codes.getNumRows(); i++, codes.nextRow()) {
function = this.createFunction("BAPI_COMPANYCODE_GETDETAIL");
if (function == null) {
System.out.println("BAPI_COMPANYCODE_GETDETAIL" + " not found in SAP.");
System.exit(1);
function.getImportParameterList().
setValue(codes.getString("COMP_CODE"), "COMPANYCODEID");
function.getExportParameterList().
setActive(false, "COMPANYCODE_ADDRESS");
mConnection.execute(function);
JCO.Structure returnStructure = function.getExportParameterList().getStructure("RETURN");
if (!(returnStructure.getString("TYPE").equals("") ||
returnStructure.getString("TYPE").equals("S") ||
returnStructure.getString("TYPE").equals("W"))) {
System.out.println(returnStructure.getString("MESSAGE"));
JCO.Structure detail =
function.getExportParameterList().
getStructure("COMPANYCODE_DETAIL");
System.out.println(detail.getString("COMP_CODE") + '\t' +
detail.getString("COUNTRY") + '\t' +
detail.getString("CITY"));
catch (Exception ex) {
ex.printStackTrace();
System.exit(1);
mConnection.disconnect();
public JCO.Function createFunction(String name) throws Exception {
try {
IFunctionTemplate ft = mRepository.getFunctionTemplate(name.toUpperCase());
if (ft == null)
return null;
return ft.getFunction();
catch (Exception ex) {
throw new Exception("Problem retrieving JCO.Function object.");
public static void main(String args[]) {
TestBapi1 app = new TestBapi1();Hi Mao,
R/3 comes with some predefined Company Codes and we also
can define our own Company Codes.
visit this link this may help you.
http://help.sap.com/saphelp_erp2004/helpdata/en/8e/1a5217171311d28e1d080009b6ab29/frameset.htm
Regards,
Narinder Hartala -
Cannot change company code for functional location in PM module
Dear Gurus,
When I try to change the maint plant for topmost level hierarchy FL, I get error. So I cleared the data in organization tab (planning plant....) and tried to click location tab but receive warning (After changing PM planning plant, please check dependent objects) & cannot proceed. Kindly advice me on how I can change the company code for all the functional location in the plant.
Thank you.Dear Gurus,
Is there any way I can mass change the company code for all FLs?
Thank you. -
Set Up Payment Methods per Company Code for Payment
Hi All,
Can any expert please suggest whether do we need to enter only paying company codes while defining the payment methods per company code or enter all company codes.
Ex: We have 10 company codes for which there are 3 paying company codes. After defining the payment methods in the country, while defining payment methods per company code do we need to define for only 3 paying company codes or for all 10 company codes. Because when you are paying through one company code on behalf of three company codes, how does it make sense having the payment method in company codes which are not paying. I hope my query is sensible.
Thanks&Regards
SrinivasGenerally Payment method is defined for a customer at Company code level and Sales area level. Through Partner function we can control who has to make payment. In your case , if you need to define different customer as payer you can do so in KNVP table. while making sales order payment terms will pick from Payer of the Sold to patry customer.
Not sure why do you wants to link to Company code -
Set up Payment Methods Per Company code for Transaction
Hi All,
Can any expert please suggest whether do we need to enter only paying company codes while defining the payment methods per company code or enter all company codes.
Ex: We have 10 company codes for which there are 3 paying company codes. After defining the payment methods in the country, while defining payment methods per company code do we need to define for only 3 paying company codes or for all 10 company codes. Because when you are paying through one company code on behalf of three company codes, how does it make sense having the payment method in company codes which are not paying. I hope my query is sensible.
Thanks&Regards
SrinivasHi,
You should define the payment method in all the 10 company codes regarding they are the paying or non paying company code.
If you are not defining them they you will not have the option to select the payment for that particular company code.
regards
pbb -
How to setup a company code for material management
Hi,
While creating material in MM01, in sales org tab, when I gave plant XXXX, it is giving an error "Company code YYYY is not setup for material management".
So can you help me , how to setup a company code for material management
Help is appreciated
thanks
DILHello Sendil,
You can maintain it with trns code OMSY or MMPI/MMPV.
Hope this helps
Regards
Arif Mansuri -
Transaction code for Depricitation Report
Hi,
we have asset accouting with WDV Method & maintaing our books as per F.Y. April to March
But, due to foreign investor's investment, we have need to closed our books, twicely, i.e. IFRS - F.Y.-Jan to Dec / ( US gap ) & Indian gap, FY. April to March.
Currently, We are using, AR03 trasaction to view the Depriciation Report (Asset Register)
My problem is, when we run the Deprication report for IFRS Books closing, we could't get report, properly, because of our F.Y. maintan April to March.
in that case we have need to maintain Manually on XLS.
Please tell me any transaction code for depriciation report for IFRS Books closing as well as Indian Gap.
Thanks
Regards
Jitendradont you have an option in there to run based on your depreciation area? Select your depreciation area and the report date based on your fiscal year variant. Optionally, you can also try reports like S_ALR_87012006 - Ordinary Depreciation, and S_P99_41000192 - Posted depreciation by asset and posting period with depreciation area selection.
Maybe you are looking for
-
Can't connect to computer on network but can share screen
I've got a MBP 2.4 that I can't connect to another MBP or a Mac Pro on our home network (Airport Extreme router). I can share the screen but I can't connect. The other computers can connect and share into the 2.4. I can't figure this out since all of
-
This item is free in the store
hi I have problem downloading One of the apps i paid for, "WhatsApp" I had problem last night i changed my pin code and forgot the code, so i went and erased the content and restored from iCloud, everything went perfectly, but I have noticed that the
-
Javac command line program can use class, need tomcat to do same
This may be simple, but any assistance to a newby would be greatly aprreciated. I have a this class file: import java.io.*; public class OCrypt static public String getEncryptedText (String plainText) Runtime R; String _encryptedText = ""; char[] som
-
Defective Replacement iPod - Scrambled screen, random restarts
Hi there, I recently paid for Battery Replacement Service for my 3rd Generation iPod. I packed up and FedEx'd my iPod to Apple and all that good stuff. Apple sent me back a (supposedly) refurbished iPod that's really really messed up: - the screen ge
-
Hi All, Is there any way I will get Demand versus Consumption report. My client wants that. But i do not know if there is any standard transaction for that. Client put demand as per forcasting say 10 qty for Jan . But sales order comes for 5 qty. so