We are executing planning functions in SEM via a process chain. The process chain calls an ABAP program, UPC_PLANFUNCTION_EXECUTE, which will in turn execute the planning functions. What I'm looking for is a way to log the number of records read, changed and added. I'm also am trying to find a way to log if someone already has the data locked.
Has anyone ever done this before and can help?
I guess you meant program UPC_BUNDLE_EXECUTE to run a global planning sequence in your process chain. The system automatically logs the steps of the planning sequence with the number of records. You can view the log using transaction SLG1:
To automatically check if data is locked, create a custom program and call function UPC_CHASEL_ENQUEUE with the corresponding selection. This will lock the data or provide an error message if someone else is working with it already. If everything is OK, use the same function to unlock the data before your GPS will run.
SAP NetWeaver RIG, US BI