Variable losing its value

Hi there,
I have written an explicit cursor (procedure given below) and the issue I have is, when the cursor runs the sql statement
(CURSOR csr_address is
SELECT rtrn_id,
entp_abn,prog_program_cd,
sched_nbr,schd_version_yr,
litm_line_item_nbr, revise_val_text
FROM RETURN_LINE_ITEMS
WHERE sched_nbr = '000'
AND prog_program_cd = '01' AND litm_line_item_nbr in ('016','023')
AND rtrn_id = v1_rtrn_id;)
against a particular return id, it fetches 2 rows; one for line item 016 and the other one for line item 023 where in the litm_line_item_nbr for 016 is 016 and for litm_line_item_nbr for 023 is 023.
Once that's done, (I have used a For loop cursor), it loops through as follows:
FOR country_rec in csr_address LOOP
v_line_item_16 := country_rec.litm_line_item_nbr;
if v_line_item_16 = '016' then
v_line_item_16 :='016'
end if;
v_line_item_23 := country_rec.litm_line_item_nbr;
if v_line_item_23 = '023' then
v_line_item_23 :='023'
end if;
-- v_temp_line_item_23:=v_line_item_23;
v_revise_val_text_16 := country_rec.revise_val_text;
v_revise_val_text_23 := country_rec.revise_val_text;
END LOOP;
When it loops for the 1st time, it does bring the value that I am looking for . Currently the value for "v_line_item_16 := country_rec.litm_line_item_nbr" is "016" and v_line_item_23 := country_rec.litm_line_item_nbr is "null". That's fine. Again it loops through for the 2nd time and then the value for v_line_item_16 := country_rec.litm_line_item_nbr becomes 023 (which is wrong and I wanted it to be blank) and then value for variable v_line_item_23 := country_rec.litm_line_item_nbr becomes 023.
Due to the above mismatch of values, I am not able to retain the original value of v_line_item_16 which should be 016 and it turns itself into 023. Is there any way around it?
Please help.
My complete code is below for easier understanding:
CREATE OR REPLACE procedure test_sandeep is
v1_bin number:=402511083;
v1_rtrn_id number:=2163180;
v_line_item_16 RETURN_LINE_ITEMS.LITM_LINE_ITEM_NBR%TYPE;
v_line_item_23 RETURN_LINE_ITEMS.LITM_LINE_ITEM_NBR%TYPE;
v_revise_val_text_16 RETURN_LINE_ITEMS.REVISE_VAL_TEXT%TYPE;
v_revise_val_text_23 RETURN_LINE_ITEMS.REVISE_VAL_TEXT%TYPE;
V_COUNTRY_CODE cg_ref_codes.rv_low_value%type;
p_ENTPBIN EDF_NOA_RETURNS.ENTP_ABN%TYPE;
-- v_temp_line_item_16 varchar2(3);
-- v_temp_line_item_23 varchar2(3);
-- v1_bin:=402511083;
-- v1_rtrn_id:=2163180;
CURSOR csr_address is
SELECT rtrn_id,
entp_abn,prog_program_cd,
sched_nbr,schd_version_yr,
litm_line_item_nbr, revise_val_text
FROM RETURN_LINE_ITEMS
WHERE sched_nbr = '000'
AND prog_program_cd = '01' AND litm_line_item_nbr in ('016','023')
AND rtrn_id = v1_rtrn_id;
Begin
-- select count
FOR country_rec in csr_address LOOP
v_line_item_16 := country_rec.litm_line_item_nbr;
if v_line_item_16 = '016' then
v_line_item_16 :='016';
end if;
v_line_item_23 := country_rec.litm_line_item_nbr;
if v_line_item_23 = '023' then
v_line_item_23 :='023';
end if;
-- v_temp_line_item_23:=v_line_item_23;
v_revise_val_text_16 := country_rec.revise_val_text;
v_revise_val_text_23 := country_rec.revise_val_text;
END LOOP;
If (v_line_item_16 = '016' and v_revise_val_text_16 is not null) and (v_line_item_23 = '023' and v_revise_val_text_23 is null) then
v_revise_val_text_16:=v_revise_val_text_16;
if v_revise_val_text_16 = 'CA' then
-- get the country Code
SELECT RV_LOW_VALUE INTO V_COUNTRY_CODE from cg_ref_codes
where rv_low_value = (select revise_val_text from return_line_items where rtrn_id = v1_rtrn_id
and revise_val_text ='CA')
and rv_domain = 'CODE COUNTRY';
end if;
-- Condition 2 :
elsif (v_line_item_16 = '016' and v_revise_val_text_16 is not null) and (v_line_item_23 = '023' and v_revise_val_text_23 is not null) then
v_revise_val_text_23 := v_revise_val_text_23;
if v_revise_val_text_23 = 'CA' then
-- get the country code
SELECT RV_LOW_VALUE INTO V_COUNTRY_CODE from cg_ref_codes
where rv_low_value = (select revise_val_text from return_line_items where rtrn_id = v1_rtrn_id
and revise_val_text ='CA')
and rv_domain = 'CODE COUNTRY';
end if;
-- Condition 3 :
elsif (v_line_item_16 = '016' and v_revise_val_text_16 is not null) and (v_line_item_23 ='023' and v_revise_val_text_23 is null) then
v_revise_val_text_16 := v_revise_val_text_16;
if v_revise_val_text_16 <> 'CA' then
-- get the country code
SELECT RV_LOW_VALUE INTO V_COUNTRY_CODE from cg_ref_codes
where rv_low_value = (select revise_val_text from return_line_items where rtrn_id = v1_rtrn_id
and revise_val_text = v_revise_val_text_16)
and rv_domain = 'CODE COUNTRY';
end if;
-- Condition 4 :
elsif (v_line_item_16 = '016' and v_revise_val_text_16 is not null) and (v_line_item_23 = '023' and v_revise_val_text_23 is not null) then
v_revise_val_text_23 := v_revise_val_text_23;
if (v_revise_val_text_16 = 'CA' and v_revise_val_text_23 <> 'CA') then
-- get the country code
SELECT RV_LOW_VALUE INTO V_COUNTRY_CODE from cg_ref_codes
where rv_low_value = (select revise_val_text from return_line_items where rtrn_id = v1_rtrn_id
and revise_val_text = v_revise_val_text_23)
and rv_domain = 'CODE COUNTRY';
end if;
-- Condition 5 :
elsif (v_line_item_16 = '016' and v_revise_val_text_16 is not null) and (v_line_item_23 = '023' and v_revise_val_text_23 is not null) then
v_revise_val_text_23 := v_revise_val_text_23;
if (v_revise_val_text_16 <> 'CA' and v_revise_val_text_23 <> 'CA') then
-- get the country code
SELECT RV_LOW_VALUE INTO V_COUNTRY_CODE from cg_ref_codes
where rv_low_value = (select revise_val_text from return_line_items where rtrn_id = v1_rtrn_id
and revise_val_text = v_revise_val_text_23)
and rv_domain = 'CODE COUNTRY';
end if;
end if;
End;
Edited by: user11934091 on Jul 21, 2010 9:43 AM

