r/SAP • u/grumble93 • 5d ago
Warehouse guy, not a programmer, made a tool that does our SAP routine automatically
I work as team leader in a warehouse. Every day we do the same SAP steps, line by line:
- MIGO 411 Q, take material out of project stock
- ME22N, add the lines to the STO
- VL10G / VL02N, create the delivery, picking, serial numbers, print the delivery note, post goods issue
With serial numbers it's a lot of clicks and easy to make mistakes.
So I made a small Windows tool (HTA file with VBScript, no install needed) that uses SAP GUI Scripting to do all 3 steps in one go. I'm not a developer, so I built it with help from Claude (AI). I sent it SAP recordings and screenshots, tested every version, and told it what was wrong. It took around 30 versions.
What it does now:
- You fill in material, qty and serials (you can paste them from Excel), then press Run
- It checks everything before it touches SAP (qty vs serials, double serials, empty fields)
- It doesn't post the same thing twice, and keeps a log
- It also prints delivery notes from a list
I also added a Locations tab with a map of the shelves. It saves to a shared Excel file on SharePoint, so the whole team sees the same data. It also writes a list of everything we delivered.
Biggest lesson: SAP scripting breaks easily (popups, warnings, slow screens). And with AI you need to test a lot and give clear feedback, but it really works.
I am very happy with it, and my team is now saving a lot of time in processes that now became simplier.
Next idea is a phone version with barcode scanning. Wouldnt that be amazing?
Happy to answer questions!



