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

BDC program

Former Member
0 Likes
509

hi, i have a question and really need your favour..recently, i'm doing BDC program that can read ada data from tcode ME32K and the program is include with Test Run checkbox.

The logic is, if Test Run is checked, do not modify any record, just display the total number of records to be modified.

the question is, how to calculate the record?

4 REPLIES 4
Read only

amit_khare
Active Contributor
0 Likes
491

Welcome To SDN.

Just use DESCRIBE statement and count the number of records in your Final internal table

Read only

Former Member
0 Likes
491

hi

1. Take care, when test check box is checked, do not save the record.

2. For every successful entry (sy-subrc = 0), take a varible count and do count++. in side the loop of internal table.

3. I hope requirment is to find out no. of recodrs which ll be updated before actual uploading.

Please reply if u still have query

Reward points if useful

Regards,

vinsee

Read only

Former Member
0 Likes
491

hi,

Here firstyou will upload the data from flat file to ITAB.

So then you will use the staement Describe table itab lines v_ines.

Declare V_lines as of type sy-tabix.

Then you will get the no of records to be uploaded.

reward if hepful

Rgds

Umakanth

Read only

Former Member
0 Likes
491

Hi,

data : lin type i.

describe table <INTERNAL_TAB> lines lin.

this statement will calculate the number of records in the internal table and value will be placed into the variable lin.

reward if it helps.

regards,

mahantesh