Change value table cdpos
Can we fetch changed values stored in cdpos related to fields eindt,menge, netpr.since a single table doesn't contain all these fields when i am using select statement for cdpos i am not getting proper idea about tabname in where condition .i can put the table name overthere but if more than one table is needed then how to use select query for cdpos .actually i am running shor of information.
in where condiiton u can write
tabname = 'VBAK' or
tabname = 'VBUK'
Similar Messages
-
Function module to find out the changed values from tables
What is the standard function module to find out the changed values (the old & new values) from tables in SAP ?
Hi Harish,
Please elaborate your requirement...
Please have a look on CDHDR AND CDPOS tables... it contains changed data... but all chages are not being tracked using it..
Try Below FMs as well..
For Header Level...
CALL FUNCTION 'CHANGEDOCUMENT_READ_HEADERS'
EXPORTING
date_of_change = cdhdr-udate
objectclass = cdhdr-objectclas
objectid = cdhdr-objectid
time_of_change = cdhdr-utime
username = cdhdr-username
TABLES
i_cdhdr = icdhdr
EXCEPTIONS
no_position_found = 1
OTHERS = 2.
For Item Level
CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
EXPORTING
changenumber = icdhdr-changenr
IMPORTING
header = cdhdr
TABLES
editpos = icdshw
EXCEPTIONS
no_position_found = 1
OTHERS = 2.
Hope it will solve your problem..
Thanks & Regards
ilesh 24x7
ilesh Nandaniya -
How to fetch the latest change number from CDPOS Table..?
Hi All,
im trying to fetch teh change number from CDPOS with the below select, but my requirement is always i wants to fetch the latest change number.
SELECT SINGLE objectid changenr FROM cdpos
INTO wa_cdpos
WHERE objectid = wa_e1kna1m-kunnr
AND ( tabname = 'KNA1' OR tabname = 'KNVV')
AND fname = 'AUFSD'
AND ( value_new = '01' OR value_new = space ).
Please let me know how to achive this..?
Ashoktry this way
" SELECT SINGLE objectid changenr FROM cdpos
" INTO wa_cdpos
SELECT objectid changenr FROM cdpos
INTO table t_cdpos
WHERE objectid = wa_e1kna1m-kunnr
AND ( tabname = 'KNA1' OR tabname = 'KNVV')
AND fname = 'AUFSD'
AND ( value_new = '01' OR value_new = space ).
SORT t_cdpos by changenr Descending.
read t_cdos index 1. "this is the latest change
Prabhudas -
How to check the value in Table CDPOS
Mostly I can't see the following fields value in the table CDPOS,
(1) CDPOS-VALUE_NEW
(2) CDPOS-VALUE_OLD
In fact, it should have values, so how to check the values, is there any special method needed?
Thanks and best regards.Ferry Lianto,
Thank you very much for your expertise.
It's helpful to get some contents via FM:CHANGEDOCUMENT_READ_POSITIONS, the problem is, to some kind of DELETION operation, the log in table CDPOS is very simple, I still don't know which contents were deleted even though I found records in table CDPOS.
Is there any other suggestions?
Thanks and best regards. -
Change document items (CDPOS)
hello boss
how to use these tables CDPOS and CDHDR , in that i had given the document no as sceduling agreement no but i didnot get result,
in that table waht is that object value and change doc object what is that
kindly tell me what is the use of table , how to enter in that table, what were ans we were expect from these table?Hi
CDHDR - Change Document Header table
CDPOS - Change Document Item table
Document number is the change document number, which you see when you goto display changes for any document or master data
To use this table you will need to know the document object. Document object a name give to various objects like PO, Material master etc. And object value is the number of you PO or scheduling agreement.
You can search by just entering scheduling agreement number in object value....but the search will take large time as index will not be accessed.
From this header table you wil get change document number. This number you take to CDPOS and then you will get the details of the changes done.
Hope this helps.
Regards,
Vishal -
Sales order changes history table
hi.........
i wann field for user name from sales order change history table. i hv tried CDHDR and CDPOS, but i cound't get the exact link in those tables.
will u tel me any other table, so that i can get this field by passing sales order ?Hi subharao,
Go though this program.
REPORT zmm_rep_poh NO STANDARD PAGE HEADING LINE-SIZE 250 LINE-COUNT 65.
TABLES: cdhdr,cdpos,ekko,ekpo.
TYPE-POOLS : slis.
DATA : t_fieldalv TYPE slis_t_fieldcat_alv.
DATA : import_variant LIKE disvariant.
DATA : xrepid LIKE sy-repid.
DATA : layout TYPE slis_layout_alv.
DATA: BEGIN OF itab OCCURS 0,
fname(40) ,
objectid(10),
changenr(10) ,
value_new(10),
value_old(10),
unit_old(10),
unit_new(10),
cuky_old(10),
cuky_new(10),
key(5),
username(10),
udate LIKE cdhdr-udate,
utime LIKE cdhdr-utime,
END OF itab.
DATA iebeln(15).
DATA: BEGIN OF itab1 OCCURS 0,
username(10),
udate LIKE cdhdr-udate,
changenr(10),
utime LIKE cdhdr-utime,
END OF itab1.
DATA: BEGIN OF itab3 OCCURS 0.
INCLUDE STRUCTURE itab.
DATA: END OF itab3.
DATA iekko LIKE ekko OCCURS 0 WITH HEADER LINE.
*Select Option
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
SELECT-OPTIONS : s_ebeln FOR ekpo-ebeln OBLIGATORY,
s_ekorg FOR ekko-ekorg NO INTERVALS DEFAULT '77IN',
s_bukrs FOR ekko-bukrs NO INTERVALS DEFAULT '77IN'.
SELECTION-SCREEN END OF BLOCK b1.
*INITIALIZATION.
for alv field catalog definition.
PERFORM initial_alv_fieldcat CHANGING t_fieldalv[].
START-OF-SELECTION.
SELECT * INTO iekko
FROM ekko
WHERE ebeln IN s_ebeln AND ekorg IN s_ekorg AND bukrs IN s_bukrs.
APPEND iekko.
ENDSELECT.
LOOP AT iekko.
SELECT username udate changenr utime
INTO (itab1-username,itab1-udate,
itab1-changenr,itab1-utime)
FROM cdhdr
WHERE objectid EQ iekko-ebeln.
APPEND itab1.
ENDSELECT.
ENDLOOP.
LOOP AT itab1.
SELECT objectid changenr fname value_old value_new unit_old unit_new
cuky_old cuky_new
INTO (itab-objectid, itab-changenr, itab-fname,
itab-value_old,itab-value_new ,itab-unit_old, itab-unit_new,
itab-cuky_old,itab-cuky_new)
FROM cdpos
WHERE changenr = itab1-changenr.
IF sy-subrc = 0.
itab-username = itab1-username.
itab-udate = itab1-udate.
itab-utime = itab1-utime.
APPEND itab.
ENDIF.
ENDSELECT.
ENDLOOP.
delete itab where fname eq 'KEY'.
sort itab by fname.
delete ADJACENT DUPLICATES FROM itab comparing all fields.
LOOP AT itab.
IF itab-fname = 'ZTERM'.
itab-fname = 'Payment Terms'.
MODIFY itab.
ELSEIF itab-fname = 'AEDAT'.
itab-fname = 'Date'.
MODIFY itab.
ELSEIF itab-fname = 'EFFWR'.
itab-fname = 'Effective Value'.
MODIFY itab.
ELSEIF itab-fname = 'MENGE'.
itab-fname = 'PO Quantity'.
MODIFY itab.
ELSEIF itab-fname = 'BRTWR'.
itab-fname = 'Gross Order Value'.
MODIFY itab.
ELSEIF itab-fname = 'NETWR'.
itab-fname = 'Net Order Value'.
MODIFY itab.
ELSEIF itab-fname = 'PROCSTAT'.
itab-fname = 'Purchasing Doc processing state'.
MODIFY itab.
ELSEIF itab-fname = 'FRGSX'.
itab-fname = 'Release Strategy'.
MODIFY itab.
ELSEIF itab-fname = 'FRGKE'.
itab-fname = 'Release Ind. Pur. Doc'.
MODIFY itab.
ELSEIF itab-fname = 'ZBD1P'.
itab-fname = 'Cash Discount Perc 1'.
MODIFY itab.
ELSEIF itab-fname = 'ZBD1T'.
itab-fname = 'Cash Discount Days'.
MODIFY itab.
ELSEIF itab-fname = 'ZBD2T'.
itab-fname = 'Cash Discount Days'.
MODIFY itab.
ELSEIF itab-fname = 'KEY'.
itab-fname = 'Item Entered'.
MODIFY itab.
ENDIF.
ENDLOOP.
PERFORM alv_grid_display.
*& Form alv_grid_display
text
--> p1 text
<-- p2 text
FORM alv_grid_display .
DATA : gt_event TYPE slis_t_event.
DATA : dbcnt TYPE i.
DATA : dbcntr(10) TYPE c.
DATA : title(100) TYPE c.
CLEAR : dbcnt,dbcntr,title.
DESCRIBE TABLE itab LINES dbcnt.
dbcntr = dbcnt.
CONCATENATE 'NO.OF ENTRIES : ' dbcntr INTO title SEPARATED BY space.
sy-title = title.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
i_callback_program = sy-repid
is_layout = layout
it_fieldcat = t_fieldalv[]
i_save = 'A'
i_grid_title = 'Purchase Order Amendment Details'
TABLES
t_outtab = itab
EXCEPTIONS
program_error = 1
OTHERS = 2.
ENDFORM. " alv_grid_display
*& Form initial_alv_fieldcat
text
<--RT_FIELDCAT text
FORM initial_alv_fieldcat CHANGING rt_fieldcat TYPE slis_t_fieldcat_alv.
DATA : ls_fieldcat TYPE slis_fieldcat_alv .
DATA : cntr TYPE i VALUE 1.
CLEAR ls_fieldcat.
cntr = cntr + 1.
ls_fieldcat-col_pos = 1.
ls_fieldcat-fieldname = 'USERNAME'.
ls_fieldcat-seltext_l = 'UNAME'.
ls_fieldcat-do_sum = 'X'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
cntr = cntr + 1.
ls_fieldcat-col_pos = 2.
ls_fieldcat-fieldname = 'UDATE'.
ls_fieldcat-seltext_l = 'UDATE'.
ls_fieldcat-do_sum = 'X'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
cntr = cntr + 1.
ls_fieldcat-col_pos = 3.
ls_fieldcat-fieldname = 'UTIME'.
ls_fieldcat-seltext_l = 'UTIME'.
ls_fieldcat-do_sum = 'X'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
cntr = cntr + 1.
ls_fieldcat-col_pos = 4.
ls_fieldcat-fieldname = 'OBJECTID'.
ls_fieldcat-seltext_l = 'PO Number'.
ls_fieldcat-do_sum = 'X'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
cntr = cntr + 1.
ls_fieldcat-col_pos = 5.
ls_fieldcat-fieldname = 'FNAME'.
ls_fieldcat-seltext_l = 'Field Name'.
ls_fieldcat-do_sum = 'X'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
cntr = cntr + 1.
ls_fieldcat-col_pos = 6.
ls_fieldcat-fieldname = 'VALUE_OLD'.
ls_fieldcat-seltext_l = 'Old Value'.
ls_fieldcat-do_sum = 'X'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
cntr = cntr + 1.
ls_fieldcat-col_pos = 7.
ls_fieldcat-fieldname = 'VALUE_NEW'.
ls_fieldcat-seltext_l = 'New Value '.
ls_fieldcat-do_sum = 'X'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
cntr = cntr + 1.
ls_fieldcat-col_pos = 8.
ls_fieldcat-fieldname = 'UNIT_OLD'.
ls_fieldcat-seltext_l = 'Old Unit'.
ls_fieldcat-do_sum = 'X'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
cntr = cntr + 1.
ls_fieldcat-col_pos = 9.
ls_fieldcat-fieldname = 'UNIT_NEW'.
ls_fieldcat-seltext_l = 'New Unit'.
ls_fieldcat-do_sum = 'X'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
cntr = cntr + 1.
ls_fieldcat-col_pos = 10.
ls_fieldcat-fieldname = 'CUKY_OLD'.
ls_fieldcat-seltext_l = 'Old Cuky'.
ls_fieldcat-do_sum = 'X'.
APPEND ls_fieldcat TO rt_fieldcat.
CLEAR ls_fieldcat.
cntr = cntr + 1.
ls_fieldcat-col_pos = 11.
ls_fieldcat-fieldname = 'CUKY_NEW'.
ls_fieldcat-seltext_l = 'New Cuky'.
ls_fieldcat-do_sum = 'X'.
APPEND ls_fieldcat TO rt_fieldcat.
layout-zebra = 'X'.
layout-colwidth_optimize = 'X'.
ENDFORM. " initial_alv_fieldcat
*********Rewards some points.
Rgds,
P.Naganjana Reddy -
Dynamically changing internal table in 'gui_download'
Hi Experts,
i have to download 4 internal tables, each with different structures, to the presentation server using 'gui_download', based on which radio-button is selected in the selection screen. I am hoping to use a single 'form' and 4 'perform' calls. how can I dynamically change the tables in the 'gui_download' function modules.
plz help.....................Hi ,
Build the field catalog dynamically based on the internal table structure based on the radio button selected.Use the dynamic internal table generated from the filedcatalog and use in GUI_DOWNLOAD.
See the below code:
*& Report ZRAJESH02
REPORT zrajesh02.
Dynamic internal table
TYPE-POOLS: slis.
FIELD-SYMBOLS: <dyn_table> TYPE STANDARD TABLE,
<dyn_wa>.
DATA: alv_fldcat TYPE slis_t_fieldcat_alv,
it_fldcat TYPE lvc_t_fcat.
DATA: lv_monate TYPE f,
lv_months TYPE i,
lv_date TYPE sy-datum,
p_check1 type n value '1'.
lv_date = sy-datum + 360.
SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
PARAMETERS: p_check TYPE c.
SELECTION-SCREEN END OF BLOCK b1.
START-OF-SELECTION.
CALL FUNCTION 'MONTHS_BETWEEN_TWO_DATES'
EXPORTING
i_datum_bis = lv_date
i_datum_von = sy-datum
i_kz_incl_bis = ' '
IMPORTING
e_monate = lv_monate.
lv_months = lv_monate.
PERFORM f_fcat USING 'AUFNR' 'CHAR' '12'.
PERFORM f_fcat USING 'POSNR' 'CHAR' '06'.
while p_check1 LE p_check.
PERFORM f_fcat USING p_check1 'CHAR' '1'.
p_check1 = p_check1 + 1.
endwhile.
PERFORM build_dyn_itab.
LOOP AT <dyn_table> INTO <dyn_wa>.
WRITE:/ <dyn_wa>.
ENDLOOP.
FORM f_fcat USING fieldname dattyp length.
DATA:wa_it_fldcat TYPE lvc_s_fcat.
CLEAR wa_it_fldcat.
wa_it_fldcat-fieldname = fieldname.
wa_it_fldcat-datatype = dattyp.
wa_it_fldcat-intlen = length.
APPEND wa_it_fldcat TO it_fldcat .
ENDFORM. "f_fcat
*& Form build_dyn_itab
text
FORM build_dyn_itab.
DATA: new_table TYPE REF TO data,
new_line TYPE REF TO data.
wa_it_fldcat TYPE lvc_s_fcat.
CLEAR wa_it_fldcat.
wa_it_fldcat-fieldname = 'AUFNR'.
wa_it_fldcat-datatype = 'CHAR'.
wa_it_fldcat-intlen = 12.
APPEND wa_it_fldcat TO it_fldcat .
CLEAR wa_it_fldcat.
wa_it_fldcat-fieldname = 'POSNR'.
wa_it_fldcat-datatype = 'CHAR'.
wa_it_fldcat-intlen = 6.
APPEND wa_it_fldcat TO it_fldcat .
Create dynamic internal table and assign to FS
CALL METHOD cl_alv_table_create=>create_dynamic_table
EXPORTING
it_fieldcatalog = it_fldcat
IMPORTING
ep_table = new_table.
ASSIGN new_table->* TO <dyn_table>.
Create dynamic work area and assign to FS
CREATE DATA new_line LIKE LINE OF <dyn_table>.
ASSIGN new_line->* TO <dyn_wa>.
ENDFORM. "build_dyn_itab
Thanks,
Rajesh. -
Changing the table name while drill down at the dashboard query
I have a DAY fact table that has about 1B rows.
The purpose of this table is to store on hand quantity for each item per day.
On the presentation layer I have a dashboard that will display average on hand qty per year and then user can drill down to quarter/month/week and then by day level to see the actual value at evey level.
Its hard to run aggregation on fly as all my 3 TEMP tablespace 32gb each filled and then I get error can not extent TEMP file.
So I thought I will do the aggregation at the database level and store the aggregated data in another table. So at first dashborad will read this new aggregated table to display qty at yearly. As soon as user drill down to quarter the dashbord should query the actual DAY fact table by filtering for specific year and quarter.
IS it possible? Can I change the table name while I drill down to lower level?
Thanks in advance.Hi use,
Yes. This is possible in OBIEE. You need to use Action Links to have navigation between reports. The main idea is to have 2 analysis. One with your aggregated data by year (using your aggregated table), and another one with the rest of the hierarchy and data (using normal fact table)
You add an action link on this report, that can navigate to the second report. showing "the details" (in your case would be the rest of the time dimension).
Please refer to http://www.rittmanmead.com/2010/07/obiee-11gr1-action-framework-and-conditions/ for actions links.
Another way is to create 2 analysis, then go to the 2nd analysis, and filter the column year as "Is based on results of other analysis" and you select there the first analysis. In this case when you click on the year in the first analysis, this value will be passed to the second analysis so you can filter the rest of the hierarchy based on the year you clicked on the first analysis.
If helpful, assign points.
J. -
How to add a value table to a field in database table?
Dear Experts,
Normally a value table can be added in the domain.
And the field of the database table will have the value table, to which this domain is assigned.
My question is.. Is it possible to assign a value table to any field ina database table, directly?(i.e. <b>without assigning to that domain</b>)
If yes.. please let me know the <b>step-by-step</b> procedure clearly.
Thanks to U in advance.Hi sr,
1. what is the purpose of your value table ?
-- so that the user can select values
from some master table , for that field !!!!
2. This is done by
CHECK TABLE (foreign key concept)
(and not value table)
3. When we create a check table for a field,
then
some DEFAULT table is PROPOSED
. that DEFAULT table is nothing
but PICKED up from the domain of that field,
and shown from the value of VALUE TABLE.
(we can change it however)
4. so for your purpose,
just create a CHECK TABLE.
regards,
amit m. -
Hi all,
I m using interactive ALV grid with 1 column editable with some default values, When i m clicking on SAVE button, only the values which are changed by the user in that column are coming in the internal table, & the default values are automatically deleted by the following code....
But my requirement is to save all the default & changed values of the ALV column....
<b>Help me out & have ur points.</b>
DATA ref1 TYPE REF TO cl_gui_alv_grid.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
importing
e_grid = ref1
CALL METHOD ref1->check_changed_data
IMPORTING
e_valid =
CHANGING
c_refresh = 'X'Pradeep,
When ur doing the CHECK_CHANGED_DATA, u ll get the edited values inside this callback sub -routine only. so here u trap the values those are changed ( thats after editing).
Once the control goes back to the original program ( calling prog ) , u ll end up with ur old data ( before editing).
you ll have to handle that explictly in your code, or shift to OO alv grid like this -
REPORT ZSKC_GRID.
TABLES : EQUI.
DATA : BEGIN OF T_EQUI OCCURS 0,
EQUNR TYPE EQUI-EQUNR,
AENAM TYPE EQUI-AENAM,
END OF T_EQUI.
DATA : T_FCAT TYPE LVC_T_FCAT,
G_FCODE TYPE SY-UCOMM.
DATA : G_GRID TYPE REF TO CL_GUI_ALV_GRID.
SELECT-OPTIONS: S_EQUNR FOR EQUI-EQUNR.
START-OF-SELECTION.
* get data.
PERFORM SUB_GET_DATA.
* Populate catalog.
PERFORM SUB_BUILD_CATALOG CHANGING T_FCAT.
* Display the grid.
PERFORM SUB_SHOW_GRID.
CALL SCREEN 9001.
*& Form SUB_GET_DATA
* Get data
FORM SUB_GET_DATA .
SELECT EQUNR AENAM
FROM EQUI
INTO TABLE T_EQUI
WHERE EQUNR IN S_EQUNR.
IF SY-SUBRC NE 0.
* Give some message if needed
ENDIF.
ENDFORM. " SUB_GET_DATA
*& Form SUB_BUILD_CATALOG
* text
* <--P_T_FCAT text
FORM SUB_BUILD_CATALOG CHANGING PT_FCAT TYPE LVC_T_FCAT.
DATA : WA_CAT TYPE LVC_S_FCAT.
CLEAR WA_CAT.
WA_CAT-FIELDNAME = 'EQUNR'.
WA_CAT-TABNAME = 'T_EQUI'.
WA_CAT-REF_FIELD = 'EQUNR'.
WA_CAT-REF_TABLE = 'EQUI'.
APPEND WA_CAT TO PT_FCAT.
CLEAR WA_CAT.
WA_CAT-FIELDNAME = 'AENAM'.
WA_CAT-TABNAME = 'T_EQUI'.
WA_CAT-REF_FIELD = 'AENAM'.
WA_CAT-REF_TABLE = 'EQUI'.
WA_CAT-EDIT = 'X'.
APPEND WA_CAT TO PT_FCAT.
ENDFORM. " SUB_BUILD_CATALOG
*& Form SUB_SHOW_GRID
* Show grid
FORM SUB_SHOW_GRID .
* create the Grid Object.
CREATE OBJECT G_GRID
EXPORTING
I_PARENT = CL_GUI_CONTAINER=>SCREEN0
EXCEPTIONS
ERROR_CNTL_CREATE = 1
ERROR_CNTL_INIT = 2
ERROR_CNTL_LINK = 3
ERROR_DP_CREATE = 4
OTHERS = 5.
CHECK SY-SUBRC EQ 0.
* Display contents,
CALL METHOD G_GRID->SET_TABLE_FOR_FIRST_DISPLAY
CHANGING
IT_OUTTAB = t_equi[]
IT_FIELDCATALOG = t_fcat
EXCEPTIONS
INVALID_PARAMETER_COMBINATION = 1
PROGRAM_ERROR = 2
TOO_MANY_LINES = 3
others = 4.
ENDFORM. " SUB_SHOW_GRID
*& Module STATUS_9001 OUTPUT
* text
MODULE STATUS_9001 OUTPUT.
SET PF-STATUS 'PF_9001'.
SET TITLEBAR 'TITLE_9001'.
ENDMODULE. " STATUS_9001 OUTPUT
*& Module USER_COMMAND_9001 INPUT
* text
MODULE USER_COMMAND_9001 INPUT.
CASE G_FCODE.
WHEN 'BACK' OR 'CANC' OR 'EXIT'.
LEAVE TO SCREEN 0.
WHEN 'HAVE'.
* After editing everything user presses this button.
PERFORM SUB_GET_EDITED_DATA.
ENDCASE.
ENDMODULE. " USER_COMMAND_9001 INPUT
*& Form SUB_GET_EDITED_DATA
* Read the ALV grid and get current internal table.
FORM SUB_GET_EDITED_DATA .
DATA : T_OLD_DATA LIKE T_EQUI OCCURS 0.
* hold the old values if u need them.
t_old_data[] = t_equi[].
* This will update the global internal table.
CALL METHOD G_GRID->CHECK_CHANGED_DATA.
* Now t_equi have changed here. u have the old data in the T_OLD_DATA.
BREAK-POINT.
ENDFORM. " SUB_GET_EDITED_DATA
Create a blank screen called 9001. and Pf-staus has a buton with fcode "HAVE". ( alongwith BACK canc exit). -
Log Entries in Table CDPOS with a Z File Append in VBAK
Hi
I'm trying to log changes of a new field appended in VBAK in table CDPOS, I already marked the data element of this new field with the checkbox for changes, but when i make some changes in VA02 on this new file, i can't see the changes in the modifications log.
Do i have to do any other thing in order to see the changes of this new field ??.
Regards
SorayaHi,
I think for logging the changes the table should have the <b>check box Log data changes under technical settings</b> checked.This check box is not selected for VBAK. Selecting the Change document checkbox at the data element level will mark that field in the table for logging.
I Assume in order to log changes both the check boxes at table level and dataelement level need to be selected.
Hope this helps. -
Delta Extractor Is not picking changed values
Hi All,
When the values or texts in a PO are changed the delta extractor is picking up the changed values as deltas (provided the changes where done in PO <b>Header</b> or <b>Item Overview</b>) but when a PO values or text that are changed in the <b>Item Details</b> the delta mechanism is not picking up the changed values (the fields whose values are changed were initially not in the LO Cockpit Extractor they where added and the values to these fields are populated using an ABAP Program)
Is there a reason that Delta mechanism doesn't work for fields that are not delivered by the SAP Extractor or do we need to modify the code in order to collect these changed values by Delta Mechanism (Direct Delta as the Update Mode).
Please let me know if anybody came across the same problem .
Thank you all in advance.
Regards,
DhanamHi,
this is another story.....
You'll have to
- enhance the PO items table (EKPO) with your fields
- activate the right customer exit for purchase orders (search in SMOD; or in this forum..) and populate your fields during this exit. if the field needs to be maintainable by the R3 user, you'll have find a SAP exit (again SMOD) in order customize one of the screen and populate your fields in R3.
- use another exit to populate the new fields to LO delta queue
- enhance your BW extract structure (done)
- and so on...
As you can imagine, the above get quite more complicated (an expert in MM shall support you) and it needs to be approved by the PM since you'll modify R3.
But that's basically it!
hope this helps...
Olivier. -
How to find row changes in table
How can we find row changes in table and i want o find out any significant change in the row information in 11g db.
hi thanks for ur help
but i had one more problem
already i tried this one
at particular time i am getting that record
........................ col1 col2 col3 col4 col5
3/17/2012 11:55 AM 10 20 30 40 50
3/17/2012 12:00 PM 0 0 0 0 0
3/17/2012 12:05 PM 12 22 32 42 52
see here at 12:00 PM i got the null or zero values.so instead of null values i need consecutive record means below row like 12:05 row values i need
output is:
.......................... col1 col2 col3 col4 col5
3/17/2012 11:55 AM 10 20 30 40 50
3/17/2012 12:00 PM 12 22 32 42 52
3/17/2012 12:05 PM 12 22 32 42 52
its very urgent plz help to me.
Edited by: 913672 on Mar 17, 2012 6:35 AM
Edited by: 913672 on Mar 17, 2012 6:36 AM
Edited by: 913672 on Mar 17, 2012 6:36 AM -
How to Change S012 Table Structure ..?
Hi MM Experts,
How to copy and how to create new structure and new caracterstics and MAterial type from table S012 .
T-code for execute MCE1 .
How to Change S012 Table Structure ..?
Regards,
Anthyodaya.
Edited by: anthyodaya Reddy Nagaram on Jul 7, 2010 12:44 PMAnthyodaya,
Values? Your newly created infostructure will have no data until you define how to update the underlying tables, and then execute the update.
You need to be a bit more specific. Are you saying that you attempted a 1-to-1 copy of S012 into a new structure, and you got a failure? What failure? What error message? If you have saved your new infostructure, you can run the consistency utility to see what if anything is missing/misconfigured MCSCHECK.
If you have no experience with infostructures, I suggest you enlist the services of an experienced person to assist you. Especially if you intend to implement non-standard characteristics and values, this can be a complex task.
SAP help in this area
Creating new IS
http://help.sap.com/saphelp_erp60_sp/helpdata/en/c1/3754f7449a11d188fe0000e8322f96/frameset.htm
Purchasing Info system
http://help.sap.com/saphelp_erp60_sp/helpdata/en/c1/375504449a11d188fe0000e8322f96/frameset.htm
Rgds,
DB49 -
Changed value in Appent not written to change document
Hello,
I have added some fields to a table using an append. During test I realized that the function that creates the change document does not consider appended fields (I debugged deep into some SAP function to see why). This is a problem now. All changed values must be written into the change document. Did anybody have the same problem? Any ideas how to solve this?
Thanks, Oliver PlohmannHi,
For the customer data element check the Change document check box is selected or not. It should be selected then only the changes captured
Se11 - > Data type - > enter Data element name
In the Attributes tick the check box Change document.
Hope this will work
Cheers,
Sasi
Maybe you are looking for
-
I can't add the contacts from Microsoft to the OS X 10.10 It makes me can not know the name of the people I talking to on message, mail.
-
Re: Camileo S10 - very slow when SD card is in.
My Camileo S10 was working fine for months with my 8GB ScanDisk Ultra II memory card. Now, when I start the camera it is very slow to start and to operate (a few seconds delay for each operations). When I remove the SD card and trun on the camera, it
-
Java's New "very high" Security Mode Can't Protect You from Malware Fix that was supposed to make malware attacks harder can be easily circumvented. http://arstechnica.com/security/2013/01/javas-new-very-high-security-mode-cant-protect-you-from-malw.
-
Dealing with HP Email with this issue has been ridiculously frustrating. Background: This problem occured about a year ago, after dealing with horrible customer service emails for two weeks I was finally able to ship it in and get it repaired, appara
-
Attn Tom Van Lint - re Context Search
For some reason I cannot post a response to the earlier thread Anyway here's the solution I have. It uses the freeform SQL to provide a text search on the document attribute // $Header$ // Copyright (c) 2000 Oracle Corporation package ifs.pm.examples