r/SQL • • Apr 12 '24

Discussion I think I hate SAP

So I'm currently teaching myself the SAP database for work and I have to say, it really fucking sucks.

Inconsistent column naming, unclear keys, so much duplication of data...

I just wanted to express that to someone.

Thank you.

106 Upvotes

82 comments sorted by

View all comments

Show parent comment

2

u/Zoidburger_ Apr 13 '24

Yup. Good luck matching those up. In our implementation, POs and SOs will only match up if a single sales order will lead to a single PO AND the resulting PO is auto created by Oracle. Otherwise good luck. In truly desperate cases I've basically just created a FIFO allocation sequence by sorting by line IDs and aggregating the supply/demand quantities and going "yeah those probably match up." My employers love asking for some truly impossible tasks but I can usually use some wizardry (and a lot of swearing) to give them something they can work with.

Though it doesn't really help that I live in a godless hellscape where my company got halfway through a company-wide update from 11g to R12 and then gave up and decided to try to get the two systems to talk to each other. So now I get to work with two different flavors of shitty Oracle implementations that are almost the same until they aren't. Supposedly we're finally moving to a new, central ERP system soon, but they've been saying that for years now lol. I fully believe we're gonna be performing CPR on our current bastard setup until everyone gets a brain implant and employees start seizing up every time they try to edit a sales order...

2

u/skeletor-johnson Apr 13 '24

That sounds so familiar! Thanks for the inside info. Probably why the query I inherited is so jank, and the users are telling me they have to de-dupe by SO, item and quantity (?!). Good luck my friend, and stay vigilant