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: 

Call transaction for less than 10,000 records

Former Member
0 Kudos

Hi all

Is call transaction advisable for processing less than 10,000 records.

I want to use call transaction for each record and if it fails, pass it to an opened bdc session for manual processing by functional consultants. At the same time, I have to write a report with successful and errored records. Is my approach the only way? Any other ideas are welcome and appreciated

Thanks

ricky

6 REPLIES 6

Former Member
0 Kudos

hi ricky,

while using bdc session you/Functional consultants cannot process it manually.

instead trap error records into one error intarnal table and reprocess it by correcting the values before you pass it to the session.

Cheers,

Chandra

Former Member
0 Kudos

Hi,

Process to hold error records.

DATA: MSG_TAB TYPE TABLE OF BDCMSGCOLL.

CALL TRANSACTION 'MM01' USING BDCDATA MODE 'N' UPDATE 'A' MESSAGES INTO MSG_TAB.

Here in call transaction method, all the error messages will be stored in MSG_TAB. loop the MSG_TAB, get MSGID and MSGNR and see the errors.

Reward if helpful.

Regards,

Harini.S

Former Member
0 Kudos

for this change the mode to N and check for error messages after call transaction for each record .

this is possible by :

IF sy-msgty NE 'E' AND sy-subrc EQ 0.

this means no error and move this recod in success file

else

this means error is thier and move this record into error file

endif.

this is the best way.

plz reward point if helps.

regards,

rahul

Former Member
0 Kudos

Hi,

You can process the session using E - error mode. If any error occurs it will take you thru the screens.

Thanks,

Sriram Ponna.

0 Kudos

Thanks Guys for the reply. Can I assume that the method which i chose is the right one for records less than 10,000 records? Can anybody give a sample code if possible so that I can get a better picture of what I am doing Thanks

0 Kudos

Using a BAPI is the preferred way; otherwise, you should try to use the batch input session method. Call transaction would be the least advisable way.

Rob