cancel
Showing results for 
Search instead for 
Did you mean: 

Set a value for a attribute in another component

Former Member
0 Kudos

Hi,

I have enhanced the BT115IT_SLSO/Items view and the BTADMINI context node. Iu2019m checking the product in the method GET_ORDERED_PROD.

Please, at this point how can I set a value to the PMNTTERMS attribute of the BTPRICINGSET context node of the BTPAYMENT/HeaderPayment view?

Thanks in Advance

Ronaldo

Accepted Solutions (1)

Accepted Solutions (1)

former_member192716
Contributor
0 Kudos

Hi,

You are in BTADMINI and you need to set the payment set of header. Copy this coding in get_ordered_prod method.

Try this,



Data: lr_ent type ref to cl_crm_bol_entity,
         lr_pricing type ref to cl_crm_bol_entity.

lr_ent ?= current.

while lr_ent->get_name( ) NE 'BTAdminH'.
  lr_ent = lr_ent->get_parent( ).
endwhile.

if lr_ent is bound.
   lr_pricing = lr_ent->get_related_entity( iv_relation_name = 'BTHeaderPricingSet' ).
   
   lr_pricing->set_property( iv_attr_name = 'PMNTTRMS'  iv_value = <value...> ).
endif.

Regards,

Arun

Former Member
0 Kudos

Hi arun,

i need your advise on this requirement : details are :

When you enter any Sold-to Party in Sumco Price Negotiation transaction it should populated all the Product at item level based on the Ship to relation maintained at Product and Sold to Party.

componetn details : BT115IT_SLSO/Items

mthod : ON_NEW_FOCUS.

THANKS in advance.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Arun,

Thanks a lot, that code is perfect.

I could clear the PMNTTERMS content or set either value of the PMNTTERMS list, now after clearing the content there is a way to call the method GET_V_PMNTTERMS of BTPRICINGSET to fill another table list?

thanks in advance

Edited by: Ronaldo Alvarenga on Jun 3, 2010 9:47 PM

Edited by: Ronaldo Alvarenga on Jun 3, 2010 9:48 PM