How to Convert the SQL to PL/SQL based on the Below SQL Example.

I have an example which gives some example.
If Actual Total Refund $ =
But I got sum(Total Refund) = $199,999.50
If i have total 100 rows which give the value 199,999.50 then first 50 rows i should receive an additional penny. to match the $200,000.00. and also vice versa.
If Actual Total Refund $ = $199,999.50
But I got sum(Total Refund) =$200,000.00
then first 50 rows i should remove an additional penny. to match the 199,999.50 .
I have written a quer to calculate the Sum( but not sure how to loop the amounts with adding pennies.
SELECT LGL_ENT,JURDCN,FED_MKT_SEG,WRTN_PREM_PCTG,
ROUND (REBT_AMT_PER_GRP,2), REBT_AMT_PER_GRP,ROUND(REBT_AMT_PER_GRP,2)- REBT_AMT_PER_GRP AS PEN_DIFF,
SEG_CALCD_REBT, GRP_ID FROM
SELECT PREM.LGL_ENT,PREM.JURDCN,EG.FED_MKT_SEG,SUM(PREM.WRTN_PREM_AMT) SUM_WRTN_AMT,
(SUM(PREM.WRTN_PREM_AMT)/SPREM.WRTN_PREM_AMT) AS WRTN_PREM_PCTG,
(SUM(PREM.WRTN_PREM_AMT)/SPREM.WRTN_PREM_AMT)*SEG.CALCD_REBT_AMT AS REBT_AMT_PER_GRP,
SEG.CALCD_REBT_AMT AS SEG_CALCD_REBT, EG.GRP_ID
FROM VTP.wrtn prem, wrtn_sum sprem,
VTP.empr_size eg,
VTP.seg seg
WHERE
PREM.LGL_ENT =SEG.LGL_ENT
AND PREM.JURDCN= SEG.JURDCN
AND EG.FED_MKT_SEG=SEG.FED_MKT_SEG
AND PREM.LGL_ENT =SPREM.LGL_ENT
AND PREM.JURDCN= SPREM.JURDCN
AND EG.FED_MKT_SEG=SPREM.FED_MKT_SEG
AND PREM.EMPR_GRP_SIZE_SKEY=EG.EMPR_GRP_SIZE_SKEY
GROUP BY PREM.LGL_ENT, PREM.JURDCN, EG.FED_MKT_SEG, SEG.CALCD_REBT_AMT, EG.GRP_ID,SPREM.WRTN_PREM_AMT
)ORDER BY REBT_AMT_PER_GRP ASC
Thanks in advance for your support.

Thanks for you Support For working with Me.
Here is the sample Data for Actual Refund Amount is 800.00
N GROUP     JURDCN      FED_MKT_SEG     ROUND(REBT_AMT_PER_GRP,2)     REBT_AMT_PER_GRP     Peeny Calculation      Actual Rebate That I should Match
111 ….      MD …..      I M M ….      24.09     24.0936488     0.78          24.87
112 ….      MD …..      I M M ….      24.09     24.0936488          0.78          24.87
113 ….      MD …..      I M M ….      24.09     24.0936488          0.78          24.87
114 ….      MD …..      I M M ….      24.09     24.0936488          0.78          24.87
115 ….      MD …..      I M M ….      40.57     40.5673183          0.78          41.35
116 ….      MD …..      I M M ….      24.09     24.0936488          0.78          24.87
117 ….      MD …..      I M M ….      40.57     40.5673183          0.78          41.35
118 ….      MD …..      I M M ….      24.09     24.0936488          0.78          24.87
119 ….      MD …..      I M M ….      24.09     24.0936488          0.78          24.87
120 ….      MD …..      I M M ….      16.06     16.06243253          0.78          16.84
121 ….      MD …..      I M M ….      40.57     40.5673183          0.78          41.35
122 ….      MD …..      I M M ….      9.2     9.198403569          0.78          9.98
123 ….      MD …..      I M M ….      16.06     16.06243253          0.78          16.84
124 ….      MD …..      I M M ….      24.09     24.0936488          0.78          24.87
125 ….      MD …..      I M M ….      24.09     24.0936488          0.78          24.87
126 ….      MD …..      I M M ….      24.09     24.0936488          0.78          24.87
127 ….      MD …..      I M M ….      24.09     24.0936488          0.78          24.87
128 ….      MD …..      I M M ….      24.09     24.0936488          0.78          24.87
129 ….      MD …..      I M M ….      24.09     24.0936488          0.78          24.87
130 ….      MD …..      I M M ….      40.57     40.5673183          0.78          41.35
131 ….      MD …..      I M M ….      24.09     24.0936488          0.78          24.87
132 ….      MD …..      I M M ….      24.09     24.0936488          0.78          24.87
133 ….      MD …..      I M M ….      24.09     24.0936488          0.78          24.87
134 ….      MD …..      I M M ….      40.57     40.5673183          0.78          41.35
135 ….      MD …..      I M M ….      40.57     40.5673183          0.78          41.35
136 ….      MD …..      I M M ….      24.09     24.0936488          0.77          24.86
137 ….      MD …..      I M M ….      2.01     2.007804066          0.77          2.78
138 ….      MD …..      I M M ….      40.57     40.5673183          0.77          41.34
139 ….      MD …..      I M M ….      40.57     40.5673183          0.77          41.34
Sum of Amount is                **777.42*     777.4616487          *800**
I am Using 10G
My Sql will only calculate the Amounts . But it will not work on Penny Calculations i should give loop logic for penny for each group untill it matches sum of Group Amuont

