2010 Jul 20 1:08 PM
Hi friends.This is Sudhir . I have a scenario of loading mass vendor data. If in case any error occurs while loading the error record should be created as log file. Do we have any function module to create the log file?
Hope your answers will be helpful to proceed further.
With regards ,
Sudhir S
2010 Jul 20 1:13 PM
How are you doing the load?...BAPIs produce return tables, which can be processed...BDCs that error remain marked as errors...
2010 Jul 20 1:13 PM
How are you doing the load?...BAPIs produce return tables, which can be processed...BDCs that error remain marked as errors...
2010 Jul 20 1:24 PM
hi,
If you are using the call transaction method
then you can collect the messages in internal table of type bdcmsgcoll
call transaction using MESSAGES INTO itab.
and then using the FM GUI_DOWNLOAD you can create log file on your presentation server.
2010 Jul 20 9:38 PM
Are you looking a way for generating logs as the ones you can see in SLG0?
You can also store them into a spool.
To store them into a file, you can simply read the spool output (or you can maybe use a SUBMIT ... EXPORTING LIST TO MEMORY to avoid the spool).
In that case, please refer to [sap library|http://help.sap.com/saphelp_nw2004s/helpdata/en/d3/1fa03940fab918e10000000a114084/frameset.htm]
and SBAL* demo programs (use of BAL_* function modules)
Edited by: Sandra Rossi on Jul 20, 2010 10:39 PM
2010 Jul 26 1:01 PM
Hi Sandra,
I need to create a log file in SLG1 whenever i use B DC using CALL TRANSACTION method for loading mass vendor data with error records.