Purchase Order History Program - not working properly

Dear friends
i am developing purchase order history program in ALV,
which shows the report of purchase order status
i.e (fields as below).
document no
PO date
line item
material number
material name
purchase org
plant
purchase group
orderd quantity
ordered amount
delivered quantity
delivered amount
to be delivered quantity
to be delivered amount
invoice quantity
invoice amount
to be invoiced quantity
to be invoiced amount
how to test from me23n
open me23n
enter PO number
press status tab
you can get some fields for verification..
the problem is
i can get all the details correctly except delivered amount and to be delivered amount
it works fine in both ( material purchase order and service purchase order )
sometimes i am getting incorrect values in service purchase order specifically in delivered amount and to be delivered amount
why i am getting these incorrect values ??
only couple of POs generate these things.
i am getting these values from EKBE table and using proper filtration like movement type and etc...
if anyone can resolve ... would be appreciable
avirat.

Hi,
for getting proper Po History you need to select PO's details from EKKO table and
Header details from CHANGEDOCUMENT_READ_HEADERS based on the details got from this FM pass
to the FM CHANGEDOCUMENT_READ_POSITIONS and get proper details.
This is the logic used by the standard program also to get the PO History.
Hope this helps.
Regards
Bikas

Similar Messages

  • Purchase Order history is not updated with Invoice number

    Hello Experts ,
    Please suggest some inputs/solution for my problem.
    Scenarios is :
    PO --> SO --> Invoice
    I am creating the invoice with the medium EDI , when I click on Save button IDOC is generated with the message " IDoc 'xxxxxxxxxxxxx' was created and forwarded for transmission " and it showing the status as 03 i.e, The IDoc was sent to an R/3 System or an external program via a transactional RFC ...but the problem is if I got to the Purchase Order history Its not updated with the Invoice number.
    What could be the problem , please suggest.

    Hi!
    I'm not sure, in which process you link PO and SO. There are some different ways, which are totally different scenarios - if you need help here, describe more detailed.
    Your invoice is probably only created with reference to SO, so check the invoice itself. In this case also the SO history should include the invoice.
    Regards,
    Christian

  • Purchase Order History SES not shown when not accepted

    We are working on 2 systems : one is ECC 6.0 and the other is 4.6.
    When i create a SES via ML81N and the SES is not released yet : on the 4.6 version, the SES is shown in the purchase order history, while in the ECC 6.0 version, the SES is not shown in the purchase order history. In ECC 6.0, the SES is shown inthe purchase order history tab after the SES has been accepted.
    Is this a setting in customizing or a difference in the 2 versions of SAP?

    Hi,
    no, it might be a coding error or an inconsistency issue.
    Please check the note
    442091 - Service entry sheet missing in purchase order hist
    In order to repair already existing inconsistencies, you can use report    
    RMESSRK2 (from Note 141870 or as of Release 4.6C in development class       
    ML_TOOLS). However, the report must be modified in the two positions        
    specified in the attachment.                                                                               
    If you can not find the report RMESSRK2 in transaction SE38                 
    in your system - or in transaction SE80 under the development class         
    ML_TOOLS, then please copy the program from the attached note               
    ML_TOOLS into your system and correct the coding according to               
    note 442091.       
    Regards,
    Edit

  • In Purchase order history is not showing the Reversal of goods price

    Hello friends,
    I have created a PO , for that i have done the GR and invoice. Now i want to reverse the goods using MType-102, for that i have created the credit memo .
    I have done the reverse GR ,But in Purchase order history the For the GR reversed doc, its showing the price as 0.
    Pl help me out .

    Hi,
    If your forward 101 material document is with price and it is showing in PO history and your reverse 102 material document is not with price in PO history , check the accounting document of 102 and if it is with price , then PO history is not properly updated.also check table EKBE and if po history is not properly updated , check for a relevant note and apply.
    Regards,

  • Purchase Order History Reference not filled

    Hello everyone,
    we are using BAPI_INCOMINGINVOICE_CREATE to create an invoice for an purchase order. It works just fine except that there no Reference filled in the Purchase Order History. We fill the number of the reference to the BAPI (headerdata-ref_doc_no) and the reference is visible on the created FI document as expected.
    However the customer insists, that it has to be visible in the field Reference of the Purchase Order History as well. I know, it is the XBLNR field of the table BSEG. I dug deep in the source codes to find out, where is the problem, but setting of this field seems to be very complicated. Someone told me, that the field is only filled when the GR-Based Invoice Verification is checked (which in our case is not).
    Can someone tell me the rules, when the field Reference gets filled? Or (if there is anything) how to customize the system, co make this field filled?

    Hi Oleg,
    thank you for your reaction.
    I am aware of that there is a field XBLNR in the BKPF table - and there we have the reference filled correctly (it is visible on the FI document as I mentoined). However in the BSEG table is the XBLNR as well and it is related to displaying Reference in the Purchase Order History (the bseg relates to an PO item) at least in our case. When I manually input in the BSEG-XBLNR a value (via SE16N for example), it displays afterwards in the required field when viewing the Purchase order.
    In the case GR-Based Invoice Verification procedure and the table MKPF - i believe, you are right there (so the Reference is filled), however this is unfortunatelly not our case.
    What I am trying to find out are the conditions, under which the XBLNR in BSEG is filled (I can tell you, what source codes I have been inspecting, but I got lost after I while, because there are literally thousands of lines of code:-(

  • Apple + Tab between programs not working properly

    I've never had a problem with tabbing between programs until the past week. Specifically, it's tabbing from any program back to Firefox. I'm running OS X 10.4.11 on an iBook G4 and Firefox version 2.0.0.14. Basically, what is happening when I tab to Firefox is that Firefox becomes the active program (the program appears in the top bar) but the browser window doesn't show up. The only way I can get the window to show up is to open a new browser window followed by closing it (or by pressing F9 and selecting the window manually), then the original browser window becomes the active one. Has anyone ran into a similar problem? Or more importantly, does anyone have a solution?

    I can confirm it IS NOT the remote. We have 4 ATV G2 here and all the remotes work fine for three of the boxes. One box, even after factory reset, will not allow any of the remotes to scroll/select up direction in menus. Again- multiple remotes that work fine for other ATV boxes will not work in the up direction on a single ATV. Definitely a problem after latest update on at least some of the hardware!

  • Purchase Order Driver Program Not loading SMARTFORM

    Hi,
    I have developed Z smartform by copying from standard form and tried to call from standard program only but here I am not able to call my Z smartform and I am able to call only Z SAPSCRIPT from this standard program.
    I have done all the necessary changes in NACE transaction but then also only when I keep the script name its working fine but when I replace this by smartform name the driver program is not calling smartform .!! why?
    Please do let me know why is it like this?
    Thanks
    Sudharshan

    Hi,
    PO driver program is written to support only SAPSCRIPT. So if you want to assign smartform in NACE, you should take a Zcopy of the driver program SAPFM06P with its include FM06PE02 as ZFM06PE02. And give the zprogram against the driver program field in NACE.
    Then you need to replace the entry_nue subroutine in ZFM06PE02 with the below code.
    form entry_neu using ent_retco ent_screen.
      data: l_druvo like t166k-druvo,
            l_nast  like nast,
            l_from_memory,
            l_doc   type meein_purchase_doc_print.
    * Data Declaration for PO smartform Modification
    DATA: fname TYPE rs38l_fnam,
            xkomk TYPE TABLE OF komk,
            gs_output TYPE ssfcompop,
            gs_dialog TYPE ssfctrlop.
      clear ent_retco.
      if nast-aende eq space.
        l_druvo = '1'.
      else.
        l_druvo = '2'.
      endif.
      call function 'ME_READ_PO_FOR_PRINTING'
           exporting
                ix_nast        = nast
                ix_screen      = ent_screen
           importing
                ex_retco       = ent_retco
                ex_nast        = l_nast
                doc            = l_doc
           changing
                cx_druvo       = l_druvo
                cx_from_memory = l_from_memory.
      check ent_retco eq 0.
       IF tnapr-sform NE ' '.
        CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'
          EXPORTING
            formname           = tnapr-sform
          IMPORTING
            fm_name            = fname
          EXCEPTIONS
            no_form            = 1
            no_function_module = 2
            OTHERS             = 3.
        IF sy-subrc EQ 0.
            gs_dialog-no_dialog = 'X'.
            gs_dialog-preview = 'X'.
            gs_output-tddest = 'LP01'.
            gs_output-tdnoprev = ' '.
            gs_output-tdnoprint = ' '.
            gs_output-tdimmed = 'X'.
            gs_output-tdnewid = 'X'.
         CALL FUNCTION fname  " modify the interface as per your needs
            EXPORTING
              control_parameters = gs_dialog
              output_options     = gs_output
              user_settings      = ' '
              zxekko             = l_doc-xekko
              zxpekko            = l_doc-xpekko
            TABLES
              l_xekpo            = l_doc-xekpo
              l_xekpa            = l_doc-xekpa
              l_xpekpo           = l_doc-xpekpo
              l_xeket            = l_doc-xeket
              l_xtkomv           = l_doc-xtkomv
              l_xekkn            = l_doc-xekkn
              l_xekek            = l_doc-xekek
              l_xkomk            = xkomk
            EXCEPTIONS
              formatting_error   = 1
              internal_error     = 2
              send_error         = 3
              user_canceled      = 4
              OTHERS             = 5.
        ELSE.
          CALL FUNCTION 'ME_PRINT_PO'
            EXPORTING
              ix_nast        = l_nast
              ix_druvo       = l_druvo
              doc            = l_doc
              ix_screen      = ent_screen
              ix_from_memory = l_from_memory
              ix_toa_dara    = toa_dara
              ix_arc_params  = arc_params
              ix_fonam       = tnapr-fonam                      "HW 214570
            IMPORTING
              ex_retco       = ent_retco.
        ENDIF.
      ELSE.
        CALL FUNCTION 'ME_PRINT_PO'
          EXPORTING
            ix_nast        = l_nast
            ix_druvo       = l_druvo
            doc            = l_doc
            ix_screen      = ent_screen
            ix_from_memory = l_from_memory
            ix_toa_dara    = toa_dara
            ix_arc_params  = arc_params
            ix_fonam       = tnapr-fonam                        "HW 214570
          IMPORTING
            ex_retco       = ent_retco.
      ENDIF.
    endform.
    While calling the smartform modify the fm interface to your needs.
    This will solve your problem.
    Regards
    Karthik D

  • Program not working properly.

    Hello all,
    The code below display a button and 3 option (radio) buttons. The program must uncheck the selected radio button when the button is clicked. Actually nothing happens in this code, that is the selected radio button has no change. Can anyone give a helping hand.
    regards,
    ==================
    import java.awt.*;
    import java.awt.event.*;
    public class CheckGroupDemo extends Frame {
         private CheckboxGroup cg;
         private Checkbox[] cb;
         private String[] cbLbl = { "Red", "Blue" ,"Green" };
         private Button cancel;
         public CheckGroupDemo () {
              super("Checkbox Group Demo");
              Panel p = new Panel();
              cg = new CheckboxGroup();
              p.setLayout(new GridLayout(3,1));
              cb = new Checkbox[cbLbl.length];
              for (int i=0; i<cbLbl.length; i++) {
                   cb[i] = new Checkbox(cbLbl,cg,false);
                   p.add(cb[i]);
              cancel = new Button("Clear All");
              cancel.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e) {
                        for (int i=0; i<cbLbl.length; i++) {
                             if (cb[i].is)
                             cb[i].setCheckboxGroup(cg);
                             cb[i].setState(false);
              setLayout(new BorderLayout());
              add(cancel,"North");
              add(p,"Center");
              pack();
         public static void main(String[] a) {
              CheckGroupDemo app = new CheckGroupDemo();
              app.setVisible(true);
              app.addWindowListener(new WindowAdapter () {
                   public void windowClosing(WindowEvent e) {
                        System.exit(0);

    Hello, I have tried using JRadioButton objects,but when i click on the Cancel button the selected JRadioButton does not get deselected. please tell me what is wrong in my code?
    regards,
    import javax.swing.*;
    import java.awt.event.*;
    import java.awt.*;
    public class CheckGroupDemo extends JFrame {
         private ButtonGroup cg;
         private JRadioButton[] rb;
         private String[] cbLbl = { "Red", "Blue" ,"Green" };
         private JButton cancel;
         private JPanel p;
         public CheckGroupDemo () {
              super("Checkbox Group Demo");
              p = new JPanel();
              cg = new ButtonGroup();
              p.setLayout(new GridLayout(3,1));
              rb = new JRadioButton[cbLbl.length];
              for (int i=0; i<cbLbl.length; i++) {
                   rb[i] = new JRadioButton(cbLbl,false);
                   cg.add(rb[i]);
                   p.add(rb[i]);
              cancel = new JButton("Clear All");
              cancel.addActionListener(new ActionListener() {
                   public void actionPerformed(ActionEvent e) {
                        for (int i=0; i<cbLbl.length; i++) {
                             if (rb[i].isSelected())                          
                                  rb[i].setSelected(false);
                                  rb[i].repaint();
              setLayout(new BorderLayout());
              add(cancel,"North");
              add(p,"Center");
              pack();
         public static void main(String[] a) {
              CheckGroupDemo app = new CheckGroupDemo();
              app.setVisible(true);
              app.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

  • Download History does not work properly

    I would like very much to download again the files I have downloaded, but it seems quite frustrating when trying to do that. When accessing ovi music throught Nokia Music Player then accessing Download History I can only download albuns that do not need to be full downloaded, that is, some of them needs to be fully downloaded and other not, besides that problem when I click download to get an album I have to refresh the page as it wont allow me to download again, it seems to have many bugs, bugs that did not exist when downloading the album not from the history.
    Attachments:
    nokia.png ‏144 KB

    Hi xcap2000
    Sorry to hear about your mishap. Could you try one of the following:  log on music store  or nokia suite and see if you access your account and all your previously downloaded items which can be 
    under 'my stuff'.
    If  you are able to use any of the steps above then you may need to reset your phone  or take it to a Nokia care point for further assistance.
     I hope this answers your query.
    Regards 
    Carl
    If this post answers your question, you can help others by clicking the green accepted solution' button.
    Please ask your questions to the main board and not to my mailbox. Thank you.

  • Why is my Acer "Ab Files" program not working properly when I download it to my Acer Aspire One?

    Hello there, Im having an issue with trying to download Acers Ab files that works with the apps for Iphone. When I do download it and I click on it, my screen goes black for a second and then everything on my screen gets huge like its in SAFE MODE. I've tried to uninstall it and it keeps doing the same darn thing. I've checked for recent updates for windows and spy and malware and any corrupt files using a program that detects and fixes them. It comes up clean. This program used to work on my computer and now it doesn't. So far, I think its the only one that works convienently using wireless, unless theres another app that does the same. Anyone have this problem? Thanks....

    Charliewhitepaw,
    When you say this program used to work on your computer, what has changed since then? Have you attempted to go back (system restore) to when it worked to see if that resolves the issue?

  • Purchase Order History not updated properly

    Hi All,
    The Purchase Order History is not updated correct.
    Scenario:
    The  Invoice is created ( MIRO) with Amount : 1001 USD but in PO History it displays 1000 USD.
    The Tolerance is 1 USD ...My Requirement is that it should display 1001 in PO History.
    Thanks and Regards
    Mahesh

    The Actual Bill Value is 1001 USD.

  • Purchase Order history not updating in my STO

    Dear Experts,
    We are doing stock transfer order internally for FERT and *BOUGHT OUT * items. Now at the time of delivery through VL10B all bought out items are appear in outbouddelivery but FERT item material is not coming automatically in delivery.  System pickes up item category as NLN but if i manually added FERT material at the end system picks up item category as ULN & purchase order history also not updated in STO.
    Also in MD04 system is showing reservation against STO number & the result is i am not able to do delivery because system is showing message as only 0 qty is available for picking
    Can any body helps me in this?
    Thanks
    Trupti

    Hi,
      Define your item category setting for your Delivery..
    Under SPRO>Loge-Exce>Shipping-->Define item category determination in Deliveries.
    Note: You should not enter the line item manually in delivery, thus it will store the item category as DLN  (DLN is for without order Reference) so it wont record any history.
    Regards
    GK..
    Edited by: Gnana Kumar on Oct 26, 2010 1:04 PM

  • Table for Purchase Order and Non Purchase order history

    Hi,
    Could you please share me the table name for getting the Purchase order history and Non purchase order history because this is a client requirent.
    I have gone through this tables but not getting exact data i.e. EKPO,EKKO,EKNE...
    please share with me the exact Table name to get all the Purchase order history and not purchase order history..
    Thanks in advance

    Hi Mallikarjun,
    Where did you find the non po info?
    Thanks,
    Neha

  • Purchase order history for service entry sheet

    Hello All,
    I created 3 service entry sheets for service P.O. however I saved it with out accepting them. Why the Purchase order history is not updated after the service entry sheets were saved?
    When I created another service entry sheet for the same P.O. and accepted the service entry sheet and then saved it, the purchase order history was updated along with the posting of latest service entry sheet and previous three service entry sheets are also visible.
    Why this is happening? Please help.
    With regards.
    Sanjay

    Dear Prashant,
    Thanks for the response.
    1) Whenever a SES is saved (without acceptance) an entry  gets updated in PO history with out posting document number.
    2)Material doc. entry gets updated in P.O. history table when SES is accepted and saved.
    Sl. no. 1 is not happening when I create SES for the first time. Once 2nd SES is made and accepted and saved. After that all entries including the first one is shown in P.O. history table.
    Thanks and regards.
    Sanjay

  • I recently upgraded my motherboard on my MacBook Pro and I need to re-download the Adobe CC software I purchased. My Purchase Order History claims I didn't have a history. There are not options to redownload either. I am logged on right now. Please advise

    I recently upgraded my motherboard on my MacBook Pro and I need to re-download the Adobe CC software I purchased. My Purchase Order History claims I didn't have a history. There are not options to redownload either. I am logged on right now. Please advise.

    Does your Cloud subscription properly show on your account page?
    If you have more than one email, are you sure you are using the correct Adobe ID?
    https://www.adobe.com/account.html for subscriptions on your Adobe page
    If yes
    Some general information for a Cloud subscription
    Cloud programs do not use serial numbers... you log in to your paid Cloud account to download & install & activate... you MAY need to log out of the Cloud and restart your computer and log back in to the Cloud for things to work
    Log out of your Cloud account... Restart your computer... Log in to your paid Cloud account
    -Sign in help http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html
    -http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html
    -http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
    -http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html
    -ID help https://helpx.adobe.com/contact.html?step=ZNA_id-signing_stillNeedHelp
    -http://helpx.adobe.com/creative-cloud/kb/license-this-software.html
    If no
    This is an open forum, not Adobe support... you need Adobe staff to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"

Maybe you are looking for

  • Downloaded song tonight- Now my computer can't find it

    I bought the song and downloaded it without any problems. It shows up in my "Purchased" playlist so I know it WAS there. Now when I go to look for it on my hard drive or nano it can't be found. The only thing I can think of is that the title of the s

  • Sayit App for Playbook doesn't work

    I cannot get Sayit for the BB Playbook to work. The program states to allow permissions for mic but I don't have any settings to do so After numerous reinstalls (3 different playbooks) still doesn't work. The company doesn't respond to my emails so I

  • Uninstalling problem with E65

    Hallo, I have installed the program Skeyecaller on the C partition. Now I like to uninstalled. When I go to manage applications I see to files: SkeyCaller (installed) Skeyefault (installed) Both files not aluud me to delete it! I can't delete Skyecal

  • Fglrx + xrandr extended desktop + ATI 7970m = jitteryness

    For lack of a better term I get jitteryness whenever I extend my laptop's desktop to an external monitor using Xrandr, when using Catalyst/fglrx. It behaves a little differently depending on whether or not I'm using 3d rendering. For instance: * In g

  • IR Error: OUT of Memory. Close other applications or windows and try again.

    Hi, We recently moved from an 9.3.3 to 11.1.2.3. and working on IR reports. While running few reports we get this error and the client system has GB or ram and the server is allocated 4 GB or ram for IR reports. I see the file it is trying to retriev