Get change date of purchnage requesition item
Dear All,
I am using CDPOS and CDHDR tables to track the approval change date.
CDPOS returns the same change no for any chnages in same fields at diffrent dates.
When i pass same change to CDHDR , Iam getting same date for all purch Req.
Please help me to get Purch Req appproval date.
hi!
Have u created the change document properly and is the changes getting logged in the table or not.........
in transaction SCDO you need to create a change object and according to that...
check the change document in table from where the date if coming in its further characteristics of that table where the date is there.so that changes are logged for that date.
and then where you are changing u need to call the function module name generated in scdo transaction in your program after the changed make to logg the changes and then chek in cpos and cdhdr tables and use them to use changes.
example is....
wa-yh1316_name = 'Fff
wa-yh1316_age = '16'.
INSERT into ztest01 values wa.
IF sy-subrc = 0.
objectid = 'yh1316_name'.
CALL FUNCTION 'Z_TABLE_WRITE_DOCUMENT'
EXPORTING
objectid = OBJECTID
tcode = 'SE38'
utime = SY-UZEIT
udate = SY-DATUM
username = 'SAPDEV02'
* PLANNED_CHANGE_NUMBER = ' '
OBJECT_CHANGE_INDICATOR = 'I'
* PLANNED_OR_REAL_CHANGES = ' '
* NO_CHANGE_POINTERS = ' '
UPD_ICDTXT_Z_TABLE = 'I'
n_ztest01 = WA
o_ztest01 = WA
UPD_ZTEST01 = 'I'
tables
icdtxt_z_table = ICDTXT_Z_TABLE
ENDIF.
Similar Messages
-
How to get changed data in ALV in Web Dynpro for ABAP
METHOD on_data_check .
DATA:
node_spfli TYPE REF TO if_wd_context_node,
node_sflight TYPE REF TO if_wd_context_node,
itab_sflight2 TYPE if_display_view=>elements_sflight.
node_spfli = wd_context->get_child_node( name = if_display_view=>wdctx_spfli ).
node_sflight = node_spfli->get_child_node( name = if_display_view=>wdctx_sflight ).
CALL METHOD node_sflight->get_static_attributes_table
IMPORTING
table = itab_sflight2.
this code is ..get all data(changed and not changed)
but i want get changed data only, not all data.
how to get changed data?
Edited by: Ki-Joon Seo on Dec 27, 2007 6:04 AMHi,
To get only the changed data in the ALV grid of a WD, you need to capture the "ON_DATA_CHECK" of the ALV grid.
To this please do the following in the ALV initialization of the ALV table settings :
lr_table_settings->set_data_check(
IF_SALV_WD_C_TABLE_SETTINGS=>DATA_CHECK_ON_CELL_EVENT ).
You may also do this:
lr_table_settings->set_data_check( IF_SALV_WD_C_TABLE_SETTINGS=>DATA_CHECK_ON_CHECK_EVENT)
The above two ways would depend on when do you need to check for the changed data. If you want to check the data as soon as it is entered, then use the first method. Else, use the second method.
You need to register an EVENT HANDLER for this event.(You may do this in your VIEW or Component Controller).
In this Event handler, you would find an importing parameter R_PARAM which is a ref type of IF_SALV_WD_TABLE_DATA_CHECK.
The attribute T_MODIFIED_CELLS of this interface IF_SALV_WD_TABLE_DATA_CHECK will contain the modified cells of the ALV with the old & new values. -
How to get change date in Production Order ?
Dear Friends,
I want to know it, how to get change date in Production Order "Administration-TAB".
F1-Help, It is displayed with "Change date for Order Master". and Structure table "CAUFVD".
But, CAUFVD is not Transp. Table.
Which table should I read ?
Thanks in advance
Yamazaki-HDear Friend
Thank you for an answer.
It was settled.
Best regards. -
How to get changed data in SAP HR !
Hi Gurus,
I got a new project of HR and now I am stuck at one place. Please help me where I can find out the change history of HR master records.I have done all my research and I found CDHDR / CDPOS which didn't maintained these data.I got PCL4 table which is HR cluster table but it also didn't show me the changed data. Is there any specific table / report where I can get old and new records or so.
Each reply is appreciated.
Thanks,
DigamberCheck program RPUAUD00 .
Change pointers log data only on selected infotypes in order not to overload system. PCL4 is also selective in this respect but I am not sure about that, so you need to look for futher info in this regard.
Regards
Marcin -
Getting changed data back from editable ALV...
Hello Gurus,
I am working on ALV using standard ALV function module REUSE_ALV_GRID_DISPLAY. Now, To make the fields editale, I am using flag EDIT = 'X' in field catalog. This working fine.
Now, when the data is changed in ALV grid and user clicks on SAVE button that I have programmed in i_callback_usercommand, how can I get the changed data back from editable ALV so that I can change data in custom table ?
Please help.
Regards,
Rajesh.I see that the method CHECK_CHANGED_DATA is used. I am also doing it as follows. But how do I get the changed data back in table. There are no table parameters in
CALL METHOD REF_GRID->CHECK_CHANGED_DATA .
DATA: REF_GRID TYPE REF TO CL_GUI_ALV_GRID.
IF REF_GRID IS INITIAL.
CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
IMPORTING
E_GRID = REF_GRID.
ENDIF.
IF NOT REF_GRID IS INITIAL.
CALL METHOD REF_GRID->CHECK_CHANGED_DATA .
ENDIF.
Please guide -
Hi all.
I must modify a date when SAVE an item (date ACTUAL_FINISH).
I have implemented the interface /RPM/IF_EX_ITEM_API, but ther isn't methods for modifiy the datas of item. You have others BADI to suggest to make this?
Thanks!
VanessaYes, I have watched and it don't change the ITEM areas.
But I have resolved the problem in this way.
I have opened a enhancement in class RPMCL_ITEM_T_API, method UPDATE_ITEM_ATTRIBUTES and have varied the date.
Thanks of all!
Vanessa -
Job Publication doesnt get changed data in Job Posting through workflow.
Job Publication is not picking up the changed data in the Job Posting/Requisition through workflow.
When I am changing the data in Job Posting and release it manually the changed data gets reflected in Job Publication but if I am releasing the Job Posting trough WF(automatically) then the Publication doesnt pick up the data.The workflows are working fine in the system still the problem exists.
Thanks in advance for the reply.1-Log in portal with user id and pwd.
2-Create a requisition initially.
3-Create and release the Job posting(manually)
4-Create and release the Job Publication(manually).
5.Try editing the previous Job Posting and save it bu dont release the Job Posting manually.Now come to the personal page,when we again enter the same Job Posting ,the status of the Job Posting is set to "released" automatically by a Workflow.
6.Now if we proceed for the Job Publication and try Displaying it,the edited changes in the Job POsting is not displayed.
But if we have "released" the job posting manually then the changes are reflected in the Publication.
The user wants to use the Workflow scenario and also wants the edited changes to be taken up by the Publication.
Hope the following description helps out !
thanks in advance. -
RPM: Change DATA at SAVE for ITEM
Hi all.
I must modify a date when SAVE an item (date ACTUAL_FINISH).
I have implemented the interface /RPM/IF_EX_ITEM_API, but ther isn't methods for modifiy the datas of item. You have others BADI to suggest to make this?
Thanks!
VanessaYes, I have watched and it don't change the ITEM areas.
But I have resolved the problem in this way.
I have opened a enhancement in class RPMCL_ITEM_T_API, method UPDATE_ITEM_ATTRIBUTES and have varied the date.
Thanks of all!
Vanessa -
i want to change the date on a PO line item and the corresponding schedule line item to a specific date of my calculation. which userexit would be good to do this.
I am in 46C so donot have BADI's.
Thanks
KrisHere`s the program to find USER_EXIT ...
REPORT Z_exits.
*& Enter the transaction code that you want to search through in order
*& to find which Standard SAP User Exits exists.
*& Tables
TABLES : tstc, "SAP Transaction Codes
tadir, "Directory of Repository Objects
modsapt, "SAP Enhancements - Short Texts
modact, "Modifications
trdir, "System table TRDIR
tfdir, "Function Module
enlfdir, "Additional Attributes for Function Modules
tstct. "Transaction Code Texts
*& Variables
DATA : jtab LIKE tadir OCCURS 0 WITH HEADER LINE.
DATA : field1(30).
DATA : v_devclass LIKE tadir-devclass.
*& Selection Screen Parameters
SELECTION-SCREEN BEGIN OF BLOCK a01 WITH FRAME TITLE text-001.
SELECTION-SCREEN SKIP.
PARAMETERS : p_tcode LIKE tstc-tcode OBLIGATORY.
SELECTION-SCREEN SKIP.
SELECTION-SCREEN END OF BLOCK a01.
*& Start of main program
START-OF-SELECTION.
Validate Transaction Code
SELECT SINGLE * FROM tstc
WHERE tcode EQ p_tcode.
Find Repository Objects for transaction code
IF sy-subrc EQ 0.
SELECT SINGLE * FROM tadir
WHERE pgmid = 'R3TR'
AND object = 'PROG'
AND obj_name = tstc-pgmna.
MOVE : tadir-devclass TO v_devclass.
IF sy-subrc NE 0.
SELECT SINGLE * FROM trdir
WHERE name = tstc-pgmna.
IF trdir-subc EQ 'F'.
SELECT SINGLE * FROM tfdir
WHERE pname = tstc-pgmna.
SELECT SINGLE * FROM enlfdir
WHERE funcname = tfdir-funcname.
SELECT SINGLE * FROM tadir
WHERE pgmid = 'R3TR'
AND object = 'FUGR'
AND obj_name = enlfdir-area.
MOVE : tadir-devclass TO v_devclass.
ENDIF.
ENDIF.
Find SAP Modifactions
SELECT * FROM tadir
INTO TABLE jtab
WHERE pgmid = 'R3TR'
AND object = 'SMOD'
AND devclass = v_devclass.
SELECT SINGLE * FROM tstct
WHERE sprsl EQ sy-langu
AND tcode EQ p_tcode.
FORMAT COLOR COL_POSITIVE INTENSIFIED OFF.
WRITE:/(19) 'Transaction Code - ',
20(20) p_tcode,
45(50) tstct-ttext.
SKIP.
IF NOT jtab[] IS INITIAL.
WRITE:/(95) sy-uline.
FORMAT COLOR COL_HEADING INTENSIFIED ON.
WRITE:/1 sy-vline,
2 'Exit Name',
21 sy-vline ,
22 'Description',
95 sy-vline.
WRITE:/(95) sy-uline.
LOOP AT jtab.
SELECT SINGLE * FROM modsapt
WHERE sprsl = sy-langu AND
name = jtab-obj_name.
FORMAT COLOR COL_NORMAL INTENSIFIED OFF.
WRITE:/1 sy-vline,
2 jtab-obj_name HOTSPOT ON,
21 sy-vline ,
22 modsapt-modtext,
95 sy-vline.
ENDLOOP.
WRITE:/(95) sy-uline.
DESCRIBE TABLE jtab.
SKIP.
FORMAT COLOR COL_TOTAL INTENSIFIED ON.
WRITE:/ 'No of Exits:' , sy-tfill.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(95) 'No User Exit exists'.
ENDIF.
ELSE.
FORMAT COLOR COL_NEGATIVE INTENSIFIED ON.
WRITE:/(95) 'Transaction Code Does Not Exist'.
ENDIF.
Take the user to SMOD for the Exit that was selected.
AT LINE-SELECTION.
GET CURSOR FIELD field1.
CHECK field1(4) EQ 'JTAB'.
SET PARAMETER ID 'MON' FIELD sy-lisel+1(10).
CALL TRANSACTION 'SMOD' AND SKIP FIRST SCREEN.
Also check this link :
http://www.easymarketplace.de/userexit.php
Good luck !
Thanks
Message was edited by: Saquib Khan -
Tableview - get changed data event???
Hello all,
I have defined a popup with a tableview inside. Table is getting populated and has the folowing structure:
FLAG - checkbox - editable
DESCRIPTION - char50 - noneditable
DATE - date - noneditable
Is there a way of defining an event that would get triggered when the user has changed 1 row (clicked on the checkbox)? I need to update the field DATE when that happends.
I'm not using row selection at all.
Please let me know of any ideas,
Thanks
Alin Moigradeanu.Hi Alin,
When a check box is checked Get_V_XXXX method is triggered. Put below code in Get_V_XXXX so that server round trip would be triggered. And then you can write your code in appropriate method (may be DO_PREPARE_OUTPUT) to set date or else create an event handler method EN_ONROW_SELECTED and set date there.
CASE iv_property.
Set the field type
WHEN if_bsp_wd_model_setter_getter=>fp_fieldtype.
rv_value = cl_bsp_dlc_view_descriptor=>field_type_checkbox.
when if_bsp_wd_model_setter_getter=>fp_server_event.
rv_value = 'ROW_SELECTED'.
ENDCASE.
Please let me know if this helps.
Regards,
Bhushan -
ALV - Maybe a NEW problem to get changed data, after input from ALV
Hi all,
I have tried to search an existing post to solve this ALV problem, with key words 'ALV' and 'refresh', but I don't find the good one... so sorry if the problem have already been solved.
<u>An example of the problem and process should be more clear than words :</u>
1) CALL ALV
CALL METHOD grid1->set_table_for_first_display
EXPORTING
is_layout = gs_layout
is_variant = gs_variant "&see below
i_save = x_save "&see below
I_BYPASSING_BUFFER = 'X'
CHANGING
it_outtab = t_zppegam[]
it_fieldcatalog = GT_field_cat_entete[].
2) User edit values from cells from ALV.
For example, insert a new line with '+' button, and <u>fills each cells</u>.
3) The problem is that at the beginning of the PAI
there is a blank line into internal table t_zppegam,
instead of the line with the data filled into cells ALV by user
3') Internal table t_zppegam have the good data only if user clik on the button refresh of ALV, before go throw PAI.
Have any suggestions? Thank you for your help.
Best Regards,
Tony.Hi all,
I have just solved my problem...
I have found this one into SE38 / BCALV_GRID_EDIT fifth program.
data: l_valid(1) type c.
call method grid1->check_changed_data importing e_valid = l_valid.
Tony -
What is the best way to get/change data in R/3 from external interface?
Hi SAP gurus,
I have a problem to know what is the best technology to access and maintenance all SAP functionality and data too in R/3 systems.
Anyone know if connectors (.NET or JCO) are the only solution to manipulate all SAP system data or exist other way?
One thing more, what is the best connector, with more functionality?
E.g. The screen painter was made in C++ and is executed by user event in R/3 system, so would like to know if it's exist any way to do the same but replace the screen painter to another custom application?
RegardsHello Vitor
Not all functions and data are externally accessible. Only those business objects (e.g. like sales order, customer, material) for which BAPIs are available (transaction BAPI ) can be accessed via RFC.
Regards,
Uwe -
how to get on which date document item was change in purchase order?
RupaliHi,
If you just want the last change date for a PO item then you can directly use AEDAT field of EKPO table. That will give you the Purchasing document item change date.
But in case you want to track the changes for that item then you have to use CDHDR and CDPOS tables.
The object class (CDHDR-OBJECTCLAS) has to be passed as EINKBELEG and the object id (CDHDR-OBJECTID) has to be the purchase order number. Using these object ids you can check the item changes in CDPOS.
Thanks. -
Related Issue column in tracking list gets changed into drop down list in Infopath
Hi All,
i have created Tracking list in sharepoint 2010. which has column[Related issue - lookup for field in list[title] by default.
this field will have a multiple selection check box,2 buttons [Add and remove] and text box[which show the items selected in check box].
my issue is ,when i try to modify my list in Infopath. this column[Related issue] gets changed into drop down list item.Is is possible to get the same [old format] back. if so pls guide me..
I faced the same in Radio button,but i restored it by changing it into option button in Infopath
V JeanHi ,
The
multiple-selection list box control should be by design in InfoPath form, which is corresponding to the SharePoint "Related Issues" field, in my opinion, it cannot be converted to [old format] in InfoPath form, you may need to use SharePoint Designer 2010
to customize your Issue Tracking list NewForm.aspx/EditForm.aspx per the way in the following article, then "Related Issues" field will still be the old format,
http://www.cjvandyk.com/blog/Articles/How%20do%20I%20-%20Customize%20the%20NewForm.aspx%20or%20EditForm.aspx%20of%20my%20SharePoint%20list.aspx
Thanks
Daniel Yang
TechNet Community Support -
How to get the Delivery date in PO line Item in SAPScript
Hi Gurus,
I am working on PO Script (MEDRUCK). I copied the Standard to a Z form. ZMM_MEDRUCK, Now I need to print the the Header text at the end of MAIN window. I put Iem number along with the other line Item informmation like stanadrd PO Script MEDRUCK. I also want to show the delivey date with line Item, so Itried to use EKET-EINDT but it is returning the delivery date of last line item, means while printing the first line and other information it is showing the delivery date of the last line item, I tried with the PEKPO-EINDT it is also not working.
Can any body suggest me how i can get the delivery date for the respective line Item ?
Regards
Sonyactually your are picking up the correct data from Table EKET (EKET-EINDT) but your are printing that in item data loop for EKET might have already executed in your script and the header of that internal table consist the last entry of the table so for that. Fetch the delivery date explicite from the Table EKET when your in item level processing and print that.
For Example u can use this code.
To print you have write the this code in Script item level printing window "MAIN" window
Following perform is called to get the line item delivery date in PO
{/: PERFORM GET_DEL_DATE IN PROGRAM ZPerform_prog
/: USING &EKPO-EBELN&
/: USING &EKPO-EBELP&
/: CHANGING &DEL_DATE&
/: ENDPERFORM}
{* Dellivery date &DEL_DATE& }
write the below code in the Z program "ZPerform_prog"
{ FORM get_del_date TABLES in_par STRUCTURE itcsy
out_par STRUCTURE itcsy.
READ TABLE in_par WITH KEY 'EKPO-EBELN'.
CHECK sy-subrc = 0.
$_po_no = in_par-value.
READ TABLE in_par WITH KEY 'EKPO-EBELP'.
CHECK sy-subrc = 0.
$_po_line = in_par-value.
SELECT *
FROM eket UP TO 1 ROWS WHERE ebeln EQ $_po_no AND ebelp EQ $_po_line.
$_del_date = eket-eindt.
CALL FUNCTION 'CONVERT_DATE_TO_EXTERNAL'
EXPORTING
date_internal = eket-eindt
IMPORTING
date_external = $_del_date
EXCEPTIONS
date_internal_is_invalid = 1
OTHERS = 2.
READ TABLE out_par WITH KEY 'DEL_DATE'.
CHECK sy-subrc EQ 0.
out_par-value = $_del_date.
MODIFY out_par
INDEX sy-tabix.
CLEAR : $_po_no , $_po_line ,$_del_date.
ENDSELECT.
ENDFORM. "GET_DEL_DATE }
Maybe you are looking for
-
How do i install lightroom 4 with no cd drive on my macbook pro
How do I install Lightroom 4 on my Macbook Pro???? There's no cd drive. Is there a link from the website where I can download the software?
-
How do I create (or delete) a new tag for a website, so that its tag appears (or does not appear) every time I restart Firefox?
-
Quicktime 7 is finally fixed in Safari
Thank You Craig Seeman! I have been puzzled by the behavior I noticed in Safari since I upgraded to Tiger (Craig's article can be found here: Craig Seeman, "QuickTime 7 bug (logo w/question mark) - workaround", 01:59pm Jul 4, 2005 CDT ) I followed th
-
How to deploy OLAP Intelligence reports in Test/Prod?
Hi, We are on BO XI R2 SP5 integrated with SAP Netweaver BI 7.0,both machines on solaris servers. We have created OLAP intelligence reports using OLAP intelligence connections in development environment. We deployed these reports in Test environment
-
Transport target group and routes setting for 2 system landscape
Hi! I have 2 system landscape (DEV with 2 Clients, 100 CUST and 200 TEST and PRD with productvie client 100). Currently I have the standard TMS configuration for 2 systems (with tranport layers/routes ZDEV and SAP) . Now I have to set up my TMS sett