Package in condition

Hi,
I have created a package. and passing statement in conditional section of button.
PLSQL FUNCTION RETURNING BOOLEAN
return USER_AUTHENTICATION.GET_ADMIN_STATUS_UP(:APP_USER,TO_CHAR(:APP_PAGE_ID));  //---
USER _AUTHENTICATION IS PACKAGE NAME AND GET_ADMIN_STATUS_UP IS FUNCTION
am i passing a right statement.Edited by: Vedant on May 3, 2011 10:44 PM

you have to return true or false with respect to your variable's value, if t contains true then return true else false.
declare
t boolean;
begin
t:= USER_AUTHENTICATION.GET_ADMIN_STATUS(:APP_USER,TO_CHAR(:APP_PAGE_ID));
if t = true then
return true;
else
return false;
end if;
Exception
when no_data_found then
return false;
end;

Similar Messages

  • Variant config pricing condition description not correct

    Hi Gurus!
    I created Sales Order with a variant configuration material, pricing with package items. System pick up the correct
    pricing but pricing Condition Name for all the items are the same, system is taking variant description VK30 instead
    of condition type description in VK11.
    I have a package e.g.
    Material:  Phone Package A
    Condition type:
    - ZZ01 Phone 
    - ZZ02 Charger
    - ZZ03 Battery
    Data entry: Material A001 Nokia phone package
    charcteristics: Phone       PA
                           Charger    A1
                           Battery     T1
    System compute all the description of condition type is the same
    Material:  Phone Package A
    Condition type:
    key: PA-A1-T1
    - ZZ01 Package A for Nokia AAA   10.00
    - ZZ02 Package A for Nokia AAA   30.00
    - ZZ03 Package A for Nokia AAA   50.00
    I want the description of Condition Type not the variant description. Any clue on how to get the correct description of the
    Condition Type?

    Hi Sunny,
    1) With respect to your original question (e.g. "how to have the VTEXT field on the Conditions tab display the Condition Type Description set via the IMG rather than the Variant Description set via txn VK30"). Please know that once you check the "Variant Condition" flag for a condition type, the system has no choice but to present the Variant Description because this behavior is hard-coded.
    Easiest solution would be to activate screen overlay functionality (such as GUIXT) which can present the desired text to the user without affecting underlying code. Another alternative is to ask a developer to make an implicit enhancement that overrides the description just before presentation to the user.
    If neither solution works out and the users insist that you show the condition type description, then variant pricing simply doesn't fit. Hopefully you don't get to this point, but if it happens, then you would have to revert to standard (non-variant) pricing. To start you would need new display-only VBAP fields for each price-relevant characteristic (e.g. ztraining, zcourse_type, zstudent, and maybe zresource). and then custom code to copy values selected in the VC back to the corresponding new line item fields which can be done via a user-exit. Then you would follow the normal process for introducing new price-relevant fields, and redesign your condition types and condition tables to remove all reference to pricing variants. A hassle, but side benefit would be more straight-forward master-data maintenance since the user can directly see and maintain all pricing key fields in VK11/12/13 (rather than having to check variant table(s) to discover how the pricing key fields translate to variant keys) and of course they would always see the condition type description as desired.
    2) Moving on to address your 3rd-August follow-on comment from the other thread (e.g. "However, when I change the input Resource from 01 (Classroom) to 02 (Whiteboard) ... ZA01 is gone"). Is this what you wanted? If yes, then a user who needs a Classroom and Whiteboard and a Projector, would have to create a sales order with three configurable line items - is this the desired outcome?
    Edited by: Laura J. Williams on Sep 23, 2010 1:22 AM

  • MSI not installing via Group Policy - Insists location does not exist

    Hi
    I am creating a group policy object whereby I am pointing my software package installation to \\192.168.1.3\GPO\MSOCached32bit.msi
    The location has permissions for the machine accounts on both the share and the ntfs permissions with read only access.
    I have created an OU and moved a Windows XP machine into it, linked the GPO and made sure that the XP machine is not using optimised log on.
    From the machine I can reach the share and see the file from the path above.
    However each time I reboot the machine I am testing on the installation fails, the exact error being:
    The install of application MSO from policy MSO Installation failed. The error was : The installation source for this product is not available. Verify that the source exists and that you can access it.
    This is rather odd, since I can see it, the machine account has permissions to see it and I cannot see what the problem is.
    I have then gone on to enable verbose logging of the MSI installer which has produced the following:
    === Verbose logging started: 18/08/2011  15:36:18  Build type: SHIP UNICODE 3.01.4001.5512  Calling process: \??\C:\WINDOWS\system32\winlogon.exe ===
    MSI (c) (AC:B0) [15:36:18:666]: Resetting cached policy values
    MSI (c) (AC:B0) [15:36:18:666]: Machine policy value 'Debug' is 7
    MSI (c) (AC:B0) [15:36:18:666]: ******* RunEngine:
               ******* Product: {96b77fe2-a045-4f3f-9a73-1bf359d0eaaf}
               ******* Action:
               ******* CommandLine:
    MSI (c) (AC:B0) [15:36:18:666]: Client-side and UI is none or basic: Running entire install on the server.
    MSI (c) (AC:B0) [15:36:18:666]: Grabbed execution mutex.
    MSI (c) (AC:B0) [15:36:18:736]: Cloaking enabled.
    MSI (c) (AC:B0) [15:36:18:736]: Attempting to enable all disabled priveleges before calling Install on Server
    MSI (c) (AC:B0) [15:36:18:736]: Incrementing counter to disable shutdown. Counter after increment: 0
    MSI (s) (B4:CC) [15:36:18:756]: Grabbed execution mutex.
    MSI (s) (B4:D0) [15:36:18:766]: Resetting cached policy values
    MSI (s) (B4:D0) [15:36:18:766]: Machine policy value 'Debug' is 7
    MSI (s) (B4:D0) [15:36:18:766]: ******* RunEngine:
               ******* Product: {96b77fe2-a045-4f3f-9a73-1bf359d0eaaf}
               ******* Action:
               ******* CommandLine:  CURRENTDIRECTORY="C:\WINDOWS\system32" CLIENTUILEVEL=3  CLIENTPROCESSID=940
    MSI (s) (B4:D0) [15:36:18:766]: Machine policy value 'DisableUserInstalls' is 0
    MSI (s) (B4:D0) [15:36:18:766]: User policy value 'SearchOrder' is 'nmu'
    MSI (s) (B4:D0) [15:36:18:766]: User policy value 'DisableMedia' is 0
    MSI (s) (B4:D0) [15:36:18:766]: Machine policy value 'AllowLockdownMedia' is 0
    MSI (s) (B4:D0) [15:36:18:766]: SOURCEMGMT: Media enabled only if package is safe.
    MSI (s) (B4:D0) [15:36:18:766]: SOURCEMGMT: Looking for sourcelist for product {96b77fe2-a045-4f3f-9a73-1bf359d0eaaf}
    MSI (s) (B4:D0) [15:36:18:766]: SOURCEMGMT: Adding {96b77fe2-a045-4f3f-9a73-1bf359d0eaaf}; to potential sourcelist list (pcode;disk;relpath).
    MSI (s) (B4:D0) [15:36:18:766]: SOURCEMGMT: Now checking product {96b77fe2-a045-4f3f-9a73-1bf359d0eaaf}
    MSI (s) (B4:D0) [15:36:18:766]: SOURCEMGMT: Media is enabled for product.
    MSI (s) (B4:D0) [15:36:18:766]: SOURCEMGMT: Attempting to use LastUsedSource from source list.
    MSI (s) (B4:D0) [15:36:18:766]: SOURCEMGMT: Processing net source list.
    MSI (s) (B4:D0) [15:36:18:766]: SOURCEMGMT: Trying source \\192.168.1.3\GPO\.
    MSI (s) (B4:D0) [15:36:19:427]: Note: 1: 1314 2: \\192.168.1.3\GPO\
    MSI (s) (B4:D0) [15:36:19:427]: ConnectToSource: CreatePath/CreateFilePath failed with: -2147483648 1314 -2147483648
    MSI (s) (B4:D0) [15:36:19:427]: ConnectToSource (con't): CreatePath/CreateFilePath failed with: -2147483648 -2147483648
    MSI (s) (B4:D0) [15:36:19:427]: SOURCEMGMT: net source '\\192.168.1.3\GPO\' is invalid.
    MSI (s) (B4:D0) [15:36:19:427]: Note: 1: 1706 2: -2147483647 3: MSOCached32bit.msi
    MSI (s) (B4:D0) [15:36:19:427]: SOURCEMGMT: Processing media source list.
    MSI (s) (B4:D0) [15:36:19:437]: Note: 1: 2203 2:  3: -2147287037
    MSI (s) (B4:D0) [15:36:19:437]: SOURCEMGMT: Source is invalid due to missing/inaccessible package.
    MSI (s) (B4:D0) [15:36:19:437]: Note: 1: 1706 2: -2147483647 3: MSOCached32bit.msi
    MSI (s) (B4:D0) [15:36:19:437]: SOURCEMGMT: Processing URL source list.
    MSI (s) (B4:D0) [15:36:19:437]: Note: 1: 1402 2: UNKNOWN\URL 3: 2
    MSI (s) (B4:D0) [15:36:19:437]: Note: 1: 1706 2: -2147483647 3: MSOCached32bit.msi
    MSI (s) (B4:D0) [15:36:19:437]: Note: 1: 1706 2:  3: MSOCached32bit.msi
    MSI (s) (B4:D0) [15:36:19:437]: SOURCEMGMT: Failed to resolve source
    MSI (s) (B4:D0) [15:36:19:437]: MainEngineThread is returning 1612
    MSI (c) (AC:B0) [15:36:19:437]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied.  Counter after decrement: -1
    MSI (c) (AC:B0) [15:36:19:437]: MainEngineThread is returning 1612
    === Verbose logging stopped: 18/08/2011  15:36:19 ===
    As you can see from the above highlighted line, it says its invalid, but I cannot for the life of me understand why?
    Thanks in advance for any help!

    Hi,
    This is not something related to the GPO issue. The issue is with MSI and the packaging. Condition the ResolveSource action.
    Try Copying the MSI to local machine using a script and execute it.
    ResolveSource actually requires that the original installation source is available whenever it is called. If your installer package is authored correctly, source must only be resolve in cases where the original RTM files are missing or during some patch
    uninstall scenarios.
    http://blogs.msdn.com/b/heaths/archive/2007/10/25/resolvesource-requires-source.aspx
    http://msdn.microsoft.com/en-us/library/aa371232%28VS.85%29.aspx
    http://www.appdeploy.com/messageboards/printable.asp?m=48703
    If you found this post helpful, please give it a "Helpful" vote. If it answered your question, remember to mark it as an "Answer". This posting is provided "AS IS" with no warranties and confers no rights! Always test ANY suggestion in a test environment before
    implementing!

  • Inf reg process chains design

    Hi All,
    My process chain is done succesfully.. I followed as
    Main Chain
    Start->Delete Data (3ods)->Load data(3ods)->Activate(3ods)-> And(all success ful)->2local process chains(series to and) -> Materdata Load(parallel to and)->Attribute change run
    Local Process chain 1: ( Data loads from ods to cube)
    Start->delete index(cube)-> load data(6 info packages)
    Local Process Chain 2: (Data loads from Flat File to Cube)
    Start->load Data(another 6 Info Packages)->and(condition)-> delete Index(cube).
    Now tell me in design why am getting too many parallel processes for chosen sever
    MSg NO:RSPC118
    why these warnings are comming? give some light on this
    regards
    ashwin

    Hi ashwin,
    Too many parallel processes for chosen server
    Message no. RSPC118
    Diagnosis
    On the server you have chosen, there are only 4 batch processes available. The process chain has been designed in such as way that 5 processes must be processed parallel.
    System Response
    Only 4 processes can be processed parallel. Note also that to be able to start sub-chains, AT LEAST TWO free batch processes must be available. Otherwise a lock situation may arise.
    For more information, see SAP Note 621400.
    Procedure
    Reduce the number of parallel processes in the chain or include sub- chains. This warning applies to all relevant processes.
    Procedure for System Administration
    Increase the number of batch processes available. You should note however that it makes no sense to set up more batch processes than there are CPUs on server .
    Suggestions:
    You may created your Process Chain with 5 parrllel lines or more..You don't free Background Process Available in the server where it is running. I think you have only 4 Background Process Available.
    code
    Start Variant
    Variant 1 Variant 2 Variant 3 Variant 4 Variant 5
    Variant6 variant 7 Variant 8 Variant 9 variant 10
    You can replace it as..
    Code
    Start Variant
    Variant 1 Variant 2
    Variant3 Variant 4
    Variant 5 Variant6
    variant 7 Variant 8
    Variant 9 variant 10
    do's:
    1.You can change your Process Chain Model
    2.You can increase background Process on your System.
    3.You can keep it like this if you are working Development. Your Production will have Extra processes.
    Hope this helps,
    Regards
    CSM Reddy

  • SP14 for BW

    Hi,
    We have SP10 for SAP_BW and we want to upgrade to SP14 , which dependency exist with other components, if we upgrade to SP14 for SAP_BW , we must upgrade other components like SAP_ABA , SAP_BASIS and other components?
    Wich time take to upgrade SAP_BW from SP10 to SP14?
    Best regards
    Zied

    Hello Zied ,
    Select the Support Pack for example in my case I am planning to apply SAPKW70017 .
    In download menu you will found the header:
    File Type |  Download Object | Title |  Info File | File Size | Released On
    Select the option info , you will found the details ( Package Attribute ).
    Check the ( Package Import Conditions ) you will found the Condition , where you can list pre-requisite of SAPKW70017.
    Regards,
    Santosh

  • Fixed the PSA

    How we will fixed the PSA if any error occurs.

    Hi Rajesh,
    In the Admisnistrator workbench, goto PSA. from there select your relevant PSA. Right click and select edit data.
    Then select the corresponding package and conditions so that the row that you would need to change will be displayed. Select the record and click on the pencil button above to edit the record. Make your modifications and save and come out.
    Hope that helps.
    Regards.

  • If condition in a Package

    Hi all,
    I am new to ODI. I have got the following requirement.
    I have got two interfaces. 1. Daily Sales 2. Monthly Sales.
    My requirement is to execute the Daily Sales interface every day except the First Day of the Month. On the First Day of the month, Monthly Sales interface should be executed. And I have got two Global variables. 1. Present Day 2. First Day of the Month.
    I am planning to create a Package and my idea is if variable1 = variable2 then execute the Monthly Sales interface if not execute the Daily Sales interface...but I don't know how to do this using ODI.
    Can someone please help to me to achieve this? Thanks in advance.

    Yes we needs to call the same Variable twice in Refresh and Evaluate Mode. The refresh will always refresh and pick the latest value and Evaluate check the condition . If we don't do refresh then evaluate will pick the last stored value and give us wrong results.
    Now in order to handle the Yearly Sales , the method is similar to what i have suggested earlier.
    Step 1. Create a Variable ( GET_YR_FRST_DY) and paste the following code
    SELECT TO_CHAR(SYSDATE,'DDMM') FROM DUAL Step 2. Drag and Drop the Variable ( GET_YR_FRST_DY) in Refresh
    Step 3 . Drag and Drop the Variable ( GET_YR_FRST_DY) in Evaluate
    Operator = 0101
    Step 4 . If true (OK) then Yearly Sales
    Step 5. join Daily Sales and Monthly sales both to Step 2 (i.e GET_YR_FRST_DY) Refresh . This way you can handle all of them in one single package.
    Please let me know if you have any question.

  • I use Pro Logic 9 and see that to upgrade to Pro Logic X I need to buy the full package again. Does apple offer special conditions for their Apple clients ? Are users of apple care protection plan better served ?

    I use Pro Logic 9.1.8.  and see that to upgrade to Pro Logic X I need to buy the full package again. Does apple offer special conditions for their Apple clients ? Are users of apple care protection plan better served ?

    Old saying applies here most of the time......
    "If it ain't broken, don't fix it"
    I choose to use LP9 with Snow Leopard myself (10.6.8 and 9.1.6) for most of my commercial work simply because I find that combo very stable and provides the best overall performance for my setups here... but I am also using LPX with Mavericks as part of my client support and that works fine too although with a drop in performance due to the heavier demands made on the hardware by the newer OS X and LPX graphic routines for example..

  • Group By condition in result package

    Hi Experts,
    I have a requirement, where I need to write a logic to populate few key figures of a Cube.
    Logic is based on Group by condition on 3 fields of the result package. (Need to implement in end routine)
    Is there any way that I can do a select statement on the result package fields and then put a group by clause to get my aggregated data.
    I need to fill up the key figures in the cube itself (cant take it to BEx).
    Please let me know how to proceed for it.
    Thanks
    El.

    Githen, Thanks for the reply.
    I am thinking of another option of implementing it. Let me know your thoughts
    There is a DSO on the top of this Cube, If I use all the fields which I want to use in "Group By" condition as key fields of the DSO.
    Then would it automatically aggreagate the rows based on the conditions? Will it suffice the requirement?
    Thanks
    El.

  • We look now for a suitable condition type "deposit for loaned packaging"

    Hi,
            Following is my client reuirement,
        We buy a lot of raw materials in loaned packaging (drums or IBC). The
    vendors are invoicing the packaging as an extra item on their invoice.
    Weeks or months later when we return the packaging to them we get a
    credit note.
    We look now for a suitable condition type "deposit for loaned packaging"
    which refers to account 631010 and we can use in the purchase order.
    Can you create such a type ?
    Please any one tell me whether it is possible? If yes, then which way?
    Regards,

    Hi Ajinkya1788 ,
    you can use a condition like FRB1 with a provision account key for your 631010
    or set up a valuation class to determine that account.
    You might want to check empties management documentation in help.sap.com
    best regards,
    Edgar

  • Selection Conditions on Info Package

    Hi Experts
      Please advise me on how to proceed
    My requirment is to include selection condition in INFOPACKAGE as the total data that data source is extracting is nearly 200 million records to minimize the extraction of data to be loaded to DSo...my requirment is include selection conditions at infopackage level
    Condition 1: On Fiscal Year/Period
    To load data from  2005 to current....
    Condition 2: to exclude particula Cost Center
    and data source is delta capable
    Please update me how to include these selection conditions do i need to write any ABAP Code and
    Do i need to include selection conditions on INIT & DELTA info package as well
    I need to load data from FY 2005 to........
    Thanks in advance

    Hi Siegfried Szame
    Thanks for the update...apologies for multiple posts
    One question as you said Parallel Inits
    If i created about 9 different INIT info packages  ( My requirment is to initilize data from FY 2006)
    IP1: 001.2006 to 004.2006
    IP2: 005.2006 to 009.2006
    IP3: 010.2006 to 001.2007
    IP4: 002.2007 to 005.2007
    IP5: 006.2007 to 009.2007
    IP6: 010.2007 to 001.2008
    IP7: 002.2008 to 005.2008
    IP8: 006.2008 to 010.2008
    IP9: 011.2008 to 002.2009
    How about delta....what are the selection conditions i need to use
    and
    Can i execute the above packages one after another...that is after completion of IP1 then IP2..then IP3
    Please update
    Thanks in advance

  • I use a Macbook Air. I should have selected ''remind me later'' but accepted the terms and conditions. Now I can't activate my Creative Cloud Student package. Could Adobe re-activate my Install code? It says i already used it.

    I use a Macbook Air. I should have selected ''remind me later'' but accepted the terms and conditions. Now I can't activate my Creative Cloud Student package. Could Adobe re-activate my Install code? It says i already used it.

    Linemijnv19982937 I am sorry that you are facing problems activating your membership.  Do you receive any specific error messages?  For information regarding the activation process please see Activation & deactivation help - http://helpx.adobe.com/x-productkb/policy-pricing/activation-deactivation-products.html.

  • ODI Packages execution based on condition

    Hi,
    We have clear the data using calc scripts and then load data into Hyperion using ODI packages. Currently i have one Package (Package1) to be executed on WD2 & WD3.
    I have created an interface which will execute the script.
    Here calc scripts are different which are to be executed on WD2 & WD3. I want to have all the steps in single package using any conditions.
    Example:
    Step1 - to check whether it is WD2,
    If yes go to step2 and so on till step6.
    If no, then go to step7.
    Can any one help me on this
    Thanks
    Damo

    Hi,
    ODI variables could be useful for you. Use refresh variable step with appropriate query, then evaluate variable step and organize your logical branching. You could learn about variables fron Developer's guide http://docs.oracle.com/cd/E14571_01/integrate.1111/e12643/procedures.htm#CHDIFIGB (for ODI 11g).

  • Dump: ASSERT condition failed - While creating followup to Package quote

    Hi,
    I am trying to create follow up (Service contract) document to Package Quotation. But, I am endedup with dump in Function Module saying : "ASSERT Condition Failed". And this is happening only in preproduction. In development system, it is working fine. I really do not understand the reason.
    last week it worked fine ... but suddenly this error came up.
    Please help me out to find the reason and solution.
    Thanks,
    Sandeep

    Hi Arun,
    Please check the following in regards to the company code issue:
    1. Go to transaction PPOME and search for your Top Org unit,
    2. For that org unit, go to the tab Account Assignment.
    3. Fill the field Company Code with appropriate value and save it
    This should resolve the issue in regards to the message of the company code. The dump refers to the table V_T077D. Please check your number range settings for the customer account groups related to students table V_T077D. Once the necessary customizing is maintained, the problem  should get solved.
    Good luck.
    Rob

  • Help with conditions AND installer Packages

    Hello everyone,
    I need help still learning.
    My shell is SHELL=/bin/sh based on env command
    I am trying to write a package with Iceberg to push Office 2004 to 250 Macs. I need a preflight script with a condition that will stop my script if /Applications/Microsoft Office 2004 exists OR if OFFICE 2004 exists. Don't know if searching on the folder name is the best or if there is better way
    If it doesn't exist I want it to continue with with placing Office 2004 in the /Applications folder.
    I don't know how to do conditions (If, then, end)
    PREFLIGHT SCRIPT
    IF /Applications/Microsoft Office 2004 folder exist = STOP
    IF /Applications/Microsoft Office 2004 folder doesn't exist continue with laying down files/folder in the package.
    LAYDOWN FILES
    LAY DOWN FILES IN ICEBERG FILE SECTION OF THE PACKAGE
    POSTFLIGHT SCRIPT
    #!/bin/sh
    #Change to root directory
    cd /
    # Move Microsoft Office X folder to Messages Received folder
    mv /Applications/Microsoft\ Office\ X /Messages\ Received
    #Open Office 2004 Installer
    open /Applications/Utilities/Installers/Office2004Installer
    G4 1.42   Mac OS X (10.3.5)  

    Hi Dmcrory,
       The answer to your question about ORing tests in a shell conditional statement could be something along the lines of:
    if [ -d /Applications/Microsoft\ Office\ 2004 -o -d "/Applications/OFFICE 2004" ]
    then
       exit 1
    fi
    I've included two different styles of quoting so you can choose which you prefer.
       That said, you appear to be asking us how to write shell scripts, starting from scratch. Time that you spend studying benefits you forever and sometimes benefits us, while time we spend doing your work is at best a trivial review for us. The above "-o" option, and many others, are documented at the compound comparison section of the Advanced Bash-Scripting Guide. Don't let the name fool you; the Guide actually assumes very little. The "Advanced" adjective refers to the completeness of work. In fact there are many good references.
       I used to have a long post of links to what I think are some of the better beginning UNIX tutorials and books. However, as others posted great links and I stole them, my post became too long so I put it in a web page. Bill Scott did the same thing so here is Bill's and here is mine.
       This is being written after reading your exchange with Roger. When you execute code that doesn't work, we certainly have no chance of knowing why without seeing the code. It generally helps a lot to see the output as well.
    Gary
    ~~~~
       University politics are vicious precisely because the
       stakes are so small.
             -- C. P. Snow

Maybe you are looking for