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

BDC

Former Member
0 Likes
380

After session method completed i got errors in log file.

how to upload the data from log file which i got errors?

3 REPLIES 3
Read only

Former Member
0 Likes
350

Hi,

error handling in session method

analyse RSBDC_ANALYSE program in T.code SE80.Now u can see 2 includes .

Take RSBDCIL3.There u will find different Function modules .Put break point on First one .

Then goto SM35 and enter ur session name and select and Press on ANALYZE(button) application tool.Log is being dispalyed here .So Program is stopped in debugging mode .

If u clearly observe , LOG table is built using those Function module .

Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
350

You can simply re-run the session and only the transactions that were in error will re-process.

REgards,

RIch Heilman

Read only

Former Member
0 Likes
350

Hi Balu,

Please check this sample codes.

1.

BDL_GET_SESSION_INFO_LOG

2.

CALL FUNCTION 'RSTS_OPEN_RLC'    
     EXPORTING      
       NAME         = LOG_NAME      
       CLIENT       = LOG_CLIENT      
       AUTHORITY    = 'BATCH'      
       PROM         = 'I'      
       RECTYP       = 'VNL----'    
     EXCEPTIONS      
       FB_CALL_HANDLE =  4      
       FB_ERROR       =  8      
       FB_RSTS_NOCONV = 12      
       FB_RSTS_OTHER  = 16      
       NO_OBJECT      = 20      
       OTHERS         = 24.  
  
   IF SY-SUBRC > 0.     
     EXIT.  
   ENDIF.  

   CALL FUNCTION 'RSTS_READ'    
     TABLES      
       DATATAB  = LOG_TABLE    
     EXCEPTIONS      
       FB_CALL_HANDLE =  4      
       FB_ERROR       =  8      
       FB_RSTS_NOCONV = 12      
       FB_RSTS_OTHER  = 16      
       OTHERS         = 16.  

   IF SY-SUBRC > 0.     
     EXIT.  
   ENDIF.  

   CALL FUNCTION 'RSTS_CLOSE'    
     EXCEPTIONS      
       OTHERS = 4.  
   
   IF SY-SUBRC > 0.    
     EXIT.  
   ENDIF.

   describe table log_table lines line_count.
   if line_count = 0.
*    raise log_is_empty.   
   endif.

Also you can check FM BP_JOBLOG_READ and BDL_GET_SESSION_INFO_LOG.

Regards,

Ferry Lianto