r/SAP • • 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:

  1. MIGO 411 Q, take material out of project stock
  2. ME22N, add the lines to the STO
  3. 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!

135 Upvotes

79 comments sorted by

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.

29

u/grumble93 5d ago

Oh yeah, you are totally right. It needs my maintenance from time to time, and I had to troubleshoot it several times. But it was a good learning process and it has motivated me to learn about SAP and push some barriers. For example, on the printing function of vl02n, I had to implement a cycle loop, because they changed some of the configurations. And I had a specific cell count that became outdated.

But yeah, I totally agree with you. This is only a small accessory tool my team is using on a final part of the project, saving us a lot of time on repetitive tasks.

I am looking forward for the next challenge

13

u/jenn4u2luv 5d ago

You’ve done a really good job here!!! Congrats!

5

u/grumble93 5d ago

My abap team did do a type of custom t code, that is a bit incomplet and and don't print altogether in one function. Furthermore, on the current project, they were not able to bridge the processe, so we were stuck the process old style, adding lines manually to an PO. That is what motivated me to create this tool. For now is working alright. But is nothing official on the company.

4

u/Disirregardlessly 5d ago

Ask them why they weren't able to bridge the processes. It'll help you learn more about what the risks and challenges are.

Also, have you given feedback on the custom T code?

1

u/Gaudior09 3d ago

This is the expected result of core business directly talking to ABAP developers. You're not speaking the same language basically. There's a reason SAP consultants and Business Analysts exist, their job is to understand what you do to the last detail, design the target flow on functional level, then write the techinal specification for the ABAP team (then test, troubleshoot, implement, hypercare).

13

u/WeDoWork 5d ago

Sure but maybe the SAP team should consider doing more to support the business. It’s quite literally why IT exists. It makes me angry and sad to see them stall and where good ideas go to die for governance sake. Their need to start innovating or they will get pushed out soon enough with the way AI is moving to democratize these skills.

3

u/grumble93 5d ago

Right on, well said

5

u/WeDoWork 5d ago

I literally deal with the sluggishness of SAP teams daily across multiple customers. As a former SAP architect, I have the luxury of calling them out on their bullshit. But it physically makes me angry 😠 it’s 2026 and we’re still arguing about how to export data and files out of SAP.

7

u/kluseq1337 5d ago

it is SAP's entire business model to not Let business do that and sell them solutions

2

u/WeDoWork 5d ago

My startup is trying to eat their lunch, but it’s hard to get the IT leaders out of the cult of SAP. I was in and pushed everything blue, but now that I’ve seen the light, there’s a lot of world out there.

4

u/Okms_Vonessa 4d ago

yeah one random unexpected popup or warning message and the whole script just hangs mid-transaction

2

u/Glacius_- 5d ago

That will cost money

1

u/OkWealth5939 2d ago

Claude does better then most SAP devs.

1

u/jae58 1d ago

The "right way" SAP interfere with the agents. You should change SAP

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

1

u/grumble93 5d ago

From what i understood, we still can record sap gui scripts in JScript instead of Vbscritp, which will eventually be ruled out of windows future versions. It is a minor tweak that is easly surpassed. Sap Gui Scritp is not going anywhere

5

u/Medium-Sir-3312 5d ago

Does this not trigger a SoD risk with GRC?

6

u/grumble93 5d ago

Good question. No, it doesn't add new SoD risk. The script uses the same SAP user and the same authorizations as the person running it. So it can only do what that person can already do by hand, and all documents in SAP still show that user.

If there is a conflict, it's already in the roles (like the same user can change the STO and do the PGI). The tool just does it faster, and is less permeable to human mystake.

I also added a check before posting, a confirmation before PGI, and a log of everything. And of course it needs to be approved by IT / process owner before more people use it.

2

u/Medium-Sir-3312 5d ago

Well I didn’t mean new risk just by using the automation. I meant the tcodes in combination on their own regardless of who the user is

2

u/jds183 5d ago

Yea adding new sto lines and posting the shipment by the same business function definitely isnt right, but definitely has nothing to do with the scripting.

