Can 2 invoice number be created with the same Purchase Order number

HI,
I have created one invoice number with a Purchase order number 4500020000. Now is it possible to create a another invoice number with the Same PO

In me23n transaction go to Invoice tab(In items), there will be a check box for <b>Final Invoice</b>. If it is checked, full amount is invoiced.
The same can be checked in table EKPO.
Field EREKZ = 'X' means final invoice done.
another method is:
foe each item:
go to table EKPO and see the quantity.
then go to table ekbe and get all the invoiced quantity by passing VGABE = '2'. for the PO item.
add all the records with SHKZG = 'H' and subtract the total of all SHKZG = 'S' records.
If this quantity is equal to the ekpo quantity, then there is no more quantity to be invoiced.
Get the PO Item quantities
  SELECT EBELN
         EBELP
         MENGE
    FROM EKPO
    INTO TABLE IT_EKPO
   WHERE EBELN IN R_EBELN.
Get the Invoice Receipt Documents for the POs
    SELECT EBELN
           EBELP
           BEWTP
           MENGE
           GJAHR
           BELNR
           BUZEI
           SHKZG
      FROM EKBE
      INTO TABLE IT_EKBE
      FOR ALL ENTRIES IN IT_EKPO
     WHERE EBELN = IT_EKPO-EBELN
       AND EBELP = IT_EKPO-EBELP
       AND VGABE = C_VGABE_2.
logic to check if the IR Quantity equals the PO Quantity for each Item
  LOOP AT IT_EKPO.
    CLEAR V_BPMNG.
For each line item, calculate the total Invoiced Quanity
    LOOP AT IT_EKBE WHERE EBELN = IT_EKPO-EBELN
                      AND EBELP = IT_EKPO-EBELP.
Change the sign of the quantity for debit
      IF IT_EKBE-SHKZG = C_SHKZG_H.
        IT_EKBE-MENGE = -1 * IT_EKBE-MENGE.
      ENDIF.
      V_BPMNG = V_BPMNG + IT_EKBE-MENGE.
    ENDLOOP.
If the PO Item Quantity is equal to IR Quantity
    IF IT_EKPO-MENGE = V_BPMNG.   "ARAO
write:/ 'No more quantity to be invoiced'.
    ENDIF.
  ENDLOOP.
Regards,
ravi
Message was edited by: Ravi Kanth Talagana

