Skip to Content
author's profile photo Former Member
Former Member

how to access one DC from another DC

Hello,

I have create a seperate DC for Model. I declared the model as public part. Also I have grant the access to the main DC, Could you please tell me how to proceed further?.

How can I access this Model DC from my project DC?.

Thanks

Sunita.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 13, 2007 at 04:38 AM

    Hi Sunitha,

    To create a usage dependency for a DC, proceed as follows:

    1. In the project structure of the DC used, expand the subnode DC MetaData.

    2. Open the context menu for Used DCs and choose Add Used DC.

    Since all the changes so far have not yet been assigned to any DTR activity, the Select Activity dialog box appears now.

    3. Now assign an activity.

    The Used Help: Used DCs display frame appears.

    4. Expand the tree for the relevant software component and then choose the public part for the required DC.

    5. Enter the time when the dependency you are going to define is to be valid.

    6. Choose Finish.

    Thanks & Regards,

    Suvarna.

    **Award points if helpful

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jul 13, 2007 at 03:01 AM

    Hi Sunita,

    Please refer to this link:

    http://help.sap.com/saphelp_nw04s/helpdata/en/90/a1933f09a5fb47e10000000a114084/frameset.htm

    Regards,

    Ashwani Kr Sharma

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 13, 2007 at 04:59 AM

    Hi sunitha

    <b>Model DC</b>

    1) In the model dc

    Component controller

    Create a rfc execution method

    //@@begin javadoc:CallRfc()

    /** Declared method. */

    //@@end

    public void CallRfc( java.lang.String rfcinput )

    {

    //@@begin CallRfc()

    //Rfc execution steps

    //@@end

    }

    2) component interface controller

    Add the usage of component controller of model dc component

    create a method in interface controller for calling the method CallRfc in component controller

    //@@begin javadoc:Interfa_ctl_mthd()

    /** Declared method. */

    //@@end

    public void Interfa_ctl_mthd( java.lang.String rfcimport )

    {

    //@@begin Interfa_ctl_mthd()

    wdThis.wdGet<modeldc>Controller().CallRfc(rfcimport);

    //@@end

    }

    3) Open the DC Metadata>Public Part>New public part

    Give a name and Select the API and in the Select Entity type, select the web dynpro component and in the select entity which is at the bottom of select entity select the modeldc/component (Ie component inside the web dynpro component)

    4) Build and deploy the model dc

    <b>Project DC</b>

    1) Expand the DC metedata > used DC >right click and select add used dc and select the model dc and select the build type in dependency tab

    2) Expand the web dynpro component structure and Select the Used web dynpro component and right click and select used webdynpro component and browse the component and give a name ie RFCComp

    3)In the view of project dc define the usage of the component RFCComp

    In any action of button , call the RFC comp like this

    //@@begin javadoc:onActionGo(ServerEvent)

    /** Declared validating event handler. */

    //@@end

    public void onActionGo(com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent )

    {

    //@@begin onActionGo(ServerEvent)

    wdThis.wdGetRFCCompInterface().Interfa_ctl_mthd("XXXXXXXX");

    //@@end

    }

    Hope this helps,

    Regards,

    Arun

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 13, 2007 at 05:30 AM

    HI Sunita,

    Create a public part in DC for model .

    For this,right click public parts->New public part(Provides An API...).

    There Select Model(Tick the model check box only from the tree and as Source Checkbox from right side) and java package tree(Tick the root check box and as Source& Class Checkbox in right side) .

    Then build the project.

    After this, this model dc will be available to other DCs.

    In second DC project, Used DCs->Add Used DC, select the public part created from the ModelDC project, so that it will be available in second project.

    Now u can add the model from model DC in used Models of second project, so that the model will be available for the component in the project

    Regards

    Fahad Hamsa

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 13, 2007 at 03:16 AM
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.