Billing date for a purchase order in the corresponding billing document

Hello,
for a purchase order I need to select the billing date in the bill which corresponds to the purchase order. There is a posting date in the order history but I am not sure that this date is identical with the billing date in the purchase order. Any suggestions? Thanks.
Regards, Lars.

I guess you are talking about due date for a billing document.
There's an FM Determine_Due_date for that. before that you'll have to use FM FI_DOCUMENT_READ with I_AWTYP as VBRK and I_AWREF as Billing Document Number. You will get T_BSEG entry.
  CALL FUNCTION 'FI_DOCUMENT_READ'
   EXPORTING
     i_awtyp           = 'VBRK'
     i_awref           = po_vbeln
   TABLES
     t_bseg            = i_bseg
  SORT i_bseg BY vbeln.
READ TABLE i_bseg WITH KEY vbeln = 'Billing Document Number'.
  IF sy-subrc IS INITIAL.
    MOVE-CORRESPONDING i_bseg TO wa_faede.
    CALL FUNCTION 'DETERMINE_DUE_DATE'
         EXPORTING
              i_faede                    = wa_faede
         IMPORTING
              e_faede                    = wa_faede
         EXCEPTIONS
              account_type_not_supported = 1
              OTHERS                     = 2.
This wa_faede will have due date in one of its fields.
Hey do reward points if this post is helpful.

