Skip to Content
0

Add custom filed at CR UIBB general section

Apr 10 at 01:25 PM

80

avatar image

Hello Gurus,

Got an requirement to enhance CR UIBB general section with custom specific fields.

I have explore a lot but ended with result to add additional tab on CR section and saving data to custom table but my requirement is specific to add custom field only not to include separate tab on CR section and saving in data in Z tables. If any one has got similar requirement Please help me on this.

I have enhance this structure BSS_CRIL_ROOT_ATTRIBUTES with custom fields to be make custom field visible on CR general section. It working fine but the problem is data is not getting saved .

Regards,

Riyaj.

Regards,

Riyaj.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Loga Nathan Duraisamy Apr 10 at 01:55 PM
0
  • Hi Mohd,

1. create custom table and extend struture BSS_CRIL_ROOT_ATTRIBUTES .

2. Add your field in the UI.

3. Create custom CR root class inheriting standard root class CL_USMD_CR_GIL_ROOT. Redefine methods get_attributes and Change_object to save the custom field data to your custom table and to display back in the UI. Replace your CR root class in genil model.

4. Using CR feeder class ,you can further make the fields visible or invisible in different CR steps or CR types.

Below document explains complete details to be followed for the same. Only thing is they created extra UIBB to add one more tab in the CR header,,Apart from that just follow the guide. Example code is also given in the document.

https://www.sap.com/documents/2015/07/4c989657-5b7c-0010-82c7-eda71af511fa.html

Thanks and Regards,

Logan.D

Show 4 Share
10 |10000 characters needed characters left characters exceeded

Hi Logan,

Facing some issue, So Open thread once again.

Done Step 1 after this done the custom field is available on UI application, By doing customizing placed the custom field on CR UIBB general section. (Step 2 I have not done). Here I face some problem when I enter any value on that filed on enter or Check Button the field value disappears . Any solution on this.

Regards,

Riyaj.

0

Hi Mohd,

you need to save value to custom table and you supposed to display in the ui by reading back your custom table. It wont appear automatically.

In get_data method of the feeder class, read your value from custom table which you saved before and update ui.

Thanks and Regards,

Logan.D

0

Hi, just small digression here

The tutorial from link above has a bug.
Saving data in the Z-table should not be done in CHANGE_OBJECT method, if you do that your enhanced data will be persisted even in case you reject the changes with "Cancel" button

0

Hi Studencki,

Thanks .. Actually change_object gives you details of the field which got changed at run time but to remove custom table value once CR is rejected, we need to get action in process event method of the CR feeder class and delete the entry from table accordingly. For any custom field we supposed to take care of all CR actions. Standard functionality defined by SAP for CR header will not create any impact on custom fields.

Regards,

Logan.D

0