CRM_CUSTOMER_H_MAINTAIN_OW not saving data on Change - Display

Hi All,
I am using the win interaction centre in CRM 5.0.
I have added a new tab and new fields to the tab that are stored in the CRMD_CUSTOMER_H table.
When I save (click the Save button) the activity I call CRM_CUSTOMER_H_MAINTAIN_OW FM to save teh customer fields and this works perfect.
The problem I have is saving the values when the user goes from Change to Display mode (Click the Display<->Change button).
Ideally what I want is to flag to the interaction layer that a change has been made and get the usual prompt that "something has changed and do you want to save?".
I pass everything to CRM_CUSTOMER_H_MAINTAIN_OW (as I do when saving the activity) but nothing is saved to CRMD_CUSTOMER_H).
I have even tried CRM_ORDER_MAINTAIN (and CRM_ORDER_SAVE/ BAPI_TRANSACTION_COMMIT) and this does not save either...
Has anyone had a similar situation and how did you overcome it?
Many thanks
Gary Hawkins

Hello Gary,
Today i've implemented ORDER_SAVE BADI, method PREPARE with the same task as you have.
And it's working.
code:
data: lt_customer_h type crmt_customer_h_comt.
data: ls_customer_h type crmt_customer_h_com.
ls_customer_h-ZZFLD000003 = LV_YOUR_VARIABLE
ls_customer_h-ref_guid = LV_HEADER_GUID
append ls_customer_h to lt_customer_h.
data: lt_input_fields     type crmt_input_field_tab.
data: ls_input_field      type crmt_input_field.
data: ls_input_field_name type crmt_input_field_names.
ls_input_field_name-fieldname = 'ZZFLD000003'.
insert ls_input_field_name into table ls_input_field-field_names.
ls_input_field-objectname = gc_object_name-customer_h.
ls_input_field-ref_guid = iv_guid.
ls_input_field-ref_kind = gc_object_kind-orderadm_h.
insert ls_input_field into table lt_input_fields.
CALL FUNCTION 'CRM_ORDER_MAINTAIN'
   EXPORTING
     it_customer_h   = lt_customer_h
   CHANGING
     ct_input_fields = lt_input_fields.
data: lt_cust_h   type crmt_customer_h_wrkt.
CALL FUNCTION 'CRM_ORDER_READ'
   EXPORTING
     it_header_guid = lt_guids
   IMPORTING
     et_customer_h  = lt_cust_h.
In my example, i saved LV_YOUR_VARIABLE into the field CRMD_CUSTOMER_H-ZZFLD000003 for the transaction guid LV_HEADER_GUID.
If you are using your own program, don't forget to call CRM_ORDER_SAVE and BAPI_TRANSACTION_COMMIT afterwards. Clearing of the buffers can be done via CRM_ORDER_INITIALIZE.
Hope it's not yet late.
Best Regards, Dima

