Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Object Oriented ABAP - data references content

Former Member
0 Likes
314

Hi all,

I have a requirement where Im required to check the contents of a object reference, LO_OBJ_HOLD in OOABAP context and since Im unable to use the 'CA' as in normal abap coding standards, Im severely confused as to how to find a way out. The requirement exactly is to check the contents of LO_OBJ_HOLD and as to whether it contains any '_PT ' value in it.

lo_obj_hold is an importing parameter I have used in the function module and the declaration is as follows.

LO_OBJ_HOLD TYPE REF TO  OBJECT as an importing parameter. Kindly provide me with your valuable suggestions!!

1 REPLY 1
Read only

Azeemquadri
Contributor
0 Likes
284

Once you get the result from the FM can you use a variable and shift the FM result to that variable lv_var.

check the CA condition on this lv_var.