cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SAP ILM : Custom date (Time Ref) for CA_BUPA

SimonMDM
Explorer
0 Likes
473

Hello, 

I try to use the solution SAP ILM to archive BP on my system. 

To meet my business needs, I need to base myself on a custom date for a certain type of BP and not on the standard date. I add custom conditions fields on the ILM OBJECT CA_BUPA : COMPANY CODE(KNB1) and GROUPING (BUT000).

SimonMDM_1-1749028820310.png

 

I create a custom Time Ref CUSTOM_DATE via the BADI BADI_IRM_OT_STT

On method REGISTER_STARTTIME_TYPES

SimonMDM_2-1749029180496.png

 

On method GET_START_DATE

SimonMDM_3-1749029254492.png

 

 

But when I use the SAP ILM prog on BP test, I have this error message : 

SimonMDM_4-1749029501904.png

After debugging, I found that the error comes from the function module BUP_BUPA_EOP_CHECK, which fails during execution.

This function module builds a table called lt_source_fields with various information ( START_RET_DATE, BP Number, BP TYPE, etc ) . Later in the code, a check is performed on this table during the indirect determination loop.

Since my custom condition fields are not present in the table, my Z BAdI is never called, and therefore I cannot continue with the date determination logic.

I believe I'm missing some custom configuration, but I can't figure out what exactly.

I based my implementation on SAP's BC_SFLIGHT example, but I must have missed a setting somewhere.

Do you have any idea what could be wrong?

Thanks in advance.

 

 

 

 

 

Accepted Solutions (0)

Answers (1)

Answers (1)

revathimp
Product and Topic Expert
Product and Topic Expert
0 Likes

Hi Simon, 

IF Eond of purpose check is active in the system, then EOP check is performed and determined data is used in ILM Rule calculation. 

Check the condition field value determination and time reference value determination. With this you will be able to proceed further. 

Now on adding custom fields, you can add condition fields and time references for indirect value determination. 

You could do this at design time ( edit the ILM object definition CA_BUPA in IRM_CUST_BS transaction), add condition fields and time references with value determination.

Else you could do it via badi. There would be 2 methods  - one to register and other to determine the value. 

In the badi implementation you need to write a logic to provide the value back. 

Please test this approach for data set which as passed EOP check, is blocked and can be archived. 

Regards,
Revathi