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 validation

former_member188594
Active Participant
0 Likes
3,714

Could anyone explain me the standard SAP validation for company code. This is for validating company code and controlling area.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,860

try SLIN dear there you can give program name and select areas to check for syntax and stds.

Award points if useful dear,

Jagrut

5 REPLIES 5
Read only

Former Member
0 Likes
1,861

try SLIN dear there you can give program name and select areas to check for syntax and stds.

Award points if useful dear,

Jagrut

Read only

0 Likes
1,860

Hello,

The master table for Company Code is T001.

For Controlling area, it is TKA01.

U can check whether the entered values exist in these tables or not.

Please reward if helpful.

Regrds,

Johnson

Read only

Former Member
0 Likes
1,860

The Company code master table is T001 .

validation can be done as

parameter : p_cocode type bukrs.

select single * from t001 into ls_t001 where bukrs = p_bukrs .

if sy-subrc ne 0

" not valid"

else

"valid".

endif.

for controlling area the table is TK01

validation is similar to company code

Message was edited by:

Sridhar Srirama

Read only

Former Member
0 Likes
1,860

Hi,

Validation for company code

clear t001.

if not s_bukrs-low is initial.

select single bukrs from t001

into t001-bukrs

where bukrs in s_bukrs.

if sy-subrc <> 0.

message e007. " Enter valid Company Code

endif.

endif.

Regards

Deepak.

Read only

Former Member
0 Likes
1,860

Hi chandrasekhar. K ,

Check for the company code in T001 and controlling area in TKA01. Also check whether the relationship between the company code and contolling area is proper.