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

COMPANY CODE

Former Member
0 Likes
538

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

4 REPLIES 4
Read only

Former Member
0 Likes
508
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.
Read only

Former Member
0 Likes
508

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

Read only

Former Member
0 Likes
508

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

Read only

Former Member
0 Likes
508

If you see the table T001, then you can see all the copnay codes in your system.

Regards,

Ravi