As validate cost items that have no import

I have a problem which I hope can help me, the case is as follows:
I have already paid and the merchandise has already been paid by the paper import costs, for example
ARTICLE A LOT 1 100 kg (which was already made their entrance to the store and already paid)
Then enter the same Article 50 kg of lot 2 which has not yet been paid and which should not even go out and apply the remaining cost of the supplier of office expenses, freight maritono terrestrial, etc., which can not be costed at that time for lack of documentation,
Valid only as allowing the goods leave the charge, but not lacking pay, currently handling this validacion I left which affects all the goods means that in the absence of cover 50 kg and 100 kg have already paid will not let me do pq lack sale afford.
Here are my validacion there if I can not say how to do it if the majority is wrong or this step:
--select
/*16/10/2007- VALIDAR QUE NO GRABE UNA GUIA DE REMISION SI NO TIENE SUS COSTOS DE IMPORTACION PARA EL P/I*/
DECLARE @TABLATEMPORAL TABLE(MAXPIS NVARCHAR(7))
DECLARE @MAXPI NVARCHAR(7)
DECLARE @CONTPI NVARCHAR(7)
DECLARE @CONTNOPI NVARCHAR(7)
/*RECUPERA EL VALOR DEL P/I O P/I'S CON O/C DE IMPORTACION, PARA LOS ITEMS SELECCIONADOS*/
INSERT INTO @TABLATEMPORAL (MAXPIS)
SELECT DISTINCT(T1.DOCENTRY)
FROM DLN1 T0, PDN1 T1, OPOR T2 WHERE T0.DOCENTRY = @LIST_OF_COLS_VAL_TAB_DEL
AND T0.ITEMCODE = T1.ITEMCODE
AND T1.DOCENTRY = (SELECT MAX(DOCENTRY) FROM PDN1 WHERE PDN1.ITEMCODE = T0.ITEMCODE)
AND T2.DOCENTRY = (SELECT DISTINCT(BASEENTRY) FROM PDN1 WHERE BASETYPE = '22' AND DOCENTRY = T1.DOCENTRY)
AND (T2.U_QA_TOC = '1' OR T2.U_QA_TOC = '2')
BEGIN
/*MUESTRA SI HAY REGISTROS DE P/I EN LA TABLA TEMPORAL, QUE NO SE ENCUENTREN EN LOS COSTOS DE IMPORTACION PARA LOS ITEMS SELECCIONADOS*/
          SET @MAXPI = (SELECT MAX(MAXPIS) FROM @TABLATEMPORAL)
          SET @CONTPI = (SELECT COUNT(*) FROM @TABLATEMPORAL)
        SET @CONTNOPI = (SELECT COUNT(*) FROM @TABLATEMPORAL WHERE  MAXPIS NOT IN (SELECT D.BASEENTRY FROM OIPF C, IPF1 D WHERE C.DOCENTRY = D.DOCENTRY AND C.DOCSTATUS = 'C'))
   IF @MAXPI IS NOT NULL AND @MAXPI <> ''
       BEGIN
               IF @CONTNOPI > 0
               BEGIN
                    SET @ERROR = 1 -- IMPORTANTE: INDICA QUE LA VALIDACIÓN NO HA SIDO SUPERADA
                    SET @ERROR_MESSAGE ='EXISTE(N)PRODUCTO(S) QUE DEBE(N) COSTEARSE PARA ESTA O/P'
               END
    END
END
END
END

?

