cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

hi,

this is related to my earlier posting of fetching values from domain.

TABLE NAME IS Z_CODES

FIELD NAME IS CODE

DOMAIN IS CD

under DOMAIN, value range tab -> single values. in that i have few FIXED values around 10 and may likely to change. how to pull these and insert these values in the range table in my program .

any help would be appreciated.

Thanks,

kranthi.

Message was edited by: kranthi kumar

Message was edited by: kranthi kumar

Message was edited by: kranthi kumar

0 Likes
View Entire Topic
Former Member
0 Likes

Hi,

I tried the function modules, but im unable to pick up the fixed values(under single values in value range tab) from the domain corresponding to that field.

im filling my range table in my program in hard coded way. i want to fill this range table with the values picked up from the domain.

could some one help me on this . your help would be appreciated.

Thanks,

kranthi.

athavanraja
Active Contributor
0 Likes

use one of the following FMs which would give you the domains fixed values.

DDUT_DOMVALUES_GET

SWU_GET_TABLE_TO_DOMNAME

now declare a range table.

ranges: code_r for Z_CODES-code .

now loop thru the resulting table of the FM.

loop at ....

move: fmresult_tab-value to code_r-low ,

'I' to code_r-sign ,

'EQ' to code_r-option .

append code_r .

clear code_r .

endloop .

Hope this helps.

Regards

Raja