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

Code for Count value--Bit urgent

Former Member
0 Likes
432

Hi all,

My Requirement is like this.

1) with the shipment document number in field VFKP-REBEL (reference object in the shipment cost document header) access to VTTS (Shipment’s Stages) table with the corresponding VTTS-TKNUM

2)Count the records number corresponding to the same related Shipment Number (TKNUM)

3)Condition base value (KONV-KWART) = counted value - 1.

Can any one please povide me code for this.

Thanks in Advance......

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
402

Hi Dinesh,

The simplest way to count the number of entries in the database table is to use the SELECT query with a count tag.

Ex:

SELECT count (*)

FROM db_table

INTO gv_count

WHERE your_conditions.

This should solve your query. If so please reward points and mark this question answered.

Regards.

2 REPLIES 2
Read only

Former Member
0 Likes
403

Hi Dinesh,

The simplest way to count the number of entries in the database table is to use the SELECT query with a count tag.

Ex:

SELECT count (*)

FROM db_table

INTO gv_count

WHERE your_conditions.

This should solve your query. If so please reward points and mark this question answered.

Regards.

Read only

Former Member
0 Likes
402

Please update