| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.stereotype.Service; |
| | | |
| | | import java.util.Arrays; |
| | | import java.util.Collections; |
| | | |
| | | @Service |
| | | @Slf4j |
| | | public class SAPServiceImpl implements SAPService { |
| | |
| | | } |
| | | |
| | | // 设置输入参数 |
| | | // JCoParameterList input = function.getImportParameterList(); |
| | | // input.setValue("MATERIAL_ID", materialId); // 参数名需与 SAP 函数定义一致 |
| | | // function.getImportParameterList().setValue("MATERIAL_ID", 0); |
| | | JCoParameterList input = function.getImportParameterList(); |
| | | input.setValue("ZTAB_WERKS", Collections.singletonList("2301")); //参数名需与 SAP 函数定义一致 |
| | | |
| | | // 执行调用 |
| | | function.execute(destination); |