SAP for Utilities Discussions
Connect with fellow SAP users to share best practices, troubleshoot challenges, and collaborate on building a sustainable energy future. Join the discussion.
cancel
Showing results for 
Search instead for 
Did you mean: 

BPEM - Case Category - Case Creation Type - only one value possible

marcin_cholewczuk
Active Contributor
0 Kudos

Hi all,

BPEM was already configured at my clients system and as far as I know it's working. But I have a kind of problem with it.

Let's say that I have a process that works like this:

1. check value A  (if missing then abort)

2. check value B  (if missing then abort)

3. check value C  (if missing then abort)

4. compute results

So when value A is missing I have no inforation if value B is ok or not. From process view this is ok, because it makes no sense to go through points 2 and 3 since all 3 values are needed, but from a Clerk view it has (it's annoying to get 1. error, after correction 2. error and so on). So a z-report was created to monitor if other values are ok or not. Inside I'm trying to create a new case for already existing case category (with FM BAPI_EMMA_CASE_CREATE). Problem is that each case category can only be created either automatic or manual. There is no choice like 'both'.

Is there a way to overcome this? I thought of creating normal application log instead of using BAPI (with next batch job run data should be collected), but maybe there is better solution to this problem?

Best Regards

Marcin Cholewczuk

1 ACCEPTED SOLUTION

marcin_cholewczuk
Active Contributor
0 Kudos

well I did as I wrote. Just in case anybody needs it, this is how I add new messages that will be processed later by BPEM background job

1. Calling FM BAL_LOG_CREATE

2. Calling FM EMMA_LOG_PROCESS_START

3. Adding messages with FM BAL_LOG_MSG_ADD

4. Calling FM EMMA_LOG_PROCESS_END

5. Calling FM BAL_DB_SAVE  (not sure if really needed)

if you need to add messages for different objects within one BPEM Job just repeat points 2 - 5 for each object.

Best Regards

Marcin

View solution in original post

1 REPLY 1

marcin_cholewczuk
Active Contributor
0 Kudos

well I did as I wrote. Just in case anybody needs it, this is how I add new messages that will be processed later by BPEM background job

1. Calling FM BAL_LOG_CREATE

2. Calling FM EMMA_LOG_PROCESS_START

3. Adding messages with FM BAL_LOG_MSG_ADD

4. Calling FM EMMA_LOG_PROCESS_END

5. Calling FM BAL_DB_SAVE  (not sure if really needed)

if you need to add messages for different objects within one BPEM Job just repeat points 2 - 5 for each object.

Best Regards

Marcin