cancel
Showing results for 
Search instead for 
Did you mean: 

Create BOL without GUID

Former Member
0 Kudos

Hi Experts,

I am creating a custom BOL to insert values into a ZTable using a component.

I had tried the class CL_CRM_GENIL_GEN_TABLE_OBJ but this class has GUID as the key, where as in my table, the key does not have GUID, more over three fields are part of the key. Can anyone suggest how do I call the method create or any link on SDN that explains more about creation of records in tables using BOL. Especially what APIs need to be used?

Regards,

Abdullah Ismail.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Regarding the last post, I was not assigning the default values correctly in the create method of the BOL Class.

Former Member
0 Kudos

Hi Abdullah,

Would you please tell how you generated bol without guid by using simple object,  Thanks in advance..

former_member214667
Contributor
0 Kudos

Hi Abdullah,

You can use the following class as the superclass of your GenIL implementation class to have key other than a GUID:

CL_CRM_GENIL_ABSTR_COMPONENT2

This will allow you to have a key other than the GUID.

Regards,

Shiromani

Former Member
0 Kudos

Hi Experts,

The following links will elaborate the issue.

[Link|http://saphelp.yolasite.com/]

The first image shows the initial screen with default value. The second image shows the cleared values.

Can anyone please let me know why the context node gets cleared when I click the enter key for the default values. If I change the values and give my own dates, then they do not change. How do I make the values persistent.

Regards,

Abdullah

former_member193352
Active Contributor
0 Kudos

Hello Abdullah,

There are lots of WIKI's available on SDN for the same.

Kindly refer to these:

[Link1|http://wiki.sdn.sap.com/wiki/display/CRM/CreateaZBOLObjectPart1]

[Link2|http://wiki.sdn.sap.com/wiki/display/CRM/HowtouseyourcustomBOLObjectforwebclientwithinassignment+block.]

[Link3|https://wiki.sdn.sap.com/wiki/pages/viewpage.action?pageId=143065489]

Edited by: Vishal Kesar on May 10, 2011 10:15 AM

Former Member
0 Kudos

Hi Vishal,

but the links talk about GUID. Nevertheless, I was able to create my BOL and use it in my component. In the create method, I am setting default attributes for begin/end date and other for other fields too.

When I use it in my UI component, these values are reflected correctly. But if I press the enter button, the values that I had set in the BOL get cleared out. When I re-enter these values, these values persist and then I am able to save it to the underlying tables. Can anyone please suggest, what do I have to do to persist with the default values. I checked the behavior of a few standard components, the getter and setter methods are not used to set these values. They are defaulted in the BOL class. I checked the BOL browser for the same and I find it to be working fine there.

Regards,

Abdullah

Edited by: Abdullah Ismail on May 11, 2011 1:08 PM