‎2008 May 21 7:43 AM
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?
‎2008 May 21 7:48 AM
Welcome To SDN.
Just use DESCRIBE statement and count the number of records in your Final internal table
‎2008 May 21 7:55 AM
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
‎2008 May 21 7:58 AM
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
‎2008 May 21 8:10 AM
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