Fetching PO changes relevant for given version

Hi Gurus,
We activated Version management for Purchase orders & all relevant settings are done to capture the changes & display them on PO print.
But the problem is, when we print the PO, changes done with all versions are being displayed every time.i.e.
lets say there is PO no: XXXX. & initial version no:0
then we did some changes to PO & now version no:1
then further modified the PO & now version no:2.
When we print the PO displaying changes, system is showing all changes done from version no:0 to 2. Actually system should show only changes between version no 1 & 2.
we are using SAP FM:ME_READ_CHANGES_EINKBELEG
please suggest a logic to fetch changes between latest version to last version.
Thanks in advance

Raghava,
  Yes Its Possible to print last version 2 in PO .
  you can use the table EREV In this Table You Can Find The Both Field EDOKN PO No. & REVNO       Version.
  Use on this you can wright the query and sure got the last version only in PO Printing.
  You Can take help of Your ABAPER They can help you
                                                                                                                                                                                                                                                                                                         SELECT * FROM EREV INTO TABLE IT_VERSION WHERE EDOKN EQ PONO.
SORT IT_VERSION BY REVNO DESCENDING.
DELETE ADJACENT DUPLICATES FROM IT_VERSION COMPARING EDOKN.
Hope Its help full for you

Similar Messages

  • How to fetch last changed date for Header in me22n?

    Hi Experts,
    I need to create a report for PO, where I have created one screen tab in Header level(customer data), therefore I need to fetch last changed date for header , I must mention that I do not want last changed date for item level, only for header last changed date is required.
    Kindly assist me on this.
    Thanx
    Shireen

    Read table CDHDR (object "EINKBELEG") and CDPOS (look for table name EKKO), keep the last CDHDR record with "EKKO" data actually changed.
    Regards,
    Raymond

  • Hi, I am worried about the old Iphones, couldn't we change them for another version? I have my Iphone 3, love it, but now I am feeling out of the picture. The phone works perfect...Is there any plan to do so? like recycling?

    I am worried about the old Iphones, couldn't we change them for another version? I have my Iphone 3, love it, but now I am feeling out of the picture. The phone works perfect...Is there any plan to do so? like recycling?

    You can purchase any model (currently sold) iPhone that you desire.
    What's the big deal or so complicated about figuring that out?

  • How to fetch last transactioned values for given period

    Hi,
    I'm working on a report, here I'm fetching data from j_2irg1bal table for some period. it has data to internal table like
    e.g. : given period 01-04.2009 to  30.04.2009
    date        mantr  opening balance closing balance
    04.04.2009  1007     100             130
    08.04.2009  1007     130              80
    here for given date two record are available,
    i need to capture last updated value i.e. for date 08.04.2009.
    Kindly suggest your ideas to move with this

    Hi,
    Assume that your values are in internal table ITAB.  Then,
    Sort ITAB by date DESCENDING.
    Doing so, your records gets sorted in Descending Order with respect to Date. And the Last updated record comes in the first position.
    And now,
    Read table ITAB index 1.
    The above code, fetches the last record into the Work-Area.
    That's it.
    Rgds,
    Ramani N

  • Changing images for print version

    Is there a way to change an image for a print version?
    My background is dark blue and my image is white, however if
    I print this nothing will show because its white on white.
    I want to use a different image that is dark blue for the
    print version so that you can see it.
    Can this be done with CSS?

    That'd be nice. But you misplaced a decimal in the amount. It
    needs to
    move right! 8)
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "DC_Eric" <[email protected]> wrote in message
    news:es7659$rhn$[email protected]..
    > Based off what you said I came up with another idea.
    >
    > I set the current image not to display and then in the
    div I set a
    > background
    > image, height, and width
    >
    > then when you go to print the page the display none is
    removed and the
    > foreground image shows again which is now the print
    version image.
    >
    > I didn' set any blocks or anything but this seems to
    work.
    >
    > Thanks so much Murray. We should all chip in $0.25 each
    time you help one
    > of
    > us. Then you can retire and just support the forums :)
    >

  • Changed roles for given timestemp

    HI All,
    I need to find a way to find if some of the user roles are changed i.e. deleted or add for time
    range ,there is FM CHANGEDOCUMENT_READ  but how i can use it for roles ?
    for example i want to know which roles are changed for the last 2 days .
    Regards
    Chris

    Try to use fm
      call function 'CHANGEDOCUMENT_READ_RANGES'
        exporting
          objectclass_tab            = i_objectclass_i
          date_until                 = p_datum "<<<
          time_until                 = p_time "<<<
        tables
          editpos                    = i_cdpos
        exceptions
          no_position_found          = 1
          wrong_access_to_archive    = 2
          time_zone_conversion_error = 3
          others                     = 4.

  • The item is not relevant for billing

    Hi Expert,
    I am trying to do billing for Non-stock item but i am getting an error message as The item is not relevant for billing.
    In VOV7 i have changed Relev. for billing to B from A for item category TAX.
    For item category TAX settings in my system for VTFA tcode is as below :
    Copying requirements : 002 (Item/order-related)
    Data VBRK/VBRP : 901 (Single invoice Copy).
    Billing quantity : C
    Pos./neg. quantity : +
    Pricing type : G
    Please help me in this if possible as i am not getting any response from SD forum.
    Thank you.

    HI,
    Thanks for reply.
    I have not created new order after changing it to B. I am checking it for existing orders only.
    As orders are created previously so can you tell me the report which you have mentioned to run.
    Quantity is more than 0.

  • Need FM to find physical path for given logical path

    Hi Guru's,
    I wanted to find the physical path for the given the logical path.
    I have a requirement where i have to write records into the file  mentioned via logical path .Inside the program i wanted to fetch the physical path for given logical path .
    Is there any FM to achieve this functionality.
    Thanks!!
    Pravee

    Use fm FILE_GET_NAME to get physical file name from a logical file name. But u have to maintain the mapping between logical file name and physical file name in tran. FILE.
         call function 'FILE_GET_NAME'
              exporting
                   logical_filename = lds_name << Logical file name
              importing
                   file_name        = ds_name << Physical file name
              exceptions
                   file_not_found   = 01.
    Regards,
    Joy.

  • Need to fetch  change number for tcode IA06

    Can anyone please tell me how do I fetch the change number (Aennr) in case of tasklist chage? Tcode IA06?
    I am using FM CP_EX_PLAN_READ which returs me change number..but it is not populated....
    Plz help.

    hi check this..
    check the table AENR for the aennr values...
    here is an example for this fm..
      call function 'CP_EX_PLAN_READ'
         exporting
              plnty_imp        = i_plnty
              plnnr_imp        = i_plnnr
              plnal_imp        = i_plnal
              sttag_imp        = i_sttag
              cuobj_imp        = i_cuobj
              parnt_imp        = i_parnt
              i_plant          = i_werks
              tca11_imp        = ls_tca11
         tables
              plmz_exp         = lt_plmz
              plpo_exp         = lt_plpo
         exceptions
              not_found        = 1
              plnal_initial    = 2
              others           = 3.
    regards,
    venkat

  • Change Logs for customer master data in 3.1 H version

    Hello All
    Are they any existing reports or change logs for viewing changes to customer master data in 3.1h version.  I want to be able to report based on changes made to customer master.
    I know there is a good report in 6.0 version for this- S_ALR_87012182.
    If I have to develop a custom program for this in 3.1h. Which table I should use? KNA1 or CDPOS.
    Any ideas will be appreciated.
    Hema.

    Hi,
    Please check the filter settings maintained for the adapter object CUSTOMER in R3AC1. The same filter settings can be referred in tables Table: CRMFILTAB (R/3) and SMOFFILTAB(CRM) as per srinivas's reply.
    Check the sales area of the customer maintained (Sales Area, Division, Distribution Channel etc.) and see if the current filter settings are restricting the customer from getting replicated in CRM. If everything is maintained fine then check for any failure Bdocs in SMW01 or SMW02.
    Regards,
    K

  • I have 2 point security for AppleID. My iPhone 4S is listed as my trusted phone to text. No tel. no. is given. I am updating to iPhone 6Plus with same tel. no. Do I need to change anything for the sign in verification?

    I have 2 point security for AppleID. My iPhone 4S is listed as my trusted phone to text. No tel. no. is given. I am updating to iPhone 6Plus with same tel. no. Do I need to change anything for the sign in verification?

    Of course You can also add your iPhone telephone # as a trusted device.
    This way when you insert your SIM card into any phone, Apple will automatically recognize your cell phone # as a
    trusted device (may be handy if iphone breaks but you insert SIM card into another phone).
    HOWEVER:
    Having also your iPhone as a trusted device, is convenient if you travel and use a different SIM card
    at destination. This way you can still use the iphone for verification, even though you are using a different
    phone #.
    Regards

  • In Internet Explorer, in the internet options, you can change the temporary internet files to check for newer versions of stored pages. Can this be done in Firefox? And How?

    I just want to know how I can change the settings to check for newer versions of stored pages in Firefox.

    There is a hidden preference that controls when Firefox checks for a newer version. # Type '''about:config''' into the location bar and press enter
    # Accept the warning message that appears, you will be taken to a list of preferences
    # Locate the preference '''browser.cache.check_doc_frequency''', double-click on it to change its value
    For details on the possible values of his preference see http://kb.mozillazine.org/Browser.cache.check_doc_frequency

  • Making change in original application file for new version

    Hi
    I am new to DMS.
    I have a basic query about versioning of DIR.
    I have created a DIR with status in Released.
    I have attached a original application to the DIR. Now when I am creating a new version of DIR, original application file is also getting copied to the new version which is desired.
    My problem is I want to make changes into original application file in new version of DIR and want to save. But I am unable to do so. It is not allowing me to change the original application file for new version which is desired for storing some ISO documents.
    Is there any settings which I am missing?
    Waiting for reply ASAP.
    Thanks and Regards,
    Niraj Sikligar

    Hi
    If you want to make changes in the "Release" Status, go to dc10, select Doc type and define status screen. Do not put "S" (Lock mode) for Status - Release
    Also please check in new version , you are clicking on Edit symbol in Orginals tab, if u double click the file, it would open always in display mode , and it wont allow you to make any changes
    Regards
    Aby

  • Fields relevant for printouts changes for PO for New item addition

    Hi,
    We have configured Fields relevant for printouts changes for purchase
    order, it is working for all relevant fields except New line item
    addition in the Purchase order.
    This was working fine before EHP4 patch upgrade, after that the field
    was disappeared in configuration.
    Thanks in advance,
    Vinod

    Hi: looking for same functionality, were you able to fix this issue? Thanks.
    Daniel G.
    Skyworks Inc

  • Price change report for  a given date range in inforecords

    hi,
    Can any body suggest how we can get price changes in inforecords for given date range. is there any standard sap tcode or  fuction module.

    Hi,
    If you are referring to the changes in the condition record (for eg. for PR00), then you may go through the foll path:
    Execute VK13 for any condition type - once inside the detail screen, from the menu path, choose Environment -> Changes -> change report. This will take you to a new selection screen where you can define the period you want to see the change record as well as the condition type for which you want to track the changes. Beware, this is a complex report for SAP and it will take definitely longer time to complete. So, it is better to specify short time periods and specific condition types and execute this in background.
    Hope, this helps!
    S. Siva

Maybe you are looking for

  • Questions on notifivation and fonts

    just upgrading to this phone from a blacberry.. 2 questions for now 1. how do I change the font size for text? text is too small for sms/mms,,  compose msg etc... 2. the notification volume won't adjust. I go into settings/sounds/volume. I have the 4

  • Using streams or logical standby

    We are runing Oracle 9.2.0.3.0 and have a requirement to replicate the production database on another server for query and reporting purpose. The changes can be applied to the reporting database on a daily basis. Of course, the faster the better if t

  • Images print too dark from Photoshop CS2 and CS3

    Having used both CS2 and CS3 I now realise that the prints that I work on in either appear much brighter on the screen that they do when printed, as much as 3 stops darker when printed. I have also noticed that in other programs such as Google Picasa

  • No .file type when saving???....

    hello has anyone had any issues with d/l themes? when I go to d/l I have nothing in the save as box just the name I created for the theme? there is no .file!!!!  

  • Help With Donating Reward? (Adobe Muse)

    The tittle say it all! But i'll just say it easier: I host my own minecraft server (bukkit) and i want so people can donate, Thats solved because i made a donating button with paypal so thats done (or if i need to do another way) and im going to put