Po history display

I tried to display po history report it dislpay both header changes and item changes .Please tell me how to display po history only according to item change.
Rupali

Hi,
Following coding is the sample coding for PO Histroy report.
REPORT  YMS_POHISTROY  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
Thanks,
Sankar M

Similar Messages

  • In history displays. put checkmarks and select all.

    In history displays. put checkmarks and select all.

    Can you clarify what you mean?
    Do you have a problem with the history?
    Can you attach a screenshot?
    *http://en.wikipedia.org/wiki/Screenshot
    *https://support.mozilla.org/kb/how-do-i-create-screenshot-my-problem
    *Use a compressed image type like PNG or JPG to save the screenshot
    *Make sure that you do not exceed the maximum size of 1 MB

  • RECORD HISTORY DISPLAYS EXCEPTION ON SUPPLIER PAGES :- R12.1.3

    Hello everyone,
    We have done personalization on the supplier pages to display the record history icon at site level .
    The record History icon is displayed but when I click on that the following error is diplayed:
    You have encountered an unexpected error. Please contact the System Administrator for assistance. Click here for exception details .
    Any help on this is greatly Appreciated.
    Regards

    985903 wrote:
    Hello everyone,
    We have done personalization on the supplier pages to display the record history icon at site level .
    The record History icon is displayed but when I click on that the following error is diplayed:
    You have encountered an unexpected error. Please contact the System Administrator for assistance. Click here for exception details .
    Any help on this is greatly Appreciated.
    RegardsPlease check Apache log files as well as the application.log file for details about the error.
    Please also see the following docs.
    R12: Not Able To Enable Record History in R12 Supplier OAF Pages [ID 1319895.1]
    Record History Displays Exception On Supplier Pages like Address Book, Supplier Summary Page. [ID 825024.1]
    Thanks,
    Hussein

  • Chat history displayed correctly in Outlook, not showing in Lync 2013 client

    Morning all,
    It seems like I have an un-searchable issue with many hits returning that conversation history flat out doesn't work, which isn't the situation here...
    The backend consists of Exchange 2007 with Lync server 2013. Clients (a mix of Lync 2010 and 2013, XP and 7 respectively) have no issues connecting and the chat history works fine from Outlook, however, on the client, conversation history is not displayed
    and we are just given the option to "View more in Outlook..." (Which again works fine).
    Is the chat history not meant to be displayed within the Lync client or are there any options or boxes that I have left unchecked that could cause this issue?
    I've checked any addons on Outlook that sound as though they might be in any way affiliated with Lync and ensured they're ticked to no avail.
    I'll be happy to follow up with any further information if my explanation is a bit cloudy.
    Cheers.

    The Lync client will attempt to connect to Exchange Web Services in order to display items like Conversation History and Visual Voicemail.  If it cannot connect to EWS, it will fall back to a MAPI connection via the Outlook client.  The MAPI connection
    will allow chats to be deposited in the Conversation History folder and display presence information within Outlook and a few others, but the EWS connection provides a richer experience. 
    You can check how it is connecting by holding CTRL + right click on Lync system tray icon.  Then select Configuration Information.  You should see items for EWS internal/external URL, MAPI Information, and EWS Information.
    Unlike Outlook, Lync does not use the Autodiscover SCP to locate EWS.  Lync relies on the Exchange Autodiscover DNS A record to be setup both internally and externally.  Assuming Autodiscover and EWS are working properly, the following are required
    in order for Lync to connect to EWS successfully:
    - User's SIP URI and Primary SMTP address should match
    - Autodiscover.sipdomain.com DNS A record setup internally and externally for each SIP domain supported
    - EWS Internal/External URLS accurately configured on Exchange
    Let us know what you find.

  • FD32 Customer payment history displays no data

    Dear All
    I have activated the Customer payment history in Customer master data however when i look into the reports of
    customer payment history in FD32 and S_ALR_87012177 it displays no data
    Also for some customers the balances are different than what i see in the customer balances in FBL5N
    Can any one tell me what is the reason for no data coming in the Report and differences in the Customer payments
    Thanks

    Hello Colleague;
                                                                                    Please refer to SAP Note 23850:                                                                               
    The payment history is updated if                                                                               
    o  the update is activated for the customer (select KNB1-XZVER)                                                                               
    o  the posting keys is selected as relevant for payment (OB41)                                                                               
    If the update was not carried out, there is no program for thesubsequent creation of the data.    
    I hope this information can clarify your issue.
    Regards
    Ruy Castro

  • Help Needed : Restrict Payroll History Display in Off-Cyle Workbench

    Dear Experts,
    In my company we are going to handle employee reimbursements via off-cycle payroll.
    For this we want to use the off-cycle work bench.
    Now the staff handling the reimbursements must not be able to view results of the regular payroll, however they are visible in payroll history when you log on to the Off-cyle workbench and enter the personnel number.
    Is there any way we can restrict this viewing, and remove display of regular payroll history in off-cycle workbench ?
    Regards,
    Talha Aftab

    can i include the table "fnd_user" which has a column employee_id which i can join
    with per_all_people_f, a table which has column employee_id in it.Everything is perrmitted
    or should i use fnd_global.employee_id to join with the per_all_people_f employee_id.That sounds good too. Hmmm.....
    The problem is, this is a business logic/data question. You know your application: we don't. Only you can make those sorts of decisions. We don't don't know what the data means in your business context.
    Now my question is " the condition is if he/she who is logged in ... then those records only i should display.I see no question. But again, how you decide to restrict rows by reference to business columns is a business decision.
    As a general point, if you are going to do a lot of this sort of restriction you may find it valuable to invest some time in understanding fine-grained access control. It's a lot more flexible than writing bespoke views.
    Cheers, APC

  • What defines the No. of days history displayed in the Account Overview?.

    At present we only have 30 days of history being displayed within the Account overview views whereas we would like to see/display more. Is this possible?.
    Jason

    As far as I know -> this is customizing.
    Have a look at:
    Specify Display Options for Business Transactions
    In this activity you establish for which period the business transactions in applications such as Accounts and Contacts should be displayed.
    You can create settings for the following:
    u2022     Interaction History
    u2022     Activities
    u2022     Opportunities
    u2022     Quotations
    u2022     Sales Agreements
    u2022     Sales Orders
    u2022     Leads
    In this way you can display the business transactions within different periods, for example, all activities for the previous or the following week.
    In the case of the interaction history, the period refers to the posting date, in the case of activities to the start and end date, and in the case of opportunities to the start and closing date.
    You can make the settings in such a way that they are specific to certain business roles, or valid across different roles. They are always valid for all applications (for example, Accounts and Contacts).
    Activities
    1. Choose New Entries and use the input help to enter the necessary data for the area and period.
    2. Save the data.
    Note
    If you select Last month as the period, all the business transactions from the last calendar month are displayed, and not the transactions of the last month from the current date.
    This means that if you have selected Last month as the period, and display the transactions in the system in the month of May, the transactions from the month of April are shown
    BR Dirk

  • Does Firefox History display the "time" as well as the date; how can I make my history show "time" as well as date, etc.?

    I would like to check my history for time of day, as well as for the date. Is this a feature that is common? How do I set it to work showing the time, as well as, the date? Thank you.

    Thank you. I went to the Show All History library and under "View" I selected for time and date. Thank you for the link to how it is done!

  • No History displayed in st06

    Hi Folks,
    As i want to check Filesystem growth, i used ST06. I was able to see snapshots of current and previous hours ( for a max of last 2 days). I thought of analyising the filesystem growth for last 30 days and did select option of "History--> FileSystem". SAP screen did not generate any history instead a blank screen. My SAPOSCOL is running fine.
    Please advice
    Regards,
    Shiv

    My Sap Component is Netweaver 7.1, Database - DB2, OS - AIX,. I am not able to view history of File System for not more than last 24 hours. When i select History-->FileSystem , i just get a blank SAP screen on the right hand side with no details.
    When i select snapshot for current and previous hours, its giving FileSystem clearly but not with the history.
    Please advice whether there are any changes to be made where i can view the history of File system throught st06 for more than last 24 hours
    Thanks in advance

  • IPad Search History displaying on other devices

    My husband informed me that his browser history on his Galaxy S4 is showing what I searched for on my iPad.  We do use the same wifi at home, but how do I stop it?  He informed me after Christmas (he knew what I searched for for his Christmas presents!).

    Yes, he showed me this morning an example, my daughter has a different apple ID, and I purchased extra storage for icloud, so I wanted to see if I could use that icloud account with my apple ID so I didn't have to purchase extra storage on two devices, I searched it last night, this morning he asked me if I found my answer about apple ID vs Icloud ID...I never told him I was looking it up (nor does he know what an apple or icloud ID is!)

  • Notification is sent to a Role, but Action History display one member only

    We have created an approval notification for HR which is sent to a Role. The role has 3 members. The email is successfully sent to the 3 members of the role (expand role is checked). However, on the Action History of the Notification Details, it shows that the submit action to was for 1 member of the role. This is misleading as actually, action is for the role (and the 3 member of the role). We would like the information here to be factual. Show that that the action was submitted for the role or show everyone who received the notification. Can that be done?
    Thanks.

    Any light on this ?

  • Can you skip the history display?

    I would like to go directly from the phone tile to the keypad without being filtered through the history page and then having to click on the small keypad icon at the bottom of the history page. In other words, delete or avoid the history page. Is there any way to do this?

    I don't see a shortcut available, sorry.

  • Wiki History: Display IP address?

    Anybody know of a way to make the edit history page expose the IP address of posters? We have a need...
    Thanks!

    Why the difference?
    I'm not totally sure because I never work with .scpt files when I'm doing AppleScript Studio stuff in Xcode.
    One difference is that .applescript files are stored as plain text and get compiled when you build your AS Studio application. On the other hand .scpt files contain compiled AppleScript code (although they may get re-compiled when you build your app).
    Also, opening .applescript files within Xcode will open in Xcode's editor window. However, from a quick test on my machine it appears that opening a .scpt file within Xcode opens it in Script Editor. I suspect that Script Editor is not aware of the AS Studio scripting dictionary (That's what the "AppleScriptKit.sdef" file is that's included in an Xcode AS Studio project). And without the AS Studio dictionary available to it Script Editor will generate errors for any AS Studio specific classes, handlers etc...
    Steve

  • Browsing history not displaying correctly (3.6.4)

    I've been having a problem with my history display for the past several days (since about the time I was automatically updated to 3.6.4).
    When I press Cntrl-H to view my history, only the past two days are shown when viewing "by date and time" and "by date". The older history is still there, because I can see sites I visited longer than two days ago when I view my history "by site".
    My about:config settings for history are:
    browser.history_expire_days - 45
    browser.history_expire_days_mirror - 45
    browser.history_expire_days_min - 30
    browser.history_expire_sites - 10000
    I have the same problem when using Firefox in safe mode.
    I tried deleting places.sqlite and places.sqlite-journal, and letting my bookmarks be replaced from the json bookmark backup. Once I have more than two days of history the problem occurs again.
    I also tried deleting localstore.rdf, and it has no effect.
    I'm using the default theme.
    The only extensions I'm using are:
    Adblock Plus 1.2
    Bookmark Backup 0.4.10
    CheckPlaces 2.2.1
    New Tab Homepage 0.4.2
    I would appreciate any help I can get in tracking down the cause of this. Thanks.

    You can try "Reset all user preferences to Firefox defaults" on the [[Safe mode]] start window - See http://kb.mozillazine.org/Resetting_preferences
    Create a new profile as a test to check if your current profile is causing the problems
    See [[Basic Troubleshooting|#Make_a_new_profile|Basic Troubleshooting: Make a new profile]]
    There may be extensions and plugins installed by default in a new profile, so check that in "Tools > Add-ons > Extensions & Plugins"
    If that new profile works then you can transfer some files from the old profile to that new profile (be careful not to copy corrupted files)
    See http://kb.mozillazine.org/Transferring_data_to_a_new_profile_-_Firefox

  • How do I get History to show entries that have an empty Name field?

    I've noticed that if you go History/Show All History , it doesn't show entries with an empty Name field. If I enter part of the location URL in the "Search History" box (such as a Goggle search) the entries are there (with a Visit Date from yesterday), but if I then click on the Yesterday category, these entries are not shown. I'd expect the "Yesterday" category to show *everything* I visited yesterday.

    Thanks @ComputerWhiz - and apologies for the delay in responding.
    I disabled Googlebar Lite, and then checked Show All History. I found that things were unchanged: I could search for an item and it would appear, but if I select all items from "this month", those items with a blank name field still didn't show up.
    Even if creating an entry with a blank name is not "good practice", I'd argue that Show All History should do just that in all cases, not just when a search term thows up a match.
    I'm relieved that it's not Googlebar Lite interferring with the History display, though. Its word seach buttons (that disappeared when Google Toolbar for Firefox was withdrawn) are an essential part of using search, IMO...

Maybe you are looking for

  • IGS rfc not working  BI 7.0

    Hi All, We have upgraded our BWD system from 3.5 to 7.0, in smicm restart j2ee server option is disabled only Icm  restart option is enabled.  I have checked the services  both the SMTP and HTTP are active and  HTTP is activated as External also.   I

  • Facebook Social Plugin don't working in the websites

    I have the Firefox 18 installed on Linux Ubuntu 12.10 and the Plugin of comments are not working. I tried 2 sites, and I think there is a problem in the "use strict" that I have enabled in the about:config page, but I dont fint it again.

  • Desktop Error 0xa0000001

    I bought my computer almost a month ago. A week after, it kept on getting this blue screen that would say computer error 0xa0000001. I do know that I have warranty on but I want to see if it can get fixed from online support. I am not very good with

  • Clear Asset Master when creating a Functional Location from a model?

    Hi experts, Is it possible to clear the asset master of a functional location when you are creating one from a copy that has an asset? I do a clear in user-exit (ZXLOMU01) of this value but when it returns from the next call customer, the program sti

  • If I want to run a small business with Iphone, how could I contact with apple company ?

    I really want to run a small business with iphone mobile, how could I contact with apple company ? please help me !