Get the Change history of a Purchase order

Hi Gurus,
We have custom workflow which will send a mail to the user when he creates a new PO using Me21n.
Our requirement is to send a mail to the user when he add a new line item to the existing PO.
The big question is How to find a new line item added to the existing PO?
Suggest us any Function module that will give the new line added to an existing PO or How to get it from table CDHDR and CDPOS?
Regards
Paul
Edited by: Paul Paul on Jun 16, 2009 1:27 PM
Edited by: Paul Paul on Jun 16, 2009 1:27 PM

not sure..........hv u checked the below scenario?
If a line item is changing/deleted.........then, Is it creating a CDHDR/CDPOS record? if so, How you r differentating btwn a creation of line item and changed item/deleted item. I do not hv a SAP access these days, so i can not check it.
thanq

Similar Messages

  • Using function 'read_text' to get the Material PO Text in  Purchase Order

    Hello,
    i am using this function READ_TEXT to get the Material PO Text of a PO.
    concatenate ekko-ebeln ekpo-EBELP into txt.
    CALL FUNCTION 'READ_TEXT'                " FM Read_text
          EXPORTING
               ID       = 'F03'
               LANGUAGE = 'E'
               NAME     = txt
               OBJECT   = 'EKPO'
          TABLES
               LINES    = itab
          EXCEPTIONS
               ID       = 1.
    Now if i enter the Mat PO Text, the function works fine. But if i dont enter the Mat PO Text, the prog gives a dialog box error at compilation that ,
    <b>Text 450000001800010 ID F03 language EN not found</b>, where '450000001800010' is the value of 'txt'(passed to the function).
    how to check for invalid text name returning from the function ????
    Thanks for yur time.

    hi
    use the select query from STXH to c if the text exists and pass the same value as what u r doing to read_text and if the sy-subrc = 0...then only use the FM ...hope it helps..
    reward points if it help...
    regards
    Gunjan

  • Which table stores the condition values of a purchase order line item?

    Hi,
    Please let me know the table that stores the condition values of purchase order line items(when we click on conditions tab after selecting an item then we can see the condition types and there is a corresponding condition value for that condition type.
    My requirement is to get the actual price for a purchase order line item(it can be seen in the last line and it is calculated after considering all the condition types) and display this value in a custom report.
    Thanks,
    Ravindra

    Hi Ravindra
    You can find the conditions data for PO in TAble KONV.
    KONV-KSCH is the condition type
    KONV-KWERT is  the cond value
    KONV-KNUMH is the condition doc no. which is there in EKKO field KNUMH.
    So u have to make a link between KONV-KNUMH and EKKO-KNUMH.
    Thanks
    Vijeta

  • Can we change the doc date in a purchase order ?

    can we change the doc date in a purchase order ?
    i have created PO with wrong dates but now want to correct it, but its not letting me do it ...why ?

    I don't think DOC DATES can be changed. You can only change the posting dates of the Goods receipt and Invoice documents as that is what matter for your financial consolidation.
    Regards,
    Ravi
    Note : Please mark the helpful answers

  • Is it possible to change the vendor in a saved Purchase order

    Is it possible to change the vendor in a saved Purchase order
    Regards
    Amit

    Hello, Amit,
    no, but you can change the partner functions in the PO, like "Invoicing Party", "Vendor", "Goods Supplier" -- depends on you customizing for partner schemas.
    However, this should be used only in case when during the purchase order lifecycle the partner has been changed (as result of merger, bankrupcy, factoring); otherwise, it is much easier to simply delete the PO and create a new one.
    Kind Regards
    TomT

  • Update the change history for line items in CDHDR/CDPOS

    Hi,
    I have a problem in updating the sales order and line items in CDHDR/CDPOS when there is change in header level custom field..
    Actually i have a custom field in VBAK which added in additional data A in the header level of sales order.When we have change in that field only some line items only updating in the change history tables(CDHDR/CDPOS),but we need to capture all the line items when the custom field in the header level is changed.
    i have added change document flag in the data element of the custom field.
    Please advice me how to get all  the line items will reflect in CDHDR/CDPOS when the header level custom field has change .
    Thanks & Regards
    Kiran

    The purpose of CHANGE DOCUMENT tables is to flag the changes with Old and New values. So when Header data is changed only Header details will be tracked and same for Item tables too.
    If you need anything addtional from this then that would customizing.
    I am not sure what is your requirement but to make it simple and achive requirement add same field with same setting to line item tables VBAP, VBKD.. (as required, if that's doesnt impact your Order. These fields no need to be on screen). While changing your Custom field of Header level change the item level field too. Then CHANGE DOCUMENT will generate automatically for all the line item including header.

  • How to get Information Template fields to Standard Purchase order Document.

    Hi Guy's
    I Created Information Templates to capture extra information to suit our business needs. But i dont know how to get populate those information into Standard Purchase order docuemnt. After Some research I found that we have to customize the PO_STANDARD_XSLFO.xsl. But i did not get how to get those information.
    If any one know knows or has done this type of customization let me know asap
    Thanks in advance
    Thanks & Regards
    Palakondaiah.U

    Hi,
    I resolved this as following :
    Since, i needed the Manufacturer Serial no. to be fetched in custom field at item level ( Enhanced via EEWB the item  ) , the moment there is a product  available in the sales doc header field.
    I wrote  badi implementation for definition : CRM_ORDERADM_I_BADI and utilized method  : CRM_ORDERADM_I_PRODUCT_DETERM . This method's signature if you check makes me available the header, item guids along with the product available in the field even before i save the sales document. There i fetch the serial number of product from custom table and then poulate the serial no. field in customer_i extension as follows:
      LS_CUSTOMER_I_COM-ZZCUSTOMER_I0803 = LV_MFR_SLNO.
      LS_CUSTOMER_I_COM-REF_GUID    = IV_ITEM.
      LS_CUSTOMER_I_COM-REF_HANDLE  = '0000000000'.
      LS_CUSTOMER_I_COM-MODE        = 'A'.
      APPEND LS_CUSTOMER_I_COM TO LT_CUSTOMER_I_COM.
      LS_FIELD_NAME_CUSTAB-FIELDNAME = 'ZZCUSTOMER_I0803'.
      APPEND LS_FIELD_NAME_CUSTAB TO LT_FIELD_NAME_CUSTAB.
      CALL FUNCTION 'CRM_CUSTOMER_I_MAINTAIN_OW'
        EXPORTING
          IS_CUSTOMER_I_COM    = LS_CUSTOMER_I_COM
    *        IV_EXTERNAL_CALL     = 'X'
        CHANGING
          CT_INPUT_FIELD_NAMES = LT_FIELD_NAME_CUSTAB
        EXCEPTIONS
          ITEM_CHANGE_ERROR    = 1
          ITEM_CREATE_ERROR    = 2
          ERROR_OCCURRED       = 3
          OTHERS               = 4.

  • Help:: Tracking the change history for a BP

    Hi All..
    I really need ur help.. Somebody please..
    I'm making a prog. to update BP (TCODE: BP) & it run well. But now, i'm getting to make report for change history in BP. As for it, i look up it in table CDHDR & CDPOS, but i didn't find it :(.
    I use these FM to update:
    1. BUP_BUPA_UPDATE.
    2. ADDR_SAVE_INTERN.
    Even i have tried to run FM ADRESSE_WRITE_DOCUMENT, but it still didn't work well.
    The questions are:
    1. Am i right for using FM ADRESSE_WRITE_DOCUMENT in order to get the history change in CDHDR & CDPOS.
    2. How to use FM ADRESSE_WRITE_DOCUMENT? What should i fill up in parameter: OBJECTID,PLANNED_CHANGE_NUMBER,PLANNED_OR_REAL_CHANGES,
    and NO_CHANGE_POINTERS ???
    3. Why do always i got the exception NO_POSITION_INSERTED in using FM ADRESSE_WRITE_DOCUMENT? How to solve it?
    4. Or are there any ways how to update well where i'm able to track the change history for BP? / Is that any functions to update BP like FM CRM_ORDER_MAINTAIN.
    Thx so much.. for ur attention
    Ur guidance is so much needed.
    Best Regards
    Daniel N.

    Hi Daniel,
    You can refer to table TCDOB for object class, it has a list of object class to which you can refer to and also the text description for each object class exists in that table.
    Regarding the object id, you need not pass the value of the object id unless and until you want to read the change history of a particular Business partner.
    Pass the value of the object class and if required the date of change to track the changes made to the BP's in that particular time period.
    Hope this helps.
    Regards,
    Karthik.

  • How to block the Statistical delivery date in purchase order from updation

    Hello All,
        We have the following requirement from our client.
    The client wants to track the delay in delivery of purchase orders raised to vendors. Currently the users, change the delivery date and then process the PO if there are any delays. The client wants to STOP this and track any changes being made.
        We created a new screen layout for purchase orders and checked the Statistics relevant delivery date as DISPLAY
    However, when we tested the same, the statistical delivery date was changed along with delivery date, when the delivery date was changed in the Purchase order, though the option for statistical delivery date was seen a DISPLAY field only.
    Please provide us your suggestions on any other options available.
    R's
    Manoj.

    if your client wants to track the delay of a delivery from your vendor, then he has to give the vendor a chance that he can deliver on time. And the usual way to do this is by sending the PO to the vendor.
    if you cange the delivery date before output of messagem then your vendor could not even know the original delivery date, so it is not the vendors fault if he cannot meet this date.
    if you change the delivery date after output of message , then the statistical delivery date will stay with the old date.
    the field is always open to maintain because it is not always the vendor who is reponsible for a delivery date change.
    if you want to change the delivery date because you can take the quantity at that date, then it is not the vendors fault, in this case you have to change the statistical delviery date to evaluate the vendors delivery performance against the new date.
    And often forgotten in this evaluation process is the warehouse personell that finally posts the goods receipt. if they post it with delay and do not change the goods reeipt date, then the vendor is as well evaluated to bad.

  • Is there a way to view the information of a deleted Purchase Order?

    Hi SAP Experts,
    Is there a transaction or program that could help me retrieve the information of a deleted purchase order? (Header and LI) Please take into consideration that the document can no longer be retrieved in SAP thru the regular t/codes.
    Thank you,

    Try with t.code AUT10 -Audit trail using which you can see the change histories.
    Regards,

  • Can I modify the column "Net Price" of purchase order to display 3 decimals

    Dear expert,
         Can I modify the column "Net Price" of purchase order to display 3 decimals?
         Looking forward to your reply.
         Many thanks.
    Best Regards,
    Merry

    Hi,
    You can easily change ur decimal place in OY04 by seeting number of decimal place to ur currency.
    But be careful as it cause a huge effect to ur finance documents, read system message carefully before applying.
    Regards
    ManUfacTuReR

  • Change Pricing Date in Purchase Order

    Hello,
    In normal scenario the pricing date (PRDAT) in Purchase Order is the date on which the PO is created. I want to update the PO with price considering current date. In the table EKPO the field PRDAT is available. But If I require to change the change the date(PRDAT) in the PO where I can find the field in the PO
    Thanks in advance

    Hi,
    Yes, you can go to customizing and see the field selection keys for the PO and see in the: Selection group      Quantity and Price.
    In order to see which keys are influencing the layout in your PO, you can read a blog I just wrote a couple of days ago:
    http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/17833
    I hope this information helps!.
    Best Regards,
    Arminda Jack

  • Change "Volume" value on Purchase Order

    I have a requirement to change the value for the material volume in a purchase order programmically.  Now, the volume for the material is defaulted in from the material master.  We want to update this field with a value that is derived from characteristics(VC).   I can't see to find any user exits or BADIs that could help me.  Anyone have any bright ideas?  Thanks in advance.
    Regards,
    Rich Heilman

    jyoti,
    Go to
    Administration>System Intialization>Authorization-->
    Genreral Authorization>Select user left side>
    Select Drill Down Administration>Drill down Setup>
    Drill Down Business partner>Drill Down Payment terms>
    Give Full Authorisation
    Jeyakanthan

  • HT1391 How can I get a full history of our purchases?  We had some problems with some downloads since 5/25/12.We were charged for items that said "Free"? Help

    How can I get a full history of our purchases?  We had some problems with some downloads since 5/25/12.We were charged for items that said "Free"? Help

    iTunes Store menu > View My Account...
    Sign in and select "See All" in Purchase History.
    You can only see them in "batches" of ten. As far as I know there is no way to obtain a comprehensive summary.
    The prices are tabulated in that list. If they were supposed to be free, and they show that you were charged, then click the arrow next to the suspect purchases and click "report a problem".

  • TS1424 i didn't get the whole song that i purchased only got 1 min of the song

    i didn't get the whole song that i purchased only got 1 min of the song

    Other people have been having similar problems with songs over a number of days.
    Depending upon what country that you are in (music can't be re-downloaded in all countries) then try deleting it from your iTunes library and redownload it via the Purchased link under Quick Links on the right-hand side of the iTunes store home page on your computer's iTunes : re-downloading.
    If you aren't in a country where you can re-download music or if it re-downloads in the same state then try the 'report a problem' link from your purchase history : log into your account on your computer's iTunes via Store > View My Account and you should then see a Purchase History section with a 'see all' link to the right of it ; click on that and you should see a list of your purchases ; find that song and use the 'Report a Problem' link.

Maybe you are looking for

  • I can't sign into itunes, I get no error message.

    I can't sign into itunes, I get no error message. Anyone have any ideas. I've reinstalled it and nothing seems to work..

  • Links from emails do not open in Firefox

    Recently when I click on a link (usually from an email), it will not open in Firefox. Although I am taken to Firefox, the new link doesn't open, instead I just see the windows that were already open. This was working before. I reinstalled Firefox whi

  • Slideshow issues with variable time for each picture

    Hi all, I've migrated from AS1 to AS3, and boy, a lot has changed... Anyhow, to learn and understand AS3, I'm modifying a slideshow I found through thetechlabs. I want it to play SWF as well as JPG. These files are passed through an XML file. I added

  • Oracle Gateway Not Connecting to Sybase database

    Hi, I'm trying to setup an oracle gateway to connect to Sybase database. I followed in details the instructions but still can connect successfully. The Oracle database is in RAC environment. Below are the steps I took: The oracle gateway and oracle d

  • Newsbie : JTable relate to database

    Dear all: I want to write a program , which display all database record in the JTable I dont know how to start as I am fresh . so that anyone help. getter thank