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

How to Identify BOL entity

Hi,

I want to add Attribute set "BP_CUST_CLASS" on the Account details page. While addign the attribute in the Header section of BPAccountdetails i am unable to mention the BOL entity.

Please anyone help me , how to find the BOL entity corresponding to the Arrtibute set.

Regards,

Sunil

Add a comment
10|10000 characters needed characters exceeded

Related questions

6 Answers

  • Best Answer
    Posted on Nov 10, 2008 at 04:25 PM

    Should be BuilHeader -> BuilMktAttributeRel -> BuilMktAttribute.

    Get the collection from BuilHeader, then filter for your set and attribute.

    Option for you is to do this in a GET_ method in the context node of BuilHeader directly. Then you can show it as a single (maintainable) field in the Head of the BP.

    Example for code in BuilHeader context node:

    lr_entity ?= lr_current.
    lr_col = lr_entity->get_related_entities( iv_relation_name = 'BuilMktAttributeRel' ).
    lr_iter = lr_col->get_iterator( ).
    lr_iter->filter_by_attribute( iv_attr_name = 'SET' iv_value = 'Jimbob' ).
    lr_iter->filter_by_attribute( iv_attr_name = 'ATTRIBUTE' iv_value = 'Bubba' ).
    
    lr_property = lr_iter->get_first( ).
    
    value = lr_property->get_property_as_string( iv_attr_name = 'VALUE' ).
    

    This is propably not working code, I just typed it in here from my head!

    Should give you an idea how to program a GET_YOUR_VARIABLE( ) method. The SET method is the other way round. Be inspired by the standard SAP implementations.

    cheers Carsten

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 10, 2008 at 01:31 PM

    Hi Sunil,

    what kind of attributes do you have in the set?

    To identify the right entity you could use the sapgui transaction genil_model_browser.

    Or, if you already a sample BP, you could try to work with the transaction genil_bol_browser.

    Best regards,

    Erika

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Erika,

      Thanks for reply.

      I just want to add Fields to the mail page of Coorporate Account that are : Attended events, Shopping frequency etc. For that i know its under attribute set "BP_CUST_CLASS".

      I check in Genil_model_browser and Genil_bol_browser but unable to know about it. What is the approach for it.

      Would appreciate if you guide me on the same.

      Thanks,

      Sunil

  • Posted on Nov 10, 2008 at 01:58 PM

    Hi,

    you can review the following for more information on the BOL Layer:

    http://www.sap.com/community/webcast/2007_10_sapskills_en/2007_10_sapskills_en_F4.pdf

    Unfortunatly I did not understand what you mean with the "BP_CUST_CLASS" attribute set. is this a structure?

    BR

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Nov 10, 2008 at 02:34 PM

    What about the BOL entity BuilMarketingRel?

    Parent entity BuilHeader, relation BuilMarketingRel.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Nov 11, 2008 at 09:34 AM

    Hi,

    I have added the MArketing Attribute BuilMktAttributeRel - BuilMktAttribute to the header overview page of BP .But now the system is throwing the error while i am regenrating the GET_I method

    Error is :

    1. Component GET_ATTRIBUTE does not exist

    2. Determination of BOL attributes failed

    Also i m unable to delete the context node? Kindly let me know how shud i proceed ?

    Thanks,

    Sunil

    Add a comment
    10|10000 characters needed characters exceeded

    • I fear I can not follow what you are doing.

      Are you trying to do this using some kind of wizard?

      The methods I am talking about are in the context node class of the BuilHeader. They need to be created by hand.

      Best aproach is to copy the GET_ and SET_ methods from another attribute in that class and adjust the coding in the way I described.

      cheers Carsten

  • author's profile photo Former Member
    Former Member
    Posted on Nov 11, 2008 at 02:19 PM

    Hi,

    Thanks for reply.

    But my approach is to add the Zcontext node Marketing Attribute Rel in the Account details page , so that i can just add the Attribute , arrtibute set fields in the details page directly and can retrive the data accordingly.

    Also , any clue how we can delete the Zcontext node?

    Regards,

    Sunil

    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.