Technology Blog Posts by Members
cancel
Showing results for 
Search instead for 
Did you mean: 
DDEBORSHI
Explorer
0 Kudos
242

What is Covert Key ? – When we are using standard BDEF for our development, some time we can see standard BDEF using “Late Numbering” for creating preliminary key %pid.

For example, for PO Creation we use BDEF  I_PurchaseOrderTP_2 , for Purchase Contract BDEF is  I_PurchaseContractTP and for Service Entry Sheet BDEF r_serviceentrysheettp.

During CREATE operation using EML, in MAPPED parameter will only return a preliminary key %pid. Then to retrieve the final key in our application from this preliminary key we must use the CONVERT KEY key word.

This conversion will call in SAVE Sequence in SAVE_MODIFIED  method. And for this we need to use either Unmanaged Save or Additional Save.

Note:- If we want to save this convert key into the persistence of our own RAP business object, then we must use the unmanaged save approach.

For Example, here I am using BDEF r_serviceentrysheettp.

 

Scenario 1- When we are call EML inside our BDEF.

I have created an app where Service Entry Sheet will create when user click on Action Button.

I have used managed with unmanaged save implementation.

DDEBORSHI_0-1751387641421.png

In Behavior Implementation class (Global Section) I have defined a variable that will hold the response of my API call.

DDEBORSHI_1-1751387711993.png

In Action “createses” method

DDEBORSHI_2-1751387765698.png

Here in variable mapped_serviceentry_sheet  we will hold the response of our API call i.e. MAPPED data.

In debugging we can see the %PID value.

DDEBORSHI_3-1751387792200.png

Here we can see EML is returning only preliminary key, that we need to convert in SAVE_MODIFIED method.

DDEBORSHI_4-1751387876195.png

In debugging -

DDEBORSHI_5-1751387920372.png

 

Scenario 2 – Call EML outside BDEF or normal class.

DDEBORSHI_6-1751388081653.png

In Debugging - 

DDEBORSHI_7-1751388119306.png

 

Thanks