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

Counter in databasetable

Former Member
0 Likes
1,119

Hi Experts,

how I can create a function to counter my entries in my database table?

Regards,

Mike

Hi Experts,

how I can create a function to counter my entries in my database table?

Regards,

Mike

8 REPLIES 8
Read only

Former Member
0 Likes
1,079

Hi,

Can you please explain it in more details ?

regards,

Advait

Read only

0 Likes
1,079

I want to delete a manually input from my ALV.

If I insert rows that is not the problem.

The problem is, when I delete entries from my ALV it did not work, I need a counter or an index how I can delete the entry, who should be deleted.

Read only

0 Likes
1,079

Hi Mike,

after the alv grid is dispalyed use SAP$ in command field

this allows you to delete a row by selecting the required row.

regards

Ramchander Rao.K

Read only

0 Likes
1,079

How I can do it exactly?

Read only

0 Likes
1,079

Hi,

You use DESCRIBE TABLE LINES statement to get no of line in a internal table.

You can get the index for the selected line/s in ALV. You can delete the internal table entries based on those index.

Read only

Former Member
0 Likes
1,079

hI Mike,

Create a NUMBER RANGE OBJECT using tcode SNRO and then call the function module

NUMBER_GET_NEXT. this will give an incremented number each time it is called.

using this number along with other data update the DATABASE table.

regards

Ramchander Rao.K

Read only

Former Member
0 Likes
1,079

Hi

I don't know why u required but , simple way can be .

give input parameter as Table name

then make dyanamic SELECT query as

select * form <Table >.

then catch the value of system field SY-DBCNT.

put it as Export parameter.

this may help.

Regards

Sachin

Read only

Former Member
0 Likes
1,079

Hi,

If you just want to know the number of rows in a table.

See F1 help for SELECT COUNT(*) statement

Regards

Karthik D