Skip to Content
0

BOPF Custom Delegated Node to TEXT COLLECTION

Apr 23 at 06:19 AM

124

avatar image

Hi gurus, I have some troubles in BOPF implementation, Text collection topic.

My task is to add Long Text Description(Long text) to the standard UI based on BO EHHSS_RISK_ASSESSMENT.

So my understand it should consist of next steps:

  1. Enhance EHHSS_RISK_ASSESSMENT with own Sub Object - done
  2. Create custom Delegated node as a subnode to ROOT like a standard ROOT_COMMENT (i've called it ROOT_COMMENTSTA, not ZZ* ) - done
  3. Add custom field COMMENTSTA_KEY_REF to Extension structure - done
  4. Add custom field COMMENTSTA_KEY COMMENTSTA_TEXT to Combined structure - done
  5. Add created element to the UI RiskAssesment on Base Info page ( with all properties like in standard Description ) - done

That's all and when i'm trying to test my field on UI enter some information into it, press SAVE button and totally get a short DUMP : ASSERTION_FAILED CL_EHFND_TEXT_COLLECTION_MNGR=CP ( In standard class CL_EHFND_TEXT_COLLECTION_MNGR method INSERT_TEXT ).

I feel that i missed something, please help with this case?

10 |10000 characters needed characters left characters exceeded

Additional Info:

I've tried to test BO EHHSS_RISK_ASSESSMENT pressing F8 and found strange thing:

снимок.jpg

Keys for standard ROOT_COMMENT and ROOT_COMMENTSTA are the same. But how they should be generated separately?

снимок.jpg (75.9 kB)
0
* Please Login or Register to Answer, Follow or Comment.

1 Answer

avatar image
Former Member May 09 at 02:50 AM
0

Hi Artiyom,

I am facing the same issue.

My requirement is to add 2 additional long text fields to the BO EHHSS_RISK_ASSESSMENT.

I was able to add 1 additional long text by using dependent BO /BOBF/TEXT_COLLECTION for one of the long text instead of BO EHFND_TEXT_COLLECTION (I don't think that is the intention of how this works though).

As soon as I add the third one using either BO it short dumps.

From what I can see in the code it loops through and creates an instance of each dependent BO. When it tries to create the second instance of the same BO it finds it already has one and dumps. I'm guessing this is in the design, but haven't found anywhere in the documentation that is the case.

Thanks.



Share
10 |10000 characters needed characters left characters exceeded