cancel
Showing results for 
Search instead for 
Did you mean: 

ABAP RAP managed scenario Default values

06-13-2025 8:00 AM
adel_adel Participant
753 views 2 comments Go to solution
0 Likes
SAP Managed Tags
Subscribe

Hi experts,

I have the following requirement in ABAP RAP managed scenario non-draft. I have to populate default values for few properties like currency code.

The trigger should be after clicking on the create button. like the PBO init event in classical ABAP.

I have tried to use the determination , but the code is triggerd too late, at the moment after the user clicks on the save button.

 

Thanks in advance

0 Likes

Accepted Solutions (1)

Accepted Solutions (1)

Alwin_vd_Put
Explorer
0 Likes

How does your determination definition look like? Do you use "on save"?

determination onSave on save { create; }

https://help.sap.com/doc/abapdocu_cp_index_htm/CLOUD/en-US/abenbdl_determinations.html 
Have you already tried "on modify"?

determination onCreate on modify { create; }

 

Answers (1)

Answers (1)

Juwin
Active Contributor
0 Likes

Determination isn't the correct place to code such things.

Use default function: https://help.sap.com/doc/abapdocu_cp_index_htm/CLOUD/en-US/ABENBDL_DEFAULT_FUNCTION.html