尧图建网站 尧图建网站 YAOTU WEB BUILD 免费咨询
ARTICLE DETAIL

资讯详情

深耕网站建设与建站编程的一线实战洞察。

SAP MM物料主数据创建BAPI,销售税分类创建!

SAP MM物料主数据创建BAPI,销售税分类创建! 1、问题:我们在BAPI创建物料时候,如果同时创建多个工厂进行时候,如果不同工厂对应公司代码是属于不同国家+税分类,这个时候虽然我们对不同工厂或者销售组织,给BAPI参数进行ls_taxclass进行赋值,像如下代码一样。然后我们发现在commit保存的时候会报错,税分类不存在之类的报错!IF ls_vkorg-vkorg = '美国销售组织' . ls_taxclass-function = 'INS'. ls_taxclass-material = ls_headdata-material. ls_taxclass-depcountry = 'US'. ls_taxclass-tax_type_1 = 'MWST'. ls_taxclass-taxclass_1 = '0'. ls_taxcontrast-depcountry = ls_taxclass-depcountry. ls_taxcontrast-tax_type_1 = ls_taxclass-tax_type_1. ls_taxcontrast-taxclass_1 = ls_taxclass-taxclass_1. APPEND ls_taxcontrast TO lt_taxcontrast. APPEND ls_taxclass TO lt_taxclass. CLEAR:ls_taxclass. else. ls_taxclass-function = 'INS'. ls_taxclass-material = ls_headdata-material. ls_taxclass-depcountry = 'CN'. ls_taxclass-tax_type_1 = 'MWST'. ls_taxclass-taxclass_1 = '2'. ls_taxcontrast-depcountry = ls_taxclass-depcountry.
返回列表