Access to context of COMPONENTCONTROLLER (ABAP)

Hello,
I need to access componentController from one of the view that I have.
How can I do it?
Thank you.

WD_COMP_CONTROLLER
is declared automatically
and is available in all methods.
so WD_COMP_CONTROLLER->method is possible.
Use code wizard to add. Simple ...
If you want access to the context of controller,
the either create a method in the controller that
reads the controller context and call that method as above
or better, just map the context in view to the component
controller so that data is automatically copied to local view context.
Regards
Phil

Similar Messages

  • How to access Infocube content using an ABAP program

    Hi,
       I am trying to access infocube contents using a ABAP program in BW.
       It is easy to access ODS content as we have NEW DATA or ACTIVE DATA
       tables. Is there any way we can access Infocube content.
       I tried using the FACT table but it has only Keyfigure data.
    thanks
    arshad.

    Hi,
    I would suggest to use a transactionnal cube, even if you do not use BPS to feed it.
    Then, you create a layout in transaction BPS0 (~ similar to a query), and you can access the cube content by simply using the SAP function <b>API_SEMBPS_GETDATA</b>.
    This is easy and fast.
    Regards,

  • Access Portal groups in webdynpro ABAP component

    Hi Experts,
    I have a requirement to access portal group in web dynpro ABAP application and based on whether user is assigned to particular group or not further processing for application will be done.
    Are there any UME API or some other API's available to access portal groups in Webdynpro ABAP component?
    Thanks in Advance..!!
    Regards,
    Shruti Shah

    This might be a question better suited to the portal forum. The WDA Portal APIs do not have such functionality.  You might be able to take the Java Portal APIs and wrap them in a web service so that they are callable from ABAP.

  • Facing Problem In Accessing SAP System through Eclipse ABAP Tool

    Hi All,
    I am willing to learn SAP ABAP.
    I installed SAP GUI 7.30 for windows and Eclipse ABAP Tool.
    I also connected to E66 [dkmgd37] System through Consolut but
    Whenever i am trying to access SAP System from eclipse ABAP project, it is showing you are not authorized to access this system for ABAP Development.
    Could anyone plz help me out. I am also attaching the image of SYSTEM CONNECTION PARAMETERS for E66 System(For Reference).
    Thanks & Regards,
    Priyanshu

    Hi Priyanshu,
    To create development objects in SAP , you must have developer access key . Do you have developer access key ? If yes then not have enough roles to create the objects.
    To check which authorization object , after getting the error run transaction SU53. Contact the authorization team who created the ID to provide developer roles
    Thanks & Regards,
    Arun

  • Access Control Context in Engineering Record screen

    Hello Gurus,
    I need to remove the Access Control Context and Owning Tet field from the PLM Engineering Record screen. Is it possible to do with configuration to hide these fields?
    I removed from "Specify Object Types for PLM Authorization check".
    Kindly advice.
    Thanks & Regards
    Jo

    Hi Jo ,
    You cannot hide it via configuration as access control context is coming from component reuse . I created it while my team was developing PLM ECR in SAP Labs India.
    One possible approach is to do a custom development to hide this field .
    Thanks & Regards,
    Abhishek.

  • Authorization in Access Control Context

    Hi Experts,
    Hi have a authorization problem for some users in Access Controll Context ,
    1. We have created an user in SAPGUI and assigned a role similar to  SAP_PLMWUI_DESIGNER( we copied it and made some modifications, but nothing that should matter)
    2. Then we assigned this role to a context and assigned the user to the role in SAP WUI.
    3. But when we logon with this user and try to display a document which is assigned to/or owned by(we tried both) the context, we get the following message:
    Document DRW/xxxxxx does not exist or access authorizations are missing
    What authorization is missing, any thoughts?
    Kind regards
    Mikael

    Hi Santosh,
    thanks for quick reply,
    All needed activities are checked for PLM_DIR, for the moment I am not able to assign SAP_PLMWUI_OBJECT_REUSER but this should not be neccesary, should it.
    I have the same problem for a user assigned to the role SAP_PLMWUI_DESIGNER.
    Because of authorization issues we use all the single roles in each composite role above.
    -> ie , in acc I haven't assigned the user to one composite role but all single roles separately, can this be the problem?
    or can it be something else that I missed?
    Kind regards
    Mikael

  • 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

  • ABAP WD: access to context

    Hello,
    I need to access context nodes of my application and see if they contain any values.
    I want to do it in WDDOINIT method.
    How can this be done?
    Is there such an expression wdContext->get_nodes or something similar?
    Thank you.

    Hi Georgy,
    Check http://help.sap.com/saphelp_nw04s/helpdata/en/1e/75e3d86397bc4db8f579d9f020f661/frameset.htm
    wd_context->get_child_node( wd_this->wdctx_my_node ).
    Every context node implements interface IF_WD_CONTEXT_NODE (http://help.sap.com/saphelp_nw04s/helpdata/en/fd/be5b4150b38147e10000000a1550b0/frameset.htm).
    Best regards, Maksim Rashchynski.

  • API for access of guided procedure from ABAP / WebDyn: change/read status

    Hallo together,
    I'm very new to guided procedure and have some questions about possible interaction between WebDynpro ABAP and Portal guided procedures (UWL ?)
    is it possible to access a guided procedure or their attributes from WebDynpro ABAP? What are the relevant key attributes (ID's) to do so?
    Is is possible to change the status of a guided procedures f.e. from "completed" to "ready" from outside, let say WebDynpro ABAP? for the purpose of a monitor for mgrs.
    - possible szenario is a manager says: "no, not well done" go back to start and do it again !
    - another szenario: guided procedure is "running" and should be set to "completed"
    Any hint will be helpfull
    Thanx very much in advance
    regards Hans

    Hi Hans,
    There is a good and a bad news regarding APIs for GP and ABAP Web Dynpro and GP:
    The good news is that you can find [here|http://help.sap.com/javadocs/nwce/current/gp/index.html] the APIs for GP.
    The bad news is that the cooperation capabilities between GP and ABAP Web Dynpro are restricted in a certain way. One can use a ABAP Web Dynpro in GP as callable object, but GP is only capable to transport parameter values from GP to the UI but not vice versa. In many cases one needs a solution where the ABAP Web Dynpro UI accepts user inputs and forwards them to the GP context. This is not supported.
    Regards,
        Jan

  • Cannot access Created Context Attribute from Component Controller

    Hello All,
    I have added a new attribute to a node in my component controller 'LOGONUID' and I cannot access it within my windows within the WDA application.
    DATA lo_nd_url_param TYPE REF TO if_wd_context_node.
      DATA ls_workset TYPE wd_this->element_workset.
      "DATA ls_logonuid TYPE wd_this->element_logonuid.
    I get an error as soon as I try to activate this code in my method in my W_MAIN
    In my component controller I do not see it reference in the SAP generated code in my WD_THIS IF_COMPONENTCONTROLLER?
    * Intf.: ig_componentcontroller
    * Purp.: programming interface for access of this controller within
    *        other controllers of the same component
    *        controller:  <COMPONENTCONTROLLER> of
    *        component:   <zhr_wd_mss>
    * UDate: 20111207 145441
    *=====================================================================*
    interface ig_componentcontroller.
      interfaces: ziwci_hr_wd_mss .
      constants:
        wdctx_context type string value `CONTEXT`.
      constants:
        wdctx_cuifcontext type string value `CUIFCONTEXT`.
      types:
        begin of Element_cuifcontext,
          USERID  type String,
          LASTEVENTOPERATION  type String,
        end of Element_cuifcontext,
        Elements_cuifcontext type
           standard table of Element_cuifcontext
           with default key.
      constants:
        wdctx_messages type string value `MESSAGES`.
      types:
        Element_messages type ZHR_S_MESSAGE,
        Elements_messages type
           standard table of Element_messages
           with default key.
      constants:
        wdctx_workset type string value `WORKSET`.
    I want it to be declared as the constant 'WORKSET'
    thank you
    Edited by: Keith Warnock on Dec 7, 2011 8:55 PM
    Edited by: Keith Warnock on Dec 7, 2011 8:56 PM

    > I have added a new attribute to a node in my component controller 'LOGONUID' and I cannot access it within my windows within the WDA application.
    >
    >
    >
    > DATA lo_nd_url_param TYPE REF TO if_wd_context_node.
    >   DATA ls_workset TYPE wd_this->element_workset.
    >   "DATA ls_logonuid TYPE wd_this->element_logonuid.
    >

    >
    This declaration is not right. There is no element logonuid, you  have the attribute inside a node. workset is a node and thats why you can declare that way.
    easiest way is to declate
    data lv_logonuid type <ddic type> or
    data lv_logonuid type wd_this-><node name>-logonuid.
    You can also use the code generator in (CTRL +F7 ) to get/set attributes.

  • Not able to access the context in custom functoid

    Hi,
    Below is the code referred from
    https://contextaccessor.codeplex.com/,
    Implemented this Custom Pipeline  component in the Resolve Part stage:
    The below code under Class = AccessContext
    [ThreadStatic]
    internal static IBaseMessageContext  context;
    Public  IBaseMessage Execute(IPipelineContext pContext, IBaseMessage pInMsg)
      context= pInMsg.Context;
      return pInMsg;
    Custom Functiond:
    When i try to access in the custom functoid,
    IBaseMessageContext  msgContextFunctoid=  AccessContext.context;
    "msgContextFunctoid" this is returned as "null"
    What i am doing wrong here. Please help.
    Thanks,
    Sathish

    I would suggest to use latest contextaccesor  functiod from below location
    improved-context-accessor-functoid
    You can find the DLL in /ContextAccessor/bin/Debug
    Maps used in a Receive Port
        Grab the .dll
        Save the .dll to \Microsoft BizTalk Server \Developer Tools\Mapper Extensions
        Save the .dll to \Microsoft BizTalk Server \Pipeline Components
        GAC both assemblies
        Add the functoids to your functoid Toolbox
            Toolbox>Right Click>Choose Items…>BizTalk Mapper Functoids
        Drop the functoid into your map, and configure it
    Add the ContextAccessorProvider pipeline component to your pipeline Toolbox
        Toolbox>Right Click>Choose Items…>BizTalk Pipeline Components
    Drop the ContextAccessorProvider pipeline component into a pipeline at the ResolveParty stage

  • Unable to access Archived data with an ABAP Query

    I have an ABAP Query that uses Logical Database KDF (Vendor) for reporting.
    KDF is Archive Enabled and I can access archived document via SAP standard programs that used the KDF Logical Database.
    the query appears accessing the data but nothing shows on the report.
    Has anyone successfully written and ABAP query and included access to the Archived data?
    Any help is appreciated.

    Hi Gena,
    I'm facing exactly the same problem as you...
    Since this post is an old one, I imagine that you may not remember, but I have to try...
    Have you solved it? If yes, could you please tell me how?
    I've tried to use CL_ABAP_GZIP and CL_ABAP_UNGZIP_BINARY_STREAM and I'm getting the same error 30 at the  IctDecompressStream function.
    Tks in advance,
    Flavio.

  • How to synchronize concurrent access to static data in ABAP Objects

    Hi,
    1) First of all I mwould like to know the scope of static (class-data) data of an ABAP Objects Class: If changing a static data variable is that change visible to all concurrent processes in the same Application Server?
    2) If that is the case. How can concurrent access to such data (that can be shared between many processes) be controlled. In C one could use semaphores and in Java Synchronized methods and the monitor concept. But what controls are available in ABAP for controlling concurrent access to in-memory data?
    Many thanks for your help!
    Regards,
    Christian

    Hello Christian
    Here is an example that shows that the static attributes of a class are not shared between two reports that are linked via SUBMIT statement.
    *& Report  ZUS_SDN_OO_STATIC_ATTRIBUTES
    REPORT  zus_sdn_oo_static_attributes.
    DATA:
      gt_list        TYPE STANDARD TABLE OF abaplist,
      go_static      TYPE REF TO zcl_sdn_static_attributes.
    <i>* CONSTRUCTOR method of class ZCL_SDN_STATIC_ATTRIBUTES:
    **METHOD constructor.
    *** define local data
    **  DATA:
    **    ld_msg    TYPE bapi_msg.
    **  ADD id_count TO md_count.
    **ENDMETHOD.
    * Static public attribute MD_COUNT (type i), initial value = 1</i>
    PARAMETERS:
      p_called(1)  TYPE c  DEFAULT ' ' NO-DISPLAY.
    START-OF-SELECTION.
    <b>* Initial state of static attribute:
    *    zcl_sdn_static_attributes=>md_count = 0</b>
      syst-index = 0.
      WRITE: / syst-index, '. object: static counter=',
               zcl_sdn_static_attributes=>md_count.
      DO 5 TIMES.
    <b>*   Every time sy-index is added to md_count</b>
        CREATE OBJECT go_static
          EXPORTING
            id_count = syst-index.
        WRITE: / syst-index, '. object: static counter=',
                 zcl_sdn_static_attributes=>md_count.
    <b>*   After the 3rd round we start the report again (via SUBMIT)
    *   and return the result via list memory.
    *   If the value of the static attribute is not reset we would
    *   start with initial value of md_count = 7 (1+1+2+3).</b>
        IF ( p_called = ' '  AND
             syst-index = 3 ).
          SUBMIT zus_sdn_oo_static_attributes EXPORTING LIST TO MEMORY
            WITH p_called = 'X'
          AND RETURN.
          CALL FUNCTION 'LIST_FROM_MEMORY'
            TABLES
              listobject = gt_list
            EXCEPTIONS
              not_found  = 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.
          CALL FUNCTION 'DISPLAY_LIST'
    *       EXPORTING
    *         FULLSCREEN                  =
    *         CALLER_HANDLES_EVENTS       =
    *         STARTING_X                  = 10
    *         STARTING_Y                  = 10
    *         ENDING_X                    = 60
    *         ENDING_Y                    = 20
    *       IMPORTING
    *         USER_COMMAND                =
            TABLES
              listobject                  = gt_list
            EXCEPTIONS
              empty_list                  = 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.
        ENDIF.
      ENDDO.
    <b>* Result: in the 2nd run of the report (via SUBMIT) we get
    *         the same values for the static counter.</b>
    END-OF-SELECTION.
    Regards
      Uwe

  • Access SFTP server out of ABAP program

    Hi all,
    how can I access an external SFTP server out of an ABAP program? I know how to do that for normal FTP, but don't know a way for doing this with SFTP. Is there any function module available for this?
    Thanks in advance.

    Hi,
    I found this:
    Read file from Secure FTP: [Read file from Secure FTP|Read file from Secure FTP]
    FTP using ABAP   :              [FTP using ABAP|FTP using ABAP]
    File transfer using SFTP   :  [File transfer using SFTP|File transfer using SFTP]
    FTPs connection failed - error ".. certificate rejected by ChainVerifier"
                                                [Re: FTPs connection failed - error ".. certificate rejected by ChainVerifier"|Re: FTPs connection failed - error ".. certificate rejected by ChainVerifier"]
    FTPs issue-                         [FTPs issue-|FTPs issue-]
    I hope it is usefull.
    Best Regards,
    Daniel Zapardiel

  • Not able to access remotely to sap was abap sneak preview (trial version)

    hi all
    i have recently installed sap netweaver 2004s was abap sneak preview which is downloaded from sdn.sap.com. but the problem is i am able to access layout tab from server machine only, not from any other client machine. the layout tab shows that "page can't be displayed" mode of internet explorer. i am using explorer 6.0.
    are there any security settings needed in either of the machines?
    thanks in advance
    shabbir khan

    first of all thanks abhimanyu
    i have one doubt. r u accessing from client machune , or that trial version is installed on ur system it self.
    if ur accessinf from client machine .. u need to do some settings in ur client machine so that it should not hit ur local browser .. where as it has to hit ur servers browser. in my problem.. my client machines are hitting my their own systems browsers . . plz let me know what that setting is
    thanks in advance .. its urgent

Maybe you are looking for

  • Accordion issues in IE 6&7

    I'm having an issue with the accordion where the items open underneath the top panel in IE. The top panel stays open and the subsequent panels reveal underneath. Everything works fine in Safari and FF, but surprisingly IE isn't rendering the same. ht

  • Bought tunes, can't play them... ?

    I bought 4 CD's, downloaded them, burned them. I can see them on the CD, they have the right meg size files. They won't play on the computer, or in a CD player. I also dumped all 4 CD's on a single DVD as data, moved them to another computer ... the

  • Is there a way to set up a template that can be edited that will update the webpage without having..

    I was wondering if there is a way to create a template that you can upload music, pictures,and videos to that will automatically upload to a server without having website software. Reason: I am making a website that I would like to be accesible witho

  • In new upgrade is there a way to get pics back on caller id

    In the new upgrade is there a way to get pics back on the caller ID when people call you or when you call our rather than just a plain black screen?

  • ITunes & QuickTime Player Issues

    For the past few days I have been unable to load iTunes. I have tried to reinstall both iTunes, but have encountered many problems. I have downloaded the latest version of iTunes with QuickTime Players from the iTunes website, and followed the instal