‎2007 May 21 8:32 AM
Could anyone explain me the standard SAP validation for company code. This is for validating company code and controlling area.
‎2007 May 21 8:35 AM
try SLIN dear there you can give program name and select areas to check for syntax and stds.
Award points if useful dear,
Jagrut
‎2007 May 21 8:35 AM
try SLIN dear there you can give program name and select areas to check for syntax and stds.
Award points if useful dear,
Jagrut
‎2007 May 21 8:40 AM
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
‎2007 May 21 8:45 AM
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
‎2007 May 21 8:57 AM
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.
‎2007 May 21 10:37 AM
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.