cancel
Showing results for 
Search instead for 
Did you mean: 

execute code after saving of functional location

0 Kudos

Hi,

I’m looking for a way to execute code after a functional location(FL) is saved on the db. I’m using TC IL01 to create the FL.

I tried to use:

BTE: PM000070 –> Triggers to early, FL not saved, yet

Exit: ILOM0001 –> Triggers to early, FL not saved, yet

BAdi: EQUI_UPDATE –> only works for Equipments, not for FL

any ideas?

Background: I’m trying to assing several classes to FL and Equipments without userinteraction.

Accepted Solutions (1)

Accepted Solutions (1)

marc_marco
Contributor

I have used the folowing approach to perform actions after FL save ( after commit)
http://www.saptechnical.com/Tutorials/OOPS/Dialog/Index.htm

rezazamani
Discoverer
0 Kudos
hi marc, I am facing the same problem and your suggested link doesnt work anymore (no wonder after almost 7 years).
rezazamani
Discoverer
0 Kudos
could you please describe the solution?

Answers (5)

Answers (5)

0 Kudos

even i had the same requirement, its not triggering with exit ILOM0001. please help.

0 Kudos

Thanks all,

at the end I used Ziv's suggestion but also tried to use an implicid enhancement at the end of include MILO0F00_FCODE_BU. Problem with all solutions still is that bapi BAPI_OBJCL_CREATE gets executed successfully according to return code but when checking funct.loc I can't see classifications. Anyway, I found another way to create a classification.

Andreas

peter_atkin
Active Contributor
0 Kudos

Andreas,

You could try the following:

  • In ILOM0001 use the following PERFORM XYZ ON COMMIT
  • Create a synchronous Workflow task that calls a function module

.

PeteA

NTeunckens
Active Contributor
0 Kudos

Have you tried "ILOM0002" Exit?

The UserExit "EXIT_SAPLILOS_001" Documentation says :

"FUNCTIONALITY

When creating a functional location, the structured location number is checked against the edit mask of the structure indicator. You are able to perform customer-specific checks on the basis of this standard check using the existing user exit."

I'm not sure if this Exit will be triggered (only) upon SAVE, so please check that first. If so, you could 'mis-use' this Exit?

0 Kudos

Hi Nic,

it triggers even earlier then ILOM0001.

rezazamani
Discoverer
0 Kudos

Hi,

I have the exact same problem. As the suggested link is not working anymore, kindly request you to help with the solution 

@andreas_streuffert2 and @marc_marco Could you please share the solution again? Thanks in advance!

Beste regards

0 Kudos
you can use a webarchive to view the old link: