cancel
Showing results for 
Search instead for 
Did you mean: 

SEM logging for planning function in Process Chains

Former Member
0 Kudos

Hi,

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?

Thanks!

~Matt

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Did you already try program UPC_PLANFUNCTION_LOG?

Kind regards,

Sander

former_member93896
Active Contributor
0 Kudos

Hello Matt,

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:

Object SEM-BPS

Subobject FUNC

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.

Regards,

Marc

SAP NetWeaver RIG, US BI

Former Member
0 Kudos

Hi Marc,

Thank you for the reply. The SLG1 transaction is extremely helpful. I do have a follow-up question, though. Is there anyway to read these logs programmically? It would be nice to read these logs after a function has executed and then report any errors.

Thanks!

~Matt

former_member93896
Active Contributor
0 Kudos

Hi Matt,

of course you can read the logs using ABAP. Look for function modules starting with BAL_LOG.

Regards,

Marc

SAP NetWeaver RIG, US BI

PS: If you like answers, you can assign points