2023 Jul 13 9:16 PM
Good day,
I'm trying to create an Excel VBA macro for VL31N to allow cell data entry to overwrite the code in the inbound delivery at the click of a button. I am able to scrip, record and playback in ECC. However, when pasting the code in Excel I do not know what to put to get the code to function properly.
Does a macro already exist for this tcode where sample Excel VBA coding is used to help? I've exhausted my google search and don't have the coding expertise to put 2 and 2 together.
Thanks
2023 Jul 13 10:56 PM
Hi Dave,
it is not completely clear to me, what you are doing. Are you trying to call the OCX controls (like wdtfuncs.ocx etc.) that come with SAPGui, from you Excel macro? An alternative might be to use VB.NET and then use the .NET Connector (SAP NCo) for the interaction with the ECC. But this would require that there are some BAPIs/RFMs which do what you need, because it is not possible to execute a tcode via RFC.
Anyway, a few more details about which tools/libraries you currently use, and how far you got would help.
Regards, Ulrich
2023 Jul 14 11:52 AM
NB: there are several options to script SAP GUI, but I guess you are talking about SAP GUI Scripting.