摘要: https://www.zhihu.com/column/c_1468529809685307392 阅读全文
posted @ 2023-08-24 22:11 CrossPython 阅读(19) 评论(0) 推荐(0) 编辑
摘要: 业务场景 使用了外部工作流系统管理固定资产申请,转移(负责人变更), 盘点,报废等涉及固定资产的业务,而固定资产采购,折旧等仍在SAP中进行,所以需要定时从SAP中下载包括固定资产账面值的固定资产清单,以作为工作流审批节点流转的依据 主要功能说明 定时运行 自动登录SAP 下载SAP固定资产报表 S 阅读全文
posted @ 2023-08-24 22:09 CrossPython 阅读(110) 评论(0) 推荐(0) 编辑
摘要: import math import os,sys, win32com.client import clipboard from pprint import pprint import csv def get_mb52(session, args = {}, plant = '0001'): res 阅读全文
posted @ 2023-08-24 22:06 CrossPython 阅读(146) 评论(0) 推荐(0) 编辑
摘要: 1. 获取session(窗口) Set SapGuiAuto = GetObject("SAPGUI") 'Get the SAP GUI Scripting object Set SAPApp = SapGuiAuto.GetScriptingEngine 'Get the currently 阅读全文
posted @ 2023-08-24 22:04 CrossPython 阅读(55) 评论(0) 推荐(0) 编辑
摘要: 代码实现: class SapMessageType(enum.Enum): SUCCESS = "S" WARNING = "W" ERROR = "E" ABORT = "A" INFORMATION = "I" class SapStatusMessage: def __init__(self 阅读全文
posted @ 2023-08-24 21:51 CrossPython 阅读(14) 评论(0) 推荐(0) 编辑
摘要: class SapGuiGridView: """ SAP中GridView组件数据的表示对象类。 用于从SAP的GridView中读取指定的数据。 """ @staticmethod def get_data(session, _id, columns, handler=None): """ 读取 阅读全文
posted @ 2023-08-24 21:50 CrossPython 阅读(94) 评论(0) 推荐(0) 编辑
摘要: class SapGuiTableControl: """ 读取GuiTableControl对象的数据。 """ @staticmethod def get_data(session, _id, columns=None): """ 获取指定列的数据,索引从0开始。 :param session: 阅读全文
posted @ 2023-08-24 21:49 CrossPython 阅读(14) 评论(0) 推荐(0) 编辑
摘要: class SapGuiTree: class TreeType(enum.Enum): SIMPLE = 0 LIST = 1 COLUMN = 2 @classmethod def show(cls, tree, node, indention): print(indention, node, 阅读全文
posted @ 2023-08-24 21:44 CrossPython 阅读(27) 评论(0) 推荐(0) 编辑
摘要: import sys import win32com.client import win32api import win32gui import win32con # import win32ui import time import os import subprocess def Login() 阅读全文
posted @ 2023-08-24 11:46 CrossPython 阅读(23) 评论(0) 推荐(0) 编辑
摘要: https://www.cnblogs.com/new-june/p/11151458.html https://www.cnblogs.com/new-june/p/11356719.html https://www.cnblogs.com/new-june/tag/SAP%20script/ 阅读全文
posted @ 2023-08-24 11:25 CrossPython 阅读(12) 评论(0) 推荐(0) 编辑
摘要: import subprocess #'-system = PRD' 请把PRD换成指定SAP系统的SID # '-client=110' 请把Client修改为正确的Client, 输入用户名和密码的上方有的Client, 3位数字的 #'-l=ZH' ZH中文,EN英文, def login() 阅读全文
posted @ 2023-08-24 09:14 CrossPython 阅读(41) 评论(0) 推荐(0) 编辑
摘要: https://zhuanlan.zhihu.com/p/442717704 阅读全文
posted @ 2023-08-24 08:44 CrossPython 阅读(12) 评论(0) 推荐(0) 编辑