cancel
Showing results for 
Search instead for 
Did you mean: 

History on UDOs

rasmuswulff_jensen
Active Contributor
0 Kudos
231

Hi... Its possible to make a history-log on a userdefined object, but if I make my own form to display the UDO the History option in the tools menu is not enabled... I checked the tabel and it logs the changes, but how do I get to see the data... Is it not linked to the normal history? ... I can't enable the menuitem...

Accepted Solutions (1)

Accepted Solutions (1)

FOA
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Rasmus, i think this bridge is not yet implemented. You will have to implement it your self or ask for it by creating a message in our SAP Market place.

I saved the "Change Log" form and substituted the "object type" with my UDO type; I replace the log table and the fields as well, but is not automatically populated. This is done by code and therefore you will have to implement it as well. I'm adding the xml code i used to make my self clearer. The problem is that each time you open the "Change Log" form, the object type is dynamically obtained and then the changes are listed.

<?xml version="1.0" encoding="UTF-16"?>

<Application>

<forms>

<action type="add">

<form appformnumber="285" FormType="285" type="0" BorderStyle="0" uid="FOA122" title="Change Log..." visible="1" default_button="" pane="0" color="0" left="341" top="222" width="510" height="337" client_width="502" client_height="310" AutoManaged="1" SupportedModes="15" ObjectType="SM_BLK" mode="1">

<datasources>

<dbdatasources>

<action type="add">

<datasource tablename="@AOBLK" />

<datasource tablename="OUSR" />

</action>

</dbdatasources>

<userdatasources>

<action type="add">

<datasource uid="SYS_62" type="0" size="4" />

</action>

</userdatasources>

</datasources>

<items>

<action type="add">

<item uid="1" type="4" left="5" tab_order="0" width="65" top="286" height="19" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">

<AutoManagedAttribute />

<specific caption="OK" />

</item>

<item uid="2" type="4" left="76" tab_order="0" width="65" top="286" height="19" visible="1" enabled="1" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">

<AutoManagedAttribute />

<specific caption="Cancel" />

</item>

<item uid="3" type="127" left="5" tab_order="0" width="490" top="5" height="276" visible="1" enabled="0" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="" forecolor="-1" backcolor="16711422" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">

<AutoManagedAttribute />

<specific layout="0" titleHeight="20" cellHeight="16">

<columns>

<action type="add">

<column uid="0" type="16" title="#" description="" visible="1" AffectsFormMode="1" width="36" disp_desc="0" editable="1" right_just="0" val_on="" val_off="" backcolor="-1" forecolor="-1" text_style="0" font_size="-1">

<databind databound="1" table="" alias="SYS_62" />

<ExtendedObject />

</column>

<column uid="1" type="16" title="Instance" description="" visible="1" AffectsFormMode="1" width="88" disp_desc="0" editable="0" right_just="0" val_on="" val_off="" backcolor="-1" forecolor="-1" text_style="0" font_size="-1">

<databind databound="1" table="@AOBLK" alias="LogInst" />

<ExtendedObject />

</column>

<column uid="2" type="16" title="Object Code" description="" visible="1" AffectsFormMode="1" width="0" disp_desc="0" editable="0" right_just="0" val_on="" val_off="" backcolor="-1" forecolor="-1" text_style="0" font_size="-1">

<databind databound="1" table="@AOBLK" alias="DocEntry" />

<ExtendedObject />

</column>

<column uid="3" type="16" title="Updated" description="" visible="1" AffectsFormMode="1" width="88" disp_desc="0" editable="0" right_just="0" val_on="" val_off="" backcolor="-1" forecolor="-1" text_style="0" font_size="-1">

<databind databound="1" table="@AOBLK" alias="UpdateDate" />

<ExtendedObject />

</column>

<column uid="4" type="16" title="User Name" description="" visible="1" AffectsFormMode="1" width="137" disp_desc="0" editable="0" right_just="0" val_on="" val_off="" backcolor="-1" forecolor="-1" text_style="0" font_size="-1">

<databind databound="1" table="OUSR" alias="U_NAME" />

<ExtendedObject />

</column>

<column uid="5" type="16" title="Obj Type" description="" visible="1" AffectsFormMode="1" width="0" disp_desc="0" editable="0" right_just="1" val_on="" val_off="" backcolor="-1" forecolor="-1" text_style="0" font_size="-1">

<databind databound="1" table="@AOBLK" alias="Object" />

<ExtendedObject />

</column>

</action>

</columns>

</specific>

</item>

<item uid="4" type="4" left="381" tab_order="0" width="115" top="286" height="19" visible="1" enabled="0" from_pane="0" to_pane="0" disp_desc="0" right_just="0" description="" linkto="" forecolor="-1" backcolor="-1" text_style="0" font_size="-1" supp_zeros="0" AffectsFormMode="1">

<AutoManagedAttribute />

<specific caption="&amp;Show Differences" />

</item>

</action>

</items>

<FormMenu />

<DataBrowser />

</form>

</action>

</forms>

</Application>

Answers (0)