Because you are doing it all wrong in your loop. I assume '016' and '023' to be constants.
A better way would be to pivot your rows into columns. I am not sure what version you are using, but if is before 11g, then let's do it the old way.
Your cursor should be:
CURSOR csr_address is
WITH sub_tmp AS (
SELECT rtrn_id,
entp_abn,prog_program_cd,
sched_nbr,schd_version_yr,
litm_line_item_nbr, revise_val_text
FROM RETURN_LINE_ITEMS
WHERE sched_nbr = '000'
AND prog_program_cd = '01' AND litm_line_item_nbr in ('016','023')
AND rtrn_id = v1_rtrn_id),
qry_pivot AS (
SELECT
MAX((CASE
WHEN litm_line_item_nbr = '016' THEN litm_line_item_nbr
ESLE NULL
END)) AS line_item_16,
MAX((CASE
WHEN litm_line_item_nbr = '023' THEN litm_line_item_nbr
ESLE NULL
END)) AS line_item_23,
SELECT line_item_16, line_item_23
FROM qry_pivot;
Then from the cursor, no need to loop. You can FETCH columns line_item_16, line_item_23
Edited by: dongzky on Jul 22, 2010 7:04 PM (forgot to add MAX function

Similar Messages

  • Shared variable change its value with delay

    Hello. My shared variable shows an old value during some time after writing a new one. What is the reason?

    CKap,
    how to check buffering enabling for shared variables? I've attached pics of block diagrams: VirtualSpectrometer writes shared variable dLambda, and Camera reads it. And sometimes, even when VirtualSpectrometer attemp to write 0 to dLambda for the number of loop's periods, dLambda stay non-zero (to be exact +/-5.55) for a couple of seconds.
    Attachments:
    VirtualSpectrometerd.jpg ‏135 KB
    Camerad.jpg ‏386 KB

  • Formatted Data Losing its Value Upon Entering Crystal Reports

    Post Author: Horizon57
    CA Forum: General
    I am having an issue where I have tables of data in Access with the correct formatting (i.e. $, %, etc.) and when I create a table or graph in Crystal Reports, the formatting does not show up. Something that is 46.78% in Access, shows up in the following format (0.47) and dollar signs ($$) do not even show up. I am sure its not just a display issue with the data, because when I right click on a field in the field explorer and select the "Browse Data" option, the formatting is also missing in the same way that it is missing once that data is brought onto the report itself.
    Does anyone know why this is happening and how to fix this issue? I would like to avoid having to apply specific formatting to each field in each subreport using Crystal Reports (That could take hours!)
    Thanks

    I have sometimes also reproduced this behaviour without waiting these 3 minutes (more or less immediately).
    In addition, after reproducing this behaviour, the fileds becomes read only and you can not write any more data in it. ¿?

  • In trace file and output file showing bind variable instead of value

    Hi,
    database 9i
    optimizer = choose(for cost based)
    In my trace file and output file showing bind variable instead of value.
    in my trace file 20 queries.
    I alse set this parameter in session level.
    alter session set events '10046 trace name context forever, level 4';
    but still showing traceoutput file bind variable.
    Pls help its very urgent

    Can you post the query for which the bind variable values are not being shown and the trace output for the same?
    Probably it is listed down somewhere when you actually executed the query among the others. Try completely analyzing your trace file..

  • Bex : selection variable - write default values

    Hi,
    In Bex, I want to write default values by abap in selection option of report.
    How to do this?
    Thanks.

    Hi,
    create a variable of single value with "No ready for input" and "Mandatory"
    <u>Procedure of Exit:</u>
    1: Tcode -> cmod
    2: Select the Project for Varaiables -> Components --> change
    3: select EXIT_SAPLRRS0_001 
    4: select ZXRSRU01
    5:
      WHEN '<Var Name>'.
        IF i_step = '1'.
          l_s_range-low      = <default value>.
          l_s_range-sign     = 'I'.
          l_s_range-opt      = 'EQ'.
          APPEND l_s_range TO e_t_range.
        ENDIF.
    6: Save
    7: Activate
    8: Activate the project
    Hope its done
    Regards
    Happy Tony
    <b>Points == Thanks</b>

  • How to deploy a VO Bind variable to get value from user session....

    Hello everbody...
    A JSF Page has a table based on VO with two parameters. One of this parameters I will pass by operation ExecuteWithParams.
    but the other parameter I need to pass a value from User session.
    Is that possible? How would I do that? I´m using jdev10.1.3
    Thankyou...

    When you created a binding for executeWithParams in your pageDef, the action binding should have had NamedData elements for each of the parameters. These would have been assigned values from a variableIterator up in the executables section. The parameter that gets its value from user input should be left alone. For the parameter that gets its value from the user session, change the EL expression that defines its NDValue attribute so that it references the session information that you want to use. This can be a sessionScope variable that you set earlier in the session, as Frank suggests, a property of a managed bean in session scope, or some other variable.

  • Variable vs hardcoded value in SQL query

    Hi Gurus,
    I have a SQL query inside a function that looks similar (i'm showing the "where" clause here only) to the below:
    WHERE ID = variable_id (by the way this two have exactly the same type, number(20))
    and
    WHERE ID = 100
    In the first option that uses variable it takes 4 secs to complete the query, while the second one that uses hardcoded value completes in milliseonds. Im new to oracle but been to other dbms and havent seen such behaviour. Anyone encountered or know what maybe the cause? I thought of not pasting here the explain plan since its just a question of variable vs hardcoded value.
    rgds.

    Just want to add something, here is the stats for the two queries:
    Statistics for variable_id (15 secs)
    29 recursive calls
    0 db block gets
    24324 consistent gets
    21556 physical reads
    0 redo size
    20676 bytes sent via SQL*Net to client
    613 bytes received via SQL*Net from client
    25 SQL*Net roundtrips to/from client
    17 sorts (memory)
    0 sorts (disk)
    358 rows processed
    Statistics for hardcoded value (5 secs)
    4 recursive calls
    0 db block gets
    2631 consistent gets
    0 physical reads
    0 redo size
    20469 bytes sent via SQL*Net to client
    613 bytes received via SQL*Net from client
    25 SQL*Net roundtrips to/from client
    0 sorts (memory)
    0 sorts (disk)
    358 rows processed
    There are differences consistent gets and physical reads. What coul dbe the problem here?
    tnx!

  • h:outputText/ and its value property

    I have this case:
    <h:outputText id="text1" value="#{varpak.status}" />
    now, I would like to format its value property to be something like:
    <h:outputText id="text1" value="myFunction(#{varpak.status})" />
    and then to write myFunction's body. Is this possible? How can I do that? Is there any example? I couldn't find any. Where should I put myFunction's body?
    Thank you in advance.

    I'm not talking about JavaScript.
    I would like to write my own Java function:
    String formatStatus(String status, Date date) {
    If (status.equals("A"))
    return "Active from date " + date;
    else
    return "Not active";
    and then to replace inside my dataTable's column:
    <h:outputText id="text2" value="#{varpaketi.status}" />
    with:
    <h:outputText id="text2" value="#{pc_Paketi.formatStatus($status, $date)}" />
    where $status and $date are dataset variables which were displayed in column of my datatable.

  • Random APs/RAPs losing its configuration automatically?

    Problem:
    We are started seeing the issue where some of the RAPs are losing its configuration like ipsec parameters, master ip automatically.
    This happens only for random APs.
    Diagnostics:
    Found that these were the APs which were showing mismatch status on the Airwave.
    Also Airwave was changed to manage mode for sometime to collect some information.
    Once the Airwave was changed to monitor mode this occurrence has stopped. 
    Solution
    If the Aps are in managed mode and if the Airwave sees a mismatch status/configuration it may try to match the configuration it actually holds.
    If the reference configuration doesn’t have master ip, rap configuration or the values are empty, this situation may happen.
    So kindly be careful in changing the mode to manage mode.

    Hi,
    Actually when you use you AP with the WLC it don't have configuration rights on it,
    It just perform the radio communication no more than this, so when you bring AP in your network and use flex-connect then all the configuration reflects/provisions from WLC.

  • TextBox losing its text when focus changed?

    Hi all,
    Im developing a plugin in Illustrator CS3 using VisualStudio 2005.
    I design my dialog using ADM in VS.
    The textbox losing its text when focus is changed.
    In my dialog i have a textbox,checkbox and a ok and cancel button.
    In case, if i enter the text and press tab or the checkbox (before moving the focus to ok or cancel button) the text remains uncleared.
    But if i enter the text and move the mouse to ok or cancel button the text box value gets cleared.
    Please someone guide me to solve this problem.
    Thanks in advance,
    Poovili

    Yeah its working when removing the setdrawproc..
    But we need this setdrawproc..Because we save the project settings and next time we load the project the values'll automatically come up using this dialogdrawproc in setdrawproc..the following is our dialogdrawproc code
    static void ASAPI DialogDrawProc( ADMDialogRef dialog,ADMDrawerRef drawer)
        ADMItemRef ItemRef;
        if(dialog==g->qcCheckDialog )
            ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtOverprint);
            sADMItem->SetText(ItemRef,g->BlackValues);
            ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtTintValues);
            sADMItem->SetText(ItemRef,g->TintValues  );
            ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtRuleThickness);
            sADMItem->SetText(ItemRef,g->RuleThickNess  );
            ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtDashGap1);
            sADMItem->SetText(ItemRef,g->DashGapValues  );
            ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtPatterns);
            sADMItem->SetText(ItemRef,g->PatternValues  );
            ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtLeadTextSize);
            sADMItem->SetText(ItemRef,g->LeadTextSize  );
            ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtSuperscript);
            sADMItem->SetText(ItemRef,g->SupValue );   
            ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtSubscript);
            sADMItem->SetText(ItemRef,g->SubValue );
            ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtBitmapResFrom);
            sADMItem->SetText(ItemRef,g->BitmapResFrom);
            ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtGrayScaleResFrom);
            sADMItem->SetText(ItemRef,g->GrayscaleResFrom);
            ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtCMYKResFrom);
            sADMItem->SetText(ItemRef,g->CMYKResFrom);
            ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtBitmapResTo);
            sADMItem->SetText(ItemRef,g->BitmapResTo);
            ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtGrayScaleResTo);
            sADMItem->SetText(ItemRef,g->GrayscaleResTo);
            ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtCMYKResTo);
            sADMItem->SetText(ItemRef,g->CMYKResTo);
            //-------------TYPE AREA---------------------------------
            ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtAreaWD);
            sADMItem->SetText(ItemRef,g->TAreaWD);
            ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtTAHeight2);
            sADMItem->SetText(ItemRef,g->TAAreaHt);
                            //column size
            ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtColumn1Height);
            sADMItem->SetText(ItemRef,g->Column1Height);
            ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtColumn1Width);
            sADMItem->SetText(ItemRef,g->Column1Width);
            ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtColumn2Height);
            sADMItem->SetText(ItemRef,g->Column2Height);
            ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtColumn2Width);
            sADMItem->SetText(ItemRef,g->Column2Width);
            ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtColumn3Height);
            sADMItem->SetText(ItemRef,g->Column3Height);
            ItemRef=sADMDialog->GetItem(g->qcCheckDialog ,txtColumn3Width);
            sADMItem->SetText(ItemRef,g->Column3Width);
            //sADMDialog->Draw(drawer);
            //admDialog->Draw(drawer);
            //-------------SAVE SETTINGS--------------------------------
        if(dialog==g->LoginSaveSettingsDialog)
            ItemRef=sADMDialog->GetItem(g->LoginSaveSettingsDialog ,txtLSSUser1);
            sADMItem->SetText(ItemRef,g->TxtLSSUser1);
            ItemRef=sADMDialog->GetItem(g->LoginSaveSettingsDialog ,txtLSSPassword);
            sADMItem->SetText(ItemRef,g->TxtLSSPassword);
        //-----------------ADD NEW USER-----------------------------------
        if(dialog==g->AddNewUserDialog)
            ItemRef=sADMDialog->GetItem(g->AddNewUserDialog ,txtLogin1);
            sADMItem->SetText(ItemRef,g->TxtLogin1);
            ItemRef=sADMDialog->GetItem(g->AddNewUserDialog ,txtPassword);
            sADMItem->SetText(ItemRef,g->TxtPassword);
        if(dialog==g->AddingUsertoDBDialog)
            ItemRef=sADMDialog->GetItem(g->AddingUsertoDBDialog ,txtNeuUser);
            sADMItem->SetText(ItemRef,g->TxtNeuUser);
            ItemRef=sADMDialog->GetItem(g->AddingUsertoDBDialog ,txtCreateNewPassword);
            sADMItem->SetText(ItemRef,g->TxtCreatePassword);
        //-------------------------Change Password-----------------------
        if(dialog==g->ChangePasswordDialog)
            ItemRef=sADMDialog->GetItem(g->ChangePasswordDialog ,txtCPLogin);
            sADMItem->SetText(ItemRef,g->TxtCPLogin1);
            ItemRef=sADMDialog->GetItem(g->ChangePasswordDialog ,txtCPOldPass);
            sADMItem->SetText(ItemRef,g->TxtCPOldPass);
            ItemRef=sADMDialog->GetItem(g->ChangePasswordDialog ,txtCPNewPass);
            sADMItem->SetText(ItemRef,g->TxtCPNewPass);
            ItemRef=sADMDialog->GetItem(g->ChangePasswordDialog ,txtCPConfirmPass);
            sADMItem->SetText(ItemRef,g->TxtCPConfirmPass);
        if(dialog==g->SelectProjDialog)
             if (CyanToMagBool==true)
                ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
                sADMItem->SetText(ItemRef,g->ConversionFolderPath );
            /*else if(RasterColorsBool==true)
                ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
                sADMItem->SetText(ItemRef,g->ConversionFolderPath );
            else if(RasterColorsBool==true)
                dialog = sADMItem->GetDialog(ItemRef);
                if (ItemRef==sADMDialog->GetItem(dialog, txtAssessmentPath1))
                    sADMItem->GetText(ItemRef,g->ConversionFolderPath ,1024);
                    sADMItem->SetText(ItemRef,g->ConversionFolderPath );
                    //MessageBox(NULL,g->BlackValues,"Txt",0);
           else if(SaveAdvancedAssessBool == true)
               ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
                sADMItem->SetText(ItemRef,g->AssessmentFolderPath);
            else if(ConvertSwatchBool==true)
                ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
                sADMItem->SetText(ItemRef,g->ConversionFolderPath);   
            else if(DrawBBBool==true)
                ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
                sADMItem->SetText(ItemRef,g->ConversionFolderPath );
                ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtBBSpacing);
                sADMItem->SetText(ItemRef,g->BBSpacing );
                ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtBBStrokeWidth);
                sADMItem->SetText(ItemRef,g->BBStrokeWidth );   
            else if(ConvertGradientBool==true)
                ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
                sADMItem->SetText(ItemRef,g->ConversionFolderPath );
            else if (PantoneToCyanBool==true)
                ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
                sADMItem->SetText(ItemRef,g->ConversionFolderPath );
            else if (QceraBatchConversionBool1==true)
                ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
                sADMItem->SetText(ItemRef,g->ConversionFolderPath );
            else if (PantoneToMagentaBool==true)
                ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
                sADMItem->SetText(ItemRef,g->ConversionFolderPath );
            else if(SaturationBool==true)
                ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
                sADMItem->SetText(ItemRef,g->ConversionFolderPath );
            else if(ColorOverprintBool==true)
                ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
                sADMItem->SetText(ItemRef,g->ConversionFolderPath );
            //else if(ColorsBatchBool==true)
            if(sADMItem->GetBooleanValue( sADMDialog->GetItem( g->SelectProjDialog, CHK_CheckColors1 ))==true)
                ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
                sADMItem->SetText(ItemRef,g->ConversionFolderPath );
            else if (ConvertFontsBool==true)
                ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
                sADMItem->SetText(ItemRef,g->ConversionFolderPath );
                else if(FontCorrectionBool==true)
                ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
                sADMItem->SetText(ItemRef,g->ConversionFolderPath );
            else if(ScalingBool==true)
                ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
                sADMItem->SetText(ItemRef,g->ConversionFolderPath );
            else if(SaveAssessBool==true)
                ItemRef=sADMDialog->GetItem(g->SelectProjDialog ,txtAssessmentPath1);
                sADMItem->SetText(ItemRef,g->AssessmentFolderPath);
                //MessageBox(NULL,g->AssessmentFolderPath,"Assess",0);
    //MessageBox(NULL,g->ConversionFolderPath,"Assess",0);
        if(dialog==g->CleanDialog)
            if(CleanArtBatchConversionBool==true)
            ItemRef=sADMDialog->GetItem(g->CleanDialog ,txtLeadingValue);
            sADMItem->SetText(ItemRef,g->leadingValue  );
            ItemRef=sADMDialog->GetItem(g->CleanDialog ,txtBlackValues);
            sADMItem->SetText(ItemRef,g->ApplyBlackValues  );
            ItemRef=sADMDialog->GetItem(g->CleanDialog ,txtCleanArt_SpecifyFolder1);
            sADMItem->SetText(ItemRef,g->CleanArtFolderPath );
    Let me know if i'm not clear. Thanks in advance..

  • Display data to edit based on fields and its value defined in internal tabl

    I need to display data in a internal table for editing in a screen.
    you have a internal table with field name , data types and its value. I need to display data in a screen ( sceen painter not in a report) row by row in vrtical format.
    The internal table's structure not fix. you can have any number of fields in the internal table.
    Can you please send me code if it is available with you or send me any senario in SAP if any ...so that i can debug to extract the code..
    have to display data vertically as below in editable format,
    for example,
    Airline
    Flight Number
    Flight date
    Flight price
    Airline Currency
    Plane Type
    Maximum capacity
    Occupied econ.
    Total
    No of fields will change.
    also F4 help needs to be attached with each field.
    I think it can be done through step loop. can anybody give sample code or tell me where to find in SAP or somewhere else?
    it will be great help to me..
    Sanjeev

    Hi
    just check out this program DEMO_DYNPRO_STEP_LOOP.

  • How to check if a user has clicked on a digital control and changed its value?

    Greetings !!!
    I am looking for a simple way (without using Windows messages)of knowing if an user has clicked on a digital control and changed its value.
    I have tried the key focus property; but I have to click twice to make it work.
    If somebody knows a better solution; please let me know.
    Thank you in advance for your help

    If you just want to know if the value has changed you can put it in a while loop and use shift registers to see if the value has changed.
    Brian
    Attachments:
    Changed.vi ‏22 KB

  • Function to extract characteristics and its value from PI sheet

    Hi experts,
      I am working on a report to generate Avg. deckle for the month form the PI sheet. In the PI sheet the data that is displayed is basically the message characteristcs and its value.
    Please tell me ne function that will give me the related data to be displayed.
    Thanks in advance..

    reading the characteristics: CAVC_DB_READ_CFG_IN_CBASE.
    reading the values according to the characteristics: CARD_CHARACTERISTIC_READ.
    Note: the second FM is obsolete according to SAP. but it still works in opposition to the new ones.

  • How to prevent a text in script from displaying if its value is zero

    Dear all,
    How to prevent a text in script from displaying if its value is zero
    for eg   Price  = 0.00
    if price is 0 it should'nt appear in output.
    I tried with    if price ne 0.
                       price = &price&
                        endif.
    but it's not working.
    Regards
    Raj
    <MOVED BY MODERATOR TO THE CORRECT FORUM>
    Edited by: Alvaro Tejada Galindo on Jan 20, 2009 8:59 AM

    Hello Nagaraju,
                           What you were doing is partially right.
    The correct format to write in the script is as follows :
    /:  if &PRICE& ne 0.
      &PRICE&
    /:  endif.
    This should work. Let me know how it goes.
    Nayan

  • Selecting one cursor at a time and then reading its value

    I am a novice LabView user. I am trying to develop a program in which I have to select portions of a waveform and delete the outliers.  The problems I run into is selecting cursors at a time and then reading its value. I was using Active Cursor. Ideally what I need is to read read values of the first two cursors, cursor0 and cursor1 and remove outliers in the region and then move to region between cursor1 and cursor2 and so on. Is there a way to control which cursors are active, read its value and then move to the next set.

    Hi binc,
    I have attached a VI that should remove outliers. This may not be the best way to do it, but it is one possibility.
    Thanks,
    Paul B.
    Motion Control R&D
    Attachments:
    Remove_outliers.vi ‏20 KB

Maybe you are looking for