‎2007 Sep 05 12:32 PM
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
‎2007 Sep 05 1:10 PM
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
‎2007 Sep 05 2:05 PM
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.