Similar Messages

  • How can I set up two iPhones with the same contact, photos, music etc... but a different sim card and phone number. They will both be my phones, but one will be for use in other countries.

    How can I set up two iPhones with the same contact, photos, music etc... but a different sim card and phone number. They will both be my phones, but one will be for use in other countries.

    Phone A = phone with information you want duplicated
    Phone B = phone that you want to copy from A
    Backup Phone A.
    Wipe Phone B using these instructions. What to do before selling or giving away your iPhone, iPad, or iPod touch - Apple Support
    Phone B should be on the 'Hello' screen. Do not swipe it. Launch iTunes. Plug in Phone B.
    When iTunes asks if you want to set up as new phone or restore from backup, choose restore from backup of Phone A.
    After this setup, any changes to one phone (i.e. adding a contact, downloading an app) will have to be manually duplicated on the second phone, if that is your desire). Making changes to one phone will not affect the other after setup.

  • Hi, does someone know if I can use two Apple tv's with the same iTunes library? Thanks

    Hi, does someone know if I can use two Apple tv's with the same iTunes library?
    Thanks

    Yes you can use two (or more) AppleTVs with one iTunes library. They can both stream from iTunes (or the internet) at the same time, as long as you have a good working LAN and internet connection.

  • HT204053 can i have multiple iCloud accounts with the same Apple id

    Can i have multiple iCloud accounts with the same Apple id

    Welcome to the Apple Community.
    No, your ID is essentially your account. You can have email aliases and you can have multiple accounts, but I don't think that's what you are asking.

  • Folder created with the same name as a fcpx library

    I recently moved to a new Mac Pro with a Pegasus 2 array from an old machine. I copied my old library across since I couldn't migrate because the old machine was a server. 
    now every time a run FCPX I get a new folder created with the same name as the fcp library.  Inside is library with a timestamp as a name, and inside that is a folder structure which matches the true folder structure in the real library.  The contents of the subfolders are empty (original media, eg).  This parallel folder/library structure remains when I exit fcpx.  Nothing of valuie is put in it.  A new clip or still gets put in the correct place in the true library.
    If I delete this parallel stuff it gets created again next time I run fcpx.  The permissions look ok, the user id is 501.
    Anybody have any suggestions as to what I should do?
    Chris

    Sounds like the folder of back-up libraries. If so, they take up a tiny amount of space and could prove to be very valuable if  a project breaks. Does it look similar to this?
    Russ

  • HT5012 Can I install two root certificates with the same name in iPad?

    Can I install two root certificates with the same name in iPad?

    Antaeus00 wrote:
    I tried sending a request for help,
    But did you succeeed in sending a request for help?
    Did you receive a response? How long has it been since you sent a request?
    but I need someone with more authority to talk to.
    There is no one with more authority than iTunes store support. We herem are only users.

  • Can I use two separate computers with the same adobe ID.  I want to update my kobo from either unit

    Can I use two separate computers with the same adobe ID.  I want to update my kobo from either unit

    I doubt it is possible to run two instances of iTunes on the computer at the same time.  To do so would require two users to be signed in and running iTunes under each user.
    The better solution would be to either clean up and merge the two libraries or have iTunes running on a second computer.

  • HT204074 Can multiple Itune IDs be associated with the same library?

    Can multiple Itune IDs be associated with the same iTunes library?

    Refer to this article:
    iTunes: How to share music between different accounts on a single computer
    http://support.apple.com/kb/HT1203

  • How can i find my lose iphone with the same apple id i use now

    how can i find my lose iphone with the same apple id i use now

    If you set it up on your iPhone before you lost it then you can sign into your iCloud account on a computer and attempt to locate it.

  • How can I get my ipad to reflect the same playlist order that appears on my computer?

    How can I get my ipad to reflect the same playlist order that appears on my computer?  My computer has the exact desired order of playlist, but once the system is synced, the ipad does not reflect the propper order.

    In iTunes with your playlist shown in the correct order, right-click on the playlist name in the side-bar and click Copy to Play Order. Enable the side-bar with CTRL+S if necessary. Sync. Note also that the column you are sorting on should have the small triangle pointing upwards, otherwise the songs will play in the reverse order. You may also find that you need to first remove, and then add back the playlist to the device if syncing doesn't update it properly. See this post for more.
    tt2

  • How can I open a new window with the same website like the one I have open?

    In safari I can open a new window with the same website like the one I have open, that makes it easy continuing to navigate on a website and to go back to the original website

    Hello Andieas
    Why open a new window for fast browsing??
    Open new tabs.
    Just right click on what you want to open and click "Open in new Tab"
    It is easy and doesn't consume memory from your computer as well as easy to navigate.
    Hope you'll like it

  • Can I open new terminal window with the same path?

    Hello.
    I use Terminal for bash-shell.
    When I work at a certain directory, can i open new terminal(command + N) with the same directory?
    For example, when i am in /Developer and press command+N, I want a new terminal window with /Developer path.
    Thanks for reading and I'm sorry for my short english.

    Command-N will open a new Terminal window in your Home (~) Directory by default.
    Use the "Open Terminal Here" script for more control
    http://www.entropy.ch/software/applescript/

  • Can I have multiple event structures with the same event cases?

    Hello, 
    I'm doing an application that reproduces the front panel of the HP6675A power supply. To achieve this, I have done a state machine with different states
    (initialize, measures, voltage, current, ocp, ov, store, recall, etc). In each state, should have an event structure that catches the events of the buttons, like for example: if the current state is the Voltage mode and the user press the current button the next state will be the Current mode. For this in each state of the state machine should be the same event structure with the same events.
    My problem is that the Vi doesn't work properly when I have multiple event structures with the same event cases. There are some possibily to do this, and how? Or is impossible to have multiple events? I have been reading some posts, but I don't find solutions. 
    Any help is appreciated.
    Thank you very much.
    Solved!
    Go to Solution.

    natasftw wrote:
    Or as others mentioned, make two parallel loops.  In one loop, have your state machine.  In the other, have just the Event Handler.  Pass the events from the handler to the state machine by way of queues.
    A proper state machine will not need the second loop.  The "Wait For Event" or "Idle" state (whatever you want to call it) is all you really need in order to catch the user button presses.  The setup is almost there.  Maybe add a shift register to keep track of which state to go to in the case of a timeout on the Event Structure.
    There are only two ways to tell somebody thanks: Kudos and Marked Solutions
    Unofficial Forum Rules and Guidelines

  • 2 deliveries created for the same sales order

    2 Return Del docs & 2 credit notes were created for one return order no.  
    Posted: Apr 17, 2008 5:33 PM       E-mail this message      Reply 
    Dear SAP Support,
    I would like to know why does the system created 2 return deliveries with the same qty for a single return order document no.? One return delivery doc.no. was created 2 mins earlier than the 2nd return delivery document no. on the same day. After these 2 return deliveries were created, a credit note was also created for each return delivery doc. number. Here is the document flow:
    On Jan. 10, 2008, the Return Order was created
    The Delivery block field is set to 90- (Return block)
    The Billing block field is blank
    On Jan. 14, 2008 @ 12:08:44, the 1st return delivery doc. no. was created. And on the same day also @ 12:10:44, the 2nd delivery doc. was again created.  These 2 deliveries were created by 2 users. 1st delivery is by manual job, the 2nd is by background job processing.  there was a 2 mins. interval for these 2 deliveries.  
    On Jan. 21, 2008 @ 9:47:33, the 1st Credit Return Note was created. And on the same day also @ 9:48:00, the 2nd Credit Return Note was again created.
    In my initial investigation, I found out that there were changes made on the return order document before the 2 return delivery documents were created. Below are the changes that happened:
    On Jan. 14, 2008, @ 9:25:22 hour, the following changes occurred:
    a) Delivery block was changed from 90 - (Return block) to blank
    b) Billing block was changed from blank to 08 - (check credit memo)
    On Jan. 14, 2008, @ 12:08:44, T-Inv Comb field was changed from DC to C
    On Jan. 21, 2008, @ 9:47:20, the Billing Block was changed again from 08 - (check credit memo) to blank
    Will the above changes, contribute to this issue?
    I am also suspecting that the timing on the creation of deliveries via manual job and scheduled background job processig could be the root cause because of the slim time frame between the two job?  
    I hope you can help me get an explanation to this and how this can be avoided.
    Thank you very much in advanced for your help on this matter.
    Hoping to hear from you soon.
    Kind regards,
    Cynthia M. Ondillo
    SAP SD Functional Support

    Hello Jonathan,
    Yes, the  'update document flow' box is ticked and the entry in the 'Pos./negative quantity' field is '+'
      Target delivery type is LR - Returns Delivery    Source sls doc. type is ZRE - Coats Returns Order
      Item category is ZREN - Coats Returns Item
    Since we do not see anything missing in the above setting, can we say that it is a system bug when running manual delivery job close to the time for running the scheduled background job? 
    If it is a system bug, how can this be corrected?
    Regards,
    Cynthia

  • Issue with the Framework Purchase Order

    Background: Using the Framework Purchase Order in the Plant Maintenance module for external operations:
    When The Framework Purchase Order is used for external services procurement with service specifications, Purchase Requisitions are created based on the quantity of services requested against the Maintenance Order. Since I am using the service specifications, limits are not used in the Framework Order.
    Problem:
    The system does not do any check on the quantity that is requested for a service against that in the Framework Order. Hence the PRs get created linked to the Framework Order for whatever quantity requested in the Maintenance Order. Now the vendor submits the Service Entry sheets against those PRs released with respect to the Framework Order. That time the system does not allow the SES to be posted, because it exceeded the service quantity in the Framework order service specifications. In otherwords, there is no check against the framework order service quantity, when requisitions are released against the Framework order in the Maintenance Order. The check at the the time of SES is too late causing problems for mass creation of service entry sheets and also if external data entry is done for the SES by the vendor.
    Is there any setting or configuration in SAP that helps to circumvent this issue? Any suggestion will be appreciated.
    Thanks in advance
    Nebu.

    Hi
    M_BEST_BSA and M_BEST_EKO are not set to CHECK -> Value "NO".
    If the check is not set to the standard delivered SAP what is the value in SU24 ?  Has it been changed to CHECK > YES or DO NOT CHECK ?
    I am sure you are aware that SAP does not deliver all objects coded in the programme under AUTHORITY-CHECK Statement in the SU24 Indicators with a CHECK > YES that are in transaction ME28.  SAP only deliver a fraction of the values in the proposal as YES and the rest must be maintianed by the security team as they are discovered to be relevant to your organisations need of the particular functions within the transaction.This will then keep PFCG updated with all the CHECK YES objects the next time you add transaction ME28.
    In other words all the objects listed in SU24 ( that are CHECK ) for ME28 will all be coded in the programme somewhere but it depends on which bits of the functionality within ME28 you are using that determines if they are called.

Maybe you are looking for

  • Date of last extraction from DataSource 0HR_PY_PP_2 is not available

    Hello all, We are using this data source to extract data for HR in BW. We are currently on BI 7.0 When I used this datasource in BW development system it worked fine. But now I am trying to extract data using the same datasource in BW QA system and I

  • Iphone 5s network

    sometimes my iphone network signal become disabled ,,,, but when i turn on the airplane mode and turn it off the signal become better and wanna ask about the opensignal's app ( is that app help me ??? )

  • Could you guys please test this for me

    Could you all please open up System preferences, and then open up the sound box. Then could you please open iTunes and go to the Dane Cook Podcasts. Then play the May 18 podcast (dont subscribe, just double click it). While its playing please have yo

  • What mac do I need to edit AVCHD in FCE?

    My G5 powerpc won't cut it, I get it. So, if I have the canon vixia hf11 how much computing power do I need to edit AVCHD? What mac will make it work reasonably well.

  • How can I know the request is come from the link in header in the filter?

    I am using the tile for layout management and each page has a header, menu, and content body. I want to do something at the filter If the request is come from the commandlinks in the header and menu. How can I know the request is come from the link i