Similar Messages

  • Block postings to cost centers that have exceeded budget

    Hello
    How to block postings to cost centers that have exceeded budget?
    How can you make this assessment? Monthly, yearly or both?
    Thanks!!

    Hi,
    The budget in cost centres does not have availability control. You can use a workaround with internal oders. Please, search SDN for this info. No monthly control is possible in standard configuration with this option.
    If you choose to implement FM, then budget control flexibility there is quite powerful and you can build whatever logic you want. Just make notice, that the budget won't be managed in cost centres, but in FM objects (fund centres, commitment items, etc.)
    Regards,
    Eli

  • When trying to update phone, a message says i have purchased items that have not been transferred to iTunes, what is this?

    When trying to update phone, a message says i have purchased items that have not been transferred to iTunes, what is this?

    We need a bit more information to help.
    Are you trying to update your iPhone using iTunes on your computer?  If so, did you make purchases through the iTunes Store or App Store on your iPhone, and fail to sync them with your computer?  That is the likely meaning of what you are seeing.  If this is true, the purchases would be added to iTunes in your computer before the upgrade proceeds.

  • How do I get CDs that have been imported into iTunes library to sync/transfer to phone?? very frustrating and any help would be appreciated. all the material i purchased from itunes transferred fine, but CDs won't. Please help!

    How do I get CDs that have been imported into my iTunes library to sync/transfer to my iPhone?? All the material that I purchased from iTunes has transferred just fine, but although the CDs will import to iTunes, they will not sync up with my phone. How do I do this?? I am very frustrated and would greatly appreciate any help.

    In what format did you import the cds?
    I have never had an issue with this.

  • How do i retrieve deleted items that have been deleted by mistake

    how do i retrieve deleted items that have been deleted by mistake ?

    If they’re not in a backup, try using a data recovery product such as the ones listed here. Don't write anything else to the drive until the files are recovered or you choose not to recover them.
    (116899)

  • How to delete purchased items that have not yet downloaded

    How do I delete purchased itune items that have not been downloaded.  When I first started using itunes to download movies I would recieve both hd and standard and I don't want both.....I want to delete all the hd ones.

    Sorry, but you can't remove things already in the download queue. If you don't want the HD versions, just buy the standard-definition versions ("Buy Movie" rather than "Buy HD Movie"). As to movies already in the queue, it will be by far the easiest to just let them finish downloading.
    Regards.

  • Getting letters for items that have been removed from my credit report

    I have gotten several credit cards in the past month as I have been working on rebuilding my credit. Over the past few weeks I have been receiving letters from collection agencies for items that have been removed from my credit report. Has anyone else had this issue? Should I just throw this stuff away since it's not longer being reported on my credit report and the collections are so old they've been removed from the report? I am freaking out a bit. Any advice is welcome.

    wonderwoman1970 wrote:
    They were removed because they are over 8 years old.They can still try to collect, they just cannot place it on your reports. If its also beyond SOL in your state, you have to option to sent them a Cease Communications letter, charmingly refferred to as a FOAD letter. (Google it to find the meaning of that acronym).They will just sell it to another JDB, who may send you another collection notice. Keep all correspondence regarding this debt in order to keep track of it. You also have the option to settle it for a small percentage - I would suggest offering no more than 5-10% of the original amount (not some inflated "new balance"), and in your offer letter refer to it as "old, time barred debt, that is not a current financial obligation" but that you are willing to settle only to close out the account.

  • Listing (for further action) all page items that have a certain script label

    hello from France,
    Well the question is essentially in the subject line: how to find and work on all page items of a document (or a page/spread) that have the same script label (or better: whose script label contain the same word)?
    I tried some variations around something like that, with no results:
    set list_pageitems to every page item of page i whose label is "product"
    Any clues?
    Thanks for your help
    Vincent

    I found the answer (for those who might be interested), but still have a question (for those who know).
    The solution:
    set list_pageitems to page item "product" of page i
    If you want to do it for a whose document (in may case, deleting some page items):
    delete page item "product" of document 1
    Strange syntax but it works :-)
    The remaining question:
    How to find page items whose label contains a certain string: it would be like selecting page items by tags (every word of the script label would be considered as a tag)?
    Thanks

  • Code to block PR and PO with item that have exceeded budget

    Hi Gurus,
    We need to control purchasing for a client. We've decided to write code that will do the following:
    => Block PR or PO that contains line item that belongs to cost element that has exceeded the planned cost in T-Code s_alr_87013611.
    => PR or PO can only be released if Planned cost is updated.
    I want to know if the above is possible and it is, I need to be able to explain what I want using technical terms to an ABAPer.

    Yes Antony.
    I've already done that.
    We are discussing the possibility to block, in a standard way, holding POs created with reference to PRs already ordered in full
    Any ideas please ?
    Regards,
    Bahia.
    Edited by: Bahia M. on Mar 9, 2010 2:17 PM

  • When I burn a dvd I get wave on items that have lines in the pictures

    When I burn a dvd in imovie any stills I have that have lines on things like a shirt start to wave.

    that's because the Ken Burns effect (zoom in/out) will play havoc on some colors, stripes, or other designs. You can minimize it by minimizing the effect, but unless you were to invest in professional software, I don't believe you can get rid of it altogether. It can even happen on TV - a reporter wears something that will not show well especially if he moves around and you will get some strange effects.

  • Print Preview shows items that have been deleted?

    Hello folks.
    This is a weird problem a switcher friend of mine is having.
    Let's say they have three events on the 12th. They choose to print the month view of their iCal window. In the Print preview on iCal (where you can select all kinds of options for printing, like the size of the text, which calendars to print, etc) all sorts of events and appointments show up on the 12th that have been deleted or no longer exist.
    I tried reimporting the calendars, deleting the iCal cache, etc.
    Does anybody know a workaround for this? I am thinking this is a bug, but wanted to see if anybody else has seen this.
    This is on a 2.1 G5 iMac with all updates and no hacks.
    Thanks!

    Anyone?

  • How do I view movies using apple tv that have been imported into iMovie?

    I am trying to view movies using a second generation AppleTV that I imported into my computer from my video camera using iMovie.  I tried importing them into iTunes after importing them with iMovie but it creates a second copy of the movie and I don't have room on my hard drive.  Can I view them on my Apple TV without importing them into iTunes?

    Welcome to the Apple Community.
    iMovie is an editing application, you import raw footage, edit it, export it and if you don't have a lot of room trash the original files. It is not intended to be used for finished movies.
    Video footage for editing needs to be in a different format than it does for delivery, delivery formats (m4v etc) are highly compressed and take up considerabally less room than footage in an editing format.

  • How do I delete photos from my ipad that have been imported directly from a memory card.

      I have searched loads of forums and they all talk about using itunes to delete photos, but this seems to only apply to photos that orginated from a PC. The photos I am trying to delete were loaded directly on to my ipad from a memory card and don't appear in itunes. I know I can delete photos individually on my ipad but I have hundreds of them, The only option I have found that comes close to what I want to do is back-up ipad, delete photos I don't want to restore (not sure where to find back up or how to delete), rebuild ipad and restore -  this seems a long winded way of doing something that would take less than a minute in windows. I have an ipad1 and am running windows 7 on a standards Windows PC.
    Many Thanks in anticipation that someone will be able to help me
    Regards
    Keith

    Photos copied to the iPad via the camera connection kit (and those taken with the iPad or saved from emails/websites etc) should appear in Windows Explorer on a PC so you should be able to delete them from there - those types of photos should make the iPad appear as a camera to your computer. You should also be able to delete them at the end of the photo import process via, for example, the camera wizard.

  • How do I remove all of the photos that have been imported and start over. The photo did not import into folders by date

    When I imported the photos, I thought I had it set to import them into folders but it didn't happen. I have one file of 10000+ photos in the same folder. I would likede to start over, remove what has been imported (not delete) and start over importing them into folder that I choose rather than all in one.

    Okay - but after that..
    I followed the instruction in the tutorial and did the following:
    Click Import (Existing Files)
    Select source - (pictures appear in grid)
    include sub-folders if appropriate
    Select “add”
    File Handling - Changed build preview to standard
    Apply During Import - Nothing added
    Add keywords - Added keywords
    Import (Tutorial says to click “Import” but import is greyed out and not available)
    What am I missing? The destination information does not appear. I tried selecting that before I clicked "Import" but that didn't help..

  • Extending wait times in Workflow (items that have already started)

    We have Order Mgt order line workflow that has multiple wait and loop activities. A number of these timeout in 2 minutes. We think that this is causing the WF BG process to run extremely long times because a processed item key times out before the process ends, causing the item to process through multiple times.
    We have an initiative open to increase the wait times for the wait nodes. However, we need to figure out a way to extend the waits for the order lines that are IN PROCESS. We tried updating the due date field on the wf_item_activity_statuses and also updated the number_value in wf_activity_attr_values. But that did not do the trick. We then found another table WF_ITEM_ACTIVITY_STATUSES_H which also holds the due date.
    I would like to find out if someone has ideas on what tables to update in order to get all the existing wait times extended from the current value to a different value.
    Thanks in advance.

    You need to update WF_ACTIVITY_ATTR_VALUES for the specific process activity id that is in wf_item_activity_statuses.
    But why do want to do that. Let them complete with the old default_days and the new ones can use the new value. Are there too many item keys (order lines) that are open and require processing using WBG?
    Thanks
    Nagamohan

Maybe you are looking for