2014 Jun 02 11:44 AM
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
2014 Jun 03 1:44 PM
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
2014 Jun 03 1:44 PM
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