Application Development 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: 

Creating table with from an to

Former Member
0 Kudos

Hi all

My question is very simple

How do I create a table with a from and to data elements. I have created the table, but now, how do I implement the check that the kosl_from field has to be smaller then the kostl_to. I have to give a message in sm30...

best regards

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hello friend,

1.In the se11 transaction open your table.

2.Goto utilities->Table maintenance generator.

3.Then in the new window, goto Environment->Modification->Events.

There you can can specify an include and can write code in that.

Try this.

Reward if found helpfull,

Rakesh

5 REPLIES 5

amit_khare
Active Contributor
0 Kudos

Instead of table Create Ranges.

Ranges: begin or r_range,

low

high

option

sign

end of r_range.

Now this will work same as select options. So In operator can be used to check the intervals.

Regards,

Amit

Reward all helpful replies.

Former Member
0 Kudos

Hi,

When you create a custom table, you can either use standard data element or create custom one by double clicking the custom data element.

The system will then take you to data element area to create ... once done make sure you activated.

http://help.sap.com/saphelp_nw04/helpdata/en/90/8d7307b1af11d194f600a0c929b3c3/content.htm

http://sap-img.com/abap/steps-to-creating-domains-data-elements-tables.htm

<b>Reward points</b>

Regards

Former Member
0 Kudos

Hello friend,

1.In the se11 transaction open your table.

2.Goto utilities->Table maintenance generator.

3.Then in the new window, goto Environment->Modification->Events.

There you can can specify an include and can write code in that.

Try this.

Reward if found helpfull,

Rakesh

Former Member
0 Kudos

HI,

In this case try to use Ranges.

Ranges: begin or r_range,

low

high

option

sign

end of r_range.

Now this will work same as select options.

Here you can check the intervals.

Reward if useful.

sastry

Former Member
0 Kudos

Hi all

thankx for your very quick answers.

I have one other question and then I will reward points

at Amit Khare and prssastry

How do I implent the range in my table? via SE11? the user has to create the entries in SM30.

at RAKESH S R

I think your solution is the best. I have created a new include, but how do i write the code? If i use the screen elements or I put a simple break I receive statement not accesihle.