Similar Messages

  • Linksys E1200 Router not saving Port Forwarding changes

    Hi!
    I am currently attempting to port forward on my Linksys E1200 Router and am not succeeding in saving my settings. I am attempting to open port 25565 though both Single Port Forwarding and Port Range Forwarding, and whenever I click the "save settings" button, I receive a full window message stating that my changes have been saved. Upon clicking this, I return to the previous screen whereupon my changes have been erased and my port has not been forwarded. Can anyone assist me with this? I've searched for hours through forums and tech help websites, but I can't find anyone else with this issue.
    Issue:
    Linksys E1200 Router not saving Port Forwarding changes.
    I have tried:
    -Restarting the Modem
    -Restarting the browser
    -Restarting the computer
    -Tried to Port Forward through both the Single and Ranged Port Forwarding

    Hi there. You can try another browser or a different computer. If it is the same thing, upgrade the firmware of the router. You can refer to this link on how to http://www6.nohold.net/Cisco2/ukp.aspx?vw=1&docid=0a6881b90224439b92c8d8f19ca42e5d_21511.xml&pid=80&...

  • Custom tabular form for multi-row not saving data

    Ok, before anyone asks, yes, I did read the how-to:-)
    I have a custom tabular form, which I did cause I need to use popups and the popups that you can use in the wizard tabular form does not display the text but rather the value underneath it.
    It returns data rather nicely and when I go and update values I can tell it is changing the fields underneath. I put a process in that will display the values in text fields on the form (for one row only) and I see them changing from what is already there and with the proper values.
    However, when I do that the data that is displayed then gets reverted back to what it was previous to the update but reports that the process was successful.
    I have also tried to insert but that is basically doing the same thing. Can anyone guide me.
    SQL to generate the tablular form...
    SELECT x.sak_release_db
    , x.sak_object
    , x.sak_release
    , x.sak_participant
    , x.sak_csr
    FROM
    (SELECT htmldb_item.hidden(1,sak_release_db) sak_release_db
    , htmldb_item.popupkey_from_query(2, sak_object,
    'SELECT b.nam_schema||''.''||a.nam_technical as table_name , b.sak_object
    FROM system_object a
    , database_table b
    WHERE a.sak_object = b.sak_object') as sak_object
    , htmldb_item.hidden(4,sak_release) sak_release
    , htmldb_item.popupkey_from_query(5, sak_participant,
    'SELECT nam_first || '' '' || nam_last as name, sak_participant FROM co_participant') sak_participant
    , htmldb_item.popupkey_from_query(7, sak_csr,
    'SELECT external_id|| ''-''||id_split as co, sak_csr FROM co') sak_csr
    FROM release_db_xref
    UNION ALL
    SELECT htmldb_item.hidden(1,NULL) sak_release_db
    , htmldb_item.popupkey_from_query(2, NULL,
    'SELECT b.nam_schema||''.''||a.nam_technical as table_name , b.sak_object
    FROM system_object a
    , database_table b
    WHERE a.sak_object = b.sak_object') as sak_object
    , htmldb_item.hidden(4,NULL) sak_release
    , htmldb_item.popupkey_from_query(5, NULL,
    'SELECT nam_first || '' '' || nam_last as name, sak_participant FROM co_participant') sak_participant
    , htmldb_item.popupkey_from_query(7, NULL,
    'SELECT external_id|| ''-''||id_split as co, sak_csr FROM co') sak_csr
    FROM dual) x
    Process to verify that I have the correct global fields: (Type: PL/SQL anonymous block, Process Point: On Submit - After Computations and Validations)
    begin
    :P3_2 := replace(htmldb_application.g_f02(1),'%'||'null%',NULL);
    :P3_5 := replace(htmldb_application.g_f05(1),'%'||'null%',NULL);
    :P3_7 := replace(htmldb_application.g_f07(1),'%'||'null%',NULL);
    end;
    Process to do the insert/update. Note, I hardcoded the value in the where clause but I was originally using the global value for g_f01 (i also tried putting a commit in there for fun) (Type: PL/SQL anonymous block, Process Point: On Submit - After Computations and Validations):
    -- Update the RELEASE_DB_XREF table
    FOR i IN 1..htmldb_application.g_f01.count
    LOOP
    IF htmldb_application.g_f01(i) IS NOT NULL THEN
    UPDATE release_db_xref
    SET sak_object = replace(htmldb_application.g_f02(i),'%'||'null%',NULL)
    , sak_participant = replace(htmldb_application.g_f05(i),'%'||'null%',NULL)
    , sak_csr = replace(htmldb_application.g_f07(i),'%'||'null%',NULL)
    WHERE sak_release_db = 22;
    ELSE
    IF htmldb_application.g_f02(i) IS NOT NULL THEN
    INSERT INTO release_db_xref
    (sak_object
    ,sak_release
    ,sak_participant
    ,sak_csr)
    VALUES
    (replace(htmldb_application.g_f02(i),'%'||'null%',NULL)
    ,htmldb_application.g_f04(i)
    ,replace(htmldb_application.g_f05(i),'%'||'null%',NULL)
    ,replace(htmldb_application.g_f07(i),'%'||'null%',NULL));
    END IF;
    END IF;
    END LOOP;

    Florian,
    Checkboxes are different from other HTML form items. When you have a text box for example, there's always a value send to the server when submitting. Even if that value is NULL. When you have a checkbox however, you only get the value if the checkbox is checked. It's not posted to the server when it is not checked. That's the general behavior of HTML forms and not specific to Oracle HTML DB.
    When working with tabular forms in HTML DB, you can access your form values using the htmldb_application.g_f0x arrays. Now if you have for example 10 rows in your form, then you'll get ten elements in your array for text boxes, select lists, etc. For checkboxes however you'll only get as many elements as you have rows checked. If I read your update and insert code correctly, you're trying to use the checkbox arrays the same way you use the arrays based on other item types. My recommendation would be to use Yes/No select lists instead of checkboxes or at least use select lists initially to get it working and then work on properly processing the checkboxes.
    Some general information about working with checkboxes in tabuar forms can be found here:
    http://www.oracle.com/technology/products/database/htmldb/howtos/checkbox.html#CHECKBOX_IN_REPORT
    Hope this helps,
    Marc

  • Appleworks Speadsheet Randomly not saving data

    I have a few small spreadsheets I've created that seem to be reverting and not retaining changes. Even save as created files are not saving. If I just add one line of data at a time and save it, it seems to retain it, but multiple lines are lost as if nothing was saved. It only seems to be happening in certain (small) files. Any suggestions appreciated.

    Hi Yvan
    Sorry to get back so late, but I think I've discovered the problem. I was just trying to save to my main hard drive. What I did was create a file link in Macjournal (an older version) to open the files in the same place I was keeping other data. I was using these links to open the files instead of the finder. Problem is, it seemed to be linking to an unchanged version of the file, so if I used the link to open it, the same unchanged file would open, not the one with the changes. Opening directly in the finder, instead of my own little idea solved the problem. Needless to say, I won't be using Macjournal as a file launcher anymore. Thanks.
    John Alden

  • ALV grid - not saving data withoutpressing 'Enter'.

    hi,
    I have an ALV grid (OO). I have written the code to update the final internal table in the method handle_data_changed.
    So If the user presses SAVE without hitting 'Enter' key, it is not saving the data .
    How can I handle this.
    Regards,
    Beena.

    hi,
    u can refresh it using method refresh_table_display.
    regards,
    janakiram.

  • Document not saving data

    Hi,
    as I already mentioned here:
    http://forums.adobe.com/thread/432254?tstart=0
      I hope somebody here will know. The form is not saving it´s data  in the process. I fill the form in the Assign task in the Workspace, but after submitting it, it´s empty.
    I am exporting the log, but the (correct from the schema) xml is empty (no data). Data connection is ok.
    Thanks for ANYsuggestions.
    Lukas

    Can you try to use a Document Form variable instead of a document variable.
    You can set the @document attribute  of the Document Form with your PDF using the following xPath /process_data/myDocForm/object/document = yourdocvar.
    Then use that Document Form varibale for you input and ouput data mapping.
    Jasmin

  • Adobe LiveCycle Form Not Saving Data

    I have designed dozens of Adobe LiveCycle forms and have extended rights (enable usage rights in adobe reader).  My problem is that sometimes the form is not saving the data for end users.  One of my end users even updated Adobe Reader, but still nothing is working and he is becoming increasingly frustrated.  Any other suggestions.

    Make sure all your fields have a binding set even if it is just their name.
    For instance, click on a field that isn't saving, in the Object palette, under the Binding tab make sure the Data Binding is set to Use Name.
    Hope that helps.
    Kyle

  • Not Saving data in some of the fields

    I am using Oracle Database 10g Express Edition Release 10.2.0.1.0 -
    Application Express 2.1.0.00.39.
    The form fields have Source Used: Always, replacing any existing value in session state.
    Source Type: Database Column
    I modified my form, I changed a form field from a Select List with Submit to a Text_Field(Always submit page when Enter pressed) this is when the problem started. I noticed that the data was not getting saved in the form or table.
    The session variables are not populated. It has a status of R.
    A while back, I discovered that the order of your form field and the display typeaffects the population of the field.
    If you have basic Select List with Submit text_field,Select List, etc. you are ok, but if you use Text_Field(Always submit page when Enter pressed) , then radiogroups, checkboxes , text_field, select list, etc. the fields will not get populated.
    What can I do to get a text_field to default to "No Witness' or accept the inputted value?
    I can get it to accept the Default, but if you modify it, then it does not save the changes.

    Hello,
    If you want the item to reflect the changes you made to its value, after submit, you need to use the “Only When …” option in the Item’s Source Used field. Otherwise, you need to retrieve the value from the database, using ARF. In all other cases it will be set to the default value (as the Source Used imply).
    Regards,
    Arie.

  • COPY function on a Multiprovider - - Not saving data

    Hi,
    Im facing a wierd problem.
    Im tryin to run the COPY function on a Multiprovider.
    I've selected 2 fields as 'To be Changed' : 0INFOPROV and 0VTYPE. and 1 KF (ZACCINS) to be copied.
    I tried to run the PF through a Planning Sequence in 'Execute with Trace  Mode'. The result of which is shown below for 1 block.
    Series  Data  ChangeInd  ValueType ZACCINS Infoprovider
    1      Before      Unchanged 10           2,000.00  ZHR_R10
    1      After         Unchanged 10           2,000.00 ZHR_R10
    2      After          New          20           2,000.00 ZHR_R20
    3      Reference Data           10           2,000.00 ZHR_R10 .
    So far so good.
    Now I clicked on Save Plan data. Now when I try to view the Contents of the Target Cube (ZHR_R20), it does not display any data.
    Just to cross check, I have created a query on the Multiprovider and tried to call the same PF through the Analyzer. On click of the button, the system displays the "NEW" rows that were generated. Now, on clicking 'SAVE AREA', the newly generated rows disappear!!
    Again to cross check, I have deleted old requests in RSA1 for ZHR_R20 and tried to execute the function again wherein a new request was generated. On changing the Request to Green(Status OK),the  Added Records and TRANSFERED RECORDS are shown as 5.( the number of records in Source cube which im trying to copy = 5 in ZHR_R10).
    Have also checked the Fact table of ZHR_R20  but could not find any entries in the table... Not sure where the problem could be !!
    Regards
    Shyam
    System info as follows:
    SAP_BW     700     0013     SAPKW70013     SAP NetWeaver BI 7.0

    Hi Ravi,
    The parameters are set propely:
    InfoProvider: Staff Costs Actual; Value Type for Reporting: Actual - From Change
    InfoProvider: Staff Costs Plan; Value Type for Reporting: Plan - To Change .
    Can you pls explain why do you think the function was not executed properly.. Iam absolutely clueless with this behaviour ... I have been tryin many number of times but in vain. The behaviour is the same. Each time I execute the PF, the Transferred records and Added records count keep on increasing .. but with no contents in the cube... .
    Rgds
    Shyam

  • Mail Not Saving Toolbar Configuration Changes

    After recovering my mail by deleting the Mail Data Envelope Index files, any changes that I make to Mail's Toolbar do not save. I can make the changes (add the printer icon, etc.). Close the Message Viewer window. Open it again. Then they are there in the Toolbar. But when I quit Mail and open it again, the toolbar is back to its default (and the sidebar items are collapsed even if I expanded them all). Does anyone know where the Toolbar preferences are saved? I tried deleting the Mail preferences file in the Container folder in my Library. That did not solve the problem.

    Please follow these directions to delete the Mail "sandbox" folders. In OS X 10.9 there are two sandboxes, while in earlier versions there is only one.
    Back up all data.
    Triple-click anywhere in the line below on this page to select it:
    ~/Library/Containers/com.apple.mail
    Right-click or control-click the highlighted line and select
    Services ▹ Reveal
    from the contextual menu.* A Finder window should open with a folder named "com.apple.mail" selected. If it does, move the selected folder — not just its contents — to the Desktop. Leave the Finder window open for now.
    Log out and log back in. Launch Mail and test. If the problem is resolved, you may have to recreate some of your Mail settings. You can then delete the folder you moved and close the Finder window. If you still have the problem, quit Mail again and put the folder back where it was, overwriting the one that may have been created in its place. Repeat with this line:
    ~/Library/Containers/com.apple.MailServiceAgent
    Caution: If you change any of the contents of the sandbox, but leave the folder itself in place, Mail may crash or not launch at all. Deleting the whole sandbox will cause it to be rebuilt automatically.
    *If you don't see the contextual menu item, copy the selected text to the Clipboard by pressing the key combination  command-C. In the Finder, select
    Go ▹ Go to Folder...
    from the menu bar, paste into the box that opens (command-V). You won't see what you pasted because a line break is included. Press return.

  • HT1414 i have just upgraded to iOS7 and when pdating my apps some have not saved data and others have. Why would this be and how do I get the data back?

    I have just upgraded to iOS7 and when I open my apps some have data saved and some (Eden, Survivalcraft) do not. My son is distraught that all his hard work has gone so does anyone know why this would be and how do I fix it please?

    Nevermind.  Problem solved.  They were there.  I just couldn't see them.

  • Adobe form not saving data.

    hi Experts,
    I am facing strange problems with Adobe forms.
    I am working on both Offline and online adobe forms.
    adobe form which i make does not allow to save data.
    I am using the Adobe liveCycle designer 7.1.
    The Adobe reader version is 7.08
    and service pack is SPS 11.
    I have used both the tutorials for offline and online adobe forms.
    Online Problem :-
    The project for online works fine and it also allows to save data(when i save the form on my PC).
    But when i create a new form on my machine it does not allow to save data.
    Really confuse what the problem is.
    I have also tried this.
    Copeid the XDP file from the Online tutorial project into my project
    if i use this work around the the problem is resolved. But i am no able to understand why the XDP CREATED on my machine does not work.
    Offline problem:-
    In this case i am not able to save data in the form at all.
    As the PDF created itself not allow to save data.
    Please help.
    Points would be awarded to helpful answers.
    Regards,
    Sanjyoti.

    Hi Satya & sanjyoti,
    I am facing a pecular problem in using Adobe forms.
    I am able to pass data from webdynpo application, to the Interactive form(using mappings, as mentioned by satya).
    But for the same form & WD application, i am not able to pass data from the Interactive Form, back to the WD application.
    My scenario is like this:
    I need to show a form, with some prefilled data, such as date, userID, etc. I populate the node in my WD application, & then call the form.
    The form displays the above prefilled data. Now the user has to fill the remaining fields & click on submit(Submit-to-sap button). The onsubmit property of the Interactive form is mapped to a onaction event, where WD tries to read the data entered by the user.
    The problem is that on clicking of the submit button in the form, the event is not getting called.
    If i use a button in the WD view itself, then the action gets called, but there is no data. In short, the data is NOT getting passed from Interactive form to WD application.
    Can you please help me out with this?
    Thanks,
    Hanoz

  • Crystal Reports 8.5 not saving report criteria changes

    I am a relatively new Crystal user, but have noticed that my version 8.5 doesn't always save changes to the report criteria that are made in the formula editor.  The program says that it is saving the changes, the when the report is closed and reopened the changes are no longer in place.
    Has anyone else had this problem?

    I am working with record selection criteria.  I am in the formula editor and add new criteria, check the additions with the "x-2" button and then click the icon to save and exit.
    The changes remain in effect as long as the form is open, but don't save upon closing the form.  I've even tried "save as" to make sure that the form saves.  The form saves, but the changes to the record selection criteria do not.

  • How can I use java.util.Date and change display format.

    Hello All,
    I want to use java.util.Date in View Context and in Custom Control Context of Web dynpro java. When i mapped of a Input Field to the java.util.Date then message shows that its not supported. Plz suggest me how to handle Date with different formats ??

    If you always want the user to enter the date in dd/MM/yyyy, you can do the following.
    Goto Local Dictonary -> Simple types in your project and create a type known as "InputDate" (or whatever you feel) of built-in type 'Date'.
    Now specifiy its format in the 'Representation' tab as "dd/MM/yyyy" (case-senstive).
    Now declare a value attribute say "inputdate" in your context with this type and bind the inputfield to this context value attribute.
    This will solve your problem.
    But if you want the user to input date depending on the region he belongs, change the default locale date in Control Panel->Regional and Language Options->Change to English(UK) -> Customize -> Date Tab -> Sort Date Format to dd/MM/yyyy.
    Now clear the cache, delete temporary files and restart the machine. This should solve the problem.

  • Not saving preferences after change in music folder

    I've successfully moved the Itunes location (folder) before on my laptop, changing the place where music was stored, but I had major problems getting that IBM Thinkpad to work with my brand new Ipod. So I brought the external hard drive back down to my old PC. So here's what happens. I follow all the directions for making that external drive my Itunes folder location (Edit-Preferences-Advanced-Change folder, etc) but then the next time I start up the program, it has reverted back to C:.../mymusic/itunes. Very frustrating and I have no idea why. It didn't happen on the other computer.
    A similar problem is that on the laptop, I did not have to keep signing in to the Itunes store, now I do. Again, Itunes seems to forget every change from it's last session. Any ideas
      Windows XP  
      Windows XP  

    I've successfully moved the Itunes location (folder) before on my laptop, changing the place where music was stored, but I had major problems getting that IBM Thinkpad to work with my brand new Ipod. So I brought the external hard drive back down to my old PC. So here's what happens. I follow all the directions for making that external drive my Itunes folder location (Edit-Preferences-Advanced-Change folder, etc) but then the next time I start up the program, it has reverted back to C:.../mymusic/itunes. Very frustrating and I have no idea why. It didn't happen on the other computer.
    A similar problem is that on the laptop, I did not have to keep signing in to the Itunes store, now I do. Again, Itunes seems to forget every change from it's last session. Any ideas
      Windows XP  
      Windows XP  

Maybe you are looking for

  • Connecting Mitel Ip phone to BT Hub 3?

    Use Mitel phone as a teleworker. Switched to BT infinity and hub 3 this morning. Everything else is working except IP phone. BT engineer has connected IP phone via ethernet to port. Have tried connecting phone directly to router and not via hub and g

  • Length of Applecare Repair

    I sent my pb into Apple on the 6th of Sept. and they are waiting on a part. This pb has been in 2 other times and always back in a couple of days. What is a reasonable length of time to wait? I am a commercial photographer and I use it in my location

  • Difference in ABST2 in non leading ledger for 2nd LC AA and 2nd LC GL

    Hi, While executing ABST2 there is difference in our non leading ledger ,we have recently created new dep. area 33 which updates the values in 2nd LC AA for non leading ledger but value in  2nd LC GL is different from what we have in Asset for non le

  • I lost my ipad, how to do the report on apple offical website?

    i lost my ipad2 recently, that taker very smart, he use offline, and i can't found my IPAD from me.com so i decide to do some report on apple offical web, make sure that guy can not fix it in every place. thank you

  • GUI Freezes

    I want the hex code of a file to be generated on button press from GUI. Right now, the code works fine for small files but for large files, the GUI freezes. class SW extends SwingWorker<String,Void>{      File finsw;      public String doInBackground