ADD NEW VALUE IN TO TEXTAREA IN CASE OF UPDATE FORM .

HI,
I HAVE A DUMMY TABLE
CREATE TABLE  "DUMMY_MED_LITS"
   (     "MED_CODE" VARCHAR2(100),
     "MED_DOS" VARCHAR2(4000)
   ).I AM GOING TO FETCH THESE TWO COLUMNS VALUE OF DUMMY TABLE INTO TEXTAREA .TEXT AREA ALREADY HAVE VALUE I WANT TO MARGE TEXTAREA VALUE WITH THE MED_CODE AND MED_DOS VALUE .
declare
p varchar2(200);
rec DUMMY_MED_LITS%ROWTYPE;
cursor c1 is select * from DUMMY_MED_LITS;
begin
open c1;
loop
fetch c1 into rec;
exit when c1%notfound;
:P13_MED_COUNT:=rec.MED_CODE ||'-'||rec.MED_DOS|| CHR(13) || CHR(10);
end loop;
close c1;
end;* :P13_MED_COUNT THIS IS TEXT AREA ITEM .
BEGIN
INSERT INTO DUMMY_MED_LITS VALUES(:P13_MED_NAME,:P13_MED_DOS);
END;
select DISEASE,SYMPTOMS,TRET_NAME,MED_COUNT,MED_DAYS into :P13_DISEASE,:P13_SYMPTOMS,:P13_TREATMENT,:P13_MED_COUNT,:P13_DOS_DAYS FROM PATIENT_SYMPTOMS where ID =:REQUEST;
begin
update PATIENT_SYMPTOMS set DISEASE=:P13_DISEASE,
SYMPTOMS=:P13_SYMPTOMS,TRET_NAME=:P13_TREATMENT,MED_NAME=:P13_MEDICINE,
MED_COUNT =:P13_MED_COUNT,MED_DAYS=:P13_DOS_DAYS where id =:P13_id;
end;HOW CAN I FETCH VALUE FROM DUMMY_MED_LITS INTO TEXT AREA .IN MODIFY CASE OF UPDATION.
THANKS
MANOJ KAUSHIK
Edited by: Manoj Kaushik on Apr 22, 2010 2:28 AM
Edited by: Manoj Kaushik on Apr 22, 2010 2:29 AM

Manoj:
What phase of page processing are the statements that you list executed ?
What are the conditions under which these statements executed ?
varad

