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

Log file creation -- BDC

Former Member
0 Likes
898

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
848

How are you doing the load?...BAPIs produce return tables, which can be processed...BDCs that error remain marked as errors...

4 REPLIES 4
Read only

Former Member
0 Likes
849

How are you doing the load?...BAPIs produce return tables, which can be processed...BDCs that error remain marked as errors...

Read only

Former Member
0 Likes
848

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.

Read only

Sandra_Rossi
Active Contributor
0 Likes
848

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

Read only

0 Likes
848

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.