Negetive value in script

hi experts,
   I have Script,In that all values are coming in positive only.Actually in my Driver program some value in final table are contain negative value.My Problem is ,If final contain any negative values ,thoise should be in negative only.
but in output all values displaying in positive only.
In script window variable declared in bracket ( I ),i removed ( I )
also but problem is same.
plz its urgent.
thanks&regards,
Venkat.

Hi Shiva,
Yes Negativre values are coming into driver program .But those are not coming in out put.
already in this  &symbol(I)& is using,I removed this one ,ANd given &symbol(<)&
but it is giving same output only.
thanks&regards,
Venkat.

Similar Messages

  • Assign Bean value in script..?

    Hi All,
    How to set bean property value after validation in java script function..?
    for example,
    <script>
    var propertyValue = "";
    dsp:input bean="Profile.value.login" value="propertyValue"
    </script>
    Thanks,
    Vishnu

    Hi All,How to set bean property value after validation in java script function..?
    for example,
    <script>
    var propertyValue = "";
    dsp:input bean="Profile.value.login" value="propertyValue"
    </script>
    Thanks,
    Vishnu>
    Try this and please let us know whether it works or not:
    <dsp:getvalueof var="abc" bean="/atg/userprofiling/Profile.value.login"/>
    <script>
         var propertyValue = ${abc};
           // your code here.........
    </script>-RMishra
    Edited by: RMishra on Feb 14, 2013 8:26 PM

  • AUC negetive value

    Dear SAP Experts,
    In the Balance sheet AUC asset value is showing negetive amount,  actually the Client is using Plant wise balance for 5 plants. The negetive value is coming in 1000, 2000,3000 and 4000 plant which should come in Plant 9000 which is offsetting HO plant.
    Now how to settle this issue, please anyone any idea?
    thanks

    Hi,
    Define OABD like 'only positive values or Zero allowed'. Go to 'depeciation area' in AS02 and hit twice in DA 01. Check the flag 'allow negative values'.
    If you don't find this flag, go to menu: environment -> Screen Layout -> Depreciation Areas. Define status as optional.
    You must do that for all assets master data in plant 9000.
    let me know if it was clear.
    Regards

  • Accessing custom tag value in scripting code

    Hi All,
    How can i access my custom tag value in scripting code?
    For example, assuming my tag is <myTag:display value="myValue"/>, how can i System.out this value in scripting code? I wanna do <% System.out.prinln(xxx); %> where xxx should be my custom tag value.
    Thanks in advance,
    Leo.

    I understand that you want to store "myValue" somewhere accesible by scripting. The more easy and portable way is to store that value in an attribute, for instance:
    <myTag:display value="myValue" var="myVar" scope="session"/>And in the custom tag code:
    // translate scope string to PageContext scope values
    pageContext.setAttribute(var, value, scope);This ensures compatibility with Java Standard TagLibrary and EL:
    <c:out value="${myVar}"/>And finally, scripting:
    <% Object value = pageContext.findAttribute(var); %>

  • To display hardcoded value in script form

    Hi ,
    Could anyone tell me how many ways are there to display hardcoded value in Script Form? I want to display a alphanumeric number like 'AP121345/B103/21C' in form output.
    I will reward for every usefull responses.
    Thx in Adv.
    Bobby

    yes as sandipan told exactly do like this.
    if u want to display in bold.
    then create one bold charformat suppose 'CF'.
    <CF>ur value what u want to display<\>
    thanks

  • Value Range Script (Part 2)

    How can I, within the below script, allow for the value to be left blank or enter 0 and not get an error for the value range set? I only want users to either enter a value within that range or, if left blank or the field is equal to zero, they will not be prompted to enter a value within the specified range.
    if((event.value >= .25) && (event.value <= 1.75)){
    //Valid
    } else {
    app.alert("ERROR: Please choose a value within .25 and 1.75.", 3);
    event.rc = false; 
    Thanks to all in advance!

    Thank you much, as always, Try67!
    From:   try67 <[email protected]>
    To:     Omar Lopez Nunez <[email protected]>
    Date:   08/10/2011 11:18 AM
    Subject:        Value Range Script (Part 2)
    (There's no need to open a new thread....)
    Replace the first line with this:
    if(event.value=="" || event.value == 0 || (event.value >= .25) &&
    (event.value <= 1.75)){

  • Data type that can hold negetive values with decimals

    Hi all,
    Is there any datatype which can hold negative values with decimals. INT4 can hold negetive values but don't have decimals and type P has decimals but it cannot hold negative values. Please suggest me some datatype for my requirement.
    Thanks in advance,
    Dev.

    Hi,
    Create your Screen field of type DM07M-JVCRP
    Go to Screen painter and change the Screen field type to DM07M-JVCRP
    Since this Accepts Negative values you wont get run time Errors
    Check the below data elements or use Domain CURRV13 " you can find in where used list for more
    Cheerz
    Ram

  • Additional Tax Negetive value

    Dear Gurus
    I have a Requirement that I have to match the Incometax with External System. so I had Created the wagetype by copeing the wagetype MVT0.  I copied the PCR INVT also.
    now when I enter negetive value more then the monthly Incomtax, it is giving me an error.
    Please suggest.
    Thanks and regards
    Ankitv

    Hi Sikindar
    I have copied the PCR and copy the MVT1 with cusom WT and change in schema is also done.
    I got this Error.
    12/2012 ( 01.03.2013 - 31.03.2013 )      Regular payroll run in 12/2012
         INBTX INBT GEN  NOAB IN01 Transfer Wage Type /470
             Processing
                 Negative transfer amount for infotype
    regards
    Ankit v
    Edited by: Ankit Vasavada on Feb 14, 2012 2:08 PM

  • Currency field value in script

    Hi,
    In script i want to print  currency field value is 123.000 in this formate.
    It is possible or not.
    Edited by: Alvaro Tejada Galindo on Feb 6, 2008 5:14 PM

    Hi anitha,
    Example : if the currency field length is 8 then you have to give the statement as.
    &SYMBOL(8.3)&  -   Decimal format. Length 8 decimals 3
    reward points if useful.
    thanks,
    satheesh.

  • Custom dDocTitle set value by Script, is possible ?

    Hi to all,
    I will like to know if is possible to set the dDocTitle by script, I tried the following code:
    <$var_01 = "Hola"$>
    <$var_02 = "_Mundo"$>
    <$titulo = var_01$ & var_02$>
    <$dDocTitle = titulo$>
    this code was set in a rule and defined to the field dDocTitle in the user default value option when the field is added to the rule
    Oracle Content server version 10g
    tnks

    It sounds like you want to use a default or derived attribute value.
    You set these in rules, which are applied via profiles.
    http://docs.oracle.com/cd/E23943_01/doc.1111/e10978/c04_metadata.htm#DAFIIEEI
    let me know if this helps!
    -ryan

  • Fetching property value in script logic!!

    Hello Experts,
    We are using BPC 7.5 M, I am working on a script logic and need to fetch a value of a property of a dimension member where dimension member is itself defined in some property.
    We have a Org dimension which has a property "FORECAST_UNIT" and this property contains a member Id of Org dimension itself, In my script logic I need to fetch value of "Currency" property for the Org dimension member defined in "FORECAST_UNIT" property.
    Please Advice.
    Thanks & Regards,
    Rohit

    Hi Roberto,
    Attached code (In Image) is of our Aggregate Forecast Unit logic, Every Org (Entity) has an forecasting unit defined in Forecasting unit property in Org dimension and Forecasting unit is also a member of Org dimension, below logic aggregates the data at Forecasting unit level:
    The issue is that I need to check before the code marked in Red executes that if Org-- Forecasting unit -- Currency is USD then only Red part of logic should execute.
    Thanks & Regards,
    Rohit

  • Displlay value in script using perform-form .

    hi
    experts
    i am new in script.
    i am using function module read_text.
    in my script there is 3 window and using this fm i want to put text in that script.
    so i use form in se38 . my main problem is name1 = invoice no.
    if invoice no change text is change .
    how i use the variables in se38 and use in script?(main problem)
    (V55ENAFT-vbeln = invoice no in script.)
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
       CLIENT                        = SY-MANDT
        ID                            =   'NBOX'
        LANGUAGE                      = 'E'
        NAME                          = 'NAME1'
        OBJECT                        = 'VBBK'
      ARCHIVE_HANDLE                = 0
      LOCAL_CAT                     = ' '
    IMPORTING
      HEADER                        =
      TABLES
        LINES                         = tline2(vales of text)
    EXCEPTIONS
      OTHERS                        = 8
    so i need to call 3 subroutines in 3 differnt window
    thanks
    ajay

    Hi ,
      You can call subroutines created in programs in scripts as below:
    in scripts you need to call subroutine as below:
    perform get_text in program zprogram
    using &V55ENAFT-vbeln&
    changing &w_text&
    in program:
    form get_text tables i_tab structure itcsy o_tab strucutre itcsy.
    read table i_tab with key name = 'V55ENAFT-vbeln'.
    here you will have the value of the invoice in i_tab -value.
    so get the text for the invoice and assign to o-tab
    CALL FUNCTION 'READ_TEXT'
    EXPORTING
    CLIENT = SY-MANDT
    ID = 'NBOX'
    LANGUAGE = 'E'
    NAME = V55ENAFT-vbeln
    OBJECT = 'VBBK'
    * ARCHIVE_HANDLE = 0
    * LOCAL_CAT = ' '
    * IMPORTING
    * HEADER =
    TABLES
    LINES = w_text
    * EXCEPTIONS
    * OTHERS = 8
    o_tab-name = 'w_text'.
    value = w_text.
    Regards,
    Himanshu

  • Cess value in script

    hi to all
            in script i have called cess value of 3% and now it came down to 2 % and an additional value of 1%.
    i like to know how to display the cess value in the script by calling it directly from the table Konv.

    Better create a new internal table with the following stucture
    BEGIN OF ITAB,
    matnr1 type matnr,
    matnr2 type matnr,
    matnr3 type matnr,
    END OF ITAB,
    then populate this itab from GT_MARA
    data: l_flag.
    loop at gt_mara.
    if itab-matnr1 is initial.
      clear flag.
       itab-matnr1 = gt_mara-matnr.
      exit.
    endif.
    if itab-matnr2is initial.
       itab-matnr2 = gt_mara-matnr.
      exit.
    endif.
    if itab-matnr3 is initial.
      flag = 'X'.
       itab-matnr3 = gt_mara-matnr.
      append itab.
    endif.
    AT LAST.
    IF flag <> 'X'.
    append itab.
    ENDIF.
    ENDAT.
    endloop.
    Then use itab while calling ur script

  • Incorrect value with Script Logic

    Hello,
    From initial value called 2008.ORC we want to calculate for each month the percentage , from child DIASMES.
    Now, with the script logic ( I´ll put down later) we have an incorrect value in the column 2008.TOTAL.
    In other words, I´m sure I´m wrong with "WHAT" or "WHERE sentence or maybe the operation "FACTOR=USING/TOTAL" fails because the crossing between dimensions it´s incorrect.
    *RUNALLOCATION
    *FACTOR = USING/TOTAL
    *DIM FABRICA_MAQ WHAT=BAS(FABRICAFF); WHERE=BAS(FABRICAFF); USING=BAS(FABRICAFF);
    *DIM PRODUTOS WHAT=BAS(TOTALPROD); WHERE=BAS(TOTALPROD); USING=SP;
    *DIM TIME WHAT=2008.ORC;WHERE=BAS(2008.TOTAL); USING=BAS(2008.TOTAL);
    *DIM TIPO WHAT=BAS(TOT); WHERE=BAS(TOT); USING=ST;
    *DIM VARIAVEIS WHAT=MIXACABADA; WHERE=MIXACABADA; USING=DIASMES;
    *DIM DATASRC WHAT=INPUT; WHERE=INPUT; USING=INPUT;
    *DIM VERSAO WHAT=BUDGET; WHERE=BUDGET; USING=BUDGET;
    *ENDALLOCATION
    *COMMIT
    The Key is to see in the column 2008.TOTAL ( when we selected  "BAS") the value of parent divided into "DIASMES" !
    Thanks !! 

    Your factor statment references a TOTAL, but you don't reference the total in your DIM statements. If you look at the debug log carefully, you should notice that there's no calculation of a TOTAL value.
    Try something like this. The only reason I move some dimensions from the *RUNALLOCATION up to the *XDIM's is for legibility, since the allocation makes no shifts to these dimensions. The logic should produce the same results, either way.
    // These dimensions have no shift of data.
    *XDIM_MEMBER VERSAO=BUDGET
    *XDIM_MEMBER DATASRC=INPUT
    // I'm assuming here that FACRICAFF is the top member of this dimension.
    *XDIM_MEMBERSET FABRICA_MAQ = <ALL>
    *RUNALLOCATION
    *FACTOR = USING/TOTAL
    *DIM PRODUTOS WHAT=BAS(TOTALPROD); WHERE=BAS(TOTALPROD); USING=SP; TOTAL=<<<
    *DIM TIME WHAT=2008.ORC;WHERE=BAS(2008.TOTAL); USING=BAS(2008.TOTAL); TOTAL=<<<
    *DIM TIPO WHAT=BAS(TOT); WHERE=BAS(TOT); USING=ST; TOTAL=<<<
    *DIM VARIAVEIS WHAT=MIXACABADA; WHERE=MIXACABADA; USING=DIASMES;  TOTAL=<<<
    *ENDALLOCATION
    *COMMIT

  • Combo box with multiple variables pre populating multiple fields and max value validation script help

    I am creating a pdf form that will be used as a calculator, and my javascript knowledge is pretty rudimentary. I can do the simple things, some of what I need to do is over my head.
    1. I believe I need to use a combo box to pre populate certain fields. I have 13 variables in the dropdown to choose from, and whatever the client chooses will pre populate three other fields (and each of the 13 variables will populate those three fields differently). I'm not exactly sure how to go about doing this. Is it custom keystroke script or does it require a document script? Also, I'm guessing that whatever script will be a series of if/then statements, correct?
    2. Once all the fields have been populated (be it pre population or filled in by the customer), I need to calculate the answer which is not my main problem—I already have the proper calculations in place and they work. The problem is that the answer has a maximum value even if the actual value goes over that max number. So, the actual answer is 14 but the max value can only be 12. How do I get the calculation to replace that actual number (14) with the max number (12)? Is that in the validation tab or should that go elsewhere?
    I feel like I know just enough to be dangerous but not terribly effective. Any help is appreciated.  
    Thanks!

    1. There is a tutorial on this here:
    http://acrobatusers.com/tutorials/change_another_field
    2. To set the maximum value to 12, try this as the custom calculation script for the field:
    //Custom calculation script
    //Get value of text field
    var a = this.getField("Text1").value;
    //If it is > 12, then make it 12
    if (a > 12){
    a=12
    event.value = a
    You need to replace "Text1" with the name of the field in your form.

Maybe you are looking for