Reg: SP_Transaction for GRPO

Hi All,
I had written an SQL Code in SP_Tranasction, where GRPO Quantity is more than PO Qty.
The code works perfectly when the GRPO Quantity is more than PO Quantity, but stops even when GRPO Quantity is equal to PO Quantity.
Below is the code:
if @transaction_type = 'A' and @object_type = '20'
begin
     if exists(select T.docentry from pdn1 T, por1 T1 where T.docentry = @list_of_cols_val_tab_del and T.baseentry = T1.docentry and T.Quantity > T1.OpenQty)
     begin     
          SET @error = 10
          SET @error_message = N'GRPO Qty cannot be more than PO'
     end
end
Currently we are using 2005B PL35.
Please help me to resolve.
Regards
Shanker

Try this one:
if @transaction_type = 'A' and @object_type = '20'
begin
     if exists(select T.docentry from pdn1 T, por1 T1 where T.docentry = @list_of_cols_val_tab_del and T.baseentry = T1.docentry and
        T.Quantity > T1.OpenQty and T.BaseLine = T1.LineNum)
     begin     
          SET @error = 10
          SET @error_message = N'GRPO Qty cannot be more than PO'
     end
end
Thanks,
Gordon

Similar Messages

  • Error : Excise modvat accounts not defined for GRPO transaction and U1 exci

    I have Created Impot PO, After Planned Delivery cost MIRO I am trying to Perform GR then its giving Error "Excise modvat accounts not defined for GRPO transaction and U1 excise group
    Message no. 8I402"
          I have already maintained GL account in "Specify G/L Accounts per Excise Transaction" for Excise group U1
          This problem is coming when Additional Duty on custom condition type JADC is maintained in "Maintain Excise Defaults" node in the column "ADC Cond" . If I remove JADC condition type from this place the this error is not coming but AED column is not fetching any value while doing GR.
    Please help me in this issue , still No answer
    Edited by: shiwanshu singh on Jan 28, 2009 10:26 AM

    Dear sir
    For GRPO have you maintained sub transaction Type IP for your excise group U1. If you not maintained pl maintain . and assign G/L account to modvat clearing account , the G/l account should be same as company code CVD account.
    Regards
    jrp

  • Excise modvat accounts not defined for GRPO transaction and 58 Excise group

    Hi Experts,
    When i am doing Goods receipts for Depot for Subcontracting
    i am getting this error message .Excise modvat accounts not defined for GRPO transaction and  Excise group. For Depot no modvat. is there any configuration setting for depot. Please do needful.

    Hi,
    Please maintain
    Hi,
    go to SPRO
    Specify G/L Accounts per Excise Transaction
    SPROLogistics u2013 GeneralTax on Goods MovementsIndia Account Determination  Specify G/L Accounts per Excise Transaction
    Enter excise group -58
    ETT_ GRPO
    and G/L account
    G.Ganesh Kumar

  • How to set reg.cgi for VideoPhoneLabs

    i start with stratus .i try set it to work with my dedicated apache server and sql but have no clue how to do it or where to put this file on my server.
    i realy have probleme with reg.cgi
    for now i did www/cgi-bin/reg.cgi and in the xml i set my websiteurl = "http://88..../cgi-bin/"
    also how to complete reg.cgi for have it to talk with my db ?
    here the reg.cgi file.
    help please ...
    #! /usr/bin/python --
    reg.cgi by Michael Thornburgh.
    This file is in the public domain.
    IMPORTANT: This script is for illustrative purposes only. It does
    not have user authentication or other access control measures that
    a real production service would have.
    This script should be placed in the cgi-bin location according to
    your web server installation. The database is an SQLite3 database.
    Edit the location of the database in variable "dbFile".
    Create it with the following schema:
    .schema
    CREATE TABLE registrations (
        m_username VARCHAR COLLATE NOCASE,
        m_identity VARCHAR,
        m_updatetime DATETIME,
        PRIMARY KEY (m_username)
    CREATE INDEX registrations_updatetime ON registrations (m_updatetime ASC);
    # CHANGE THIS
    dbFile = '.../registrations.db'
    import cgi
    import sqlite3
    import xml.sax.saxutils
    query = cgi.parse()
    db = sqlite3.connect(dbFile)
    user = query.get('username', [None])[0]
    identity = query.get('identity', [None])[0]
    friends = query.get('friends', [])
    print 'Content-type: text/plain\n\n<?xml version="1.0" encoding="utf-8"?>\n<result>'
    if user:
        try:
            c = db.cursor()
            c.execute("insert or replace into registrations values (?, ?, datetime('now'))", (user, identity))
            print '\t<update>true</update>'
        except:
            print '\t<update>false</update>'
    for f in friends:
        print "\t<friend>\n\t\t<user>%s</user>" % (xml.sax.saxutils.escape(f), )
        c = db.cursor()
        c.execute("select m_username, m_identity from registrations where m_username = ? and m_updatetime > datetime('now', '-1 hour')", (f, ))
        for result in c.fetchall():
            eachIdent = result[1]
            if not eachIdent:
                eachIdent = ""
            print "\t\t<identity>%s</identity>" % (xml.sax.saxutils.escape(eachIdent), )
            if f != result[0]:
                print "\t\t<registered>%s</registered>" % (xml.sax.saxutils.escape(result[0]), )
        print "\t</friend>"
    db.commit()
    print "</result>"

    Persistent binding is effectively provided by STMS (MPxIO) - is there anything in particular you're wanting to do that STMS doesn't provide?

  • Query For GRPO

    Hi all,
            i want a report for GRPO, the query that i have made is as mentioned below;
    Select Docnum as Num, U_Gateno as Gate ,Docdate as Date, CardName as Party, U_Billno as Bill,  DocDate as Date  from opdn
    Select Dscription as Item, Quantity as Qnty,unitMsr as Unit, Taxcode as vat from pdn1
    now apart from these, i want the "unit price" and the "total"  which are variables. Also can anyone please help me how to join these SQL to get a single row report?
    Thanks in advance,
    Joseph Antony

    Hi all,
    I;m using the following SQL and its working fine;
    Select T0.Docnum as Num,T0.U_Gateno as Gate ,T0.Docdate as Date, T0.CardName as Party,
    T0.U_Billno as Bill,
    T0.DocDate as Date,T1.Dscription as Item,T1.Quantity as Qnty,T1.unitMsr as Unit,T1.Price as Rate,
    T1.Linetotal as Amount, T1.Linevat as Vat,(T1.Linevat+T1.LineTotal)as Grand
    from OPDN T0 INNER JOIN PDN1 T1 ON T0.DocEntry = T1.DocEntry
    UNION ALL
    Select NULL as Num, NULL as Gate, NULL as Date, NULL as Party,
    NULL as Bill,
    NULL as Date, NULL as Item, NULL, NULL as Unit, NULL as Rate,
    NULL as Amount, NULL as Linevat, SUM(T1.Linevat+T1.LineTotal) as Grand
    from OPDN T0 INNER JOIN PDN1 T1 ON T0.DocEntry = T1.DocEntry
    Thanks,
    Joseph

  • Excise modvat accounts not defined for GRPO transaction

    HI,
    When I am doing  excise invoice posting  following error occurs Excise modvat accounts not defined for GRPO transaction  and XX excise group in T Code : j1iin.
    kindly suggest how to overcome this error?
    Thanks & Regards
    Sandeep

    Dear MBS
    Thanks for your prompt reply
    I have a small doubt like why we need maintain sub transaction type ?
    I have maintained the G/L account for excise transaction and excise group under CIN customization.
    i have maintaining sub transaction type and also setting for with and without sub transaction type for ETT GRPO EWPO and DIEX .
    final i got the following error:
    No account is specified in item 0000000001
    Message no. F5670
    Diagnosis
    No account was specified for account type "S" in item "0000000001" of the FI/CO document.
    System Response
    The Financial Accounting program cannot process the document.
    Procedure
    A system error has probably occurred in the application you called up. Check the data transferred to item "0000000001" of the FI/CO document.
    kindly suggest how to overcome this error .
    Thanks & Regards

  • Excise modvat accounts not defined for GRPO transaction and 50 excise group

    Hi Gurus,
    1.While saving an Outgoing Excise Invoice for a Factory Sale.(TAXINN)......  the system generates "Excise modvat accounts not defined for GRPO transaction and 50 excise group"
    Can someone help me in this...
    Thanks
    Sasi

    hi,
    go tax on goods movement,acc.det.,specify G/L acc.for excise transactions
    select your excise group, Excise Transaction Type (GPRO), Chart of Accounts, Company code & relevant GL Accounts & Save.
    Now you can proceed.
    Hope this helps you.
    Thanks & Regards
    Krishna Mohan

  • Excise modvat accounts not defined for GRPO transaction and excise group

    Dear All,
    as per your suggestion i have activated excise Group and series but still showing below error
    "Excise modvat accounts not defined for GRPO transaction and 64 excise group"
    Kindly Suggest......................
    Regards
    Vinay

    Hi check this path
    Spro-Logistic general-tax on goods movement -India-account determination-specify G/L account as per excise transaction
    Here check for your excise group,and company code,where account maintain or not for GRPO( goods receipt against purchase order )
    Regards
    Kailas Ugale
    Edited by: kailasugale on May 9, 2011 9:43 AM

  • I've entered my reg. code for Quick Time Pro but it doesn't appear to have installed ... it's not showing in my apps folder.  Anyone help me?

    I've entered my reg. code for Quick Time Pro but it doesn't appear to have installed ... it's not showing in my apps folder.  Anyone help me?

    I've entered my reg. code for Quick Time Pro but it doesn't appear to have installed ... it's not showing in my apps folder.  Anyone help me?
    The QT X v10.1 app installs in your "Applications folder and QT 7 v7.6.6 (whether keyed for "Pro" use or not) is installed in the "Applications/Utilities" folder. It is recommended you keep them in these locations so they will continue to update correctly/automatically.

  • Excise modvat accounts not defined for GRPO transaction and 21 excise group

    Hello SD Gurus,
    I am getting Following message while process of reversing ARE1
    I have followed following step to reverse .
    1. go to transaction code J1ia101
    2. select at reversal screen
    3.give the created ARE1 doc no.
    4. given the reson for reversal
    5 go to utilization tab
    6. give the payable amount in PLA bed Account
    7. click on item display
    8 click on balances
    system gives following error message
    Excise modvat accounts not defined for GRPO transaction and 21 excise group
    Message no. 8I402
    I have checked in SPRO for acount assignment in following path
    Tax on Goods Movements --> Account Determination --> Specify G/L Accounts per Excise Transaction
    Thanks for promt reply

    Go to IMG --> Logistics General --> Tax on Goods Movements --> India --> Account Determination --> Specify Excise Accounts per Excise Transaction.
    Here maintain Excise Transaction Type GRPO with respective G/L accounts
    thanks
    G. Lakshmipathi

  • Excise modvat accounts not defined for GRPO transaction and T1 excise group

    Hi All
    I am getting the error Excise modvat accounts not defined for GRPO transaction and T1 excise group
    i have maintained this still iam getting the same error.
    IMG -- Logistics - General -- Tax on Goods Movements -
    India -
    Account Determination --- Specify G/L Accounts per Excise Transaction
    i have to maintained the assignment of exise group, ETT - GRPO, Co. code, chart of account & GL accounts for getting modvat.
    Thanks in advance,

    Hi,
    Check in the above path which you have mentioned whether you have maintained the G/L accounts for   the Exicse Group & Company Code for which you are trying to do a excise posting.
    Also check whether you have maintained the G/L accounts for all the  columns ( esp the Modvat ) such as RG23ABED,RG23CBED etc.. 
    Note:
    Make sure you havent maintained any sub-transaction types for the above combination.
    Thanks & Regards,

  • Reg-cleaner for Mac?

    Hi, I'd like to know if there are software for Mac like reg-cleaner for windows, with wich I can delete registry files of an unistalled application. Someone can help me?

    Uninstalling Software: The Basics
    Most OS X applications are completely self-contained "packages" that can be uninstalled by simply dragging the application to the Trash. Most applications create preference files which are stored in the /Home/Library/Preferences/ folder. Although they do nothing once you delete the associated application, they do take up some disk space. If you want you can located them in the above location and delete them, too.
    Some applications may install an uninstaller program that can be used to remove the application. In some cases the uninstaller may be part of the application's installer, and is invoked by clicking on a Customize button that will appear during the install process.
    Some applications may install components in the /Home/Library/Applications Support/ folder. You can also check there to see if the application has created a folder. You can also delete the folder that's in the Applications Support folder. Again, they don't do anything but take up disk space once the application is trashed.
    Some applications may install a startupitem or a Log In item. Startupitems are usually installed in the /Library/StartupItems/ folder and less often in the /Home/Library/StartupItems/ folder. Log In Items are set in the Accounts preferences. Open System Preferences, click on the Accounts icon, then click on the LogIn Items tab. Locate the item in the list for the application you want to remove and click on the "-" button to delete it from the list.
    If an application installs any other files the best way to track them down is to do a Finder search using the application name or the developer name as the search term.
    There are also several shareware utilities that can uninstall applications:
    AppZapper
    CleanApp
    Yank
    SuperPop
    Uninstaller
    Spring Cleaning
    Look for them at www.versiontracker.com or www.mackupdate.com.
    For more information visit The XLab FAQs and read the FAQ on removing software.

  • [SOLVED] What is the minimum .reg configuration for monting eMMC2??

    Hello Friends,
    Greetings for the day!!
    As, I have a board that contains the eMMC2(slot=3). We have made some changes in the driver for make it capable for slot=3. Now, the turn of .reg files. We have made all the required entries for Driver\BuiltIn\SDHC3. And driver is taking the values correctly.
    Now the part of remaining entries related to file system, profiles, partition, partition table etc
    I have made entries are as - 
    [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles]
    "AutoMount"=dword:1
    "AutoPart"=dword:1
    "AutoFormat"=dword:1
    "MountFlags"=dword:1
    "DefaultFileSystem"="FATFS"
    "PartitionDriver"="mspart.dll";; -- Required
    "Folder"="";; -- Required
    [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\eMMC]
    "Name"="MMC Card"
    "Folder"="MMC_CARD" ;MC Card
    "AutoMount"=dword:1
    "AutoPart"=dword:0
    "AutoFormat"=dword:0
    "DefaultFileSystem"="FATFS"
    "PartitionDriver"="mspart.dll"
    [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\eMMC\FATFS]
    "Flags"=dword:14
    "FormatTfat"=dword:1
    "DisableAutoScan"=dword:1
    "FormatNumberOfFats"=dword:2
    "EnableWriteBack"=dword:1
    ;;"CheckForFormat"=dword:1
    [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\eMMC\Part00]
    "Folder"="MMC_Part"
    "AutoPart"=dword:1
    "MountPermanent"=dword:1
    ;; "AutoMount"=dword:1
    "BootPhase"=dword:1
    "MountHidden"=dword:1
    "MountAsBootable"=dword:1
    "MountAsRoot"=dword:0
    "MountSystem"=dword:1
    "AutoPart"=dword:0
    [HKEY_LOCAL_MACHINE\System\StorageManager\Autoload\fsdmgr]
    "Dll"="fsdmgr.dll"
    "Paging"=dword:1
    "LoadFlags"= dword:1
    I have read lot of document related to the issue that eMMC2 is not mounted for most of the persons. In every document I have observed that they are using different keys and keys values.. I am confused that what is the minimum keys and keys values required
     for the eMMC2 to be mounted apart from driver level.... ???
    With this values my logs are as -
    13525 PID:400002 TID:2300006 SDBusDriver: The SDIO card does not support block mode. Use Soft-Block instead.
    13527 PID:400002 TID:4bc0002 AddFonts(.ttf) returned 4 fonts
    13527 PID:400002 TID:4bc0002 AddFonts(.ttc) returned 0 fonts
    13528 PID:400002 TID:4bc0002 AddFonts(*) returned 4 fonts
    13529 PID:400002 TID:4bc0002 AddAllEUDCFonts(tte) returned 0 fonts
    13531 PID:400002 TID:2300006 SetInterface MMCHS_HCTL value = F02
    13531 PID:400002 TID:2300006 SDSetCardInterfaceForSlot - HC ClockRate differs desired setting: desired: 20000000 Hz, Actual : 19200000 Hz
    13532 PID:400002 TID:2300006 The clock rate is set to 19200000
    13533 PID:400002 TID:2300006 HandleAddDevice: LoadDevice type = 1, slot 0
    13540 PID:400002 TID:2300006 OSAXST1: >>> Loading Module 'sdmemory.dll' (0x9E474C58) at address 0xEEB10000-0xEEB2A000 in Process 'NK.EXE' (0x8711FAD0)
    PB Debugger Loaded symbols for 'C:\WINCE700\OSDESIGNS\ENVENTURE\ENVENTURE\RELDIR\PHYTEC_AM335X_BSP_ARMV7_DEBUG\SDMEMORY.DLL'
    13591 PID:400002 TID:2300006 SDMemory: +SMC_Init
    13591 PID:400002 TID:2300006 SDGetDeviceHandle: ActivePath: Drivers\Active\32
    13593 PID:400002 TID:2300006 SDGetClientFunctions: +Init
    13594 PID:400002 TID:2300006 SDGetClientFunctions: -Init
    13596 PID:400002 TID:2300006 SDMemCardConfig: Card is high capacity (2.0+)
    13596 PID:400002 TID:2300006 SDMemCalcDataAccessClocks: Tpd:f ns, Asynch: f ns, AsyncClocks:0 , SyncClocks: 1078591488, ReadTotal: 0, Write Factor: 1099109072 WriteTotal: 769230
    13597 PID:400002 TID:2300006 SDMemory: Initialize: Using block transfer size of 64 blocks
    13598 PID:400002 TID:2300006 SDMemory: Idle Timeout: 2000 Idle Power State: 2
    13599 PID:400002 TID:2300006 SDMemory: Power Management Setup complete
    13599 PID:400002 TID:2300006 SDMemory: -SMC_Init
    13602 PID:400002 TID:8b0002 SDMemory: GetDeviceInfo - Profile = eMMC, length = 10
    13602 PID:400002 TID:8b0002 SDemory: GetDeviceInfo - RegQueryValueEx(Profile) returned 2
    13603 PID:400002 TID:8b0002 SDMemory: GetStorageID Insufficient buffer space
    SDMemory: -GetStorageID
    13608 PID:400002 TID:8b0002 Partition Part00 NumSectors=15106032
    13608 PID:400002 TID:8b0002 MSPART!PD_OpenPartition: dwStoreId=AB543350, PartName=Part00
    13617 PID:400002 TID:8b0002 CreateCache: Successful. Cache Size: 256 KB, Start: 6, End: 29453, CreateFlags: 2.
    13619 PID:400002 TID:8b0002 CreateCache: Successful. Cache Size: 256 KB, Start: 29454, End: 15106031, CreateFlags: 2.
    13627 PID:400002 TID:4bc0002 LogFontFromRegistry(SYSTEM\GWE\Menu\BarFnt), lfHeight = -12
    13628 PID:400002 TID:4bc0002 LogFontFromRegistry(SYSTEM\GWE\Menu\PopFnt), lfHeight = -12
    Anyone can tell me that what is the minimum .reg entries that is required to mount the eMMC2 ????

    Hello Friends,
    I am happy to intimate you that I have self solved the above problem with minimal configuration as shown below -
    [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles]
    "AutoMount"=dword:1
    "AutoPart"=dword:0
    "AutoFormat"=dword:0
    "MountFlags"=dword:0
    "DefaultFileSystem"="FATFS"
    "PartitionDriver"="mspart.dll";; -- Required
    "Folder"="";; -- Required
    [HKEY_LOCAL_MACHINE\System\StorageManager\Profiles\eMMC]
    "Name"="MMC Card"
    "Folder"="MMC_CARD" ;MC Card
    But, atleast you have to find the tool that format and create single partition as per your requirement ...

  • Any Setting/Permission for GRPO to Restrict Update

    Dear all
       Is there any setting for Restrict permission for update GRN before add,for example user want add GRN only based on Purchase order (Quantity,price,tax,item...)he should edit the GRN,he can only ADD

    hi,
    Make a seperate approval procedure for the GRPO. then he(End User) can add GRPO. but the manager can reject are approve the docuemtns like wise you can restrict the user.
    it means it is draft mode this will not create the journal entry. once the document gets approve then it will create teh journal and inventory gets updated.
    Regards
    Chidambaram

  • Exc reg updation for trading material

    Hi experts,
            I have a trading material, at the time of purchase RG23A reg is updating both quantity and value.
            But while sales, RG1 reg is not updating.
            As Excise is concerned, at the time of sales the quantity in RG23A should be deducted and RG1 also should be deducted.
           Is there any specific configuration required for this kind of scenerio.
          for eg.  if i am purchasing 100 quantity.
                           RG23A part 1      RG23A part 11               RG1
                                 +100                   Value                        +100
                       if i am selling  100 quantity
                           RG23A part 1                   RG1
                                 -100                          -100
    can anybody help.

    hi..
            to achieve this...
                  when u receive material from vendor RG23A reg both quantity and value will be updated..
    for eg- rg23 a part i  shows a quantity of 100
                  then u have to create some mov type copying existing and issue material to finished store, and assign in specify mov type for excise invoice in tax on goods movement, which should update both rg23a part 1 and rg1
    for eg-  rg23 a part 1 should show 000 quantity and rg1 should show 100
    then u sell the material which will update rg1 reg...
             anybody who can suggest which mov type should be copied....

Maybe you are looking for

  • Getting 500 Internal Server Error when opening GC page

    There was no change in configuration and all of a sudden, I can not connect to GC. I did notice that OC4J for OC4J_EM is down and I can't get it to go "Alive". Can someone run opmnctl status and print the output for me? I'm on Windows 2003/GC 10.1.0.

  • Can be use SAP Crystal Presentation Design 2011 in Windows 8 and Microsoft Office 2013?

    I had problems in converting a design to a presentation in Power Point, but I have no problems in Word and PDF, why?

  • Quicktime ? can't find where to post this.

    I have some avi files and i'm not sure what program created them. i have player but not pro. if i buy pro will it potentially play these files. i've had no luck figuring out how to play them yet.

  • Quiz scope problems in Captivate 7

    I have created a project that consists of a series of slides with quiz questions interspersed. For example: Slide 1 Slide 2 Question 1 Question 2 Slide 3 Slide 4 Question 3 Question 4 Slide 5 Slide 6 Question 5 Question 6 (Result slide) Summary If th

  • SUN WORKSHOP 5

    Hello all!! I've tried to install Sun Workshop 5 in a Solaris 6. I've followed the steps in the manual but when I do step number 6 (start workshop install), I type the command and the next error is displayed: "DISPLAY ERROR: Could not open an X Windo