SAP DERIVED TYPES PARAM ABAP Statements



Get Example source ABAP code based on a different SAP table
  


• %param ABAP_BDEF_DER_TYP_COMP
• preserve_changes ABAP_BDEF_DERIV_TYPES

%param

ABAP_USE
%param is a component group in BDEF derived types.
It is used for the result parameter in the context of action and function implementations. %param must be filled by the action or function implementation if a result is defined. For actions or functions with a selective result, only those fields that are requested with the REQUEST addition must be filled.
In the context of the draft action edit, %param contains the component preserve_changes. It is a Boolean value and if it is set to true, the draft action request is rejected if a draft already exists. If it is set to false, which is the default setting, the edit is executed, i. e. the active instance is copied to the draft database table and the existing draft is overwritten with the values of the active data. In that case, current changes on the existing draft instance are lost.
Type
Depending on the specification of the parameter in the BDEF, %param can be a structure whose components are comprised of %data and %key /%tky/%pky plus, if relevant, other % components like %pid. %param can also be of the DDIC type that is specified in the BDEF for static actions or functions.
In the context of the draft action edit, %param is of type ABP_BEHV_PAR_EDIT.