Similar Messages

  • Report of expiry dates for framework purchase orders

    Hi,
    In Standard SAP is there any report of expiry dates for framework purchase orders?
    Thanks & Br,
    Sandeep

    Hi
    There is no standard report available to display the expiry dates for frame work orders.You can get the details from table EKKO and field is KDATE or U have to go for development.
    regards
    Ramakrishna

  • Printing Terms and Conditions for each Purchase order in the RDF output

    Hi All,
    Present i have an RDF report with the registered concurrent program. when i run this concurrent program i am getting the terms and conditions at the end of the purchase orders only once(for example 10 purchase orders). Now the requirement is to get this terms and conditions printed for each purchase order. The output is in PDF format. It's an 11i RDF report. Can any one suggest me the methods how to do this? Please give me reply as soon as possible.
    Thankyou in advance
    Regards,
    Polimera

    Hi, Polimera
    Welcome to OTN
    Present i have an RDF report with the registered concurrent program. when i run this concurrent program i am getting the terms and conditions at the end of the purchase orders only once(for example 10 purchase orders). Now the requirement is to get this terms and conditions printed for each purchase order. The output is in PDF format. It's an 11i RDF report. Can any one suggest me the methods how to do this? Please give me reply as soon as possible.
    Take a fixed frame inside the purchase order master repeating frame and place your terms and condition inside the fixed frame.
    Hope this helps
    If someone response is helpful or correct, please mark is accordingly

  • Disabling spool request generation for a purchase order

    Hi,
    I have a requirement as follows :
    In ME22n, according to standard configuration for a purchase order whenever the indicators 'Deliv. compl' or 'invoice flag' is checked or unchecked and saved, a spool request is generated. This spool request can be viewed in messages tab of PO.
    My requirement is to disable the spool request generation on change of the above mentioned indicators.
    I have found a user exit 'EXIT_SAPMM06E_016' which is triggerred on clicking on 'SAVE' of PO.
    I am unable to find the field or structure with which i can disable the generation of spool request.
    Your help is much appreciated!
    Thanks & Regards,
    Richa Aggarwal

    Richa,
    you can replace 101 with your routine number. who said you cannot? in NACE, output procedure
    the code in 101.
    FORM KOBED_101.
      LOOP AT XNAST WHERE KSCHL EQ KOMT1-KSCHL AND
                          OBJKY EQ MSG_OBJKY   AND
                          AKTIV EQ SPACE       AND
                          VSTAT EQ '0'.
        EXIT.
      ENDLOOP.
      CHECK SY-SUBRC NE 0.
      SY-SUBRC = 4.
      CHECK ( KOMKBEA-DRUVO EQ NEU OR KOMKBEA-DRUVO EQ AEND ).
      CLEAR SY-SUBRC.
    ENDFORM.
    *       FORM KOBEV_101                                                *
    FORM KOBEV_101.
      LOOP AT XNAST WHERE KSCHL EQ T683S-KSCHL AND
                          OBJKY EQ MSG_OBJKY   AND
                          AKTIV EQ SPACE       AND
                          VSTAT EQ '0'.
        EXIT.
      ENDLOOP.
      CHECK SY-SUBRC NE 0.
      SY-SUBRC = 4.
      CHECK ( KOMKBEA-DRUVO EQ NEU OR KOMKBEA-DRUVO EQ AEND ).
      CLEAR SY-SUBRC.
    ENDFORM.
    so you can copy the code from these forms, and keep them before your code in your custom routine,.. like:
    FORM KOBED_901. "==> i am creating a new VOFM routine 901 here
      LOOP AT XNAST WHERE KSCHL EQ KOMT1-KSCHL AND
                          OBJKY EQ MSG_OBJKY   AND
                          AKTIV EQ SPACE       AND
                          VSTAT EQ '0'.
        EXIT.
      ENDLOOP.
      CHECK SY-SUBRC NE 0.
      SY-SUBRC = 4.
      CHECK ( KOMKBEA-DRUVO EQ NEU OR KOMKBEA-DRUVO EQ AEND ).
      CLEAR SY-SUBRC.
    "==> from here add your code.
    data:lv_subrc type sy-sibrc.
    if xyz NE asdasd "==> your validations..
    lv_subrc = 4.
    endif.
    sy-subrc = lv_subrc.
    ENDFORM.
    *       FORM KOBEV_901                                                *
    FORM KOBEV_901.
      LOOP AT XNAST WHERE KSCHL EQ T683S-KSCHL AND
                          OBJKY EQ MSG_OBJKY   AND
                          AKTIV EQ SPACE       AND
                          VSTAT EQ '0'.
        EXIT.
      ENDLOOP.
      CHECK SY-SUBRC NE 0.
      SY-SUBRC = 4.
      CHECK ( KOMKBEA-DRUVO EQ NEU OR KOMKBEA-DRUVO EQ AEND ).
      CLEAR SY-SUBRC.
    "==> from here add your code.
    data:lv_subrc type sy-sibrc.
    if xyz NE asdasd "==> your validations..
    lv_subrc = 4.
    endif.
    sy-subrc = lv_subrc.
    ENDFORM.

  • Invoive booked amount for a Purchase Order  for a vendor

    how is Invoive booked amount for a Purchase Order against the respective vendor in available in tables

    Hi,
    These are the tables where you can get the invoice amount details for a purchase document.
    EKBE-History of purchase document
    BKPF-Accounting document header
    BSEG-Accounting document segment
    RSEG-Document item-Incoming invoice.
    Regards,
    Rambhupal reddy

  • Posting of Components made compulsory for Subcontracting Purchase orders

    Hi
    I am working in ECC 6.0. In case of Goods receipt for subcontracting Purchase Orders, does the child quantities automatically changes when i change the default quantity of Header material according to the BOM relation ? I found it is not happenning.Please inform is this standard?
    Also i can post the documentfor  header material without the components,by manually changing the quantities for Child items .Kindly give a me suggestion by which this can be controlled.
    Regards
    Arvind

    Hi,
    1.
    The component changes as per the header material in MIGO when you want to do GR. Please take care that the components musn't be exploded when you change the qty of the BOM header material. If they are exploded, collapse them ("close the explosion"), after that change the qty of header material and when you explode the components again you should get the proper quantities (this button is in the line of BOM header material).
    2.
    As per my best knowledge, in standard system you cannot restrict/control the change of component quantities. The cause of it might be that the quantity of components may differ from the rates defined in the BOM and the user HAVE TO CHANGE the quantities as per the real consumption.
    Solution might be training. If the user intentionally changes the component quantities, this is a HR issue..
    Regards,
    Csaba.
    Edited by: Csaba Szommer on Dec 26, 2008 5:14 PM

  • How to prevent Output to be generated for Return Purchase Order.

    Hi All,
               while creating a return Purchase Order the output is getting triggered. Now for Return Purchase Order the business does not want the output to be generated.
    So is there a way by which we can have the automatic output generated for normal Purcahse Order but not for Return Purchase Order.
    The system uses standard Output Type NEU for message. And condition record maintained for generating output (print/email) while saving.
    Is there a way by which this issue can be addressed.  if so how ?
    Thanks.

    Dear all ,
    a material goes storage location to client  through pr ,in client site i get faulty material
    i want to retorn that to my plant or storage location
    that basis how to make retorn po and what are the procedure ?
    what is movement type ?
    Regards
    shiv

  • Data Migration for Open Purchase Order

    Hi, All,
    Is there anyone know how to Count the volume for Open Purchase Order. What's the normal strategy for the Data Migration and Cut-over stage?
    My client want to know how many Open Purchase Order in the legacy system and then determine manual or automatic data migration. If manual, how to do? If automatic, how to do? Because all materials and vendors, plants are different number. How to track? How to find out to match between new and old?
    Thank you very much

    JC,
    Sounds a bit early to be making decisions about the realization phase.  It doesn't sound like you have finished the Blueprinting phase yet, much less the testing phase.
    Anyhow, in my experience I typically use LSMW (Legacy system migration workbench) to load MM master data (material masters), Inventory (WIP, RM, FG, etc) Purchasing Master data (Vendors, Purchase Info Records, Source Lists, Quota Arrangements), and Purchasing transactional documents (POs, PurReqs, Scheduling Agreements, etc).  Depending on the complexity and volume of data, it  may be necessary to write custom programs to load the data.  You will find this out during your requirements gathering.
    It is uncommon but possible to load all of these data manually.  I have never run across a client that wants to pay a consultant's hourly rate to sit at a terminal to peck away loading master data, so if the client intends to have his own users enter the data manually, the project manager should make provision that there will be qualified TRAINED client employees available for this data entry.  I did help with a portion of a conversion once manually; of Sales Credits, but there were only about 30 SD docs to load.   I did this the evening before go-live day, while I was waiting for some of my LSMW projects to complete in the background.
    A good opportunity to 'practice' your data loads is right after you have completed your development and customization, and you have gotten the approval from the client to proceed from the pilot build to the full test environment.  Once you have moved your workbench and customization into the client's test environment, but before integration testing, you can mass load all, or a substantial portion of your conversion data into the qual system.  You can treat it like a dry run for go-live, and fine tune your processes, as well as your LSMW projects.
    Yes, it is good practice to generate comparisons between legacy and SAP even if the client doesn't ask for it. For Purchase orders on the SAP side, you could use any of the standard SAP Purchasing reports, such as ME2W, ME2M, ME2C, ME2L, ME2N.  If these reports do not meet the requirements of the client, you could write a query to display the loaded data, or have an ABAPer write a custom report.
    You didn't ask, but you should also do comparisons of ALL loaded data - including master data.
    It sounds like you are implying that the client wants YOU to extract the legacy data.  For an SAP consultant, this is not very realistic (unless the legacy system is another SAP system).  Most of us do not understand the workings of the myriad legacy systems.  The client is usually expected to produce one or more legacy system technical experts for you to liase with.  You normally negotiate with the technical expert about every facet of of the data migration.  In addition, you will liase with business users, who will help you and the implementation team to logically validate that the final solution (turnkey SAP production system, fully loaded with data) will meet the client's business needs.
    Finally, you mentioned how do you track the mapping of master data between legacy and SAP.  There are many ways to do this.  I normally try to get the legacy person do the conversion on his end, eg, when he gives you the load file, you would like to have already translated the master data and inserted the SAP relevant values into the file.  If this is not possible, I usually use MS Access databases to maintain a master map, and I perform the mapping on a PC.  If your data package is small, you can probably get by using MS Excel or similar.
    Good Luck,
    DB49

  • 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

  • Create a Purchase order using the BAPI using the data in the XML file.

    Hello Gurus,
    here is the scenario can anyone help me how to proceed explaining the procedure?
    Create a Purchase order using the BAPI using the data in the XML file.
    comprehensive explanations are appreciated.
    thanks in advance.

    hi,
      first use fm "bapi_po_create".
      then use fm "BAPI_ACC_GL_POSTING_POST"
    The demo environment was made with real business scenario in mind, but following subjects need to be addressed in a live implementation:
    •     No exceptions and error handling is implemented, except the order rejection (e.g. partly delivery);
    •     In Navision both XML Ports and the XML DOM has been used to integrate with SAP XI, because XML ports has some drawbacks regarding to Namespaces in XML Documents (mandatory in SAP XI);
    •     A minimum of SAP and Navision customization is required to implement this solution. (e.g. user exit in SAP, Navision XML DOM).

  • Delivery date in Purchase Order in the item overview

    Hi all,
    In which table is Delivery date in Purchase Order in the item overview stored.
    the screen field name is eeind.
    Thanks

    In table EKET in field EINDT the delivery date is stored, based on the Schedule lines in the PO Item

  • Bom explosion in the item detail screen for standard purchase order

    Hi Gurs,
    we have a requirement to expolde bom in standard purchase order in the main item screen like in any
    sales order where
    main item will be item 10
    sub item will be item 20
    sub item will be item 30
    we had already exploded bom through subcontracting but sub items are getting in a different screen.
    Is there any way where we can get the subitems in the main screen rather than subscreen.
    It will be gr8 if you can provide us any userexit/badi.
    pls give your suggestions.
    Thanks & Regards,
    Radhakrishna.

    Hi,
    This is not possible in standard SAP. However, you can create a custom program to make this happen. The custom program should explode BOM for the material you enter and then call the bapi BAPI_PO_CREATE to create PO with all the components one after the other in the same PO.
    Thanks,
    Rana

  • Set the final invoice flag for a purchase order

    I want to know how to set the final invoice flag for a purchase order.
    I tried BAPI_PO_CHANGE but it is giving me error.
    Help me.

    Hi,
    I think ur BW report shows the cleared Invoice no. The second invoice no. might not have been extracted to BW system. Check your order no. in Cube whether it has two invoice nos.
    Regards,
    Suman

  • How to Park the single invoice for multiple purchase orders

    Hi,
    How to Park the single invoice for multiple purchase orders?

    brother this is possible to enter one Invoice fro multiple purchase order.
    call transaction MIR7, select " purchase order/Scheduling Agreement" from the PO refernce Tab. then click on arrow. give your purchase orders here.
    Thanks

  • How to find the supplying plant for a purchase order

    Hi Guru,
    My requirement is to dispaly the suppling plant and some other fields for the purchase orders using ALV report.
    Could any one help me how to find the supplying palnt for a purchase order.
    Suggest me any function module or with sample coding
    Regards
    Paul

    Hi Ravi,
    You are solution is right but in that table the supplying plant is not updated
    Could you suggest me any other tables
    Regards
    Paul

