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

Regarding BDC return Code and calculation part.

Former Member
0 Likes
411

hi guru's..

i have a req.. which tells abt transfering legacy datainto SAP using FB01 Tcode.

here after processing the flat file i have to update the return code of the session and total no of docs, total amoount and the posted documents and their amount in

a Ztable. How can i get the return code and the total amount for successfully processed records as well as for unsuccessful records with their total no. of records after processing the flat file.

<b>Rewards will be given for helpful answers</b>

Chandra

2 REPLIES 2
Read only

Former Member
0 Likes
385

Hai Chandra,

In The Internal Table BDCMSGCOLL All Successfully Uploaded Records Will Be Having MSGNR = '080' you download these records u will Be getting total No .of Records Successfull Uploaded & Remaining u can find out from Your flat file.

Thanks & Regards.

Shiva

Read only

Former Member
0 Likes
385

In ur code U will be having the syntax for prosting in FB01.

CALL TRANSACTION 'FB01'

USING bdcdata_tab

OPTIONS FROM opt

MESSAGES INTO t_msg

This message tab will contain all the messages returned by FB01. if the posting is sucessfully done - the message tab will contain the message ( it will contain error messages in case it fails to post).

So u can tap the messsages from here and report accordingly to ur output log.

Cheers

SKC.