cancel
Showing results for 
Search instead for 
Did you mean: 

How to RESTORE standard function module ??

piwanski2
Discoverer
0 Kudos

Hello,

I deleted by accident the FM CRMXIF_ORDER_IDOC_SEND when using a report on a DEV system.

It is a Standard SAP FM and i wanted to ask if there is any possibility to restore the FM.

Also when deleting the FM the system created a transport but there is nothing in this transport (so there are no versions to compare).

Thank you for your responses in advance.

Accepted Solutions (0)

Answers (8)

Answers (8)

piwanski2
Discoverer

Hi All,

Thank you for your answers.

I was able to restore the function module by transporting its' copy from QAS to PRD.

piwanski2
Discoverer
0 Kudos

Sorry i meant "From QAS to DEV"

Sandra_Rossi
Active Contributor
0 Kudos

Please edit your answer, don't add a separate answer.

matt
Active Contributor
0 Kudos

I'm fascinated. *How do you delete a function module by accident?

Anyway. Recovery is a pain. You can try version management, but you have to recover the main program, the top include and the function module.

Generally, you must simply find another system running at the same level, and copy paste it from there. It's the easiest way to do it. Been there, done that. (Refer to * in my answer ! 🙂 )

raymond_giuseppi
Active Contributor
0 Kudos

Call SE37 and input the FM name, then navigate in the menu to Utilities, Versions, Version Management. Even when the FM is deleted the version(s) will be displayed, there select last version and click on 'Retrieve'.

NB: In some cases, not on HANA, no sscr key already registred, you will be required to input such a key, that can be obtained from SSCR Keys - SAP ONE Support Launchpad.

joltdx
Active Contributor
0 Kudos

If transports are not an option...

I have found that if you just create a deleted object again, with the exact same name, and then going into it you will have access to to previous versions like always. I have not tried Function Modules though. And they are typically spread across multiple "files", so it might be the case that you would have to know what you're doing and go at it one step at a time until complete... Not sure.

As this is a SAP object and not customer namespace, that might also make things a bit harder... ☺️

Patrick_vN
Active Contributor
0 Kudos

Do you have another system where the function module is available? If so, you could create a transport there with the relevant objects, and import that transport in your development system.

And if there is no transport lane you can use, ask basis to download the transport files and upload them in your development system.

If transports aren't a solution, check when the last backup of the system has been made, and if you don't lose too much, do a restore.

abo
Active Contributor
0 Kudos

You could do a "copy transport" from Quality or Production, if you only deleted this fm it should be quick and ti shoudn't ask for object registration, this way.

DominikTylczyn
Active Contributor
0 Kudos

Hello piwanski2

If you deleted a function module, then it's gone, like deleted for good.

You can restore your system from a backup but this will have a wide reaching side effects, as you'll basically wind the time back.

Or you could go to your QAS or PRD box and export the function module from there and import it to the DEV box. I'd say you just need to transfer the same object that is recorded in the transport request in DEV box; the transport request that was created when you deleted the function module.

Best regards

Dominik Tylczynski