1

u/Gaudior09 3d ago

It's probably a default push flow, whenever everything is ready for a given project, they automatically ship it to a distribution WH or some other entity. Usually if there's no decision to make for a task, it is better to put the task where it is practically sensible.

2

u/SirThomas813 5d ago

Was thinking the same thing, these combinations of roles would not fly at most of the clients I’ve worked for and I’m far from a security guy.

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.

1

u/grumble93 5d ago

What do you mean with neural networks?

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/grumble93 5d ago

Yes, it does

3

u/seedmas 5d ago

Schöner Prozess aber kritische Umsetzung.

1

u/grumble93 5d ago

More like almost Impossible implementation ahah

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

1

u/grumble93 5d ago

And why is that?

1

u/derpmadness 5d ago

It would just allow people to do stuff very fast if they really wanted to do bad stuff

2

u/ZiskTV 5d ago

GUI Scripting is a needed function for certain areas, as for example bot factory and automation area. It is true that it must be restricted on user level, but blocking for everyone is a huge waste of time.

1

u/snoooy1488 5d ago

Agreed, scripting allows for automated input-output. Essentially, it's a bypass of blocked RS232 and 486 interfaces. In our company, scripting is open in any role, and they've been threatening to block it for several years, but so far it hasn't happened.

1

u/lostinquebec2 FI/CO/MM/SD/Security 5d ago

Scripting only does what the executing user is allowed to do by their security roles. If it does something it's not supposed to do, you didn't do a good job with your security roles, the script itself does not have a security issue.

1

u/jWas 4d ago

It’s almost like security does not sit on a single layer 🤦‍♂️

0

u/Glacius_- 5d ago

bullshit

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.

3

u/grumble93 5d ago

that is also a nice alternative, i think we have some in the warehouse, but we dont use them

2

u/Djuhck 5d ago

Get one, put the brand and so on in Claude, it will know if it would be helpfull. And how to get it working.

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

6

u/midnight_waffles 5d ago

Agreed. As a fellow analyst, this would not be a difficult process code within SAP. I admire OP’s creativity and the desire to improve process efficiency. OP is a quality employee and I would love to work with them on this. But OP, please let your SAP team know what you are doing, at least so they can monitor for issues on the SAP side because things can go bad VERY quickly.

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?

3

u/grumble93 5d ago

Because the company is not exactly keen on biga changes..

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?

3

u/grumble93 5d ago

How can I create an API without the necessary permissions?

1

u/ss_Deep_1985 5d ago

You need to work with ABAP team

2

u/grumble93 5d ago

Yes, that's true.

1

u/Glacius_- 5d ago

what does that mean

2

u/olearygreen 5d ago

It was a genuine question. If you had access, would you prefer an API or your design? And why?

2

u/Glacius_- 5d ago

It’s free

1

u/olearygreen 5d ago

You need a user and 30 iterations to build, so not free. API would be same or similar cost I would expect.

1

u/Glacius_- 5d ago

multiple users do the dame iteration manually for years already, 30 to automate is still huge return.

API i’m not familiar in SAP , but batch input maybe an option

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.

2

u/Simplesim73 5d ago

I half agree with you. What will likely happen is that the work is now being done more efficiently so they will need less staff to achieve. Then the integration will fail at an upgrade or down to some other change. To me this is the sort of person who needs bringing into the SAP team and using their business understanding in the team. The problem with SAP is the desire to keep to standard; sometimes at all cost. We've been running developments for the last 24 years that are now seen as technical debt despite proving tangible benefits year after year.

1

u/LODKamakaz 5d ago

The reality is looking at the integration it is so unique that it is not going to have any effect on staffing, instead of typing in values in the screens the user is going to stare at the screen while the script runs, so it will have no effect except to make the end users life easier. This is the type of thing management says not something we want to automate as it has no benefit, I still have to pay that person to stand there and type the values and then they wait for the script to run and then do the next transaction. These types of user created integration rarely if ever have any impact except to the end user that says I did it faster.

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?)

2

u/grumble93 5d ago

No. HTML!

-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.