ABAP根据销售组织获取公司代码
check table TVKO (the company code is linked to the sales organisation, which means one sales organisation can have only one company code, but one company code can have several sales organisations)
1 2 3 4 5 6 |
USE TVKO table.. select vkorg bukrs from tvko into table lt_tvko where vkorg in s_vkorg and bukrs eq p_bukrs. |
1 2 3 4 5 6 7 8 |
CALL FUNCTION 'CBRC_LIB_BUKRS_VKORG_GET' " EXPORTING i_vkorg = " tvko-vkorg Company Code IMPORTING e_bukrs = " t001k-bukrs Plant e_error_tab = " ccrctt_msg Table Type Application Log e_flg_error = " eseboole Truth Value . " CBRC_LIB_BUKRS_VKORG_GET |
如若转载,请注明出处:https://www.gavindong.com/1592.html