Skip to Content
author's profile photo Former Member
Former Member

Assignment Block Data in Internal Table

Hi ,

i have a assignment Block with data in it which is stored in some table , now i need those data in an internal table through the BOL programming..\

how can i achieve it..

Thank You & Regards

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    Posted on Sep 24, 2013 at 07:11 AM

    Hi Rohan,

    Can you please elaborate on the scenario which you are trying to achieve?



    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 24, 2013 at 07:35 AM


    Can you tell me which component you are talking about.

    If you are not speaking about any component in specific, you can get it using the BOL programming,

    if you know the relationship between the Root object and the assignment block Object.

    For example : Consider an Account and you want all the relationships.

    Here the root object is BuilHeader and the assignment block relationships is a Dependent Object BuilRelationship and the relation name is BuilRelationshipRel .

    Now if you want to get all the relations in the relationship table , follow the steps below.

    1. Get instance of BOL core using the method

    lr_core = cl_crm_bol_core=>get_instance( ).

    2. From the bol core reference get the root entity reference



    iv_object_name = 'BuilHeader'

    iv_object_guid = 'Guid' " Object GUID in Generic Interaction Layer


    rv_result = lr_root " Entity


    3. Now that you have the root object reference, get the related entities.

    lv_collection = lr_root->get_related_entities( iv_relation_name = 'BuilRelationshipRel' ).

    This should give you a collection of entities and you can generate your internal table from this collection.

    See the screen shot of the example that I used to explain the scenario.

    Revert back in case its not clear.

    Thanks and regards


    scn.jpg (140.9 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 23, 2016 at 10:08 AM

    Hi all,

    I have similar requirement. The UI component is Z_component. The assignment block is created by AET. I want the data in the field of assignment block in one internal table and check if newly entered entry in that filed already exist or not. i.e if duplicate entry is entered, then it should display error message. Can anyone please help me? How to use get_current() method for such Z_component? I want proper syntax.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.