Similar Messages

  • How to execute the query for a block based on the parameter

    Hi All,
    Good evening.
    i have requirement where i need to display the data in one block based on the selected items.
    the scenario is like this...there are 2 LOV's and one apply button and one external region on the form.
    so when u select the lov values and click on apply button the query should execute based on this 2 lov values.
    i am not getting how to achieve this..i am very new to oracle forms..
    Please Help..
    Thanks
    Bharat
    please help..it is urgent..
    thanks
    bharat
    Edited by: Bharat on Jan 31, 2012 5:19 AM

    Bharat wrote:
    Hi All,
    Good evening.
    i have requirement where i need to display the data in one block based on the selected items.
    the scenario is like this...there are 2 LOV's and one apply button and one external region on the form.
    so when u select the lov values and click on apply button the query should execute based on this 2 lov values.
    i am not getting how to achieve this..i am very new to oracle forms..Another way you can do this. Create a lov and don't assign it to any column just one return item (should be id).
    Now create a button may be your "apply button" write two trigger when-button-press and when-mouse-click.
    at When -Button-Press trigger, change the block state to 'ENTER-QUERY' and at when-mouse-click show the LOV and then write execute_query.
    Hope this will help you.
    If someone's response is helpful or correct, please mark it accordingly.

  • Changing the color of the column in a JTable based on the selection (mouse)

    Hi,
    I want to change the color of all the cells in a column based on the mouse clicked event.
    I have managed to select the entire column. And, even, I have found a working example in the internet. But I don't understand why in my case it doesn't work.
    This is the code (an inner class for a TableCellRenderer):
    class MCTableCellRenderer extends JLabel implements TableCellRenderer {
              private static final long serialVersionUID = 1L;
              @Override
              public Component getTableCellRendererComponent(JTable table,
                        Object value, boolean isSelected, boolean hasFocus, int row,
                        int column) {
                   setFont(table.getFont());
                   if(value instanceof Double){
                        setHorizontalAlignment(SwingConstants.RIGHT);
                        DecimalFormat numberFormat = (DecimalFormat) NumberFormat.getInstance();
                        numberFormat.applyPattern("#######.#");
                        String val = numberFormat.format(value);
                        setText(val);
                   if(isSelected){
                        setBackground(Color.RED);
                        System.out.println("is selected");
                   else{
                        setBackground(Color.BLACK);
                        System.out.println("is not selected");
                   return this;
        }I have set opacity to true for the contentPane, but without any result.
    Any advice will be very apreciated.

    Problem solved.
    My Renderer should have extended the abstract class DefaultTableCellRenderer.
    class MCTableCellRenderer extends DefaultTableCellRenderer {

  • Process flow for the Mid-year Status Changes based upon the Qualifying Even

    Hi Experts,
    I'm looking some information for the process flow for the Mid-year Status Changes based upon the Qualifying Events. Basically, I need to know, what would be the impact of these changes on various info types (Via IT0014 - Deduction changes & so forth) and the things that needs to be considered during it's Configuration and the things that needs to be checked due to the occurrence of the change. I would greatly appreciate any kind of help/document.
    Thanks a bunch in advance,
    Thanks,
    Exertive.

    Hello guys,
    Can anyone has any kind of input on this? Basically, I need to know the procees for Mid-year status changes based upon Qualified events. Any kind of help is greatly appreciated.
    Thanks,
    Exertive.

  • How to convert iTunes 7.0 to 6.0.5 (the iTunes Library.itl)

    I found a useful method to get 6.0.5 installed back without any loss of files(if you forgot it backup).
    Yes, I have try it and yes it did fix my problems.
    This should fix all prblems in 7.0 that people hate. Could someone sticky this?
    Backup your files in iTunes 7.0(iTunes Lirbabry.itl)
    (optional: Back up all purchases as you might lose them in the process!)
    Uninstall7.0 and install 6.0.5
    Delete the "Itunes Library.itl" file in the iTunes music folder & "iTunes Music Library.xml"
    (Normally found in ...\My Documents\My Music\iTunes)
    Now run ITunes 6.0.5
    While iTunes is running delete both those filed created.
    Now close iTunes.
    To put the backup file from the first step back where it was back into (...\My Documents\My Music\iTunes) or where your iTunes folder is.
    Now start it
    There shouldn't be any problems and it should work normally(atleast mine does)
    Notes:
    You don't need to restart your PC(or normally shouldn't)
    Just bumb this post every once in a while so others can get 7.0 back to 6.0

    One question: How do u backup files? Is that what the
    Consolidate Library thing is about??
    Actually, no. That's different. First, to backup your music library, simply copy your music and database files to somewhere offline. the database files are files with extension .itl and .xml. For example, in my "My Music" folder, I have a folder called "iTunes." This folder contains the files "iTunes Library.itl" and "iTunes Music Library.xml." These are your database files. All my music is in sub-folders within this iTunes folder. I simply send the entire iTunes folder to offline storage to backup. I believe this is all you need to do.
    Regarding the Consolidate Library thing, this is something different. iTunes can add music to your library from anywhere on your system, even (I think) a network share. The music doesn't have to reside in the iTunes Music folder. It adds the music to your library, then when you play it, iTunes reaches out to that location for the file and plays it from there. However, you can change a setting in preferences to alter this behavior.
    Go to the Advanced tab in Preferences. Here, you'll find a checkbox that says "Copy files to iTunes Music folder when adding to library." If this is unchecked, then iTunes behaves as I decribed above. If, however, you check that option, iTunes will make a copy of every file you've added to your library in the iTunes Music folder.
    If you have the option above deselected, then the "Consolidate" function will copy all that media to the iTunes Music Folder and link to those copies instead of the originals that do not reside there.
    Hope that helps.
    BTW, iTunes 7 now has a "Backup to disc" option in it's file menu that simplifies the backup process. (although I have yet to try it)
    Dell Latitude X1   Windows XP Pro   iTunes 7 with 30GB 5G iPod version 1.2

  • How to convert a config of an IOS AP into the proper config of a WLC ?

    Hello All, I have a production site to move from IOS APs to LWAPP under a local WLC and I need to prepare the following steps
    1- save all the configs of the IOS APs : ok
    2- convert the configs of those APs into 'something' to be imported from the WLC: can this be done or will I need to put all by hand into the WLC?
    thx

    I had the same challenge when I migrated form IOS to LWAPP.
    What I did was duplicated my IOS config on to the controller. Once tested that I can connect to that with out changing configuration on the client side I changed the IOS AP's to LWAPP.
    Coming back to your question about importing - I didn't see it. I just added it manually on the controller.
    P.S make sure the AP's you are running is compatible with the code required. Also make sure country code is not an issue for you. It was for me since I am running bridges. So I left one AP on IOS.

  • How to schedule report filtered by dynamic date based on the date the Agent runs

    Hello
    I have a question about delivering report using OBIEE agent.
    If i am running an agent today to deliver report A, can I get report A based on Last Monday's date or any dynamic dates?
    For example, say today is Dec 18th 2013 and my agent is running according to how I set the schedule. Now the deliver content will have report A being delivered. Now report A has a date column, normally this column is filtered by current date. But if it's delivered through agents to various users, Report A's data should be the previous Monday, so in this case Dec 9th 2013. When this agent is run again said on Dec 27th 2013, then report A should be filtered by Dec 16th 2013, which is the previous monday of Dec 27th.
    Can something like this be achieved in OBIEE 11G?
    Thanks in advance.

    Yala,
    Not a straight forward way
    1) Let the report run through Agent with Current Date filter
    2) once it ran for the first time you can see IBOT name/last run time(LAST_RUNTIME_TS) in  S_NQ_JOB
    Create a repository variable 'last_run_agent' using below sql to get max(LAST_RUNTIME_TS)
    select max(LAST_RUNTIME_TS) from s_nq_job where name = 'AGENT_NAME';
    Edit the analysis report with current date filter and modify the filter condition accordingly to filter on newly created repository variable
    Thanks,
    Saichand

  • How to convert an Interactive report to ALV report..please give a example..

    Hi experts,
    How to convert an interactive report to ALV report..plz suggest me an example...
    thanks in advance,
    Varsha.

    hi varsha,
    chk this link.
    http://www.sapdevelopment.co.uk/reporting/alv/alvgrid.htm
    you will get good idea.
    use this FM.
    call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                i_callback_program      = gd_repid
                i_callback_top_of_page   = 'TOP-OF-PAGE' 
                I_callback_user_command = 'USER_COMMAND' 
                is_layout               = gd_layout
                it_fieldcat             = fieldcatalog[]      "create a field catlog.
                i_save                  = 'X'
           tables
                t_outtab                = it_tab        "pass the final internal table.
           exceptions
                program_error           = 1
                others                  = 2.
    Regards
    Anver

  • How to get the total number of occurrences based on the value of a column.

    Hello everyone,
    This is the first time that I will ask question here on your forum but has been following several threads ever since. I guess that now is my turn to ask a question. So anyway here is the thing, I have a query that should return count the number of rows depending on the value of SLOT. Something like this:
    WIPDATAVALUE          SLOT             N            M
    1-2                   TRALTEST43S1     1            3
    1-2                   TRALTEST43S1     2            3
    3                     TRALTEST43S1     3            3
    4-6                   TRALTEST43S2     1            4
    4-6                   TRALTEST43S2     2            4
    4-6                   TRALTEST43S2     3            4
    7                     TRALTEST43S2     4            4-----
    As you can see above, on the SLOT TRALTEST43S1, there are three occurrences so M (Total number of occurrences) should be three and that column N should count it. Same goes with the SLOT TRALTEST43S2. This is the query that I have so far:
    SELECT DISTINCT
    WIPDATAVALUE, SLOT
    , LEVEL AS n
    , m
    FROM
      SELECT
        WIPDATAVALUE
        , SLOT
        , (dulo - una) + 1 AS m
      FROM
        SELECT
          WIPDATAVALUE
          , SLOT
          , CASE WHEN INSTR(wipdatavalue, '-') = 0 THEN wipdatavalue ELSE SUBSTR(wipdatavalue, 1, INSTR(wipdatavalue, '-')-1) END AS una
          , CASE WHEN INSTR(wipdatavalue, '-') = 0 THEN wipdatavalue ELSE SUBSTR(wipdatavalue, INSTR(wipdatavalue, '-') + 1) END AS dulo
        FROM trprinting
        WHERE (containername = :lotID OR SLOT= :lotID) AND WIPDATAVALUE LIKE :wip
    ) CONNECT BY LEVEL <= m
    ORDER BY wipdatavalue;And that it results to something like this:
    WIPDATAVALUE          SLOT             N            M
    1-2                   TRALTEST43S1     1            2
    1-2                   TRALTEST43S1     2            2
    3                     TRALTEST43S1     1            1
    4-6                   TRALTEST43S2     1            3
    4-6                   TRALTEST43S2     2            3
    4-6                   TRALTEST43S2     3            3
    7                     TRALTEST43S2     1            1-----
    I think that my current query is basing its M and N results on WIPDATAVALUE and not the SLOT that is why I get the wrong output. I have also tried to use the WITH Statement and it works well but unfortunately, our system cant accept subquery factoring.
    I know you guys will be helping out because you are all awesome. Thanks everyone
    Edited by: 1001275 on Apr 19, 2013 8:07 PM
    Edited by: 1001275 on Apr 19, 2013 8:18 PM

    Hi,
    Sorry, it's still not clear what you want.
    Are you saying that, given this table:
    CREATE TABLE trprinting
      WIPDATAVALUE       VARCHAR2(255)
    , SLOT               VARCHAR2(255)
    INSERT INTO trprinting (wipdatavalue, slot) VALUES ('1-2',  'TRALTEST43S1');
    INSERT INTO trprinting (wipdatavalue, slot) VALUES ('3',    'TRALTEST43S1');
    INSERT INTO trprinting (wipdatavalue, slot) VALUES ('4-6',  'TRALTEST43S2');
    INSERT INTO trprinting (wipdatavalue, slot) VALUES ('7',    'TRALTEST43S2');you want to produce this output:
    WIPDATAVALUE SLOT                     N          M
    1-2          TRALTEST43S1             1          3
    1-2          TRALTEST43S1             2          3
    3            TRALTEST43S1             3          3
    4-6          TRALTEST43S2             1          4
    4-6          TRALTEST43S2             2          4
    4-6          TRALTEST43S2             3          4
    7            TRALTEST43S2             4          4? If so, here's one way:
    WITH     got_numbers     AS
         SELECT     wipdatavalue
         ,     slot
         ,     TO_NUMBER ( SUBSTR ( wipdatavalue
                               , 1
                           , INSTR ( wipdatavalue || '-'
                                ) - 1
                     )          AS low_number
         ,     TO_NUMBER ( SUBSTR ( wipdatavalue
                               , 1 + INSTR ( wipdatavalue
                     )          AS high_number
         FROM     trprinting
    SELECT       wipdatavalue
    ,       slot
    ,       ROW_NUMBER () OVER ( PARTITION BY  slot
                                 ORDER BY          low_number
                        )                    AS n
    ,       COUNT (*)     OVER ( PARTITION BY  slot )     AS m
    FROM       got_numbers
    CONNECT BY     LEVEL               <= high_number + 1 - low_number
         AND     low_number          = PRIOR low_number
         AND     PRIOR SYS_GUID ()      IS NOT NULL
    ORDER BY  low_number
    ,            n
    ;Much of the complexity here is caused by storing 2 numbers in 1 VARCHAR2 column, wipdatavalue. Relational databases work best when there is no more than 1 item in any given column of any given row. This is so basic to datbase design that it is called First Normal Form. Also, numbers belong in NUMBER columns, not VARCHAR2. If you stored your data like that in the fist place, then you wouldn't need the sub-query I called got_numbers, which is about 60% of the code above. (That could be reduced by replacing SUSTR and INSTR with the less efficient REGEGP_SUBSTR.)

  • How does one create a form that redirects based on the input of the form?

    What I am trying to do is have a form with one input. Lets call it "ID".
    There are multiple pages that the form can direct to depending on the ID the user inputs.
    All of the page extentions end with the ID. For example www.page.com/0001.html.
    So I want the user to put in "0001" then submit. The user will then be directed to page www.page.com/0001 if they put in an invalid ID user will be directed to "ID not found" page.
    Any help would be much apreciated!! Thanks.

    on form.php put a form like this:
    <form method="POST" action="redirect.php">
    <input type="text" name="id" value="" /><br />
    <input type="submit" value="redirect" />
    </form>
    on redirect.php put this:
    <?php
    if (isset($_POST['id'])) {
         header ('Location: http://yoursite.com/'.$_POST['id'].'html');
         exit;
    }else{
         header ('Location: http://yoursite.com/form.php');
         exit;
    ?>
    best,
    Shocker

  • How to set condition in choose from list based on the combo selection

    Dear Members,
         i have a requirement to filter the item based on the itemgroup. After choosing the itemgroup in the dropdown list i have to filter the item for the particular group in the choose from the list.since i have tried in the combo select it doesnt work out for me.any body can suggest me is it doable. if so pls tell me the work around.
    My coding is as follows..
    Case SAPbouiCOM.BoEventTypes.et_COMBO_SELECT
    if pval.itemUID="Cmb"
                                objChooseCollection = objForm.ChooseFromLists
                                objChooseFromList = objChooseCollection.Item("CFL1")
                                objConditions = objChooseFromList.GetConditions()
                                objcondition = objConditions.Add()
                                objcondition.Alias = "itmsgrpcod"
                                objcondition.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
                                objcondition.CondVal = Form.items.item("Cmb").specific.selected.value
                                objChooseFromList.SetConditions(objConditions)
    End if
    With Regards,
    jai.
    Edited by: JaiShankarRaman on Dec 23, 2009 10:47 AM

    Hello,
    Following is a code sample which I am using:
            Dim oForm As SAPbouiCOM.Form
            Dim oMatrix As SAPbouiCOM.Matrix
            Dim oChooseFromList As SAPbouiCOM.ChooseFromList
            Dim oConditions As SAPbouiCOM.Conditions
            Dim oCondition As SAPbouiCOM.Condition
            Dim CodeType As Integer
            Try
                oForm = oPayOn.SBO_Application.Forms.GetForm(CflEvent.FormTypeEx, CflEvent.FormTypeCount)
                oMatrix = oForm.Items.Item("AC_MATRIX").Specific
                oChooseFromList = oForm.ChooseFromLists.Item("ACC_CFL1")
                CodeType = oMatrix.Columns.Item("AC_MC00").Cells.Item(CflEvent.Row).Specific.Selected.Value
                oConditions = oChooseFromList.GetConditions
                If oConditions.Count > 0 Then
                    oCondition = oConditions.Item(0)
                Else
                    oCondition = oConditions.Add
                End If
                oCondition.Alias = "U_CodeType"
                oCondition.Operation = SAPbouiCOM.BoConditionOperation.co_EQUAL
                oCondition.CondVal = CodeType
                oChooseFromList.SetConditions(oConditions)
            Catch ex As Exception
                'oPayOn.SBO_Application.SetStatusBarMessage(ex.Message, SAPbouiCOM.BoMessageTime.bmt_Medium, True)
            End Try
        End Sub
    I am calling this in the CFL event - before action. So when the user clicks on CFL button - but before it opens - this code is called and the condition is applied. Here AC_MC00 is a combo column in a matrix.
    Regards
    Rahul Jain

  • How to re-size a overflow text frame based on the text length?

    Hi ..
    Is it possible to re-size a overflow text frame based on the text length?

    Hello,
    Please refer to forum post : http://forums.adobe.com/message/4828489#4828489
    Regards,
    Sachin

  • I have the exclamation point symbol next to podcasts that don't meet the criteria for said symbol based on the FAQ

    When I'm looking through and trying to manage my Podcast library within iTunes, I see the exclamation point symbol next to several. My first issue is the fact that there are many that have this symbol that I only wanted a few episodes and not a subscription. How can I fix this problem?
    My second issue is that for many of the podcasts with the exclamation point symbol, they don't fit the criteria based on what's in the Symbol FAQ, which states that there are too many unplayed episodes so new episodes won't download. For the podcasts in question, this is not the case, as all episodes have been listened to. What can be done to fix this problem?
    My third issue is the fact that when I DO play a podcast on my iPod Touch (4th Gen), I don't use the app (can't stand it), then go to sync it with the computer, these episodes are shown as having already been played PRIOR to the actual syncing happening. So, when I go to do the ACTUAL sync, the play count is off. Right now, I have to manually reset the play count so that the episodes that I listened to on my iPod Touch only show one play in the library count, not two or in some cases, three. How can I fix this problem?
    I have the most current version of iTunes and use Windows 7 64-bit.
    Thanks for ANY help!

    Try this Support Article  >  http://support.apple.com/kb/HT1808

  • Looking to set the result of a variable based on the content of another (new to scripts)

    Hi,
    I'm new to scripts, new to acrobat forms to be honest, so be gentle with me
    I have a text field Acc1pnt which can accept either Y or N as an entry. Based on the answer, text field Acc1snd would always be N/A if the result of Acc1pnt is N. I'm looking for a script that will add N/A to the second text field and skip over it (make read only?) if the answer to the first field is N.
    Sorry if I'm making this look like hard work. Basically a check is made as to whether an accessory is received and, if it is, whether it is 'sound' or 'damaged'. Obviously if it isn't received then it's condition is irrelevant hence N/A in the senond text field.
    Also, is there something simple I can add to convert an entry to a capital letter?
    Thanks in advance
    Cliff

    Hi Gilad
    I've shied away from radio buttons as the users are used to tabbing through the fields and 'clicking' a radio button would mean taking their hands from the keyboard, I will certainly consider it though.
    Acc1snd (the 2nd variable) should be editable ONLY if the answer to Acc1pnt (the 1st variable) is Y. If the value of the 1st variable is N then Acc1snd can only be N/A (not applicable) and should not be editable.
    Obviously if the user makes an initial mistake and needs to change the value of the 1st variable to Y then the 2nd variable would then need to be editable.
    I will run through the tutorials this evening

  • To limit the access of PM data based on the Company Code, Plant & Location

    Hi Experts,
             I have a requirement . Customer wants to Restrict the access of PM data for a user based on the company code,
    Plant & Location.
    Say user : XYZ
    Plant :1000
    CCODE:1000
    Location:0001
    So you can see data of only this Organisation structure .No other data will be visible to him.
    I know we can do it using authorisation object
    Can you Suggest me how can we do this.
    Regards,
    Amar

    Hi,
    You can achieve this by maitaing these values in user authrisations. If you want more info about the objects check SU22 t code under PM.
    For Plant              I_IWERK
    For Location       I_ILOA
    Regards,
    N.Nagaraju

  • Drop the files into different directories based on the filename

    Hi,
    I had a reqiuirement based on the file name, i should drop the files in to different directories.
    I can get the filename through variable substitution in receiver file communication channel, now i want to drop the file into different folders based on conditions.
    suppose, if the file name is DDDX234
    i should do substring of filename0+(4), if the value is L then i should drop in X directory
    suppose, if the file name is DDDY234
    i should do substring of filename0+(4), if the value is L then i should drop in Y directory.
    How can i drop the file into differnent directories based on filename.
    Thanks
    Srinivas

    Thanks Michal,
    I mapped the directory and filename to the target header in the mapping
    Filename --> UDF --> Header(target)
    and in the receiver channel checked the ASMA and given * in the filename and directory name.
    But in runtime iam getting the error as
    Attempt to process file failed with com.sap.aii.adapter.file.configuration.DynamicConfigurationException: The Adapter Message Property 'FileName' was configured as mandatory element, but there is no 'DynamicConfiguration' element in the XI Message header
    MY UDF is
    public String Directory(String a,Container container){
    DynamicConfiguration conf = (DynamicConfiguration) container.getTransformationParameters().get(StreamTransformationConstants.DYNAMIC_CONFIGURATION);
    DynamicConfigurationKey key  = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File", "FileName");
    DynamicConfigurationKey key1 = DynamicConfigurationKey.create( "http://sap.com/xi/XI/System/File", "Directory");
    String FileName = conf.get(key);
    FileName = a;
    conf.put(key, FileName);
    %%%based on filename the directory should change
    String Directory = conf.get(key1);
    Directory = "/SAPInterface/XI/PPD/DHX/out";
    conf.put(key1, Directory);
    return "";
    Help me in correcting this error.
    Thanks
    Srinivas

Maybe you are looking for

  • N81 8gb browser not working

    Whenever i try to access the internet either through WAP or WiFi the browser will not open, the menu im on flickers and then returns to what it was with no browser open! Please help!

  • Ccmsping Installation: RFC client functionality not configured

    Hi there, I've tried to install a ccmsping on our Solution Manager (EHP 1, SP 23). First everything looks fine, but when I try to start the agent in the last step, following info appears: INFO: Updated saprfc.ini in agent work directory <DIR> INFO: C

  • Unable to make purchase online

    I've been trying for hours to make some software purchases but every time I click the Buy App button I get the message, "The iTunes store is unable to process purchases at this time. Credit card processing is temporarily unavailable. . . . Please try

  • Mail 4.5 (1084) won't send

    About an hour ago I noticed that the Send icon was twirling constantly.  I have six messages that are stuck in the outbox.  I've tried all the usual tricks short of rebooting -- which I plan to try as soon as I finish this message.  Both on my wife's

  • Results are lost when I filter by a characteristic (SEM-BCS)

    Hi! I am building a BEx report for a SEM-BCS Worksheet. I have the posting levels 00, 01, 10, 20 and 30. At first I only have the posting level upper the ratio "Period Value GC" (Columns) and the characteristic 0CS_ITEM with a hierarchy in the Rows.