/AWS1/IF_PP2=>PUTREGISTRATIONFIELDVALUE()¶
About PutRegistrationFieldValue¶
Creates or updates a field value for a registration.
Method Signature¶
METHODS /AWS1/IF_PP2~PUTREGISTRATIONFIELDVALUE
IMPORTING
!IV_REGISTRATIONID TYPE /AWS1/PP2REGISTRATIONIDORARN OPTIONAL
!IV_FIELDPATH TYPE /AWS1/PP2FIELDPATH OPTIONAL
!IT_SELECTCHOICES TYPE /AWS1/CL_PP2SELECTCHOICELIST_W=>TT_SELECTCHOICELIST OPTIONAL
!IV_TEXTVALUE TYPE /AWS1/PP2TEXTVALUE OPTIONAL
!IV_REGISTRATIONATTACHMENTID TYPE /AWS1/PP2REGATTACHMENTIDORARN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_pp2putregfieldvalrslt
RAISING
/AWS1/CX_PP2ACCESSDENIEDEX
/AWS1/CX_PP2CONFLICTEXCEPTION
/AWS1/CX_PP2INTERNALSERVEREX
/AWS1/CX_PP2RESOURCENOTFOUNDEX
/AWS1/CX_PP2THROTTLINGEX
/AWS1/CX_PP2VALIDATIONEX
/AWS1/CX_PP2CLIENTEXC
/AWS1/CX_PP2SERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_registrationid TYPE /AWS1/PP2REGISTRATIONIDORARN /AWS1/PP2REGISTRATIONIDORARN¶
The unique identifier for the registration.
iv_fieldpath TYPE /AWS1/PP2FIELDPATH /AWS1/PP2FIELDPATH¶
The path to the registration form field. You can use DescribeRegistrationFieldDefinitions for a list of FieldPaths.
Optional arguments:¶
it_selectchoices TYPE /AWS1/CL_PP2SELECTCHOICELIST_W=>TT_SELECTCHOICELIST TT_SELECTCHOICELIST¶
An array of values for the form field.
iv_textvalue TYPE /AWS1/PP2TEXTVALUE /AWS1/PP2TEXTVALUE¶
The text data for a free form field.
iv_registrationattachmentid TYPE /AWS1/PP2REGATTACHMENTIDORARN /AWS1/PP2REGATTACHMENTIDORARN¶
The unique identifier for the registration attachment.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_pp2putregfieldvalrslt /AWS1/CL_PP2PUTREGFIELDVALRSLT¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->putregistrationfieldvalue(
it_selectchoices = VALUE /aws1/cl_pp2selectchoicelist_w=>tt_selectchoicelist(
( new /aws1/cl_pp2selectchoicelist_w( |string| ) )
)
iv_fieldpath = |string|
iv_registrationattachmentid = |string|
iv_registrationid = |string|
iv_textvalue = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
lv_string = lo_result->get_registrationarn( ).
lv_string = lo_result->get_registrationid( ).
lv_registrationversionnumb = lo_result->get_versionnumber( ).
lv_fieldpath = lo_result->get_fieldpath( ).
LOOP AT lo_result->get_selectchoices( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_selectchoice = lo_row_1->get_value( ).
ENDIF.
ENDLOOP.
lv_textvalue = lo_result->get_textvalue( ).
lv_string = lo_result->get_registrationattachmentid( ).
ENDIF.