Similar Messages

  • Add New value to the special reference indicator on the TO field

    Can you please tell me how to add a new value to the special reference indicator dropdown which is on the transfer order. 
    LTAK->SPEZI  ?  Currently it is displaying values  A & B in the drop down and want to add a new value to the indicator.
    Thanks
    John

    Hi,
    I dont think you will be able to add more values to this field from configuration.
    If you check the data element and domain associated with this field (LTAK_SPEZI) in SE11. You can see that the value range for the domain has been defined there as  A and B only.
    So if you want to add a new value you can ask and ABAP/technical consulatnt to add new values to this Domain.
    However i am not sure it will be useful (unless you have a specific requirement and want to modify the standard programs) as the field is checked in different program (eg in inculde  LL03AF4V , LL03AF7F ) against these fixed values A and B.

  • FM - Add new value to WRTTP Field

    Hi experts,
    I would like to add a new value to the table Value types.
    Currently this table contains values form 1- 3C.
    Could Anybody tell me how I 'd add a new value?.
    Thanks in advance,
    Greetings,
    Nachos

    Hi,
    I dont think you will be able to add more values to this field from configuration.
    If you check the data element and domain associated with this field (LTAK_SPEZI) in SE11. You can see that the value range for the domain has been defined there as  A and B only.
    So if you want to add a new value you can ask and ABAP/technical consulatnt to add new values to this Domain.
    However i am not sure it will be useful (unless you have a specific requirement and want to modify the standard programs) as the field is checked in different program (eg in inculde  LL03AF4V , LL03AF7F ) against these fixed values A and B.

  • How can I add new value in a list box in a screen

    Hi All ,
        In transaction CRMD_BUS2000120 (CRM Server), I need to add one value to the list box. Already 4 values are coming. How can I add 1 more value.
      any suggestion is very appreciated.
    Thanks & Regards,
      Shekar.

    Hi,
    Check you have any exits to do that, if there are no exits then you can Copy the program and change the code.
    to add the extra value in list box, you just have to append the new line to the internal table which you are passing to VRM_SET_VALUES FM.
    some thing like this..
    wa_list-key  = sy-tabix.
    wa_list-text = itab1-vbeln.
    Append wa_list to It_list.
    v_name = 'P_VBELN'.
    call function 'VRM_SET_VALUES'
      exporting
        id                    = v_name
        values                = It_list
    EXCEPTIONS
       ID_ILLEGAL_NAME       = 1
       OTHERS                = 2
    if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    endif.
    Regads
    vijay

  • How can I add new values only to a column of a spreadsheet?

    I have three "while loops" that are executed in parallel, two generate values and the third while loop write the values in a spreadsheet.
    The run time of each while loop is different, to synchronize the three while loops I use a "Wait Until Next ms Multiple", but sometimes the same value is kept twice.
    I think that a solution would be to add a "Write To Spreadsheet File" in the blocks that generate values, adding a new value in the wished column in each cycle, but I do not know like doing this.
    I could keep the values in two arrays and add them in a same spreadsheet in different rows or columns, but I need save values in spreadsheet in each loop and not all values at the end of cycle.
    Thanks.
    German Garrigos.

    I think your three loops solution is probably better than putting different kinds of functions into one loop. Keeping data acquisition/generation separate from file i/o is usually better because the OS can interfere with timing on the file operations.
    If you pass the data to the file loop via queues, place the data into shift registers, and only write to the file when you have equal amounts of data from each generator you should be able to keep things synchronized. You can write larger or smaller amounts as necessary to keep pace with the generators. If one of the generators gets way ahead of the other, you have to decide how to deal with that issue.
    Writing to the second column of a three column spreadsheet can be tricky. It involves keeping pointers to the portions written and not written, reading the entire file into memory and overwriting the cells where new data goes and rewriting the entire file. This can get very slow for large files. If the file and data structures are simple enough it might be feasible to read only a portion of the file and overwrite it with new data, but that approach has lots of risks to the data.
    Wait until next ms multiple is only reliable if the wait interval is sufficiently longer than the execution time (including random OS delays) of each loop. Look at the synchronization functions such as notifiers to synchronize your loops.
    If you still have problems, post a simplified version of your program and someone will probably be able to suggest solutions.
    Lynn

  • Add new values in drop down

    Hi ,
        I need to add new agreement types to the drop down. Please let me know how and where to add the item to get populated in the drop-down
    Thanks in Advance
    Tayi

    HI,
    You can create a value list value and  point  the list from extended field .
    Regards
    Sudipta

  • Urgent -Need to Add new values for the LOV field in forms

    HI,
    I am customizing an existing form. In that i need to add some values for the LOV fied which can be used during run time.
    Please Can some one help me in doing this?
    Thanks
    Suresh P

    Go to Navigator and edit the LOV or create a new one.
    hope that helps!

  • Add new values to the Domain J_1BINDUS3 CFOP category of the material

    Hello Gurus
    I have a request from the business to include some new values in the domain J_1BINDUS3 CFOP category of the material.
    Since is a standard object seems to be a work Basis team, however before requesting this I would like to get some advice from the experts to understand if adding new values to this domain can cause side effects or if I should maintain other objects as result of this request.
    I know table J_1BAON has to be maintained to properly determine CFOPs for the new fields but along that is there any other one?
    Is this the right process to include new CFOP categories?
    The requirement is to properly identify Assets as Productive and Non Productive when making the PO, since this can help us to determine tax code automatically.

    Have you tried using "Map published data" in the Utilities pane, mapping the department field to the corresponding security group.
    http://codebeaver.blogspot.dk/

  • How to add new value to 'Partition by' from RPD

    HI..
    in the presentation services when queried my request.. i am getting query below like that.this time i am getting wrong values. if i include c8 in partition by for c13 then i able to get the correct values.
    Can you plz tell me how to include new value to the partion by ..from RPD.
    SAWITH0.c7 as c7,
    SAWITH0.c8 as c8,
    SAWITH0.c9 as c9,
    SAWITH0.c10 as c10,
    SAWITH0.c11 as c11,
    SAWITH0.c12 as c12,
    sum(SAWITH0.c13) over (partition by SAWITH0.c10, SAWITH0.c14, SAWITH0.c11, SAWITH0.c12) as c13,
    SAWITH0.c14 as c14
    Thank you.

    Hi,
    I guess you made a mistake in your business model. The c8 column should be coming from a separate dimension.
    Good Luck,
    Daan Bakboord
    http://obiee.nl

  • Add new project but "BP Project" in Accounting not updated.

    Hi,
    This is a bit tricky.  If you have a solution for this it would be cool.
    I have a UDF called Project Name and when the user adds the Sales Order,
    I would like the "BP Project" in Accounting be updated with the new project which I just added with the ProjectService
    I've been able to add the value with the ValidValues of the IComboBox for the BP Project item but
    seems that there's something not working well.
    It pops the Projects dialog like if the item doesn't exist but I just added it with the ProjectService and its really in the table
    So what I suspect is that the control BP Project on the form needs to be updated but I don't know how to do it.
    Any good and simple idea to update this control ?
    I did look with DataBind and everything but I'm unable to figure out how to do it
    Edited by: Marc Roussel on May 1, 2008 8:30 PM

    Thank you very much.  It is working this way.  Better have this way then no way I'm glad to share the code with you all
    Here's the code that starts the process from the ItemEvent
    if (pVal.EventType == SAPbouiCOM.BoEventTypes.et_ITEM_PRESSED && pVal.BeforeAction)
        if (pVal.FormType == 139 && pVal.ItemUID == "1")
            if (SBO_Application.Forms.ActiveForm.Mode == BoFormMode.fm_ADD_MODE || SBO_Application.Forms.ActiveForm.Mode == BoFormMode.fm_UPDATE_MODE)
                BubbleEvent = ValidateProjectName();
    This is the code that validates if the UDF project name is there and if yes, try to create it by calling the method below
    private bool ValidateProjectName()
            bool ReturnBubble = true;
            SAPbouiCOM.EditText ProjectName = null;
            try
                ProjectName = (SAPbouiCOM.EditText)SBO_Application.Forms.GetForm("-139", 0).Items.Item("U_project_name").Specific;
            catch
                SBO_Application.SendKeys("^+U");
                ProjectName = (SAPbouiCOM.EditText)SBO_Application.Forms.GetForm("-139", 0).Items.Item("U_project_name").Specific;
            string ProjectCode = ProjectName.Value.ToString().Trim();
            if (ProjectCode == "")
                ReturnBubble = false;
                FortSum.SAP.ShowMessage(SBO_Application, "Le nom du projet ne peux pas être vide...", "The project's name can't be empty...");
            else
                if (!IsProjectExist(ProjectCode))
                    CreateProject(ProjectCode, ProjectCode, false);
            System.Runtime.InteropServices.Marshal.ReleaseComObject(ProjectName);
            ProjectName = null;
            return ReturnBubble;
    Here's the code that creates the project : (Note - ProjectForm.Visible = false does nothing since the form pops up anyway)
    private bool CreateProject(string ProjectCode, string ProjectName)
            bool Done = true;
            try
                SAPbouiCOM.ComboBox Projects = (SAPbouiCOM.ComboBox)SBO_Application.Forms.GetForm("139", 0).Items.Item("157").Specific;
                Projects.Select("Define New", BoSearchKey.psk_ByValue);
                SAPbouiCOM.Form ProjectForm = SBO_Application.Forms.GetForm("711", 1);
                ProjectForm.Visible = false;
                SAPbouiCOM.Matrix ProjectsMatrix = (SAPbouiCOM.Matrix)ProjectForm.Items.Item("3").Specific;
                ((SAPbouiCOM.EditText)ProjectsMatrix.Columns.Item("PrjCode").Cells.Item(ProjectsMatrix.RowCount).Specific).Value = ProjectCode;
                ((SAPbouiCOM.EditText)ProjectsMatrix.Columns.Item("PrjName").Cells.Item(ProjectsMatrix.RowCount).Specific).Value = ProjectName;
                ProjectForm.Items.Item("1").Click(BoCellClickType.ct_Regular);
                ProjectForm.Close();
                Projects.Select(ProjectCode, BoSearchKey.psk_ByValue);
                FortSum.General.ReleaseComObject(new object[] { ProjectForm, ProjectsMatrix });
                ProjectForm = null;
                ProjectsMatrix = null;
            catch (Exception ex)
                FortSum.SAP.ShowMessage(SBO_Application, ex.Message, ex.Message);
                Done = false;
            return Done;

  • How do I get a new value for the service name field and update it in Connection Properties?

    I am running Windows Vista. I just upgraded to Firefox 4. When I try to log on to the internet, it tells me the proxy server is refusing connections. A diagnostic reported Error 815 and said the remote server is not responding because there is an invalid value for the "Service Name" field. It said to get a new value and update it in Connection Properties. How do I do this?

    When you create a new film script, the first page you see is a title page.
    The page after this title page is the one where you generally type in your scenes.
    It looks like you are facing some issue and not able to delete any text.
    Can you please send me this script so that I can have a better look at your issue?
    You can save this script to disk by using option 'File -> Save to disk'. This will create a '.stdoc' file on your system.
    Just mail this '.stdoc' file to me at 'roverma <at> adobe <dot> com'
    Thanks

  • How to add new value in Classification under General tab via MM02.

    Hello Experts,
    I've a requirement where I need to add a new material variant configuration value via MM02 as highlighted below. I've also attached the screen shot of CL02, the two characteristics which I need to add (highlighted in red).
    Can please anybody tell me the steps to add value in Classification under General tab via MM02.
    Many thanks in advance.

    zero cool,
    Use transaction CL02 , open class in PCL_222_PURO_BOX with class type 300
    add characterstic
    PCH_COSTING_WGT_DETERM
    PCH_COSTING_WGT_A_DETERM
    save it.
    Now use MM02 and go to classification view , now you would be able to see these characterstic there.
    Check and come back.
    Thanks
    Ritesh

  • How to add new value in operator in search parameter in web ui

    Hi,
    I have a requirement to add values (equal ,not equal ) in operator drop-down field of
    search parameter in search of web ui page.
    Can someone guide me to proceed on this.
    Thanks
    Viren

    Hi,
    here an example how to add operator "contains pattern" to attribute prospect name in the opportunity search.
    Hopefully it will work similar for your issue:
    1) Launch transaction 'sm34'
    2) Enter view cluster name as 'CRMVC_DQ' and click on 'Maintain'
    3) Find DQuery Object Name for example 'BTQOpp' under Comp Name 'BT' and click on'exceptions per attribute.'
    4) Find the Attribute Name for example 'PROSPECT_NAME'
    5) Check the box 'CP' to enable to 'contains' operator.
    Kind regards
    Manfred

  • Add new value to existing LOV

    I need to add "Current Date" as LOV of one object, which displays today's date. Could you please help me to do that?
    Thanks & Regards,
    Muntasir

    SELECT 'Current date' FROM DUAL
    UNION
    (SELECT DISTINCT
    SNAP_DT_DLY_RNG_VW.RANGE_NAME
    FROM
    DIM_DATE_RANGE_VW SNAP_DT_DLY_RNG_VW)
    Go to the universe designer, select the object properties entry in the context menu (right mouse button) and in the Properties tab press Edit. Press on the SQL icon, etner your SQL statement and check the option Do not generate SQL statement before running. Close the windows by pressing OK.
    Still you have to handle the string value 'Current date' in your prompt.
    The SQL where clause will look like this
    ((@prompt(<definition of your prompt here>)='Current date' AND SNAP_DT_DLY_RNG_VW.RANGE_NAME=XXXX) OR (@prompt(<definition of your prompt here>)=SNAP_DT_DLY_RNG_VW.RANGE_NAME))
    Replace XXXX with an oracle stament that will convert current_date to a format that is comparable to the contents of your RANGE_NAME field.
    Regards,
    Stratos

  • How to add new past in mining model and how to update the previous data in the minin model of time series algorithm?

    hello,
    I creata a mining model and trained it with some data using the sql table.Now I want that when ever I make any Changes in sqltable record. Then I have to chane the data of mining model also.Please provide help.
    Thanks in Advance
    Shalini Rathore

    Hi, thanks for the reply!
    Just to follow up for what we did to disable the delete function for maintaining table records. We hided the Delete button by adding a "MODULE disable_delete" code in Screen Painter. So now only adding records to the table is allowed.
    Thanks,
    Jenny

