Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

How to change the Value in the screen

Hi All

We need to change the Priority in the Service Order base on a Marketing Attribute of the BP, we already do have the BP Attribute value, but we can't base on that value change the Priority Value, the Priority Value is in a Dropdown Box in the screen.

For example if the BP Attribute is 01 the Priority must Change to High 02

Best Regards

Tags:
Former Member
replied

Hi,

You can do it as follows :

1. In SET_ method of BP attribute , there is a statement <nval> <> <oval> . Here you cone to know if the valu is changed or not.

IF <oval> <.> <nval>.
    if <nval> = '01' .   " this is when your BP attribute is set to 01 .
       current->set_property_as_string( iv_attr = 'PRIORITY' value = '02' )                            
   endif.
  
   Let the other code in this if block remain as it is .

ENDIF.

I am assuming that Priority and BP attibute are attributes of same context node.

if they are attibutes of different context node, then there is some modifications needed to do.

let me know on that.

Also let me know that if this BP attribute is a pick list too ? then there will be somewhat change in the approch. What are you looking for is completly possible.

Thanks & Regards,

Suchita

Edited by: suchita P on Sep 24, 2008 2:45 PM

Edited by: suchita P on Sep 24, 2008 2:45 PM

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question