on 04-19-2014 7:05 AM
Hello experts,
I have a Z table with some fields , say GC#, Validity, Value, Offered on.
I have created the form view with these fields and with the button Create.
After entering the values in the form, I am trying to get those details in eh_oncreate method with the below code.
DATA: lr_entity TYPE REF TO cl_crm_bol_entity,
lr_entity ?= me->typed_context->GCNODE->collection_wrapper->get_current( ).
lv_gcno = lr_entity->get_property_as_string( 'GCNO' ).
Here, it is giving me the error. I have checked that in debugging. lr_entity does no have any reference, it is initial. When the view is displayed, will it not create any instance for the context node?
Can someone please tell me how to read the form view data of value node? Your help will be much appreciated. Thank you.
Hi,
Extending the BOL to incorporate the Ztable you would be referrring to.
First you have to fill up value nodes :
Then to retrieve data Use lr_Entity type ref to cl_bsp_wd_value_node.
and use get_property_as_string or get_property method which will return Returns a Reference to an Attribute.
Check CL_BSP_WD_VALUE_NODE class for more information.
Regards,
Sumeet
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Maren,
Instead of using lr_entity ref type cl _crm_bol_entity use cl_bsp_wd_value_node. It will work.
Thanks
Bhushan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.