WDA Component- View- Context - Default Enhancement

Hi,
Currently Web Dynpro Component HRRCF_C_RELEASE_PROF_UIu2019s profile status Radio Button defaults to u2018Lock Profileu2019. I need to enhance the same Web Dynpro Component HRRCF_C_RELEASE_PROF_UIu2019s profile status Radio Button defaults to u2018Release Profileu2019.
Contextu2019s attribute u2018Profile Statusu2019 points to Domain u2018RCF_PROFILE_STATUSu2019 which has the value range u20180 u2013 Lockedu2019 and u20182 u2013 Releasedu2019. Since u20180u2019 is first entry, WDC defaults to u20180u2019. I need to set u2018Profile Statusu2019 radio button to u20182 u2013 Releasedu2019.
It seems I canu2019t enhance the method u2018WDDOMODIFYVIEWu2019 of view u2018VW_RELEASE_PROFu2019.
Please let me know, how to achieve my requirement with in SAP enhancement option. Do let me know, if you need more details.
...Naddy.

Hi Naddy,
You could possibly go thru the following [WDP ABAP documentation|http://help.sap.com/saphelp_nw04s/helpdata/en/77/3545415ea6f523e10000000a155106/frameset.htm].
Go to the Advanced Concepts section -> Modification free enhancements.
Hope this helps
Regards
Wenonah

Similar Messages

  • How to print WDA component view?

    Hello Experts,
    I need to print a view of a WD Component view.
    Can you please suggest any ways of doing the same.
    Below attached is the view screenshot which is needed to printed.
    The requirement is to have an additional button on the component itself, which will popup a window which would contain a PDF format of the view and some additional info regarding the same.
    Please suggest some way to tackle this.
    Thanks in advance.
    Regards,
    Sanket.

    Hi Sanket,
    Yes, you display that particular page in a pop up window.
    Create a button "Print" in pop up window and on action, go ahead with either of below option
    Option 1: print whole page using print application option ( here no need of designing it, it just prints visible area of current page, note it also prints buttons as well )
    Logic:
    data:
    l_api_componentcontroller type ref to if_wd_component,
    l_appl type ref to if_wd_application.
      l_api_componentcontroller = wd_comp_controller->wd_get_api( ).
    l_appl = l_api_componentcontroller->get_application( ).
    l_appl->print_page( ).
    Option 2: Design adobe form and call the adobe form on action of PRINT button
    Regards,
    Rama

  • Create a new view in a enhance component

    Hi All,
              I want to create a new view for sales order and quatation in a component BP_factsheet.When i craete new view ,it is asking about some value like model node, bol entity, higher level, bol realtion.after that is is asking context node ,bsp application ,custome controller and view type.How can i get these value .when i create a new view then have to add these view in run time repositry under a window or not?
    Thanks in advance....
    Vishwas

    Hello Vishwas,
    You might be interested in knowing how to customise the new UI to add a new view using the enhancement concept.
    Please refer to the published document on the service marketplace:
    http://help.sap.com/saphelp_crm60/helpdata/en/1a/023d63b8387c4a8dfea6592f3a23a7/frameset.htm
    refers to the link at
    service.sap.com/okp
    Inside this go to:
    SAP CRM 2006s: Learning Map for Technology Consultants
    wherein you can find the cookbook to perform similar operation in detail.
    SAP CRM UI Cookbook
    I hope this helps.

  • Read a View Context's node's element and assign from Component controller

    Hello Experts,
    I'm new to JAVA WD.
    Here is my scenario.
    I have to use an Adobe form in a WDJ. The input parameters and the output parameters of the DC are defined in a method in the Interface Controller method.
    The context of the Component Controller has the following structure
    Context
    ---StartDate
    ---EndDate
    ---AbsenceType
    Then the mapping between the Component controller and the interface controller is done so that the Interface controller also has the context structure as
    Context
    ---StartDate
    ---EndDate
    ---AbsenceType
    So now the interface controller and the component controller are bounded correctly.
    Now I bind the view also with the Component controller as below.
    Context
    ---StartDate
    ---EndDate
    ---AbsenceType
    But since i need to use an Adobe interactive form inside this view, the datasource for the form cannot be the root context node but some other node. So I replicated the same structure in the view context so as to make the fields visible in the Adobe form context. Now the context looks as below.
    Context
    ---StartDate
    ---EndDate
    ---AbsenceType
    ---DATA_NODE
    -----StartDate
    -----EndDate
    -----AbsenceType
    Now my question is, how do i map the result from the Adobe form into the context of the view??
    What code should i write and where should i write to achieve this?
    I need to do the following. But dont know how to write the code for this.
    Context.StartDate = Context.DATA_NODE.StartDate
    Context.EndDate = Context.DATA_NODE.StartDate
    Context.AbsenceType= Context.DATA_NODE.AbsenceType
    Please help!
    Any help will be greatly appreciated.
    Thanks,
    Sam

    Hello Nikhil,
    I'm stuck with another small issue.
    Let me first explain what I'm trying to do.
    I have a view with the context structure as follows
    Context
    ---DATA_NODE (Node)
    ----Data1
    ----Data2
    ---Data1
    ---Data2
    All i need to do is, at the start of the view, i need to move the data from
    Context.Data1=>Context.DATA_NODE.Data1 and
    Context.Data2=>Context.DATA_NODE.Data2
    Also, at the View Submit button click, I need to move the data from
    Context.DATA_NODE.Data1 => Context.Data1 and
    Context.DATA_NODE.Data2 => Context.Data2
    (I managed to do this submit button click by calling an action->method and wrote the code as you gave earlier)
    wdContext.currentContextElement().setData1(wdContext.currentData_NodeElement().getData1());
    wdContext.currentContextElement().setData2(wdContext.currentData_NodeElement().getData2());
    But I wrote at wdInit() for the view the code in the reverse way, but the values are not getting passed to the Data_Node and hence its not defaulting with the values from the elements of the context.
    This is what I wrote.
    wdContext.currentData_NodeElement().setData1(wdContext.currentContextElement().getData1());
    wdContext.currentData_NodeElement().setData2(wdContext.currentContextElement().getData2());
    Please let me know if I'm doing something wrong here.
    Appreciate your help in advance!
    Cheers,
    Sam

  • Mapping from component controller context and view context

    Hi to all experts.
    im trying to create my first webdynpro . Im stuck up here please help me .... How to map the node from component controller context and view context i have searched the forum....got the answers as Drag and Drop...But it is not working ....

    Hi
    Check out this links and check saptechnical site
    WDA in SAP Help
    http://help.sap.com/saphelp_nw2004s/helpdata/en/7c/3545415ea6f523e10000000a155106/frameset.htm
    Web Dynpro for ABAP in SDN
    https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/webcontent/uuid/512040e1-0901-0010-769c-c238c6ca35d9 [original link is broken]
    Developing ABAP Applications Using Web Dynpro
    http://help.sap.com/saphelp_nw2004s/helpdata/en/42/d41b25d2216babe10000000a1553f6/frameset.htm
    Web Dynpro ABAP: Development in Detail
    http://help.sap.com/saphelp_nw2004s/helpdata/en/03/0048413e466e24e10000000a155106/frameset.htm
    WDA Sample programs & tutorials
    https://www.sdn.sap.com/irj/sdn/developerareas/webdynpro?rid=/library/uuid/49f2ea90-0201-0010-ce8e-de18b94aee2d
    Web Dynpro ABAP Demonstration Videos
    /people/thomas.jung/blog/2006/06/20/web-dynpro-abap-demonstration-videos
    Web Dynpro ABAP Wiki's
    https://www.sdn.sap.com/irj/scn/wiki?path=/display/wdabap/main&
    New to Webdynpro
    Thanks,
    Tulasi Palnati

  • Mapping one node in a view context to many nodes in the component controlle

    Hi guys,
    I need to map an element (attribute) of a node in the View Context to an attribute of multi nodes of the same type:
    Context View:
    customer_no
          |
          | -> KUNNR
    Component Controller Context having two nodes:
      - Node1
         RFC1
            |
            |->KUNNR
      - Node2
          RFC2
             |
             |->KUNNR
    Above I need to map the (KUNNR) in customer_no node to KUNNR in the RFC1 RFC2 before i execute the two RFCs services.
    Note:
    if this is not possible would you mention another solution.
    Thanks,

    Hi,
       As per MVC you cannot map context from view controller to component controller.Mapping can happen from component
    controller to view controller.
    You cannot create mapping for context attributes. You can map nodes if both source node and destination node both has same structure and same number of attributes. If they dont contain same number of attributes the extra attributes from the source node gets copied to the destination node.
    In your case before the RFC execution you can read the value of attribute Kunnr from view and set it the RFC attribute Kunnr before the Function module execution.
    Regards
    Bala Baskaran.S

  • How to delete a view from a enhanced component?

    I wish to know the possibility of deleting a view from a enhanced component.
    I have two components IUICMD & IUICMRD. I have enhanced 4 views in the first component IUICMD using enhancement set ZCRM_ENHSET. There is no problem with that. But when i try to use the same enhancement set ZCRM_ENHSET for enhancing the second component IUICMRD, it's enhanceable in enhancement set. But 2 views IUICRMD/Meterreading & IUICMRD/MainVS is also copied to first component and available as enhanceable views in First component.
    I want to delete those views from the first component. Let me know How to delete a view from a enhanced component?
    Regards,
    Prabahar

    Hi Raju,
    If you do not need those enhancment views in any of the components ( ie IUICMD & IUICMRD ) , then open the BSP application in SE80 , under controller, there will be files with extension .do as yourviewname.do ...delete those !! These will not dele the Z classes....but just deletes their presence from the BSP...
    I would suggest following approch :
    1) go to SM34 , open BSPWDVC_CMP_EXT....Select you enhancement set and click on enhancement defination in leftside panel.
    2) now select the IUICMRD and CLICK ON CONTROLLER SUBSTITUTION...
    3) now you will see all the enhancement available for that component...Delete the entries for those two views from there...
    This is just deleting the entries...this does not delete any objects from the system.
    4)Now click on Back arrow, and delete the entry for IUICMRD...save.
    5) Now open BSPWD_CMP_WD for IUICMRD...you will get the enhance component button... You can now freshly enhance this component..
    6) We did not touch to the entries for IUICMD  in the BSPWDVC_CMP_EXT...So now if you open the component IUICMD in workbench with you enhancement set...you will see all the enhancement..including those two views which you wanted to delete from IUICMRD.
    7) If you want to delete the enhancement for these views...then right click on the enhance views and select Delete enhancement...You will get a popup listing IMPL, CTXT and CN classes, select all Z entries in the pop up and those all will be deleted physically from the system...and thus view enhancement will be rolled back...
    All the best !!
    Thanks & Regards,
    Suchita
    If you are not sure, you can create copy of IMPL, CTXT and CN classes in se80 and then proceed for deletion..You can also make copy of entire BSP in se 80 before deletion...

  • Enhance the Standard WDA component method

    Hi All,
    Can we write the code in a method of the standard WDA component. I know that we can use post-exit but it will be triggered after the method. My requirement is lying in between the standard method.
    Please suggest if we can write the code mid of the standard method.
    Thanks
    Sanket sethi

    Done. Through overwrite method....

  • GOS toolbar in SAP WDA component

    Hi ,
    I have a requirement to add GOS toolbar in a web dynpro ABAP component. I am able to display the toolbar in a report and also tried using the method 'DISPLAY_TOOLBOX' of the class 'CL_GOS_MANAGER'. But I am unable to use the same in WDA views.
    Could anyone please help me out with this requirement.
    Thanks,
    Divya Posanpally

    Hi Divya and Kenneth,
    I had similar requirements and in my case the following documents were very helpfully for me:
    Attach files to GOS with Save, Retrieve, Delete functionality in SAP Web Dynpro ABAP - Part 1
    Attach files to GOS with Save, Retrieve, Delete functionality in SAP Web Dynpro ABAP - Part 2
    I modified LOAD_ATTACHMENT_CONTENTS method to retrieve content from 'Store Business Document' created using function:  ARCHIVOBJECT_GET_TABLE:
    DATA: LENGTH TYPE SAPB-LENGTH,
             BINLENGTH TYPE SAPB-LENGTH,
             ARCHIVOBJECT TYPE TABLE OF DOCS,
             BINARCHIVOBJECT TYPE TABLE OF TBL1024.
         CALL FUNCTION 'ARCHIVOBJECT_GET_TABLE'
              EXPORTING
                   ARCHIV_ID                = 'ZT'
                   DOCUMENT_TYPE            = lv_doc_type
                   ARCHIV_DOC_ID            = is_atta-arc_doc_id
              IMPORTING
                   LENGTH                   = LENGTH
                   BINLENGTH                = BINLENGTH
              TABLES
                   ARCHIVOBJECT             = ARCHIVOBJECT
                   BINARCHIVOBJECT          = BINARCHIVOBJECT
              EXCEPTIONS
                   ERROR_ARCHIV             = 01
                   ERROR_COMMUNICATIONTABLE = 02
                   ERROR_KERNEL             = 03.
    ls_attacont-content_x = cl_bcs_convert=>xtab_to_xstring( BINARCHIVOBJECT ).
    I added attribute ARC_DOC_ID  to ATTACHMENTS node in Component Controller Context. This value is get from TOAAT in method LOAD_ATTACHMENT_LIST.
    Method DO_SAVE is modified too when a new Store Business Document is created, using functions ARCHIVOBJECT_CREATE_TABLE and ARCHIV_CONNECTION_INSERT:
    DATA: BINARY_TABLE TYPE TABLE OF  TBL1024,
                     SIZE         TYPE  SAPB-LENGTH,
                     DOC_TYPE     TYPE  TOADD-DOC_TYPE,
                     DOC_ID       TYPE  SAEARDOID,
                     lv_ar_object TYPE saeobjart.
                size = xstrlen( ls_attacont-content_x ).
                cl_bcs_convert=>XsTRING_to_XTAB( exporting IV_XSTRING = ls_attacont-content_x
                                                 importing ET_XTAB = binary_table  ).
                   IF sy-subrc = 0.
               CALL FUNCTION 'ARCHIVOBJECT_CREATE_TABLE'
               EXPORTING
                 archiv_id                      = 'ZT'
                 document_type                  = doc_type
                 length                         = size
               IMPORTING
                 archiv_doc_id                  = doc_id
               TABLES
                 binarchivobject                = binary_table
               EXCEPTIONS
                 error_archiv                   = 1
                 error_communicationtable       = 2
                 error_kernel                   = 3
                 OTHERS                         = 4
               IF sy-subrc <> 0.
               ELSE.
                SELECT SINGLE ar_object INTO lv_ar_object FROM toaom
                   WHERE sap_object =  WD_THIS->GS_GOS_OBJ-TYPEID AND
                    archiv_id  = 'ZT' AND
                    doc_type   = doc_type.
                 CALL FUNCTION 'ARCHIV_CONNECTION_INSERT'
                       EXPORTING
                          archiv_id             = 'ZT'
                          arc_doc_id            = LV_ARC_DOC_ID
                          ar_date               = sy-datum
                          ar_object             = lv_ar_object
                          mandant               = sy-mandt
                          object_id             = LV_OBJECT_ID
                          sap_object            = LV_SAP_OBJECT
                          doc_type              = LV_doc_type
                          filename              = LV_filename
                          descr                 = LV_descr
                          creator               = sy-uname
                        EXCEPTIONS
                          error_connectiontable = 1
                          OTHERS                = 2.
              ENDIF.
    Regards.

  • Set Weekly View as default in Record Working time

    Hi,
    Please let me know in ESS (Time Management) how can I set Weekly View as default instead of Daily view under Record Working time in EHP5?
    1> If Personalization could only be applied on JAVA Web Dynpro iVews, what can be done in case of WD4A?
    2> Can the view changes be done in Content Administration or the changes could only be done in "Component configuration/enhancement" to achieve the requirement? If it could only be done using "Component configuration/enhancement" can you please help me with the same.
    Thanks for your help!

    Hi,
    In R3, goto PM - PA - ESS - Service specific settings - Woring time - Record working time - Set up data entry profile - Select the data entry profile which is assigned to the employees in their CVR Parameters(ex.ess sf) - Maintain the PERIOD SETTING as 2 (which is the weekly view).
    Regards
    Priya

  • No Data in Field Scrap quantity (AMGLG) after Append DataSource 2LIS_04_P_COMP (Component View from PP/PP-PI)

    Hi experts,
    we enhanced the BI Content standard DataSource 2LIS_04_P_COMP "Component View from PP/PP-PI" with the field AMGLG (Scrap quantity) per maintenance of the relevant extract structure MC04P_0COM via LBWE:
    The enhancement of the extract structure worked fine.
    Unfortunately the enhanced field is not filled after the Statistical Setup of the LIS Application 04 "Production" (t/code OLI4BW).
    RSA3 -> 2LIS_04_P_COMP:
    Any ideas or experiences?
    Many thanks in advance and regards,
    Michael

    Attached one example:
    BW DataSource 2LIS_04_P_COMP:
    ERP Summarized BOM Multilevel (t/code CS13) Component 456:
    ERP Summarized BOM Multilevel (t/code CS13) Component 301:
    Any ideas why there are no values for the field AMGLG extracted?
    Thanks and regards,
    Michael

  • How to call a CRM transaction from WDA  component

    I have requirement where i need to open the CRM transaction CRMD_BUS2000126 from WDA with the object id selected in the context. To be more specific all i need to do is to open the activity screen of a particular give activity number from a WDA component.
    I have checked out the previous threads there is a solution how to fire a transaction from WDA, but i need to send a parameter to this transaction to open that particular activity number screen.
    please advice asap.
    Thanks,
    Shyam

    Karthikeyan,
    Please make sure that flag attribute is under some node, say NODEA. NOW please select the interface node property and input element  of NODEA.
    now NODEA will be available in interface controller. Interface controller acts like a global  controller between two different components.
    So from interface controller you can take that flag value.
    pls reply back if you have any confusion.
    Regards
    Srinivas

  • Need to change field details of view but no enhancement sets exist.

    I am attempting to change one of the fields in the Accounts screen, changing it from a help value field to a field that will be populated with data from ERP. I'm okay with the appropriate code to populate the field but what I don't know is how I can initially create an enhancement set. When I look at the component and view the [Enhance Component] button reveals no enhancement sets.
    My understanding is that I will need an enhancement set in order to change the code/method related to the field. But how do I create one?.
    Where I believe the problem may be is that when I execute the transaction BSP_WD_CMPWB all I get is a Component and Test Application entry field and three buttons underneath with Display, Create and Test. There is NO Enhancement Set option or  icons in the far right corner to Create or Delete.
    What can be wrong here?.
    I should point out that this is abrand new CRM 7 implementation and there are NO enhancements sets in existance at the moment, which might be why this screen looks like it does, but this is surely a bug as I don't (using this transaction) have the option to even create an Enhancement Set.
    If this is the reason then maybe I need to create some kind of dummy enhancement set that more or less does nothing, and therefore no harm, and which may trigger the Enhancement Set field to be displayed when I enter the BSP_WD_CMPWB transaction.
    Anyone...
    Jason

    Micha, that little icon to the left of the component field was not there, but there was a different one saying 'SAP standard'. Anyway, I clicked on this icon and changed to the little man with paper behind him, and, the Enhancement Set field was also displayed, along with the create/delete icons as well.
    I've never paid much attention to that Icon before and had not realised it was switchable.
    You live and learn.
    Now that I can create an Enhancement set I can finally get on and make the changes required.
    With regards
    Jason

  • How to access View Context thr' View Controller; and not thr' View....

    Hi
    As we know that we can access Component Context Attribute by Component Controller in view as:
    wdThis.wdGet<Component_Name>Controller().wdGetContext().currentContextElement().
    get<Component_Context_Attribute>
    whereas wdThis.wdGet<Component_Name>Controller() is the Component Controller.
    So, in the same way, I was just wondering do we have any way to access the View Context through View Controller.
    Generally for view context, we use wdContext which is (= wdThis.wdGetContext() ) means accessing view context thr' view.
    i want to access View context thr' View Controller which is wdThis.wdGetAPI().
    Thanks....

    Hi
    Get the detailed description and understanding of these webdynpro jorgens from [here|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/f0ba2c45-0518-2a10-73be-9b785e10aef1]
    Best Regards
    Satish Kumar

  • Can new PWA views be created whereby a filter can be set and associate to the view by default? (Project Server 2013 ONLINE)

    My main question is: Can new PWA views be created whereby a filter for that view can be set, and associate to the view by default? (Project Server 2013 ONLINE)? and can I have a filter set to filter on person logged on to...
    In previous versions of Project Server, when CREATING a PWA view, we were able to apply/ define a filter for that view.  Does not seem like it is the case in Project Server 2013 Online.  And if I remember, we could also use the URL Guid_view_id. 
    Please confirm; and / or tell me how-to.
    What I was hoping to do is the following... Given that our standard that we have adopted for reporting time is 'My Timesheets' (fyi, Single Mode Entry=ON), we have some resources who have others who do it on their behalf via 'My Tasks' (ie., accomplished
    by using the 'Assignment Owner' field, accordingly).  Therefore, when entering time on someone else's behalf within 'My Tasks', we like to present the user that is logged in only the tasks that they are are assigned to update on others' behlaf.
    I know that there is another more elegant approach to doing this which may be to use the Delegation feature. But since we are trying to stick to Sharepoint Security mode for now, this is not an option for the time being.
    Any help appreciated would be greatly appreciated.
    \Spiro Theopoulos PMP, MCITP. Montreal, QC (Canada)

    Hi Spiro,
    1- You still can define in Project Online a filter in the view settings, it is located just above the category setting. Here is a screenshot of the summary project center view:
    2- The view GUID is not anymore in the URL, since the URL triggers an action only on the webpart and not on the whole page. I agree this is annoying since it was great to send a URL with a specific view.
    3- Concerning the access to my timesheet versus my task, I'm not sure to get a full understanding but on a general way, it is much more easy to deal with those situation using categories which you cannot do with the SP permission mode.
    Hope this helps,
    Guillaume Rouyre, MBA, MVP, P-Seller |

Maybe you are looking for

  • JDBC Receiver Adapter to connect to oracle

    Hi all, We are configuring communication channel for receiver JDBC Adapter to connect to oracle dataabase. The status is red in the Adapter monitor and it says that "Receiver Adapter v1027 for Party '', Service 'MQ': Configured at 23:31:45 2006-12-12

  • Comcast email Address Book will not open in FF; get message "Page Not Found" but works in IE

    Disregard...now it works!!????

  • SDOK_PHIO_LOAD_CONTENT

    Hi, I want to load documents (PDF, JPG...) from DMS into a MII-Project. I've read, that the RFC SDOK_PHIO_LOAD_CONTENT is able to load and send documents as base64-Code into MII. But how can I use the function. Where did I get the ObjectID or the Cli

  • Configuring quorum file share witness access denied

    in failover cluster administrator, when I try to configure the quorum for file share witness, it keeps coming up and say access denied. any idea? I created the share as a domain admin and I am running the failover cluster admin as a domain admin

  • FLV not found

    I have created a site using flash and action script, the site loads diferent swf files with images and text content. One of my swf files contains a SWF player component that links to a FLV file. When I test the files locally everything works fine. I