Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Query on Changing Domain Value ...

Former Member
0 Likes
428

Hi All,

I have a requirement in which i have to change the Value range of a domain while executing a program...

Is there any FM available to achieve this functionality.... Kindly provide pointers to achieve my requirement...

Regards,

Navin.

Hi All,

I have a requirement in which i have to change the Value range of a domain while executing a program...

Is there any FM available to achieve this functionality.... Kindly provide pointers to achieve my requirement...

Regards,

Navin.

1 REPLY 1
Read only

Former Member
0 Likes
391

Hi

<b>I have already replied this in my earlier post.</b>

<u>Use the following Function module - RPY_DOMAIN_READ to read the Domain values in a program and use them as per your requirements.</u>

<b>Sample code</b>


  CALL FUNCTION 'RPY_DOMAIN_READ'
    EXPORTING
      activation_type_i = 'M'
      doma_name         = 'DOMAIN'         <<<<<- UseYour domain name here
       language          = sy-langu
    TABLES
      doma_values       = i_values            <<<--- Returns domain values
    EXCEPTIONS
      cancelled         = 1
      not_found         = 2
      permission_error  = 3
      illegal_type      = 4
      OTHERS            = 5.
  IF sy-subrc <> 0.
  ENDIF.

Incase you need any other details, let me know.

Hope this will help.

Please reward suitable points, incase it suits your requirements.

Regards

- Atul