Report for PO changes
hii,
is there any report or txn by which i can know the details of any changes made in PO.
abhishek
*Check the following code .
REPORT ZPOCHANGE LINE-SIZE 132 NO STANDARD PAGE HEADING
LINE-COUNT 065(001)
MESSAGE-ID VR.
TABLES: DD04T,
CDHDR,
CDPOS,
DD03L,
DD41V,
T685T,
VBPA,
TPART,
KONVC,
EKKO.
SELECT-OPTIONS: XUDATE FOR CDHDR-UDATE,
XNAME FOR CDHDR-USERNAME,
XEBELN FOR EKKO-EBELN,
XLIFNR FOR EKKO-LIFNR.
SELECTION-SCREEN SKIP.
TEXT-001 - Sorting Sequence
SELECTION-SCREEN BEGIN OF BLOCK BLK1 WITH FRAME TITLE TEXT-001.
PARAMETERS: SUDATE RADIOBUTTON GROUP R1,
SNAME RADIOBUTTON GROUP R1,
SOBID RADIOBUTTON GROUP R1.
SELECTION-SCREEN END OF BLOCK BLK1.
DATA: WFLAG,
WCHANGENR LIKE CDHDR-CHANGENR.
DATA: INDTEXT(60) TYPE C.
DATA: BEGIN OF ICDHDR OCCURS 50.
INCLUDE STRUCTURE CDHDR.
DATA: END OF ICDHDR.
DATA: BEGIN OF ICDSHW OCCURS 50.
INCLUDE STRUCTURE CDSHW.
DATA: END OF ICDSHW.
DATA: BEGIN OF EKKEY,
EBELN LIKE EKET-EBELN,
EBELP LIKE EKET-EBELP,
ETENR LIKE EKET-ETENR,
END OF EKKEY.
DATA: BEGIN OF ITAB OCCURS 50,
BEGIN OF EKKEY,
EBELN LIKE EKET-EBELN,
EBELP LIKE EKET-EBELP,
ETENR LIKE EKET-ETENR,
END OF EKKEY,
CHANGENR LIKE CDHDR-CHANGENR,
UDATE LIKE CDHDR-UDATE,
UTIME LIKE CDHDR-UTIME,
USERNAME LIKE CDHDR-USERNAME,
CHNGIND LIKE CDSHW-CHNGIND,
FTEXT LIKE CDSHW-FTEXT,
OUTLEN LIKE CDSHW-OUTLEN,
F_OLD LIKE CDSHW-F_OLD,
F_NEW LIKE CDSHW-F_NEW,
END OF ITAB.
DATA: OLD_OBJECTID LIKE CDHDR-OBJECTID.
FIELD-SYMBOLS: <F_OLD>, <F_NEW>.
SELECT * FROM EKKO WHERE EBELN IN XEBELN AND
LIFNR IN XLIFNR.
CLEAR CDHDR.
CLEAR CDPOS.
CDHDR-OBJECTCLAS = 'EINKBELEG'.
CDHDR-OBJECTID = EKKO-EBELN.
PERFORM GETCHGDOCS.
ENDSELECT.
IF SUDATE = 'X'.
SORT ITAB BY UDATE EKKEY-EBELN CHANGENR EKKEY-EBELP
EKKEY-ETENR.
ELSEIF SNAME = 'X'.
SORT ITAB BY USERNAME EKKEY-EBELN CHANGENR EKKEY-EBELP
EKKEY-ETENR.
ELSE.
SORT ITAB BY EKKEY-EBELN CHANGENR EKKEY-EBELP EKKEY-ETENR.
ENDIF.
LOOP AT ITAB.
CLEAR: INDTEXT, EKKEY.
CASE ITAB-CHNGIND.
WHEN 'U'.
INDTEXT(50) = ITAB-FTEXT.
INDTEXT+51 = TEXT-020.
CONDENSE INDTEXT.
WHEN 'D'.
INDTEXT = TEXT-021.
WHEN 'E'.
INDTEXT(5) = ITAB-FTEXT.
INDTEXT+51 = TEXT-021.
CONDENSE INDTEXT.
WHEN 'I'.
INDTEXT = TEXT-022.
ENDCASE.
RESERVE 4 LINES.
IF WCHANGENR NE ITAB-CHANGENR.
WCHANGENR = ITAB-CHANGENR.
EKKEY = ITAB-EKKEY.
WRITE:/ ITAB-UDATE UNDER 'Change Date',
ITAB-UTIME UNDER 'Time',
ITAB-USERNAME UNDER 'User Name',
ITAB-EKKEY-EBELN UNDER 'PO No',
ITAB-EKKEY-EBELP UNDER 'Item',
ITAB-EKKEY-ETENR UNDER 'Sch No',
INDTEXT UNDER 'Changes'.
ELSEIF ITAB-EKKEY NE EKKEY.
WRITE:/ ITAB-EKKEY-EBELP UNDER 'Item',
ITAB-EKKEY-ETENR UNDER 'Sch No',
INDTEXT UNDER 'Changes'.
ENDIF.
CASE ITAB-CHNGIND.
WHEN 'U'.
ASSIGN ITAB-F_OLD(ITAB-OUTLEN) TO <F_OLD>.
ASSIGN ITAB-F_NEW(ITAB-OUTLEN) TO <F_NEW>.
WRITE: / TEXT-023 UNDER 'Changes',
<F_OLD>.
WRITE: / TEXT-024 UNDER 'Changes',
<F_NEW>.
WHEN 'E'.
ASSIGN ITAB-F_OLD(ITAB-OUTLEN) TO <F_OLD>.
WRITE: TEXT-023 UNDER 'Changes',
<F_OLD>.
ENDCASE.
SKIP.
ENDLOOP.
TOP-OF-PAGE.
WRITE:/ SY-DATUM,SY-UZEIT,
50 'P U R C H A S E O R D E R H I S T O R Y',
120 'Page', SY-PAGNO.
WRITE: / SY-REPID,
60 'Purchase Orders Changes'.
SKIP.
ULINE.
IF SUDATE = 'X'.
WRITE:/001 'Change Date',
014 'Time',
024 'User Name',
038 'PO No',
050 'Item',
057 'Sch No',
065 'Changes'.
ELSEIF SOBID = 'X'.
WRITE:/001 'PO No',
013 'Item',
020 'Sch No',
028 'Change Date',
041 'Time',
051 'User Name',
065 'Changes'.
ELSE.
WRITE:/001 'User Name',
015 'Change Date',
028 'Time',
038 'PO No',
050 'Item',
057 'Sch No',
065 'Changes'.
ENDIF.
ULINE.
FORM GETCHGDOCS.
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.
CHECK SY-SUBRC EQ 0.
DELETE ICDHDR WHERE CHANGE_IND EQ 'I'.
CHECK NOT ICDHDR[] IS INITIAL.
LOOP AT ICDHDR.
CHECK ICDHDR-UDATE IN XUDATE.
CHECK ICDHDR-USERNAME IN XNAME.
CALL FUNCTION 'CHANGEDOCUMENT_READ_POSITIONS'
EXPORTING CHANGENUMBER = ICDHDR-CHANGENR
IMPORTING HEADER = CDHDR
TABLES EDITPOS = ICDSHW
EXCEPTIONS NO_POSITION_FOUND = 1
OTHERS = 2.
CHECK SY-SUBRC EQ 0.
LOOP AT ICDSHW.
CHECK ICDSHW-TEXT_CASE EQ SPACE.
MOVE-CORRESPONDING ICDSHW TO ITAB.
MOVE-CORRESPONDING ICDHDR TO ITAB.
MOVE ICDSHW-TABKEY+3 TO ITAB-EKKEY.
APPEND ITAB.
ENDLOOP.
ENDLOOP.
ENDFORM.
END OF PROGRAM
Regards
Siddharth
Similar Messages
-
Report for abserving changes made to the customer master and moniter
Report for abserving changes made to the customer master and moniter and detail
Please send with t. code.Hi Dhari,
Well the requirement seems very simple but its not as simple as it looks.
i have an idea not sure whether it gonna work or not. you need to build a history cube as if i understand your requirement then for any selected period you wanna see the change in wage type or pay rate for each employee if any.
1. pick up an cube that builds on emp transaction data.
2. add the 0empoyee Md, wage type and pay rate from MD to the cube and fill the cube
3.so now every day or in scheduled time interval the MD will load and the corresponding the TD will be loaded to the cube.
4. create a info object say indicator and add it to the cube
5.while loading the data to the cube everyday in tranformation check if for same employee there is a change or not in the wage type and pay rate. If so set the indicator to 1.
4.now build one more cube for holding the changed records from this cube and call it say zhrchange
5. now pull the date, year and related emplyee information for the emplyee to the zhrchange for those with indicator 1.
6. before the next load happen, rememrbe to set the indicator to 0 before checking the conditoin in the transformation routine , so that only if the conditoin satisfy then only it will be 1 else it will be 0.
now the cube zhrchange has all the changed records with time stamp and you can base your query on that to get the changed values in specific time period
hope this helps. -
Customized report for BOM changes
Hi PP Gurus,
My client is not having ECM. he want to create one Z report for BOM changes. I checked tables MAST, STKO, STPO, CDPOS and CDHDR. In CDPOS I can see replaced component and replced quantity. But if I deleted any component or inserted any new component I can not see this in any table. Please suggest me how can I track such changes without ECM.
Jayesh Narvankar
SAP PPDear ,
You can try to develope a report with the help of you ABAPer with following FM /BAPI :
CSAP_MAT_BOM_MAINTAIN
CSAP_MAT_BOM_OPEN
CSAP_BOM_ITEM_MAINTAIN
CSAP_MAT_BOM_CLOSE
Refer this experts theards on this issues : Deletion of BOM item using BAPI/FM
If you need to go ahead with ECM , you refer our earlier posting in the same issue :
Changes in Production Orders
Regards
JH -
Report for the changes made in Purchase Order
Hi Friends,
In my location, changes are made to the purchase orders as and when required. Is there any report which shows the changes made to the Purchase Orders?? I am aware of the Item changes option in the Purchase Order.
Thanks in advance..
Regards,
PhaniHi,
You have to develope an own ABAP report for this, based on the change tables CDHDR and CDPOS
CDHDR - Header Change
CDPOS - Item Change
EREV - Version Change
Check the link
Purchase order change log
Regards
KK
Edited by: Kishore Kumar Galla on Apr 5, 2010 1:16 PM -
Hi All
Is there any standard report for getting the change history of PO's?
Regards.Hi U can use this FM.
ME_CHANGES_READ
and ME_READ_CHANGES_EINKBELEG
example
call function 'ME_CHANGES_READ'
exporting
document_category = it_ekko-bstyp
document_number = it_ekko-ebeln
date_of_change = it_nast-datvr
time_of_change = it_nast-uhrvr
tables
xcdhdr = it_cdhdr.
кu03B1ятu03B9к -
A report for the changed document histroy ...
Hi experts,
I want to write a program which can display all the delivery documents changed history ...
Of course i only care the delivery number , qty & date ...
As i know there has one TCODE : VL22 can display only one delivery document's detail .
but it is not easy to looking for some delivery documents at the same time ...
if i want to display all the delivery document how to do it ???
Has some BAPI i can use in here ????
Best Regards,
CarlosYou can refer to the tables - CDHRD and CDPOS for this.
In CDHDR pass the Object class = 'LIEFERUNG'
and Object value = Your Delivery Number .
You will get the list of Change Documents. With same information you can go to CDPOS to find out what exactly was changed.
You can use the following FMs also -
CHANGEDOCUMENT_READ_HEADERS
CHANGEDOCUMENT_READ_POSITIONS
Hope this will enable to you to come up with your own report for viewing history of multiple Deliveries.
As these CDHDR and CDPOS contains all the change related informations , the performance of your report might be not very impressive if you try to do a wildcard search. Make sure you have some Delivery Numbers with you before you go into CDHDR/CDPOS. -
Why should I recompile report for any changes in the database ?
Hi All
I call a report (.rep) from a form using RUN_REPORT_OBJECT, and everything is OK
For any change in the database, for example :
1- Export Dump file for the schema.
2- Drop the schema
3- Re-create the schema again
4-Import the taken dump to the schema
When i call the report again, the report doesn't run. If i recompile the report again it will work.
I read too much posts about this issue, most of them are taLking about the command line parameter RECURSIVE_LOAD=NO ,
v_url :=' COMPANY_NO='||:global.company_no|| ' RECURSIVE_LOAD=NO';
SET_REPORT_OBJECT_PROPERTY(repid,REPORT_OTHER,v_url);
But , Still the problem not solved
Notes :
1- The report type is .REP
2- if I used the .JSP report, it is working fine , But i can't copy the source code for the report at the customer side.
Please HelpWell, first of all this would not be the correct forum. There is a dedicated reports forum for reports related questions. And secondly this most certainly depends on your report. If you have a query like
select * from my_tableor e.g. are using %rowtype records in your report then you most certainly will have to recompile it after you do an exp/imp.
cheers -
Report for all changes in Authorizations
Hello,
I need to create a report that will show me all the changes in authorization for each user.
For example:
Letu2019s assume the following:
01-01 the authorizations for BP were Full authorization
01-02 the authorizations for BP were changed to No authorization
01-03 the authorizations for BP were changed to Read only
On the history log I can show the differences by choosing two lines and clicking on Show difference. But I need a report that will show me ALL the changes in authorizations on various dates range.
Thanks
RevitalOn the history log I can show the differences by choosing two lines and clicking on Show difference,
Export to Excel to get a report of changes in authorization,Since authorization is hard coded in table,U can't view it as a report. -
Report for logged changes in infotype data
Hi
Can anybdy suggest me the steps for configuring logged changes in inotype data.
My client wants a report to view the changes in any infotype record, specially in 0008 and absences.
Reagrds
WaseemHi
I already config these table but it is not refelecting
In table V_T585A
maintain Transaction Class is A and maintained IT
in table V_T585B
Maintained field group 01
Field Name is * (for all)
In tabel V_T585C
Maintained Doc Field Gr. 01
Doc Type is S
SupFldGr. is blank
After this run report RPUAUD00
and TC S_AHR_61016360
But nothing to display.
Please Help me.
Regards
Waseem -
SAP EHS : Generation of Report for change in substance data
hi Experts,
i want to generate report for the change in any substance specific data, editing of the substance. the report should contain the date, time, user details who has done this changes, what is changed, what is new value etc. how can i do that?
i want to generate change document for substance.
i dont want any ABAP interaction for creation of reports.
can i create by using some t codes or just by clicking to the options.
please help me out in this.
thanks in advance
regards
Anand Bende
Edited by: anand bende on Sep 5, 2008 11:22 AMHello Anand,
Did you check in the standard EHS documentation the paragraph: Creation of Change Documents for Specifications.
It is under Specification editing > Engineering Chg Mgmt.
Regards,
John -
Reports for baseline and payment block
Hi,
I want a report for baseline changes history another report for payment block changes histroty.
Please help me from which table we can take the reports.
Thanks in advance.Hi,
Go to TCode 'SE16' -> Enter Table Name AS 'RBKP_BLOCKED' and press Enter
Data Browser will give all these fields from which you can select as per your requirement and Execute :
- Log. payt block
- Company Code
- Fiscal year
- Vendor
- Invoice doc. no
- User name
- Posting date
- Purch. group
- Due date
You can find the User Names for all the transactions in the result set.
When you follow these steps, it shows the current status of documents still on payment block , not the history of who already released it
For that:
FB03 with the FI Doc
Environment > Doc Changes from the Top Menu Bar
Double click on the changed field # in this case, Payment Block
Then it will show you the dates and what was changed.
Double click on the line to see the detail of the user name
regards
Waman -
Report for Purchase Order Changes
Hi all,
Is there any report that record changes in purchase order?
Please respond.
Best Regards,
AI.Hi
Go to ME23N or ME22N.. Choose Environment - Header Changes or Item changes(for item changes select the item first). You can see all the changes made.
OR
Changes to a lot of SAP documents are stored in table CDHDR and table CDPOS. This include changes such as: change data in Material Master, changes to Purchase Req (PR), Purch Orders, Contracts, Sales Orders, and many more.
Put the PO number in CDHDR table OBJECTID table and get the change numbers.
Put the change numbers in CDPOS and get the details.
You can get the ABAPer to write a simple report.....
Cheers
JOJI -
No change of Quantity in ATP report for Return Purchase order
Hi,
There is an issue with ATP report. We have a customised report for ATP, the quanity is not changed in the ATP report for the return Purchase Order.
Will there be ATP carried out for the return purchaser orders.
Regards,
Jagadishhi,
this is to inform you that,
i think when goods are going from the company at that point of time ATP check it will do then when goods coming in to the company in form of returns at that point of time you dont need ATP check.
any how sit with ABAPER and debugg the program because if you are getting any values into Retuns ATP field.
that might be the issue with your requriment.
regards,
balajia -
Customer master report for new and changed customer
Hi All,
I want to write a report for customer master, If a new customer is created or if customer is changed the report should get the customer and download it to a flat file.
There is no proper spec they want customer based on acount group,Here how i can find the customer is newly created or changed. Change pointer is active.
in table CDHDR if customer is created the date and object id is there but changed the changed date is not in table kna1.
Please help me regarding the logic.
Thanks,
Arun.Dear Arun,
Please check for the delta entries on the customer master tables in DBTABLOG.
This table stores all the changes made in database level.
Regards
imran. -
In the OSB web gui, one of my users found that if the number of items per page is changed from the default of 30, the restore of the file will fail. He tested this using recent versions of Firefox and IE. We have verified this to also be the case using Chrome.
In a directory containing over 100,000 files, moving 30 at a time to find the one to be restored is a very frustrating user experience.
How do I file a bug report for this issue? Is there a workaround for this bug to enable my users to more easily find the file to restore without being restricted to the default of 30 items per page?Yes there is a bug in the webtool in the current release. You can use the commandline obtool to do the restore, that is much faster and works fine.
Thanks
Rich
Maybe you are looking for
-
Custom Save Dialog and Logic in Outlook 2013 Add in
I'm creating an addin for outlook 2013. I've got it all setup and such but I'm not sure how to achieve my objective. My boss wants a button on a ribbon that is shown during compose, read, and similar methods and either opens a save dialog or just sav
-
Process not available in bpel console after deploying it
Hi All, I am following note 459640.1. In step 5-j It asks to deploy the bpel processes using the following command line: obant -buildfile WshJarBuild.xml -DnewOtmURL=<OTM SERVER URL> -DbpelHome=<BPEL HOME DIR> [-DnewDbConnName=<DB CONNECTION NAME>] [
-
my phone will not charge and all that has happened is it got a little wet. everything else is working fine except when i plug it up it will not charge!
-
when i am trying to login to web appliaction designer i got the Run-time Error"91" "object Variable or with block Variable not set. please help me out to solve this. Regards Deepak
-
Hide or show the Artist and Album columns Command +B not working -itunes 11
Command +B Shortcut Hide or show the Artist and Album columns is not working no respond..-itunes 11 my desktop working but not my laptop MBA. why is that? anyone help me?