Quantcast
Channel: SCN : All Content - All Communities
Viewing all articles
Browse latest Browse all 7999

get attribute complex

$
0
0

COMPONENT:  BT111QH_SLSQ CONTEXTNODE: BTPARTNERSET

Here we have attributes like BILLTO_NAME, SOLDTO_NAME, SHIPTO_NAME ,…

When I write the code below

DATA: LR_ENTITY TYPE REF TO CL_CRM_BOL_ENTITY.

LR_ENTITY ?= ME->TYPED_CONTEXT->BTPARTNERSET->COLLECTION_WRAPPER->GET_CURRENT( ).

DATA: LR_STR
TYPE STRING.

IF LR_ENTITY IS BOUND.
LR_STR = LR_ENTITY->GET_PROPERTY_AS_STRING( IV_ATTR_NAME =
'SOLDTO_NAME' ).

IF LR_STR IS INITIAL.
LR_ENTITY->SET_PROPERTY_AS_STRING( IV_ATTR_NAME =
'SOLDTO_NAME' IV_VALUE = 'CM' ).
ENDIF.
ENDIF.

I’m getting this error

SAP Note

  • The following error text was processed in the system:
    Entry parameter of method CL_CRM_BOL_ENTITY->GET_PROPERTY contains value SOLDTO_NAME, which is not allowed

Exception Class

CX_CRM_CIC_PARAMETER_ERROR

Error Name

Program

CL_CRM_BOL_ENTITY=============CP

Include

CL_CRM_BOL_ENTITY=============CM00C

ABAP Class

CL_CRM_BOL_ENTITY

Method

IF_BOL_BO_PROPERTY_ACCESS~GET_PROPERTY

Line

22


Viewing all articles
Browse latest Browse all 7999

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>