Maybe you are looking for

  • Font jaggies when exporting to pdf influenced by images on page

    Typeface Century ATF BQ (Postscript Type 1 font) renders jagged on screen on some Keynote 3 exported .pdf pages and sharp and clean on others when viewed by Acrobat Reader 7.0.5 and to greater and lesser degrees on other Macs and PCs. When viewed on

  • Cannot install Boot Camp on my imac 27

    Hello, I´m using Bootcamp to install Windoes on my Imac, afteri downloaded the Windows Support Software i couldn´t copy it/ burn it. When i tried to burn on a disk nothing happend after i pressed the ¨burn¨ button. I need some help here! Thanks! P.S:

  • Shaky screen on wake up?

    This started two weeks ago..The screen is shaky and is pixelated on wake up. Sometimes it stops and other times I get the black restart box. I have reset the PRAM and reinstalled TIGER. Any ideas. Once the machine restarts it is fine until it sleeps

  • June 2009 affordable HD camcorder suggestions please

    Hi Need to buy an 'affordable' (student budget) HD camcorder to get me going. What suggestions today - 18th June 2009 - and why? Many thanks SC

  • Reverse engineering - imp

    hi, I am currently working on a J2EE project, web service etc.. and now I am leaving the dept that i am working for. b4 i go i have to provide the logical diagrams (class diagrams etc etc) for the code that i have developed. specifically its an .ear