Calculating values for setPreferredsize

I am trying to draw a simple graph. However, I can't seem to get the width size right for when I use setPreferredsize (I need to do this because I am using scroll panes). From my calculations the width is 1500, but it seems to be 3000. Can someone please explain why this is?
for (int i = 0; i < 1500; i++) {
                                 //data is array of integer data values
                    int ran = data;
                    //g2 is the graphics 2d instance
                    g2.drawRect( 2 * i, (100 - ran), 1, ran);

I am NOT sure what do you want to control. Your code does not show the real question. Generally, setPreferredSize(), setSize*() are difficult to control. Better way is to implement getPreferredSize(). Compute the size from the API implementation. Then it will generally work. In addition, you may have to use in combination with invalidate() and doLayout(). If you use Swing, controling sizes of components will make you crazy!

Similar Messages

  • Calculated value for SAP Scripts

    Hi All,
    I have made changes to two seperate print programs which are used to print Invoice and Packing Slip respectively. However, I'm using the dimension details from VEKP in both. When I calculate volume multiplying the length, breadth and height (data fetched from VEKP) table, in one of the programs, the calculated value appears correctly while in the other it is not.
    The Issue:
    While calculating volume in one of the programs the system does not recognize the decimal point and considers it as a thousand separator and hence it arrives at wrong calculated value. Whilst in the other program it is working fine. This appears weird to me since it is the same system, the data being the same, the variable declarations also being the same.
    Please let me know if there is some thing I need to do to make sure I get the correct calculated value.
    You suggestions will be appreciated. Thanks.
    - Niranchan.

    Hi,
    There is no code required for this,
    Volume = Length * Width * Height.
    This data comes from VEKP table from the corresponding fields.
    Thank you.

  • Retaining a calculated value for iterative calculatio​n

    Dear LabVIEW Forum Members,
    This may appear to be a trivial question however I am having difficulty trying to solve this problem using the LabVIEW vi's & environment.  I explain as follows:
    I need to calculate and display, in graph form, the contents of a Hopper that is initially filled to 100 tonnes.  The hopper is being discharged and filled at the same time, I have the values of filling and discharging in 1 second intervals.  The contents of the Hopper is a simple mass balance calculation, Hopper Contents = Inlet material - Outlet material.  Below are the first few data sets:
    Material Into Hopper         Material out of Hopper        Theoretical Hopper contents
                   0                                     0                                                 100
                   0                                     1.534057                                   98.465943
              0.345                                  5.250186                                   93.560757
              0.6                                       6.801075                                   87.359682
    How can I iteratively calculate and use the 'Theoretical Hopper contents' calculation from the Hopper inlet and outlet ?  I am using the Simulation & Control Frame so I cannot use the For Loop within this frame.  Attached is me vi program so far and the Build XY Graph2 is where I'm wanting to display this Hopper contents data.
    Any help would be gratefully appreciated.
    Regards,
    Solved!
    Go to Solution.
    Attachments:
    Plant_Simulator (15-05-2013).vi ‏338 KB

    Hi bunnykins,
    You've asked a LabVIEW question on the DIAdem Discussion Forum.  Please repost to the LabVIEW Discussion Forum.
    Brad Turpin
    DIAdem Product Support Engineer
    National Instruments

  • Asset value for Calculation of Tax Depreciation

    We have been told that many of the assets created as of 1/1/2008 have a different (lower) tax value than their beginning book value.  Book value is correct for standard book depreciation.     Is there a process to update the tax value of assets created in SAP similar to the transaction AS92 used to update values for Converted Assets?
    It was suggested that we use the method of Unplanned Depreciation tcode ABAA with TTY 642/652 to change the tax value of the asset.  When I tested this I found the various tax depreciation methods were calculated based on the beginning book value for year 1 and not using taking the special depreciation into consideration until subsequent years.   This is using Depreciation Area 10, MACRS, Dep. Key M200.
    Is there a better method of altering asset book value for tax purposes or a better way to alter the tax depreciation calculation so it takes Unplanned Depreciation into consideration during year 1?
    Current simplified tax depreciation example:
    Beg. BV $1,000
    unplanned dep posted $100
    tax depreciation for year 1 $100
    tax depreciation for years 2-10 $88.88
    The preferred depreciation is $90 years 1 - 10.
    Thanks for your assistance,
    Jeff

    I think I had the cart before the horse on this problem.  The correct way to look at this is what is the best way to get the correct "Net Book Value" and not the correct tax depreciation posting as it never actually gets booked.  
    By knowing the incorrect Beginning BV, the rate depreciation is applied in year 1 and finally the desired Net BV value at the end of year 1 for tax purposes I am able to calculate the correct Unplanned Depreciation for tax to make everything work out correctly.
    correct beginning tax BV $1,200
    Beginning Asset Book Value $1,800
    depreciation $360 (20% of BV)
    Unplanned depreciation  $?
    Net BV for tax at end of Yr1  $960 ;  or  1,200 - (1,200*.2)
    With the know values above that makes my unplanned depreciation for Yr 1 to be $480.  Year 1 and all following years depreciate correctly after the Unplanned Depreciation is posted.
    I am marking this as resolved unless someone sees an error in my thinking.
    Thanks,
    Jeff

  • How value for PR00 and VPRS is calculated?

    Hi Everybody,
    Can anyone answer me the below mentioned question....
    1.Standard price in material in a/c view which comes in Pricing procedure as VPRS..............is that manufacturing cost(COGM)? Does it come from production?
    2.We calculate profit comparing standard price(VPRS) with the price which we get after deducting all the discounts and adding all taxes and freght.How do we fix up or determine base price(PR00)?Is it COGS?Who actually give or decide PR00 price in any Organization?
    3.Dfference between PR00 and VPRS.
    I wll really be grateful to get a clear picture of this.
    Thnx in advance.
    With regards,
    Subh

    Hi,
    PR00 - Basically this will be determined automatically during the sales order processing with the use of condition records
    PR00 indicates the basic price exclusive of any addition of discounts, taxes, etc.
    VPRS in requirement is 4,This pulls the condition type,and in item category we mention determine cost,With the help of this the cost of the material is dragged to the sales order
    VPRS is the condition which fetches the moving avg pricce of the material which gets determined by the invoice verification value for purchse orders. it may vary or be constant depending on the fact if its MAP or std price. these settings are in the material master acc./costing views. VPRS works for non-BOM scenarios. in BOM scenarios there is a cond called KUMU. kumu adds the costs of all the shild components to the header part. VPRS and KUMU form and exclusion grp i.e only once can be present in the sales order.
    Hope this helps you.
    Regards,
    Rakesh

  • Calculating Accumulative Value for a particular period

    Hi,
    I want to calculate acumulative values based on 0calmonth for a key figure.
    In Rows, i want 0calmonth and a key figure in Columns. If we select the property of the key figure as "Cumulative". It is adding values like in first month, first month value, in 2nd month it is showing the values by adding 1st and 2nd months. But I gave a Interval variable on 0calmonth (e.g  03.2006 to 09.2006 ) it displaying cumulative values from 3rd month. In 4th month it is showing value for 3rd and 4th month. But i want to see the values as "Accumulative" means from starting of that year. Eventhougth i gave the period value as 03.2006 to 09.2006, it has to display the value of 3rd month as adding of 1st,2nd and 3rd months. like that it has to show up to last month in the given peroid.
    Please can any one suggest me....
    Thanks and Regards
    Rajesh
    Message was edited by:
            rajesh
    Message was edited by:
            rajesh

    Hi ,
    For my Above Problem I am using the code as follows. But it has no errors. but when it is displaying on the web browser. it is not getting values.
    DATA: L_S_RANGE1 TYPE RSR_S_RANGESID.
          DATA: LOC_VAR_RANGE1 LIKE RRRANGEEXIT.
          DATA: L_VALUE LIKE RRRANGEEXIT-HIGH.
    CASE I_VNAM.
        WHEN 'ZCUM_INTERVAL'.
          IF I_STEP = 2.
          LOOP AT i_t_var_range INTO LOC_VAR_RANGE1 WHERE VNAM = '0I_CMNTH'.
             L_VALUE = LOC_VAR_RANGE1-LOW.
             while L_VALUE4(2) < LOC_VAR_RANGE1-HIGH4(2).
                if sy-index > 1.
                  L_VALUE4(2) = L_VALUE4(2) + 1.
                  if strlen( L_value+4(2) ) = 1.
                     concatenate '0' L_VALUE4(2) into L_VALUE4(2).
                  endif.
                endif.
                CLEAR L_S_RANGE1.
                L_S_RANGE1-LOW = LOC_VAR_RANGE1-LOW(4).
                L_S_RANGE1-LOW+4(2) = '01'.
                L_S_RANGE1-HIGH = L_VALUE.
               L_S_RANGE1-SIGN = 'I'.
               L_S_RANGE1-OPT = 'BT'.
                APPEND L_S_RANGE1 TO E_T_RANGE.
              ENDwhile.
            ENDLOOP.
          ENDIF.
    Please can any one suggest me regarding this.
    Thanks in Advance...
    TR
    Rajesh

  • Calculating value based on parent/child relations for a column..

    Hi Friends,
    I have a requirement thus,
    sample table, parts,
    ppart cpart qty
    990 1234 200
    100 100_1 150
    100 100_2 2
    100_1 120 100
    100_1 121 200
    100_2 130 50
    where qty is a number and the rest are varchar fields. Here the ppart 100 is a parent value for cpart values 100_1 and 100_2. So, I need to multiply the qty value for a child with the parent's qty values. The final result would look like,
    ppart cpart qty
    990 1234 200
    100 100_1 150
    100 100_2 2
    100_1 120 15000
    100_1 121 30000
    100_2 130 100
    I have only a basic understanding of SQL but I couldnt figure out a way for this. My best try was to join the table with itself and equate the ppart and cpart columns to retrieve the qty. However, the actual table has about 50 million records and I guess my idea is not going to please my DBA! I would appreciate if you could suggest better ideas.
    Thanks.

    Hi,
    you forgot nvl()
    SQL> with parts as (select '990' ppart, '1234' cpart, 200 qty from dual union all
      2                select '100'  , '100_1', 150 from dual union all
      3                select '100'  , '100_2', 2   from dual union all
      4                select '100_1', '120'  , 100 from dual union all
      5                select '100_1', '121'  , 200 from dual union all
      6                select '100_2', '130'  , 50  from dual)
      7  select p.ppart parent_part, c.ppart child_part, p.qty parent_qty, p.qty * c.qty child_quantity
      8  from   parts c
      9  left join parts p on c.ppart = p.cpart
    10  /
    PAREN CHILD PARENT_QTY CHILD_QUANTITY                                          
    100   100_1        150          30000                                          
    100   100_1        150          15000                                          
    100   100_2          2            100                                          
          990                                                                      
          100                                                                      
          100                                                                      
    6 rows selected.
    SQL> with parts as (select '990' ppart, '1234' cpart, 200 qty from dual union all
      2                select '100'  , '100_1', 150 from dual union all
      3                select '100'  , '100_2', 2   from dual union all
      4                select '100_1', '120'  , 100 from dual union all
      5                select '100_1', '121'  , 200 from dual union all
      6                select '100_2', '130'  , 50  from dual)
      7  select p.ppart,p.cpart, p.qty * nvl(c.qty,1) qty
      8  from   parts p,parts c
      9  where p.ppart = c.cpart(+)
    10  /
    PPART CPART        QTY                                                         
    100_1 121        30000                                                         
    100_1 120        15000                                                         
    100_2 130          100                                                         
    990   1234         200                                                         
    100   100_2          2                                                         
    100   100_1        150                                                         
    6 rows selected.

  • IF statement in Calculated Field for Share point, doesnt calculate sum in my Excel Pivot table.

    Hi Everyone
    I used this in SP calculated column field.
    =IF([Shift Sched]="1pm to 10pm","0",IF([Shift Sched]="2pm to 11pm","1",IF([Shift Sched]="3pm to 12am","2",IF([Shift Sched]="4pm to 1am","3",IF([Shift Sched]="5pm to 2am","4",IF([Shift
    Sched]="6pm to 3am","5",IF([Shift Sched]="7pm to 4am","6",IF([Shift Sched]="8pm to 5am","7",IF([Shift Sched]="9pm to 6am","8",IF([Shift Sched]="10pm to 7am","8",IF([Shift
    Sched]="11pm to 8am","7",IF([Shift Sched]="12pm to 9am","6",IF([Shift Sched]="1am to 10am","5",IF([Shift Sched]="2am to 11am","4",IF([Shift Sched]="3am to 12pm","3",IF([Shift
    Sched]="4am to 1pm","2",IF([Shift Sched]="5am to 2pm","1",IF([Shift Sched]="6am to 3pm","0",IF([Shift Sched]="7am to 4pm","0",IF([Shift Sched]="8am to 5pm","0",IF([Shift
    Sched]="9am to 6pm","0",IF([Shift Sched]="10am to 7pm","0",IF([Shift Sched]="11am to 8pm","0",IF([Shift Sched]="12pm to 9pm","0"))))))))))))))))))))))))    
    it was able to work fine however my issue is when i extract the information to excel and use a pivot table the table is not able to calulate the sum of the value for this field. Can you please help me with this. this is for an Attendance traker for Night
    Differential pay for employees. they create a daily log of their shift schedule and if i summarize this in pivot the value in the calculated field for this is not getting the sum.
    Thanks,
    Norman

    Hi Everyone
    I used this in SP calculated column field.
    =IF([Shift Sched]="1pm to 10pm","0",IF([Shift Sched]="2pm to 11pm","1",IF([Shift Sched]="3pm to 12am","2",IF([Shift Sched]="4pm to 1am","3",IF([Shift Sched]="5pm to 2am","4",IF([Shift
    Sched]="6pm to 3am","5",IF([Shift Sched]="7pm to 4am","6",IF([Shift Sched]="8pm to 5am","7",IF([Shift Sched]="9pm to 6am","8",IF([Shift Sched]="10pm to 7am","8",IF([Shift
    Sched]="11pm to 8am","7",IF([Shift Sched]="12pm to 9am","6",IF([Shift Sched]="1am to 10am","5",IF([Shift Sched]="2am to 11am","4",IF([Shift Sched]="3am to 12pm","3",IF([Shift
    Sched]="4am to 1pm","2",IF([Shift Sched]="5am to 2pm","1",IF([Shift Sched]="6am to 3pm","0",IF([Shift Sched]="7am to 4pm","0",IF([Shift Sched]="8am to 5pm","0",IF([Shift
    Sched]="9am to 6pm","0",IF([Shift Sched]="10am to 7pm","0",IF([Shift Sched]="11am to 8pm","0",IF([Shift Sched]="12pm to 9pm","0"))))))))))))))))))))))))    
    it was able to work fine however my issue is when i extract the information to excel and use a pivot table the table is not able to calulate the sum of the value for this field. Can you please help me with this. this is for an Attendance traker for Night
    Differential pay for employees. they create a daily log of their shift schedule and if i summarize this in pivot the value in the calculated field for this is not getting the sum.
    Thanks,
    Norman

  • Custom calculation script for checkboxs

    Hello,
    Can anyone help me out with custom calculation script for this?  I have two mutually exclusive checkboxes that, when checked, I want to populate data into other text fields.
    If Checkbox1 is checked:
    Company1=Warehouse Alpha
    Address1=1234 Any Street
    City/State/Zip1= Los Angeles, CA 90020
    Contact Name1= Mr. Nice Guy
    Phone Number1= 213-854-8565
    Email1=[email protected]
    If Checkbox2 is checked:
    Company2=Warehouse Beta
    Address2= 5678 Awesome Blvd.
    City/State/Zip2= San Bernardino, CA 96545
    Contact Name2= Mr. Handsome
    Phone Number2= 909-824-8265
    Email2=[email protected]
    Thanks,
    Bryan

    So one has two check boxes and one wants them to be mutually exclusive. Name them the same and change the export value of the field. Try it and observe what happens as you check the different check boxes.
    You have described what happens if either box is checked but what happens when a checked box Is unckecked?
    One can place scripts in many locations. I would use a mouse up action for both the check boxes, use the same script for both check boxes.
    I would assume you are using the following names for the fields to populate:
    Company
    Address
    CityStateZip
    ContactName
    PhoneNumber
    Email
    // Mouse up action for both check boxes;
    // initial value for the fields:
    this.getField("Company"),value = "";
    this.getField("CityStateZip"),value = "";
    this.getField("ContactName"),value = "";
    this.getField("PhoneNumber"),value = "";
    this.getField("Email"),value = "";
    // test for check box value for selected box;
    if(event.value == 1) {
    this.getField("Company"),value = "Warehouse Alpha";
    this.getField("CityStateZip"),value = "1234 Any Street";
    this.getField("ContactName"),value = "Los Angeles, CA 90020";
    this.getField("PhoneNumber"),value = "213-854-8565";
    this.getField("Email"),value = "[email protected]";
    if(event.value == 2) {
    this.getField("Company"),value = "Warehouse Beta";
    this.getField("CityStateZip"),value = "5678 Awesome Blvd.";
    this.getField("ContactName"),value = "San Bernardino, CA 96545";
    this.getField("PhoneNumber"),value = "Mr. Handsome";
    this.getField("Email"),value = "[email protected]";
    // end Mouse up action for both check boxes;

  • How to know the dynamic values for this :AND category_id_query IN (1, :3, )

    Hi Team,
    R12 Instance :
    Oracle Installed Base Agent User Responsibility --> Item Instances -->
    Item Instance: Item Instances > View : Item Instance : xxxxx> Contracts : Item Instance : xxxxx> Service Contract: xxxxx>
    In the above page there are two table regions.
    Notes.
    -------------------------------------Table Region---------------------------
    Attachments
    -------------------------------------Table Region---------------------------
    --the attachments are shown using the query from the fnd_lobs and fnd_docs etc...
    I want to know what are the document types are displayed in this page ?
    --We developed a custom program to attach the attachments to the  services contracts and the above seeded OAF page displays those ..as needed.
    But after recent changes..the Attachments--> table region is not showing the attachments.
    I have verified the query..and could not find any clue in that..
    but i need some help if you guys can provide..
    SELECT *
    FROM
    *(SELECT d.DOCUMENT_ID,*
    d.DATATYPE_ID,
    d.DATATYPE_NAME,
    d.DESCRIPTION,
    DECODE(d.FILE_NAME, NULL,
    *(SELECT message_text*
    FROM fnd_new_messages
    WHERE message_name = 'FND_UNDEFINED'
    AND application_id = 0
    AND language_code  = userenv('LANG')
    *), d.FILE_NAME)FileName,*
    d.MEDIA_ID,
    d.CATEGORY_ID,
    d.DM_NODE,
    d.DM_FOLDER_PATH,
    d.DM_TYPE,
    d.DM_DOCUMENT_ID,
    d.DM_VERSION_NUMBER,
    ad.ATTACHED_DOCUMENT_ID,
    ad.ENTITY_NAME,
    ad.PK1_VALUE,
    ad.PK2_VALUE,
    ad.PK3_VALUE,
    ad.PK4_VALUE,
    ad.PK5_VALUE,
    d.usage_type,
    d.security_type,
    d.security_id,
    ad.category_id attachment_catgeory_id,
    ad.status,
    d.storage_type,
    d.image_type,
    d.START_DATE_ACTIVE,
    d.END_DATE_ACTIVE,
    d.REQUEST_ID,
    d.PROGRAM_APPLICATION_ID,
    d.PROGRAM_ID,
    d.category_description,
    d.publish_flag,
    DECODE(ad.category_id, NULL, d.category_id, ad.category_id) category_id_query,
    d.URL,
    d.TITLE
    FROM FND_DOCUMENTS_VL d,
    FND_ATTACHED_DOCUMENTS ad
    WHERE d.DOCUMENT_ID = ad.DOCUMENT_ID
    *) QRSLT*
    WHERE ((entity_name    ='OKC_K_HEADERS_V'-- :1
    AND pk1_value          IN ( 600144,599046) --:2
    AND category_id_query IN (1, :3, :4, :5, :6, :7) )
    AND datatype_id       IN (6,2,1,5)
    AND (SECURITY_TYPE     =4
    OR PUBLISH_FLAG        ='Y')))
    --='000180931' -- 'ADP118'
    The above seeded query is the one which is used for table region to retrieve the data..
    how to know the dynamic values for this : AND category_id_query IN (1, :3, :4, :5, :6, :7) )
    --Sridhar                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hi Patricia,
    is it working for restricted key figure and calculated key figure ??
    Note Number Fisc Period Opening Days
    1 1 2
    2 1 3
    3 1 0
    because I have other restriction, so I create two restricted key figure..
    RK1  with restriction :  Total Number of Note,
    RK2  with restriction :  Total Opening Days ,
    then I Created a calculated key figure, average opening days in a period
    CK1 = RK2 / RK1..
    in this case, I am not sure if it will work or not..
    for example, during RK2 calclation, it might be this   2+3 = 5, the line with 0 will be ignored..
    during RK1 calcualtion, it might be 1 + 1 + 1 = 3. ---> Not sure in this case, the line with opening days 0 will be calculated or not..
    could you please confirm..

  • IPC pricing gross value for products in catalog

    Hello all,
    In ISA b2b application I need to add a new column with gross value for products in catalog. Here is how I've tryed :
    </i>
    <!-- CBI Added gross price -->
                   <td align="right" >
                        <%IPCItem priceRef2;
                         try {
                          priceRef2 = (IPCItem) item.getItemPrice().getPriceInfo()
                                       .getPricingItemReference();
                          if (priceRef2 != null) {
                               DimensionalValue grossValue = priceRef2
                                                 .getGrossValue();
                                       %>
                                       <%=grossValue.getValueAsString() + " "
                                                 + grossValue.getUnit()%>
                        <% } else {
                             %><isa:translate key="z_catalog.isa.nogrossvalue"/> <% }
                         } catch (Exception e) {
                         %><isa:translate key="z_catalog.isa.ipcexception"/>
                         <%} %>
                   </td>
                   <!-- CBI Added gross price -->
    </i>
    The problem is that the gross value is the same with the net value.
    I've try also using <i>item.getItemPrice().getPriceInfo().getAllPriceInfos()</i>
    where item is WebCatItem, and retrive an array of PriceInfo (s) with only one PriceInfo object which has the type <b>netValue</b>.
    Then in the backendobject-config.xml I've modify the priceTypes attribute value for BO "CatPriceCalc", but without any succes. Here is the snippet:
    <i><businessObject type="PriceCalc" name="CatPriceCalc" className="com.sapmarkets.isa.backend.crm.webcatalog.pricing.PriceCalculatorCRMIPC" connectionFactoryName="JCO" defaultConnectionName="ISAStateless">
                        <params>
                             <!-- CBI gross value -->
                             <b><param name="priceTypes" value="totalNetValue totalGrossValue"/></b>
                             <!-- for allowed values see defined constants in com.sapmarkets.isa.backend.boi.webcatalog.pricing.PriceType -->
                             <param name="doItemCalls" value="true"/>
                             <!-- set this to true if you want to have additional call of CRM_ISA_PRICING_ITMDATA_GET when doing item pricing -->
                        </params></i>
    Do you know how to solve this problem? Or why is not working.
    Any help (soultion, docs, links) is very wellcome and rewarded.
    Thank you
    Bogdan

    Hi Bodgan,
       It seems that some values like tax, discount are not being calculated by IPC as required parameters are not sufficient enough to differentiate between the two. You can run catalog pricing analysis and see what are the gross and net pricing value. You can update the extra parameters to IPC by extending the class you mentioned and modify backend config xml file to use that class for ISA.
    Regards.
    Vivek

  • I need to pass null as a default value for a parameter in Before Trigger

    Hi All,
    I am using Before trigger function in calculation tab which has some set of parameters.So, I accept some parameters which are passed to this Before Trigger function and need these parameters default value as null.
    To be clear I want to set the Default value for a parameter in workbook to be NULL and pass the same to the calling Function.
    please help me.
    Thanks in advance

    Hi All,
    I am using Before trigger function in calculation tab which has some set of parameters.So, I accept some parameters which are passed to this Before Trigger function and need these parameters default value as null.
    To be clear I want to set the Default value for a parameter in workbook to be NULL and pass the same to the calling Function.
    please help me.
    Thanks in advance

  • CIN: Alteration of base value for CST in TAXINN

    Hi,
    In our business process there is a requirement that CST should not be calculated only on Basic Price + Excise Duties (BEDEcessSEcess) rather base value for CST should be Basic Price + Excise Duties (BEDEcessSEcess) + 2 Additional Surcharges as mentioned below:
    Basic Price     100.00
    BED (10%)     10.00
    Ecess (2%)     0.20
    SEcess (1%) 0.10
    Additional Surcharge1     4.00
    Additional Surcharge2     6.00
    Base for CST 120.30 (100100.20.14+6)
    CST (2%)     2.41 (2% of 120.30)
    Total Value     122.71
    The tax procedure being used is TAXINN
    Is there any standard routine or subtotal available so that by using this in PO Calculation Schema and TAXINN the base value of CST can be modified as desired?
    Please provide some useful ideas.
    Thanks in advance
    Edited by: Sapdear on Aug 29, 2011 8:22 AM

    Hi,
    The additional surcharges are condition types in the calculation schema of PO whereas CST is being calculated in Tax Procedure TAXINN so how "From" and "To" functionality can work. The surcharges are getting calculated in PO Pricing and CST in tax procedure TAXINN (both at different places)
    We want to use a tax code (BED10%Ecess2%SEcess1%+CST2%) to calculate Excise Duties and CST by additional surcharges taking into account.
    Can any one provide some idea to resolve this issue?
    Thanks in advance

  • Setting up maximum order value for vendor

    Hi experts,
    I want to set a maximum price/value limit for vendor for giving order
    For example - i want to set a maximum limit of 1lakh for vendor A
    when ever I create PO for vendor A , system should chck the maximum value for A vendor.
    And if there a many open order for vendor A, then the total of open PO's shoukld be
    counted and when ever i am creating new PO & if ec=xceeds the value 1 lakh then
    system should not allow to create the new PO
    Vendor A       PO1     value - 50000      status - open
    vendor A     PO2     value - 30000     status - open
    vendor A     PO3     value - 40000     status - creating now
    At the time of creating PO3, PO value exceeds the vendor limit, so it should not allow to create/save the PO3
    please let me know how to handle this

    Hi,
    This can get really complex unless you have clear vision of what you want to control.
    For example, the maximum limit that you want to set, is it for the current month / current year etc?
    If it is the sum of all Open PO value, would you consider the PO's that were created the sme month and delivered but payment is pending though Invopice is posted?
    So answers to such questions provide the clarity for teh controls that need to set in place.
    For this you can create a Z table and maintain the limits that you like to set based on the criterion like monthly or yearly.
    Then Use a user-exit in the PO to calculate the net value of all open PO's for the vendor and then validate with the Z table and throw an error if it exceeds.
    However the performance may get effected with such calculations on PO save.
    in that case you may have to consider storing the cumulated PO value on every PO creation and PO Completion.
    Consider all this and take a decision.
    hope this helps.

  • Minimum order value for Purchase orders

    Hello,
    This is my requirement: -
    A condition type needs to be created for Minimum Oder Value for PO. If the PO value is say, 450 and the condition record in 500, the PO value must be adjusted to 500. If PO value is 550, then it remains 550.
       1. Condition records must be maintained.
       2. Must be calculated on whole PO (all items) and then redistributed among items in a suitable ratio.
    This is what I have already tried:-
      1. Vendor master - No use maintain minimum order value as PO price must be adjusted through condition types.
      2. Tried replicating PMIN condition type and it works but only at item level - this calculation must take place at header level. Also it works only for calculation type "Quantity".
    Please suggest how this can be implemented, hopefully through configuration only.

    Hi,
    Please use user exit MM06E005 and code accordingly. Take help of ABAPer.
    thanks and regards
    Murugesan

Maybe you are looking for