添加行ME51N

2020-08-14 06:06发布

点击此处---> 群内免费提供SAP练习系统(在群公告中)加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)大家好! 我正在尝试通过Acc...

         点击此处--->   EasySAP.com群内免费提供SAP练习系统(在群公告中)

加入QQ群:457200227(SAP S4 HANA技术交流) 群内免费提供SAP练习系统(在群公告中)


大家好!

我正在尝试通过Access表在ME51N中添加行。 下面的代码填充了显示的前10行,但是当我需要添加另一行时,出现错误。 如何在不出错的情况下添加行? 谢谢!

对于i = 0到NumeroRecord-1'popola campi riga 0 SapSession.findById(" wnd [0]/usr/subSUB0:SAPLMEGUI:0013/subSUB2:SAPLMEVIEWS:1100/subSUB2:SAPLMEVIEWS:1200/subSUB1:SAPLMEGUI: 3212/cntlGRIDCONTROL/shellcont/shell")。modifyCell i," KNTTP",myArray0(i)'categoria SapSession.findById(" wnd [0]/usr/subSUB0:SAPLMEGUI:0013/subSUB2:SAPLMEVIEWS:1100/subSUB2:SAPLMEVIEWS :: 1200/subSUB1:SAPLMEGUI:3212/cntlGRIDCONTROL/shellcont/shell")。modifyCell i," MATNR",myArray1(i)'materiale SapSession.findById(" wnd [0]/usr/subSUB0:SAPLMEGUI:0013/subSUB2: SAPLMEVIEWS:1100/subSUB2:SAPLMEVIEWS:1200/subSUB1:SAPLMEGUI:3212/cntlGRIDCONTROL/shellcont/shell")。modifyCell i," TXZ01",myArray2(i)'descrizione SapSession.findById(" wnd [0]/usr/subSUB0 :SAPLMEGUI:0013/subSUB2:SAPLMEVIEWS:1100/subSUB2:SAPLMEVIEWS:1200/subSUB1:SAPLMEGUI:3212/cntlGRIDCONTROL/shellcont/shell")。modifyCell i," MENGE",myArray3(i)'quantitàSapSession.findById(" wnd [0]/usr/subSUB0:SAPLMEGUI:0013/subSUB2:SAPLMEVIEWS:1100/subSUB2:SAPLMEVIEWS:1200/subSUB1: SAPLMEGUI:3212/cntlGRIDCONTROL/shellcont/shell")。modifyCell i," MEINS",myArray4(i)'unitàmisura SapSession.findById(" wnd [0]/usr/subSUB0:SAPLMEGUI:0013/subSUB2:SAPLMEVIEWS:1100/subSUB2:SAPLMEVIEWS:1200/subSUB1:SAPLMEGUI:3212/cntlGRIDCONTROL/shellcont/shell")。modifyCell i," WGBEZ",myArray5(i)'gruppo merci SapSession.findById(" wnd [0]/usr/subSUB0:SAPLMEGUI: 0013/subSUB2:SAPLMEVIEWS:1100/subSUB2:SAPLMEVIEWS:1200/subSUB1:SAPLMEGUI:3212/cntlGRIDCONTROL/shellcont/shell")。modifyCell i," NAME1",myArray6(i)'divinge SapSession.findById(" wnd [0] /usr/subSUB0:SAPLMEGUI:0013/subSUB2:SAPLMEVIEWS:1100/subSUB2:SAPLMEVIEWS:1200/subSUB1:SAPLMEGUI:3212/cntlGRIDCONTROL/shellcont/shell").modifyCell i," LGOBE",myArray7(i)'magazzino SapSession。 findById(" wnd [0]/usr/subSUB0:SAPLMEGUI:0013/subSUB2:SAPLMEVIEWS:1100/subSUB2:SAPLMEVIEWS:1200/subSUB1:SAPLMEGUI:3212/cntlGRIDCONTROL/shellcont/shell")。modifyCell i," EKGRP",myArray8 (i)'GrA SapSession.findById(" wnd [0]/usr/subSUB0:SAPLMEGUI:0013/subSUB2:SAPLMEVIEW S:1100/subSUB2:SAPLMEVIEWS:1200/subSUB1:SAPLMEGUI:3212/cntlGRIDCONTROL/shellcont/shell")。modifyCell i," AFNAM",myArray9(i)'richiedente SapSession.findById(" wnd [0]/usr/subSUB0 :SAPLMEGUI:0013/subSUB2:SAPLMEVIEWS:1100/subSUB2:SAPLMEVIEWS:1200/subSUB1:SAPLMEGUI:3212/cntlGRIDCONTROL/shellcont/shell")。modifyCell i," LIFNR",myArray10(i)'fornitore SapSession.findById(" wnd [0]/usr/subSUB0:SAPLMEGUI:0013/subSUB2:SAPLMEVIEWS:1100/subSUB2:SAPLMEVIEWS:1200/subSUB1:SAPLMEGUI:3212/cntlGRIDCONTROL/shellcont/shell")。modifyCell i," PREIS",myArray11(i)' PrezzoValorizzazione下一个

1.jpg

1.jpg (74.0 kB)