How to make an assignment block with valuenode editable?

Hello All,
I have read the blog [How to display a z-table in an assignment block|http://wiki.sdn.sap.com/wiki/display/CRM/Howtodisplayaz-tableinanassignmentblock]. This all went fine. Now I have a question if it is possible to make this table editable and if so, how?
The problem is, it is valuenode for a custom z-table, without a GUID as key. (just partner number) So making a Simple Object of my z-table doesn't work, because the default class works with GUID as key. But I also can't seem to find if it is possible to make a valuenode editable.
I also read these blogs, but they didn't do the trick for me either:
[CRM Web UI Technical - Creating Table View In Web UI|http://wiki.sdn.sap.com/wiki/display/sandbox/CRMWebUITechnical-CreatingTableViewInWebUI]
[Create a Z BOL Object Part 1|http://wiki.sdn.sap.com/wiki/display/sandbox/CRMWebUITechnical-CreatingTableViewInWebUI]
I am silently hoping that there is an easy way of making my current assignment block editable by implementing a simple Save method or something similar. I do not prefer to have to recreate my view and stuff.
Anyone an idea?
Regards,
Martijn.

Hi Martijn,
Try this code..
If the main entity(assuming one order entity) is editable, set the view to editable.
DATA:      lr_entity       TYPE REF TO cl_crm_bol_entity.
  lr_entity ?= me->typed_context->btadminh->collection_wrapper->get_current( ).
  CHECK lr_entity IS BOUND.
  if lr_entity->lock( ) = abap_true.
    *me->view_group_context->set_view_editable( me ).*
  endif.
Check this therad for setting the view context.
Edit the order
Hope this helps..
Cheers,
Sumit Mittal

Similar Messages

  • How to make an assignment block in an overview page read only

    Hi Experts,
    We have the following requirement:
    In Campaign overview page we need to make the Partner and Product assignment block read only.
    Can this be achieved through coding or through configuration?
    Please give detail steps for the appropriate approach.
    Thanks in advance.
    Regards,
    Sayan

    Hi Leon,
    Is there any authorization group which can be customized to take care of this situation?
    For Product Assignment block in DO_PREPARE_OUTPUT method of class CL_CPGOE_AB_OVELPRODUCTS_IMPL (Component : CPGOE_ABLOCKS :: View : OVELProducts) it is checking some authority. Any pointers where those authorities are maintained will be helpful.
    Creating a new configuration is not helping as the views are 'Table View'.
    We are looking for an approach which will avoid coding or involve minimum coding.
    Regards,
    Sayan

  • How to import an assignment block into a word document

    hi all,
              how to import an assignment block into a word document ,actually we an option called import to Excel,
            but i don't know make it for Word document.....
    Regards
    Sunil Kumar SA

    Use the Media Browser in Word, which you can access via the Ribbon (Insert -> Picture) or via the Insert menu.
    Regards
    TD

  • How to make an interactive block ALV

    Hi,
       I am new to the field of ABAP and have recently started working on ALV's. My problem is that i do not know how to make an interactive block ALV. I have implemented this functionality with the simple ALV but I am not getting the same for block ALV. Anyone who has worked on the same or has any idea please help me.
    Regards.
    Alok Bhardwaj

    Hi jester526,
    You'll need Acrobat to create links in a PDF file. Please see https://acrobatusers.com/tutorials/creating-and-editing-links for instructions.
    Best,
    Sara

  • How to make the assignment of a AW variable perminent(Java API+DMLcommands)

    hi,
    i want to modify the analytical workspace.
    i called the dml commmands from java AW api.
    the program is working fine.but i can not see the result.
    i assigned a AW variable with some data by useing DML command
    but after closing the program i unable to get the assigned value from the variable
    i checked by using AW WORK SHEET.
    any one can help me how to make that assignment perminent
    my code is like this
    AWconnection.executeCommand("v_variable=value");

    Hi,
    I have just rephrased the question to make it clear.
    I am working with Jdeveloper and BI beans. We are using Java Analytical workspace API for connecting and saving the user input as Analytical workspace Variable (which will be later used for running the AW Programs). The part of the code looks like below.
    awConn.executeCommand("V_NII_SIM=50");
    awConn.executeCommand("update");
    awConn.executeCommand("commit");
    Despite doing the UPDATE and COMMIT to the analytic workspace, the change is not getting appplied to the AW. i.e After the execution of this program, when I checked the value of the variable V_NII_SIM in the OLAP worksheet (of AWM), then it is not reflecting the new value (50).
    OLAP> show V_NII_SIM
    100.0
    The above command in OLAP worksheet returns the old value of 100 but not the one set by my program.
    Would appreciate your help on this.

  • How to make Dynamically Shortened Text With "Show More"

    Hi there! i want to know how to make dynamically shortened text with show more or read more in my website using HTML 5 pages  or ASP.NET ?
    example like these paragraphs 
    Lorem Ipsum är en utfyllnadstext från tryck- och förlagsindustrin. Lorem ipsum har varit standard ända sedan 1500-talet, när en okänd boksättare tog att antal bokstäver och blandade dem för att göra ett provexemplar av en bok. Lorem ipsum har inte bara överlevt fem århundraden, utan även övergången till elektronisk typografi utan större förändringar. Det blev allmänt känt på 1960-talet i samband med lanseringen av Letraset-ark med avsnitt av Lorem Ipsum, och senare med mjukvaror som Aldus PageMaker.
    Det är ett välkänt faktum att läsare distraheras av läsbar text på en sida när man skall studera layouten. Poängen med Lorem Ipsum är att det ger ett normalt ordflöde, till skillnad från "Text här, Text här", och ger intryck av att vara läsbar text. Många publiseringprogram och webbutvecklare använder Lorem Ipsum som test-text, och en sökning efter "Lorem Ipsum" avslöjar många webbsidor under uteckling. Olika versioner har dykt upp under åren, ibland av olyckshändelse, ibland med flit (mer eller mindre humoristiska).
    I motsättning till vad många tror, är inte Lorem Ipsum slumvisa ord. Det har sina rötter i ett stycke klassiskt litteratur på latin från 45 år före år 0, och är alltså över 2000 år gammalt. Richard McClintock, en professor i latin på Hampden-Sydney College i Virginia, översatte ett av de mer ovanliga orden, consectetur, från ett stycke Lorem Ipsum och fann dess ursprung genom att studera användningen av dessa ord i klassisk litteratur. Lorem Ipsum kommer från styckena 1.10.32 och 1.10.33 av "de Finibus Bonorum et Malorum" (Ytterligheterna av ont och gott) av Cicero, skriven 45 före år 0. Boken är en avhandling i teorier om etik, och var väldigt populär under renäsanssen. Den inledande meningen i Lorem Ipsum, "Lorem Ipsum dolor sit amet...", kommer från stycke 1.10.32.
    Den ursprungliga Lorem Ipsum-texten från 1500-talet är återgiven nedan för de intresserade. Styckena 1.10.32 och 1.10.33 från "de Finibus Bonorum et Malorum" av Cicero hittar du också i deras originala form, åtföljda av de engelska översättningarna av H. Rackham från 1914.

    Moved to the main Dreamweaver support forum.
    There are several ways you could approach this. Here's one you might try:
    Give the first paragraph an ID, such as "first", and wrap the paragraphs you want to hide in a <div> with another ID, such as "more". Then add the following block of JavaScript just before the closing </body> tag of the page:
    <script>
    var first = document.getElementById('first'),
         more = document.getElementById('more'),
         trigger = document.createElement('span');
    trigger.id = 'trigger';
    trigger.innerHTML = 'Show less';
    first.appendChild(trigger);
    function toggleDiv() {
      var state = more.className,
           text = trigger.innerHTML;
      more.className = (state == 'open') ? 'closed' : 'open';
      trigger.innerHTML = (text == 'Show more') ? 'Show less' : 'Show more';
    toggleDiv();
    if (trigger.addEventListener) {
        trigger.addEventListener('click', toggleDiv, false);
    } else if (trigger.attachEvent) {
      trigger.attachEvent('onclick', toggleDiv);
    } else {
      trigger.onclick = toggleDiv;
    </script>
    This gets references to the "first" paragraph and the "more" <div>. It also creates a <span> with the ID "trigger" that's appended to the "first" paragraph. The rest of the script defines a function called toggleDiv(), which toggles the "more" <div> open and closed, and changes the text in the "trigger" <span>.
    You also need to create the following style rules for the various elements:
    <style>
    #trigger {
        text-decoration: underline;
        color: blue;
        cursor: pointer;
    #more {
        transition: ease-out .7s;
        overflow: hidden;
    #more p:first-child {
        margin-top: 0;
    #more.closed {
        height: 0;
        -webkit-transform: translateY(-600px);
        transform: translateY(-600px);
    #more.open {
        -webkit-transform: translateY(0);
        transform: translateY(0);
        max-height: 600px;
    #more + p {
        margin-top: 0;
    </style>
    This solution hides the text and creates the "trigger" <span> only if JavaScript is enabled in the browser. It should work in all browsers, including Internet Explorer 8 and earlier.

  • How to make SAP B1 connection with Windows Sharepoint Service 3.0

    how to make SAP B1 connection with Windows Sharepoint Service 3.0 through asp.net web part code.. I get the security error when i run that web part......
    public bool ConnectToCompany()
                oCompany = new SAPbobsCOM.Company();
                oCompany.Server = "192.168.1.58";
                oCompany.DbServerType = SAPbobsCOM.BoDataServerTypes.dst_MSSQL2005;
                oCompany.CompanyDB = "SBODemoUS";
                oCompany.DbUserName = "sa";
                oCompany.DbPassword = "abc";
                //oCompany.UseTrusted = true;
                oCompany.UserName = "manager";
                oCompany.Password = "manager";
                oCompany.language = SAPbobsCOM.BoSuppLangs.ln_English;
                oCompany.LicenseServer = "192.168.1.58:30000";
                int i = oCompany.Connect();
                if (i != 0)
                    return false;
                return true;
    protected override void RenderContents(HtmlTextWriter writer)
                if (conn.ConnectToCompany() == true)
                    writer.Write("Hello" + this.Context.User.Identity.Name);
    Edited by: bikalg on Nov 28, 2010 9:43 AM

    Hi.......
    Welcome to SAP Business One Forum.....
    Unfortunately this is the wrong forum you posted here.
    I would suggest you post it in SDK or System Administration Forum and definitely you get the solution and close this thread from here......
    Regards,
    Rahul

  • How to add an Assignment Block to Activity

    Hi Gurus,
    How to add an Assignment Block to Activity?
    Thanks & Regards
    Rohan

    Hi Kkp
    Goto the component/view: BT126H_APPT/ApptOVViewset to place the attachment assignment block on the screen.
    Click on the Configuration tab.
    Click on change.
    Add them from Available Assignment Blocks to Displayed Assignment Blocks.
    Best Regards,
    Shiven

  • How to make a PDF form with expanding tabel or expanding fields, like in Word.

    How to make a PDF form with expanding tabel or expanding fields, like in Word.

    This is currently not possible in Formscentral. It is something we are working on for the future. Please stay tuned.
    Andrew Yarborough

  • Is their any tutorials on how to make a navigation bar with drop downs in Dreamweaver CC now ?

    Is their any tutorials on how to make a navigation bar with drop downs in Dreamweaver CC now that they do not have the spry option?

    bbull2005 wrote:
    Preran, why wouldn't Dreamweaver include it's own menu/navigation bar widget?
    I can't answer on Preran's or Adobe's behalf, but I think you'll find at least part of the answer here: http://wiki.jqueryui.com/w/page/38666403/Menubar
    Adobe decided to discontinue development of Spry in August last year, and Dreamweaver CC made the switch to using jQuery UI widgets and effects. One reason for dropping Spry was that it failed to work correctly in some browsers. Judging from the fact that the jQuery UI menubar is now "on ice", creating a flyout menu that works reliably across all devices is proving more difficult than originally envisaged.
    Because all other widgets in Dreamweaver CC use jQuery UI, it's a reasonable assumption that Adobe hoped the jQuery UI menubar would be ready in time, but it wasn't.

  • How to make the wifi connection with Ipad in china since it requires user's name and password.

    How to make the wifi connection with Ipad in china since it requires user's name and password just like the dialed-up?

    The same way you would connect to a secure wifi network in any other country. Supply the username and password when prompted.

  • HT4642 ios numbers:how to make cell height variable with auto line brake setting ?

    ipad numbers; How to make cell height variable with auto line break setting?

    That's strange. I responded earlier and the whole message got trashed. Hence the test post before retyping the entire thing again.
    Thanks for the reply.
    The video clip is a single screen capture video clip. This is what I've found by playing around with this more.
    The original clip resolution is greater than 640x480. If I use QT Pro to convert the original clip to 640x480 and then use either Flip4Mac or PE7, then the resolution looks good.
    Just trying to figure out if should keep all workflow on the MacOS side. There are several different version of Flip4Mac. $49 gives me 640x480, but if I ever want to make it slightly larger then I would need to go with the $99 or HD version.
    I also tried to export to AVI with QT Pro and the import with Windows MovieMaker but it didn't work really good. I liked the simplicity (since PE7 hogs a lot of resources especially through VMWare).

  • My 3gs wont restore after ios 5 update. I have tried firmware restore and restore from backup, neither works. All I get is "iphone restore failed because backup session failed" Any ideas on how to make a successful restore with this ios 5 update?

    My 3gs wont restore after ios 5 update. I have tried firmware restore and restore from backup, neither works. All I get is "iphone restore failed because backup session failed" Any ideas on how to make a successful restore with this ios 5 update?

    I was having the same problem, I backed up my phone and then updated to iOS 5 and then it kept telling me it could not restore from my backup as it had failed.  After reading a bunch of forums and posts and trying everything, I did manage to get it to work.  I had tried the Time zone, creating a new computer user account, disabling anti-virus, etc.
    It took a combination of things, one of which was disabling the anti-virus completely and copying the contents of the backup folder to my desktop and then deleting everything in the backup folder.  Then I rebooted the PC, entirely disabled the anti-virus, copied the one backup I wanted to restore from the desktop to the backup folder and then trying to restore.  Low and behold the phone said restoring from backup and I am back in business, so when in doubt, trying combining some of the fixes together.

  • How to make some fields in ALV tree editable

    Hello All,
    Can any one tell me how to make some fields in ALV tree editable.
    If possible please post some code.
    Regards,
    Lisa.

    Hi Lisa,
    I want to make 3 fields in the ALV tree editable and update the saved values in ztable.
    I tried making the wa_fieldcat-edit = 'X' But in vain.
    Also i made the layout fields  wa_layout-edit = 'X'  and wa_layout-edit_mode = 'X'.
    But still the alv tree field appears as display.
    As you have mentioned in the post as answered, So please guide me to make the field editable.
    I am using oops method.
    Please provide me code if any.
    Thanks & Regards,
    Mozila

  • How to make a filed mandatory of an editable ALV

    Hi Guru,
    Pls tell me how to make a filed mandatory of an editable ALV so that while a new records is inserted the mandatory fields are filled.

    hi,
    You can make fields as mandatory fields using data changed event.
    validate the entered or blank entries of a column in data changed event and call method 'add_protocol_entry' to raise errors.
    Check the program : BCALV_EDIT_03 & BCALV_EDIT_04for more details.
    Refer to this link....
    about field in alv
    obligatory field editable in ALV

Maybe you are looking for

  • It wont let me instal itunes something rong with Quiktime

    when i try to instal itunes and it gets to Quicktime it saids THE INSTALATION OF QUICKTIME DID NO GET COMPLETED ITUNES REQUIRES QUICKTIME then it just shuts down the instal place help me ty ipod nano 2nd generation Windows XP

  • Partial issue in production order

    Hi Experts, Can u Pls help me know how to make partial issue and partial receipt Scenario : Production order : 100 Issue : 500 Receipt : 300 Rejected : 200 Expecting your reply . Karthi

  • Have hanging program, all web sites do not load,no error message . help

    I log onto Firefox. I select a website from my bookmarks.Nothing happens. it just freezes. no website come up. there are no error messages. Nothing. I have no problem loading the websites on IE. All websites load on IE, no problem. Please help me res

  • Please confirm if ISE device would be included in ccie security version 4

                       Hi, as i have started training on CCIE security version 4, with Networkers Zone, the only istitute for ISE training in India (http://networkerszone.com/), i just wanted to confirm what is the ISE role in version 4 or if it would be

  • IPhone 4 got wet; keeps trying to turn itself off.

    I accidently got water all over my iPhone and i dried it out with rice and a blow drier. Everything works except the power/lock button is malfunctioning. It randomly locks and the screen lights up and the shut-off slide screen keeps appearing. How ca