Skip to Content
avatar image
Former Member

cross component communication query

Hi All,

The scenario is in SAP SRM system.

I am trying to access the Contract number attribute (V_CTR_H_BD.HEADER_BD.OBJECT_ID) from the webdynpro component /SAPSRM/WDC_CTR_DODC_H_BD.

I want that attribute to be accessed in the WD component /SAPSRM/WDC_DODC_CND view V_DODC_CONDITION.

So, in order to achieve the above requirement, I tried to add a node as an Interface Node in the webdynpro component /SAPSRM/WDC_CTR_DODC_H_BD. But, I am unable to create any node in the component controller of WD component /SAPSRM/WDC_CTR_DODC_H_BD as a Interface Node, and hence, I am unable to create any node of Interface Controller. This is due to the reason that the node that we are creating have the Interface Node option in disable state.

Can anybody suggest what approach we need to follow to satisfy the above requirement? (It would be great if the resolution will be containing the steps)

Regards,

Susanta

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Feb 23, 2009 at 02:44 PM

    Hi Susanta

    I am trying to access the Contract number attribute (V_CTR_H_BD.HEADER_BD.OBJECT_ID) from the webdynpro component /SAPSRM/WDC_CTR_DODC_H_BD.And want that attribute to be accessed in the WD component /SAPSRM/WDC_DODC_CND view

    V_DODC_CONDITION.

    well you need to create a INTERFACE method in the component controller of the component /SAPSRM/WDC_CTR_DODC_H_BD, lets

    call it GetContractAttribute. This method will return contract number. Dont forget to tick the Check Box Inteface when creating

    this method, this tells you that this method is interface method and can be called from outside.

    next in the component /SAPSRM/WDC_DODC_CND instantiate /SAPSRM/WDC_CTR_DODC_H_BD under component usage. Now you can

    call the method GetContractAttribute.

    Greetings

    Prashant

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      In that case declare an attrubute of OBJECT_ID type in your component at component controller level. Lets call is m_cc_objID. Declare a method at component controller ReadObjID call this method inside WDDOMODIFY of the view V_CTR_H_BD and in code specify that it copies value of OBJECT_ID to our attribute m_cc_objID.

      now follow the steps from my previous reply

      Create a INTERFACE method in the component controller of the component /SAPSRM/WDC_CTR_DODC_H_BD, lets

      call it GetContractAttribute. This method will return contract number. Dont forget to tick the Check Box

      Inteface when creating this method, this tells you that this method is interface method and can

      be called from outside.

      next in the component /SAPSRM/WDC_DODC_CND instantiate /SAPSRM/WDC_CTR_DODC_H_BD under component usage. Now you can

      call the method GetContractAttribute.

      Greetings

      Prashant