‎2007 Feb 28 8:26 AM
can anyone please tell me in a report if there is a company code field ,how to know how many company codes available in a particular report
‎2007 Feb 28 8:38 AM
declare one more itab with only BUKRS
loop at itab.
move itab-bukrs to it_bukrs-bukrs.
append it_bukrs.
clear it_bukrs.
endloop.
delete adjacent duplicates from it_bukrs.
describe table it_bukrs lines v_lines.
write : / 'no of company codes in report :' , v_lines.
‎2007 Feb 28 8:39 AM
Hi,
Search the Program with the field BUKRS .
Generally if more than one company code is used, somewhere they will hardcode these values for that field BUKRS.
Or they may declare 2 or 3 constants for these Company codes and use it.
So check in the CONSTANTS section of the report, whether any of the Company codes are declared or
Search in the Program with the field BUKRS, whether any other value is assigned to this field.
Regards,
Anji
‎2007 Feb 28 8:47 AM
Hi
It's depends on the selection-screen, if the company code is managed by select-options it means the report can manage all company codes defined in the system.
Max
‎2007 Feb 28 9:02 AM
If you see the table T001, then you can see all the copnay codes in your system.
Regards,
Ravi