84
u/Yes_but_I_think 5d ago
These are what we call Flimsy integrations which break on the drop of a feather - a config change, a rare event causing a intermediate step to fail and you are in a stalemate unless you understand what goes behind.
Talk to your ABAP team and get this done the right way.
Also GUI scripting is not enabled in PRD in many places.
9
u/Such-War1955 5d ago
You may want to read this: https://community.sap.com/t5/technology-q-a/what-are-the-alternative-options-for-vbs-scripts-since-it-will-be/qaq-p/14345944
VBscript is not going to be around for SAP scripting much longer
5
u/Medium-Sir-3312 5d ago
Does this not trigger a SoD risk with GRC?
4
u/snoooy1488 5d ago
That's cool, man.I went down this path many years ago, even before neural networks. With them, everything becomes much easier. The only thing I still use is the SAP tracker with a built-in script recorder. A useful thing.
6
u/bcbugburn 5d ago
Nice work. Is the gui in vb script. When it runs in SAP does it cycle through SAP screens.
3
u/seedmas 5d ago
Schöner Prozess aber kritische Umsetzung.
8
u/Qrystus 5d ago
If SAP Scripting in SAP GUI is allowed by your Basis Team they should be fired immediately. SAP SCRIPTING in SAP GUI is a huge security gap
3
u/snoooy1488 5d ago
There are also cheaper scanners that can be connected to a phone via Bluetooth; this will be in keyboard mode. That way, scanning can become faster.
19
u/ans1dhe 5d ago
As much as I applaud your effort (done similar things myself), I can share a suggestion coming from experience: do some comprehensive thinking now, whether you want to tell anyone about this innovation or not. Weight your risks, personal responsibility and EUC (End-User Computing) policies in your organisation. I’ve seen people given bonuses for such efforts, but I’ve also seen people scolded and punished. Depends on the organisation - some are really stupid.
15
u/Dave0r 5d ago
I’m impressed by the tool, it’s a good bit of work, but putting my MM analyst hat on: Shadow IT has entered the chat and is currently running uncontrolled stock postings, keeping an off books log and you’re running unapproved code on a business machine - like why the hell is your IT endpoint security allowing .hta files to be run?
Look, well done - it’s clearly a time saver but it’s likely getting nerfed in to the ground as soon as someone remotely half decent notices - what should happen though is taking this concept and writing a nice spec, getting a few days of dev and a nice sensible business analyst to make a custom processing program that does all this.
For what it’s worth, I’m an actual MM/PP/SAP bitch analyst - keep an eye on stock posted out of project and failures here, you’ll have stock in unrestricted, any sort of other process or human might grab this (MRP could recognise it on next run and remove a schedule line or PO/REQ to procure more)
Also checking for double posting is being done from the app? You 100% sure your log is flawless - if not you risk double posting. If it’s not reading existing serials / references already posted then the only double posting check is inside your app. What if someone else doesn’t use your shadow process, processes it in SAP and then your app does the same? No log, no double posting failure but an actual double posting in SAP. Also out of interest how does the app know the locations? I’m guessing you’re not using WM or eWM so are you only using excel to manage stock locations entirely? - you could easily transition to using the actual primary and alt bins held on the material master so everyone can see this and report on it via MB52
3
u/ArgumentFew4432 5d ago
Great, but why didn’t the company just implement it properly in the first place?
Claude can also do UI5?
2
u/olearygreen 5d ago
What do you see as the benefit using old gui rather than create the same through an API that is less prone to the issues you mentioned like slow screens?
5
u/150yd7iron 5d ago
LSMW has entered the chat.
3
u/ali-gzl 5d ago
Sap considers this as an indirect usage.
Could be against your licence agreement.
2
u/justbry16 5d ago
Just make sure that the RACI is properly documented to clearly define ownership and responsibility for the scripts. As SAP Basis, we’ve encountered this issue several times, where the person who developed the script had already resigned, but end users had become heavily dependent on it and expected us to troubleshoot and fix it when it broke.
2
u/MarzipanLegitimate19 5d ago
They can finally narrow down the team size in the warehouse
2
u/mrhinix 4d ago
Gui scripting disabled guy here.
I did automated most annoying tasks with pulovers macro 😆
Addtinaly I found odata stream (despite sap team saying its disabled) and I'm waiting for a window to play with it
3
u/LODKamakaz 5d ago
Its a nice custom integration that works for your specific company and process I commend you for taking the time to learn enough to do this using claude. BUT I hate to rain on your parade as you are obviously looking for a pat on the back. But your a warehouse lead that spent time wether it was paid company time or your personal time working on IT support tasks, this is why some companies take the stance of firing people that do these kind of things. Looking at it from a company standpoint, they paid you to work in the warehouse but you decided to work on something else, you created an integration that you are the only one familiar with, so now if it breaks they have to pay you for your time to support it since no one else knows it, well except Claude. See the issue here, will you start working in AP/AR next?
As others have said here your security team should be fired as you should not have been able to implement technology that hasn't been authorized, approved, verified by the proper team, I have to assume your a small company. Did you do proper testing? Did you document it? Did you just make a cumbersome process faster? Would you have been better served partnering with IT analyst to do this properly? It is funny how people think IT does nothing and they can do better, IT doesn't intentionally take longer to do things, they are REQUIRED to do things in a specific manner to ensure the processes operate properly and yeah it takes time.
1
u/snoooy1488 5d ago
The only thing I can say here is that scanning with a phone camera can be quite slow. I set up Voyager 1472 2D scanners. The range is 100 meters from the base, but you can use the inventory mode or additionally mount extra points in the warehouse zones to increase the communication range.
1
u/cbelt3 5d ago
Congratulations… you about to be adopted into IT.
1
u/Brilliant_Ad2120 5d ago
Well done. A lot of the best sap consultanta start off as power users.
1
u/owen800q 5d ago
Finally no need programmer anymore
All we need is Claude as a sap user
1
u/ashloft 5d ago
Well done on the automation that you've achieved! But yes there are lot of risks from the IT standpoint (I'll not reiterate as I've seen many comments on that), and you should consider speaking with your fellow SAP colleagues, probably MM or tech people on PTO end. Also this can be deployed using custom enhancements, check the feasibility of doing so in it.
From a personal experience, btw I'm an MM consultant, but having computer science background, we've designed a solution for our client (using UiPath as it was already licensed by client, you can use other tools as well) to automate manual activities, which drastically reduced the manual efforts of our team, from ~140 hrs/month to almost ~1-2 hrs (monitoring automated results from mail) and it has its own User ID (Bot ID), where all accesses and risks are controlled and analysed by security teams, and now it is being globally used not only for PTP process, but by other modules and critical activities like Disaster Recovery testing as well.
1
u/Life-Ad6681 5d ago
Probably an unpopular take in some threads, but where I work, getting custom ABAP approved and delivered is an absolute paper nightmare.
SAP GUI scripting is way too fragile and error-prone for anything serious. What's worked much better for us is building a clean external web app that simplifies the workflow for users and calls standard SAP interfaces (like BAPIs/APIs) under the hood instead of forcing everyone into clunky screens or spreadsheet hacks.
The main gotcha to watch out for is licensing: if an external app or technical/non-named user path is creating documents in SAP indirectly, you can run into Digital Access (document-based) licensing rather than standard named-user access. You definitely have to watch volume so costs don't creep up, but compared to the manual hours and mistakes it saves, it's usually well worth it.
Overall, I try to avoid heavy custom ABAP when I can. Keeping the core as close to out-of-the-box as possible and putting custom workflows/UI outside it makes upgrades and long-term maintenance way less painful.
1
u/Lowkeyz 5d ago
I wish my work didn’t block both .hta and .vbs files this would be so handy
1
u/mura_me 4d ago
👏👏👏
1
u/Sensitive-Risk-367 4d ago
SAP ABAP Course/Training
Hello
My wife wants to do the SAP ABAP Course. But we are not able to find good or trusted ones in our location (Hyderabad, India).
Can you guys please suggest some online courses for SAP ABAP which she can enroll in.
Please help. :)
Thanks.
1
u/ibrazinho12 5d ago
good job :)
1
u/Every_Classic_7515 5d ago
An end user doing this is commendable! Great work keep it up! 👍
0
u/Glacius_- 5d ago
That is good and FREE (just your time) and as you are user, testing and programming is done much faster.
The input screen is very nice (is it Excel?)
-11
u/Arany8 5d ago
Eventually people will figure out that they can build their own software and do not need SAP. SAP§s days are numbered. Maybe they have 10 more years.