Insert into duplicate entries--exception in crm 2007 webclient

Hi All,
  I am facing small problem..
1. I have property field in service ticket component ICCMP_BTSHEAD.
2.I put some validations based on property .
3.when user clicks on create service ticket it will create service ticket with PROPERTY field filled up with some value.
  if user clear that value and clicks enter
  again if user enters the some value in field and click on save  it leads to exceptions that is of type insert duplicates array..like that..
    when i checked in debug....for the above procedure the service ticket guid is there in some internal table twice..
  if i did nt dne the steps like above,..i.e with out making property field blank..then no duplicates..
can any body through some light on this?

Actully for the same guid there are several entries of the PROPERTY Field , i think you are trying to fill the property field  through manually.  Actually u are clearing the values from the UI layer ( input field )  but not the underlying BOL contexts, so whenever u are clearing and adding the new value it is trying to add the newly added value along with the odl values also. So  make sure that whenever u are clearing the field, the corresponding field should be cleared in the BOL level.
Regards
Vikranth

Similar Messages

  • Insert into duplicate entries--exception in service ticket scenario

    Hi All,
      I am facing small problem..
    1. I have property field in service ticket component ICCMP_BTSHEAD.
    2.I put some validations based on property .
    3.when user clicks on create service ticket it will create service ticket with PROPERTY field filled up with some value.
      if user clear that value and clicks enter
      again if user enters the some value in field and click on save  it leads to exceptions that is of type insert duplicates array..like that..
        when i checked in debug....for the above procedure the service ticket guid is there in some internal table twice..
      if i did nt dne the steps like above,..i.e with out making property field blank..then no duplicates..
    can any body through some light on this?

    OSS note resolved it

  • Do we have a shortcut to insert a duplicate record except PK ?

    Do we have a shortcut to insert a duplicate record except PK ?
    Thanks.

    Do you want to insert another row with all of the columns the same but with a different PK? If so then:
    INSERT INTO t (pk, col1, col2, col3)
    SELECT new_value_for_pk, col1, col2, col3
    FROM t
    WHERE pk = <value>What you use for new_value_for_pk will depend on how the PK is generated.
    John

  • In CRM 2007 WebClient UI - How to change the exit URL?

    Good Evening All
    When we log off from the CRM 2007 WebClient UI application, the exit url is pointing to www.sap.cpm. Where can we change this to point to our corporate URL or point back to the logon URL?
    Sometime back I had seen some information regarding this, but am not able to find it. Any information would be highly appreciated.
    Thanks
    Anand

    Hi Anand,
    Check this wiki page
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/crm/howtochangetheURLwhenuserclicksLogOffinnewWEB+UI
    Regards,
    Shwetha

  • CRM 2007 - Webclient Logo replacement

    Hi Gurus
    In the CRM 2007 Webclient view there is a SAP Logo on the top right corner of the view.
    I'd like to replace this with a customer branded logo.
    I have reviewed and applied from the blog.
    /people/sudipta.sarma/blog/2008/03/28/how-do-you-brand-your-company-logo-in-crm-2007-ui
    As well I looked at
    http://help.sap.com/saphelp_crm60/helpdata/en/b3/f00c1514c54e67a60b61f7318c14b7/content.htm
    I think these maybe referring more to the WEB UI than the Webclient.
    Is there a cookbook or Note on this subject, any help will be gratefully received and rewarded.
    Regards
    Panduranga

    Hi.
    Go again through blog:
    /people/sudipta.sarma/blog/2008/03/28/how-do-you-brand-your-company-logo-in-crm-2007-ui
    And read the first comment related with Logo for IC:
    BSP "CRMCMP_IC_FRAME"
    MIMEs->images->branding->SAP_logo.gif
    Regards,
    Susana Messias

  • Insert - Ignore Duplicate Entry Error

    Hello
    I would like to use an insert statement which also contains a select statement in it and returns a set of records and gets inserted in to a particular table.
    But, when I tried to run the sql, it throws error as some of the records are duplicate entry insertions. Is it possible to modify the sql to ignore any duplicate entries and insert the new ones.
    Illustration:
    TABLE_A
    STUDENT_ID GROUP_ID
    101 200
    101 201
    103 200
    107 201
    and so on.
    Here, when I try to insert a set of records like
    101 200
    108 200
    101 300
    103 200
    103 201
    I would like the exact duplicate entries like (101,200), (103,200) to be ignored with out producing any error but insert the other records in to the TABLE_A table.
    Thr sql used is similar to this
    Insert into TABLE_A (student_id, group_id)
    select distinct person.studentid, groups.groupid from person, groups where
    Did any one know how to handle this?
    Thanks
    Shiv

    If I include 'NOT EXISTS' after insert and before
    select statement, it throws the error
    missing VALUES keyword
    The NOT EXISTS goes in the WHERE clause.
    Insert into Table_A (student_id, group_id)
    select distinct p.studentid, g.groupid
    from person p, group g
    where NOT EXISTS (select 1
                     from table_A a
                     where a.student_id = p.studentid
                     and a.group_id = g.groupid)or you could do
    Insert into Table_A (student_id, group_id)
    select distinct p.studentid, g.groupid
    from person p, group g
    MINUS
    select student_id, group_id
    from Table_A

  • Inserting a Duplicate Entries in ZTABLE

      Hi,
    I have Created a ZTABLE in that ztable having company code, sales org, employee no, from date , to date  and amount fields
    ZTABLE PRIMARY KEY FIELDS IS COMPANY CODE AND SALES ORG.
    now my requirement is to add 2 entries in a z table  same( employee company code and sales org).
    i have developed a module pool program to  enter the data by using table control.
    my logic is to insert the data from program to ztable
    loop at it_emp into wa_emp.
    insert zemp from wa_emp.
    endloop.
    Please give some suggestions to insert duplicate entries.

    The primary key are defined as UNIQUE and NOT NULL. So you cannot have two records with same keys, you MUST add another key so I suggest add a flag for "Employee to Bill" and "Employee Mobile Bill", you can define a domain with those two values to define a data element and add that data element in your table, defining this "Employee type" field as the last key of the primary keys of the table (and do not forget to set the client as the fist key)
    K
    Field
    Data Element
    Check table
    K
    MANDT
    MANDT
    T000
    K
    BUKRS
    BUKRS
    T001
    K
    VKORG
    VKORG
    TVKO
    K
    Z-name
    Z-name
    Regards,
    Raymond

  • HELP!!: Error inserting into table in exception block

    I have some pl/sql code. In the exception section I have several lines of code similar to:
    WHEN NO_DATA_FOUND THEN
    INSERT INTO SCHEMA.ERR_TABLE (err_num, line)
    values ('101', V_LINE);
    When I try to compile the code it gives me an error:
    (1):PLS-00201: identifier 'TEMP_ERRS' must be declared
    (2):PL/SQL: SQL Statement ignored
    (3):PLS-00201: identifier 'TEMP_ERRS' must be declared
    (4):PL/SQL: SQL Statement ignored
    TEMP_ERRS is just a table that exists in a schema?
    I tried inserting a record into this table in plain sql code and it worked.
    What am I missing??
    TIA-
    null

    I was able to insert a test record into TEMP_ERRS using plain sql, and it worked so I believe I should have the correct previlage.
    The only difference is that the PL/SQL code is part of a trigger, what specific previlage would I need?
    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Kaleem Mohammed Abdul ([email protected]):
    If the table/Synonym is not in the current schema, check for the privileges<HR></BLOCKQUOTE>
    null

  • How to open multiple sessions in CRM 2007 WebClient UI

    Hi guys,
    This simple thing, I am could not figure out. How do I open another session on WebClient UI in CRM 2007.
    Can anybody help.
    Thanks,
    John

    Hi Vijayata,
    Thank you very much for responding. Yes, now I am able to create another browser where I have to put my user id and password again. However, your answer is very useful.
    I have another problem. When I login I see a list of roles and click one  of them to go into the home page.
    I created my own role. My question is, how do I make my role appear in the existing list of roles.
    What I did is, I assigned my role to an Org.Unit. The result is when I login to WebClient UI, it directly takes me to home page of my role.
    What I want is, I want my new role to appear among the existing list of roles. I tried many ways, I couldn't figure out. Can you please give idea.
    Thanks,
    John

  • Getting error type RABAX_STATE in CRM 2007 Webclient

    Hi,
    We have installed CRM 2007 and upgraded the patchlevel of BBPCRM to SP2. After the patch upgrade we are getting type RABAX_STATE error after we log in through Webclient. We get no errors while logging through SAP GUI. Before the upgradation we were successfully able to login through Webclient. The details of error screen is as follows:
    Error when processing your request
    What has happened?
    The URL http://coevhpa4.coekc.com:8000/sap/bc/bsp/sap/crm_ui_frame/BSPWDApplication.do was not called due to an error.
    Note
    The following error text was processed in the system CR7 : Syntax error in program CL_BSP_WD_CONTEXT_NODE_TREE===CP .
    The error occurred on the application server coevhpa4_CR7_00 and in the work process 2 .
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: IF_BSP_ELEMENT~RUNTIME_IS_VALID of program CL_THTMLB_CELLERATOR==========CP
    Method: IF_BSP_PAGE_CONTEXT~ELEMENT_PROCESS of program CL_BSP_PAGE_CONTEXT===========CP
    What can I do?
    If the termination type was RABAX_STATE, then you can find more information on the cause of the termination in the system CR7 in transaction ST22.
    If the termination type was ABORT_MESSAGE_STATE, then you can find more information on the cause of the termination on the application server coevhpa4_CR7_00 in transaction SM21.
    If the termination type was ERROR_MESSAGE_STATE, then you can search for more information in the trace file for the work process 2 in transaction ST11 on the application server coevhpa4_CR7_00 . In some situations, you may also need to analyze the trace files of other work processes.
    If you do not yet have a user ID, contact your system administrator.
    Error code: ICF-IE-http -c: 100 -u: SUMSENGU -l: E -s: CR7 -i: coevhpa4_CR7_00 -w: 2 -d: 20080422 -t: 021218 -v: RABAX_STATE -e: SYNTAX_ERROR
    HTTP 500 - Internal Server Error
    Your SAP Internet Communication Framework Team
    Request you to kindly help ASAP. Users are waiting for it...
    Thanks and Regards,
    Suman Sengupta

    Hi,
    Have you resolved the problem ? We have encountered similar problem after patching the
    CRM 2007 to latest levels?
    Please help....
    Thanks & Regards,
    Bostjan

  • CRM 2007 WebClient Survey not displayed

    Hi Experts,
    In CRM 2007 I would like to view a survey created by mi in CRM_SURVEY_SUITE. This is not working. But SAP example surveys are displayed well.
    What could have happend?
    Best regards,
    Cristina

    when surveys are transported to the other client it takes some time (around 10 minutes) till they are accessible. maybe that is one of the reasons. also check if you have done all the necessary customazing:
    - defined determination criteria
    - defined determination rule
    and in case of opportunities you have to assign survey also directly on the transaction type.

  • New book on CRM 2007 Webclient - Customizing & Development

    Hi,
    yesterday I saw that there is a new book coming up on the CRM WebClient 2007 in march. It seems to be focused on developers. It is available through SAP Press, ISBN 978-3-8362-1287-8.
    Has anybody had a chance to get a sneak peak at it? What are the contents? Amazon did not have a lot on it and Sappress just posted a short description and the chapters included.
    The authors are Michael Füchsle and Matthias Zierke. Does anyone know about the authors?
    Looking forward to any information if I should invest in it.
    cheers Carsten

    Hi Matthias,
    I really did not mean to offend you or any other author/publisher/etc.. Until now I have not had the opportunity to write a book on something, but I am sure it is a whole lot of work.
    However, I really am glad that someone wrote a book about WebClient and I am positive that there is a lot of wisdom in it that will answer many of the "beginner" questions. The fact that it has been published in german first is completely understandable as both authors are german. Moreso I would have found it very sad if the completed german version of the book would be held back until the english one is ready.
    Back on topic:
    I regret to say that I still did not have the opportunity to get a look into the book myself. My colleague has recieved it and it is circulating around our company giving WebClient "beginners" a good start.
    Has someone else (sorry Stephen, there are native german speakers in here ) had a look at it? I can not believe that no one in the WebClient Forum has read it by now?!
    cheers Carsten

  • CRM 2007 - WebClient UI: Empty page is coming

    Hi,
    For Webclient UI, i did the configuration as mentioned in the document "C04_BB_ConfigGuide_EN_DE[1].doc".
    When i run the application, i am getting an empty page.
    In fact if i use technical profile "DEFAULT_IC" for my business role i am getting IC Webclient application. If i use the "DEFAULT" technical profile i am getting empty page.
    What can be the problem?
    -Chandra.

    Hi,
    try the followining:-
    1. Changing this parameters in t-code RZ11.
    login/accept_sso2_ticket must be set to 1
    login/create_sso2_ticket must be set to 2
    Default values are 0 initially for both of them
    2.
    Use transaction SICF to activate the following SICF services(via note 1115493):
    /default_host/sap/public/bc/icons
    /default_host/sap/public/bc/ur
    /default_host/sap/public/bsp/sap/system
    /default_host/sap/bc/bsp/sap/crm_ui_frame
    /default_host/sap/bc/bsp/sap/crm_bsp_frame
    /default_host/sap/bc/bsp/sap/gsbirp
    /default_host/sap/bc/bsp/sap/thtmlb_scripts
    /default_host/sap/bc/bsp/sap/thtmlb_styles
    /default_host/sap/bc/bsp/sap/crm_thtmlb_util
    /default_host/sap/bc/bsp/sap/bspwd_basics
    /default_host/sap/bc/bsp/sap/bsp_wd_base
    /default_host/sap/bc/bsp/sap/crmcmp_hdr
    /default_host/sap/bc/bsp/sap/crmcmp_hdr_std
    /default_host/sap/bc/bsp/sap/uicmp_ltx
    all services under /default_host/sap/crm
    Regards....

  • Crm 2007 webclient business partner 's number range

    Hi all,
    I created a new contact person in cic webclient ,after saved its ID number without our defined number range. But in GUI Client I  created the correct contact person' ID number started with 4*********.
    Number range:
    Sold-To-Pary:     2********
    Contact person:  4********
    In standard business role 'SALESPRO':
    1. Create customer ,sold-to-pary started with 2*********.
    2. Create contact person also started with 2********.(Its ID num. should be 4********)
    Could anyone help me to find out the solution?
    Thanks a lot!

    Hi,
    in Standard, contacts and accounts are created with the standard internal grouping.
    To select another grouping, you can add the grouping as an input field in the configuration for manual entry, e.g. in UI component BP_HEAD.
    To automatically default the grouping, you can implement Badi BADI_CRM_BP_UIU_DEFAULTS.
    In this Badi, you can read the entered data of the partner that you are about to create.
    Then, you can default the grouping depending on this data.
    E.g. put grouping for persons, if you are creating a partner with partner type = Person.
    Cheers,
    Thimo

  • How to get PROCESS MODE in CRM 2007 WebClient

    Hi all,
    Currently, we're implementing CRM2007 WebClient -- Service Transaction.
    In the past(CRM4.0 Version), we used the function 'CRM_INTLAY_GET_PROCESS_MODE' in the BADI of SAVE Service Order to identify it's a new create order or changed order.
      CALL FUNCTION 'CRM_INTLAY_GET_PROCESS_MODE'
        IMPORTING
          ev_process_mode = l_dialog_mode. " A created, B changed
    Now, this function does not work in Web Client. So, I turned to another function 'CRM_ORDERADM_H_READ_OW' try to get the flag of process mode.
    CALL FUNCTION 'CRM_ORDERADM_H_READ_OW'
      EXPORTING
        iv_orderadm_h_guid               = lv_guid_ref
    IMPORTING
       ES_ORDERADM_H_WRK                = l_CRMT_ORDERADM_H_WRK
       EV_MODE                          = l_dialog_mode
    Yes, function 'CRM_ORDERADM_H_READ_OW' works in WebClient. But when creating new service order, the l_dialog_mode  = 'B' which is same to changing an exsiting order.
    So would anyone kindly help me, How to get the process mode properly in WebClient, especially in Service Order. I need to identify the order is new created or is changed.
    Your comments is really appreciated.
    Best Regards,
    Tony

    Use function module CRM_ORDERADM_H_ON_DATABASE_OW to check, if the order has already been save on the database. If not, you are in create mode.

Maybe you are looking for

  • Fields missing in MPD report after change to structure and program

    I have been working on a consistency report for transaction MPD. I had created a structure in SE11 for handling the data.  it was all working, but then i had to go and change the name of the fields in the structure.  Now those fields are missing from

  • Weird order of events added to iCal using Applescript

    This is a script that has worked perfectly in the past and as far as I know has not been modified (my bad if so...) Currently it is adding all the correct events into iCal but taking a real long time to do it and this is probably due to the weird chr

  • How do you do a manual click off to start the recording

    So, at my work, I play piano for dance classes, and the instructor usually gives me 4 or 8 or so counts before everyone starts dancing. When I want to record to the metronome, I need the count off to be in time with what the instructor says, but maki

  • How can I delete a broken table?

    Hi, I´m still a oracle-noob, hope somebody can help me. Last night the optimizer hanged on a single table, so I killed the optimizer-process. After that I checked the table where the optimizer hangs... The result was, that I can't make a query, and c

  • Photo viewing on Ipad

    can you view photos directly from an SD card  on a Ipad rather than have to upload them .With large file sizes the ipad may not have enough memory Thanks