Maybe you are looking for

  • Firefox crashes while starting up

    After having used Firefox for years on my iMac, today it won't even start but immediately crashes. I have tried starting from the safe modus and I have installed the latest software updates. Also I use the lates Mac OS X version. My safety program re

  • Oracle returning incorrect day of the week

    Hi there, I have a table named Performance, which includes a date field named PDATE, some other attributes such as title, etc, and a field named WEEKDAY, which includes the numerical value for the day of the week. Here is an example: PER# P# THEATRE#

  • Error signaled in parallel query server p005 DATE format comparison

    Hello All, I have a data like this. {code} j_id   s_id     b_id    lc   t_date                             my_val1     my_val2 100    200    300     prs   2013-07-17 16:01:47         myval1     myval2 100    200   300     prs    2013-07-17 16:01:47  

  • Unable to load gpib-32.dll when running the visual basic 2008 program

    I installed NI-488.2 into my PC, window 7 64 bit OS. In the program >> project> add reference>.NET, I successfully add the NI.4882  into my visual basic  program. By the way, this program worked well in another window 7 32 bit PC. But when I run the

  • Unable to Create Portal Resource for contentListTemplateDef

    Using JDeveloper 11g PS 5 and WebCenter Spaces. We are trying to create a Content Presenter template list definition. We've already created a template item definition which went fine. If we have a simple Content Presenter template list definition: <?