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

How to fill Domain Value range Programatically?

Former Member
0 Likes
1,453

Hi Experts,

I like to fill the domain range values from 'ZTABLE' ..

so please help me how to fill the domain range values programatically .

Thanks

Banu.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
950

Hi Banu,

It is not good practice to update or modify SAP standard table values directly..

This is the FM "DDIF_DOMA_PUT" which will update Domain values,

you can call this FM in your Ztable event to update your domain values every time.

Thanks

James

5 REPLIES 5
Read only

former_member156446
Active Contributor
0 Likes
950

check if the entry already exists in the ztable.. by using select single..

if sy-subrc NE 0 .

modify ztable from wa_ztable.

Read only

Sandeep_Panghal
Product and Topic Expert
Product and Topic Expert
0 Likes
950

You can use a Value table instead and fill this value table for the domain.

Read only

Former Member
0 Likes
950

first find out the value table used for the domain.

Update the Value table with ZTABLE. It will add the value range for that domain. Either pass this Ztable as a Value table for the domain.

Sourabh

Read only

Former Member
0 Likes
950

Hi Banu,

You can update these values for Domain using Table *DD07L*.

DOMNAME " Domain Name
AS4LOCAL
VALPOS
AS4VERS
DOMVALUE_L " Lower Limit
DOMVALUE_H " Upeer Limit
APPVAL

So in program 
Fill your Work Area and update 
modify table DD07L where DOMNAME = 'YOUR_DOM_NAME'.

Cheerz

Ram

Read only

Former Member
0 Likes
951

Hi Banu,

It is not good practice to update or modify SAP standard table values directly..

This is the FM "DDIF_DOMA_PUT" which will update Domain values,

you can call this FM in your Ztable event to update your domain values every time.

Thanks

James