How to use change document for AUSP table in MM02?
Hi All,
I am working with MM02. When I change the characteristic value in classification view, I want that change to be logged in CDHDR table.
I have created a change document object for AUSP table and generated update program for that. Now that program needs to be called in some <b>badi</b> or <b>exit</b> which can be called upon saving in MM02 after changing the values in classification view.
Can anybody give me some idea where can I call that program.
Any help wud be appreciated.
Regards,
Pragya
Hi
You have 2 possible solutions to meet this requirement.
Option 1: Implement point # 3 of SAP OSS Note 943559
Option 2: This is a workaround solution to skip standard SAP check for activation of change documents of Classification system and allow entries to be written into CDHDR and CDPOS table through MM01 / MM02 / CL20N tcode
Solution: Implement an implicit enhancement inside include program 'LCLVFF10', at end of subroutine 'FILL_REDUN' i.e. line number '337'.
Here modify the entry of table 'REDUN' where OBTAB = 'MARA' and set the flag 'AEBLGZUORD' equal 'X'. This will activate the change document creation for Change Object 'CLASSIFY' in CDHDR and CDPOS tables.
Sample Code
LOOP AT redun WHERE obtab EQ 'MARA'.
redun-aeblgzuord = 'X'.
ENDLOOP.
Similar Messages
-
Using a change document for Z table maintenance generatro to log changes
Hi Forum,
I have created a a change document for one of the Z tables now I want to use it in the table maintenance generator of this table so that any changes made to this table using maintenance generator are logged in table CDHDR and CDPOS.
I am using the event 02 After saving the data in the database
and have created a new FORM..ENDFORM for this event and it is working fine till here.
But I am unable to find any table or structure where the information of the action performed in maintenance generator is kept for eg. what action was performed like add, delete or change and on how many records and contents of those records.
I can update the tables CDHDR and CDPOS only if I have the above information.
Please guide me as to where can I find all this information within the maintenenace generator program?
Thank you,
AnubhavHello Anubhav,
Are you calling the change document function module in your save event ? The function module needs to be first created using SCDO for your Z table, select the fields on which you want to track the changes. Auto generate the programs for this change object. Once the FM is generated, you will have to call this FM in your SM30 event.
The change document tracking also needs to be enabled at the data element level..
Regards,
Jay -
Change Documents for the table EKET
Hi ,
We create a purchase order from ME21N . We do have some data for delivery schedule for the data .
This delivery schedule data gets stored in tabe EKET . When this PO is processed from V_V2 the dates
in the delivery schedule are overwritten and he new values will be even in the table EKET . When I follow
the navigation Environment -> Item Changes I dont see the changes documents for these fate fields . I did
debug through the FM EINKBELEG_WRITE_DOCUMENT to see but it looks like it is not captuirng the fields .
Now my requirement is to find where the change documents can be found for the date changes in the delivery
schedule tab in the PO . The fields of interest are :
EKET-SFLDT , EKET-DAT01, EKET-MBDAT , EKET-LDDAT , EKET-WADAT .
I tried for some OSS notes too, but in vain . Can anyone please help to find out how we find the changes documents for these fields .
<b>Also please tell me if there are any OSS notes which explain us to extend the table EKET .</b>
Thanks and Regards ,
Varun .HI ,
I did check the table CDHDR and CDPOS and also the change document is checked for the data element but no change documents are stored in CDHDR and CDPOS .
<b>Did anyone ever extend the tabke EKET ? Any OSS notes available for this .</b>
Regards ,
Varun .
Message was edited by: varun sonu -
Activating change documents for standard tables
Hi all,
Can someone please tell me how I can activate change documents for a standard table.
I created a change document object in SCDO and included the standard table I am working with. This table does not have "LOG DATA CHANGES' enabled in its technical settings. I checked the data element of the field I am interested in and it has "Change Document" enabled.
Is there any way to activate change documents for a std table without writing code to create change documents?
Thanks.Hi,
Check this transaction SCU3, this is to activate the change logs for the tables.
Regards,
Satish -
How to use remote directory for external table
Hi Folks,
I have 2 Oracle 11GR2 64 bit database installed on Win 2008 server as prod1 and prod2.
I have one directory created on prod1 server as EXT_TAB_DIR using the path as D:\OrsDWtest_dir .
I want to use this directory in Prod2 server and use external table using this remote directory.
I am able to access the Prod1 directory from Prod2 machine and also i have created Network map drive as Z drive pointing to that prod1 D:\OrsDWtest_dir directory. Also i checked read and Write permissions are there . I am able to create the external table but when i try to fetch the data i m getting below error ..
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-04040: file IOMM_20121213_060736.csv in EXT_TAB_DIR not found
now my doubt is this possible ? Can we use remote directory for External table ? or is there is there any alternative way to achieve same ?
Thanks & Regards,
Vikash Jain(DBA)could you confirm the name and the existence of this file "IOMM_20121213_060736.csv" ?
same error like:
http://www.oracle-base.com/articles/9i/external-tables-9i.php
if the load files have not been saved in the appropriate directory the following result will be displayed.
SQL> SELECT *
2 FROM countries_ext
3 ORDER BY country_name;
SELECT *
ERROR at line 1:
ORA-29913: error in executing ODCIEXTTABLEOPEN callout
ORA-29400: data cartridge error
KUP-04040: file Countries1.txt in EXT_TABLES not found
ORA-06512: at "SYS.ORACLE_LOADER", line 14
ORA-06512: at line 1Edited by: Fran on 10-ene-2013 23:32 -
How to use change document object ?
Friends,
I am learning to use the Change Document object for one of my Z table. I have created a change doc object using SCDO. I have now written a test report in which i am issuing the SELECT statement for fetching old and new values from the Z table and passing them to the FM generated by SCDO.
I am not able to see the changes in the CDHDR and CDPOS tables. I am doubtful abt the values being passed to the FM. Here are the values i am passing:
CALL FUNCTION 'YTEST_WRITE_DOCUMENT'
EXPORTING
objectid = 'YTEST'
tcode = 'se38'
utime = sy-uzeit
udate = sy-datum
username = sy-uname
PLANNED_CHANGE_NUMBER = ' '
OBJECT_CHANGE_INDICATOR = 'U'
PLANNED_OR_REAL_CHANGES = ' '
NO_CHANGE_POINTERS = ' '
UPD_ICDTXT_YTEST = 'U'
n_ztest_cle = wa_ztest_cle
o_o_ztest_cle = o_ztest_cle
UPD_ZTEST_CLE = ' '
tables
icdtxt_ytest = itab_cdtxt.
Is the object ID the same as the Change Document Object name ??
Please help.
Thanks,
Ram.Well, i found a way out for the problem i was facing. I was not setting the "UPD_ZTEST_CLE " FM parameter. When i set it to 'U', the changes got reflected in the CDHDR and CDPOS tables.
Can i reward myself as i solved this by myself ??? -
How to use the TableSorter for two tables at the same view?
Hello,
I am using the TableSorter object in order to sort Dynpro tables.
Suppose I have two tables at the same view, is it possible to use it seperatly for both of them?
I assume that at the wdModifyView method I will need to catch the table that the user clicked on, yet I don't have an idea of how to do it...Hi Roy,
Constructor of TableSorter
public TableSorter(IWDTable table, IWDAction sortAction, Comparator[] comparators)
So, you have to create instance of TableSorter class for each table on the view.
best regards, Maksim Rashchynski. -
How to use dynamic query for Result table
Hello Experts,
I want to use dynamic query and then display the result in the assignment block.
Using dynamic query BTQAct and BTQRAct and base on some search criteria i want tofilter and then append the result in the result table of that custom context node, and then it should display the result in the view in UI.
SO can you please provide me the samplle code on how to use the dynamic query and append in the result table.
Regards.Hi,
Please find below sample code:
data: query TYPE REF TO cl_crm_bol_dquery_service,
result TYPE REF TO if_bol_bo_col.
DATA: lt_params TYPE crmt_name_value_pair_tab,
lwa_params TYPE crmt_name_value_pair.
query = cl_crm_bol_dquery_service=>get_instance( 'BTQAct' ). " Get instance of dynamic query
Set general query parameter for maximum number of hits
lwa_params-name = 'MAX_HITS' .
lwa_params-value = '50'.
APPEND lwa_params TO lt_params.
query->set_query_parameters( it_parameters = lt_params ).
query->add_selection_param( iv_attr_name = 'OBJECT_ID'
iv_sign = 'I'
iv_option = 'EQ'
iv_low = <lv_objectid>
iv_high = '' ). " Set your search criteria. Repeat this code if you have multiple parameters
"You can find possible search options for a query object in GENIL_BOL_BROWSER
result ?= query->get_query_result( ). " Get result from your search query
me->typed_context-> <your result context node>->set_collection( result ).
Here you will have to create a context node in your view which would refer to query result object like for BTQAct its BTQRAct
Hope this helps.
e Regards,
Bhushan -
How To See Change Log For A Table Entry
Hi Experts,
One entry is created in a table. I want to know, when that entry was created/ changed.
Is there a way to find it out.
PLZ NOTE: Table doesn't contain any DATE field.
RegardsHi,
or else do like this...
In order to maintain the log changes the main pre reuisite is to checkmark the checkbox in dataelement of table filed.
To do this...
goto transaction SE11>enter ur table name>cleck on fields tab>cleick on dataelement->click on Furthercharacterstics tab-->select the checkbox'Change Document'.
If u dont select dis the u cannot see the log entry of the particuylar field..Do like this for each dataelement for each table field...selecting all the fields is not mandatory..u can choose the table field u want to see the log report..
Once u done with dat...
Goto SCDO transaction> click on create>give a name change doc startwith Z or Y only>Follow the prodedure and in-->name of table field>enter u r TABLE NAME->click on individual field checkbox.--->insertentries..
Once u done with dis..
Goto SE16->enter CHDIR or CDPOS->press ENTER->enter u r object id>F8
U can see the new and old value of a table entry..... -
How to find changes done for a table
Hi All,
We have a customized trasparent table , for which table log is not maintained. There is a change in data for this table and we want to find out who has done the changes and when .
We are using SAP R/3 4.6c with Oracle 8.1.7
Please let us know if there is any way to sort this out .
Regards,
BNHello Nayak,
as you told us that it is a customizing table .. there should not be many changes.
If you don't activate the table log ... then you can only go over the logminer of oracle (it is much easier, if you know a timeframe in which the data maybe changed):
http://www.oracle-base.com/articles/8i/LogMiner.php
http://download.oracle.com/docs/cd/B19306_01/server.102/b14237/dynviews_1154.htm#i1408263
=> TIMESTAMP
=> TABLE_NAME
=> SESSION_INFO
=> SQL_REDO
=> SQL_UNDO
You will not see which user has done the change but you will find the abap program and with that information you can go to ST03n and have a look which user called this program.
Regards
Stefan -
How to get change documents for Equipment Master Records of a document?
Hi experts,
I need a report for changes of Equipment Master for a document.
There is a way to reach this for every document : Environement - > Display Changes. Then I can get a report for "Changes to Object Links". But this can only show me that which equipments are linked to this document. What I want to search is which documents are linked to the equipment. I want to search with equipment number and get the history of changes for documents, Which documents are attached to this equipments and when did these documents attach to the equipment.
Can I get this report with standard SAP queries / reports? Where can I get this informations? From which tables?
PS: If i run a search with Equipment Master Data form CV04N, I can see which documents are linked to this equipment but I can't see when they are attached.
Thanks in advance... but I can't see when they are attached...
In CV04n,in Object Links tab,provide your search input criteria.Once the results are displayed,navigate to Current Layout button.Herein,move the 'Output Date' value to Displayed Column list.
Once done,you should be able to view the date on which the DIR with associated objects(Eg: Equipment Master) was created.Hope this helps!!
Regards,
Pradeepkumar Haragoldavar -
Hi,
Here is my requirement, i have 7 parameters in my report(Site,Account,LOB,year,Month,WeekDay and Date_Filter),
and in my report i have one table and one Chart,
my requirement is the table in the report has to show the data for 6 parameters only i.e(Site,Account,LOB,year,Month and WeekDay).so the table has to consider only 6 parameters, and it has ignore the 7th parameter, table should not consider Date_Filter parameter.
And Chart has to consider all 7 parameters.
so, when we preview the report table has to show the data for only 6 parameters and chart has to show the data for all 7 parameters.
if there is a way to get this Please reply me ASAP, it is an urgent requirement.
Thanks in Advance,
NaveenHi Naveen,
Refer below link to create multiple datasets as suggested by Gnanadurai
http://technet.microsoft.com/en-us/library/ff714047(v=sql.105).aspx
Thanks
Swapna -
Change documents for created for Customer Master
An existing program makes changes to the Customer master table KNA1. The changes are made at the table level using the UPDATE command. Since the changes are being made at table level, the change documents are not created.
I need to create IDocs for all changes. So the question is, how to create change documents for changes to the particular fields being UPDATEd in the report program.
I understand that a BDC program on XD01 screen should have been the best way for this, but I'm here to break-fix and trying to identify solutions with least development effort.Hi ganadeep,
When an application makes any changes to an object it wrties change documents which are stored in the table CDHDR and CDPOS for each change made.
BDCP table holds the change pointers which point to the change documents in the CDHDR table.
Regards
Parag -
Change documents for Classification View
Hi,
Can anyone please tell me how to activate Change documents for the Classification view of material master. if we activate that one what will be consequences?
Thanks in adavanceCHANGING CLASSIFICATION VIEW FOR MATERIAL USING BAPI
->CREATE CHARACTERISTIC USING TCODE CT04
->CREATE CLASS USING TCODE CL01 .
-> RUN THIS PROGRAM TO CHANGE THE CLASSIFICATION VIEW
PARAMETERS: P_MATNR TYPE MARA-MATNR. "MATERIAL
DATA: OBJECTKEY TYPE BAPI1003_KEY-OBJECT,
OBJECTTABLE TYPE BAPI1003_KEY-OBJECTTABLE,
CLASSNUM TYPE BAPI1003_KEY-CLASSNUM,
CLASSTYPE TYPE BAPI1003_KEY-CLASSTYPE,
ALLOCVALUESNUMNEW TYPE TABLE OF BAPI1003_ALLOC_VALUES_NUM WITH HEADER LINE,
ALLOCVALUESCHARNEW TYPE TABLE OF BAPI1003_ALLOC_VALUES_CHAR WITH HEADER LINE,
ALLOCVALUESCURRNEW TYPE TABLE OF BAPI1003_ALLOC_VALUES_CURR WITH HEADER LINE,
RETURN TYPE TABLE OF BAPIRET2 WITH HEADER LINE.
OBJECTKEY = P_MATNR.
OBJECTTABLE = 'MARA'.
CLASSNUM = 'MTS_CABLE_BIN1'. "CLASS(CREATED USING CL01)
CLASSTYPE = '023'. "CLASS TYPE (023 FOR BATCH)
CALL FUNCTION 'BAPI_OBJCL_CHANGE'
EXPORTING
OBJECTKEY = OBJECTKEY
OBJECTTABLE = OBJECTTABLE
CLASSNUM = CLASSNUM
CLASSTYPE = CLASSTYPE
STATUS = '1'
STANDARDCLASS =
CHANGENUMBER =
KEYDATE = SY-DATUM
NO_DEFAULT_VALUES = ' '
IMPORTING
CLASSIF_STATUS =
TABLES
ALLOCVALUESNUMNEW = ALLOCVALUESNUMNEW
ALLOCVALUESCHARNEW = ALLOCVALUESCHARNEW
ALLOCVALUESCURRNEW = ALLOCVALUESCURRNEW
RETURN = RETURN
LOOP AT RETURN.
WRITE: / RETURN-TYPE ,RETURN-MESSAGE.
ENDLOOP.
CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'
EXPORTING
WAIT =
IMPORTING
RETURN =
BY VENKAT -
Change documents for item class 015
Dear Experts,
Kindly guide me how to get change documents for notification item class 015.
THANKS & REGARDSHi,
All the changes in the documents will be located in CDPOS and where as the status change documents are located in JCDS.
What we have to do is to enter the correct object number.
i think by this you get the issue resolved.
Maybe you are looking for
-
Macbook Pro 17" early 2011 Discrete GPU failure
Hi, before I start, this is the serial of my MBP so you can identify the exact model. MBP 17" Core i7 2.2 Ghz serial number C0*******F92 My Macbook pro 17" (early 2011) started to freeze once a month, but then, it started getting worse. I narrowed d
-
Cluster Upgrade..
Hi Experts.. I have 11.1 Cluster with 10.2 Db with out ASM, My Plan is I want to upgrade the cluster to 11.2 and Convert DB to ASM. so the plan would be below 1.Upgrade 11.1 to 11.2 Grid (Rolling) 2.Upgrade DB to 11.2 3.Make sure db is good after Upg
-
NoClassDefFoundError once again!
Hello, I have a jar file Ineres.jar and in it i have a number of class files.One of them is Worldspan.class Now when I run the jar file I get the NoClassDefFoundError for Worldspan.class. I opened the jar file to see whether the Worldspan.class file
-
I have an iPad 64gB, will sync with a Windows XP computer, but will not sync with Windows 7 Dell laptop. iPod and iPhone 4 will without fail. But, after uninstalling all Apple software and reinstalled several times, iTunes will not detect my iPad. I
-
Where do i get an adobe reader software? I keep gettig a message to install this
I keep getting messages I need to install adobe reader . In I tune store I cant find it ?