cancel
Showing results for 
Search instead for 
Did you mean: 

MB1B and SM35

Former Member
0 Kudos

I recorded a tranaction and created a BDC program that calls the session in SM35 to execute it immediately. The problem is that I'm having "no batch input data for screen SAPLKACB 0002" error. I just copy the recording to my program and it seems ok. When I'm running the session in foreground using SM35, i just ignore the errors and it still continues.

But how can I ignore those errors and process the session when I'm calling rsbdcsub?

View Entire Topic
Former Member
0 Kudos

There is no way to ignore errors in background. In foreground, you are specifically pressing enter key etc, and making sure that the program moves on. Background system has no way of knowint this.

You need to check what data needs to be entered on that screen, and pass that data to make sure that the background BDC finishes.

Former Member
0 Kudos

I'm still getting the same error. I create a recording then put them in my code. But when I run the session in SM35, it's the same error.

No batch input data for screen SAPLKACB 0002

All my fields are properly filled up.

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

Try the following.

DATA: T_MESSTAB TYPE BDCMSGCOLL OCCURS 0 WITH HEADER LINE.

DATA : T_BDCDATA TYPE BDCDATA OCCURS 0 WITH HEADER LINE.

PERFORM BDC.....

CALL TRANSACTION TCODE USING T_BDCDATA MODE 'N' UPDATE 'L' MESSAGES INTO T_MESSTAB.

IF SY-SUBRC <> 0.

populate_error from t_messtab.

ENDIF.

Kindly reward points by clicking the star on the left of reply,if it helps.

Former Member
0 Kudos

Jayanthi,

I'm trying to execute the session that I created in SM35 when my program runs. The only problem is that I'm getting an error.

Will this code replace the submit code?

Former Member
0 Kudos

Here's the content of my sample bdcdata.


SAPMM07M 0400 X                                      
                BDC_CURSOR             RM07M-LGORT   
                MKPF-BLDAT             02162006      
                MKPF-BUDAT             02162006      
                RM07M-BWARTWA          311           
                RM07M-WERKS            1100          
                RM07M-LGORT            1412          
                XFULL                  X             
                RM07M-XNAPR            X             
                RM07M-WVERS2           X             
                BDC_OKCODE             /00           
SAPMM07M 0421 X                                      
                BDC_CURSOR             MSEG-ERFMG(01)
                MSEGK-WEMPF            0486          
                MSEGK-UMLGO            1412          
                DKACB-FMORE            X             
                BDC_OKCODE             /00           
                mseg-matnr(01)         2000090       
                mseg-erfmg(01)         2             
                mseg-lgort(01)         1112          
                mseg-charg(01)         0000006822    
                mseg-matnr(02)         2000090       
                mseg-erfmg(02)         2             
                mseg-lgort(02)         1112          
                mseg-charg(02)         0000006822    
                mseg-matnr(03)         2000090       
                mseg-erfmg(03)         2             
                mseg-lgort(03)         1112          
                mseg-charg(03)         0000006822    
                mseg-matnr(04)         2000090       
                mseg-erfmg(04)         2             
                mseg-lgort(04)         1112          
                mseg-charg(04)         0000006822    
                mseg-matnr(05)         2000090       
                mseg-erfmg(05)         2   
                mseg-lgort(05)         1112
                mseg-charg(05)         0000006822                
                mseg-matnr(06)         2000090                   
                mseg-erfmg(06)         2                         
                mseg-lgort(06)         1112                      
                mseg-charg(06)         0000006822                
                mseg-matnr(07)         2000090                   
                mseg-erfmg(07)         2                         
                mseg-lgort(07)         1112                      
                mseg-charg(07)         0000006822                
SAPLKACB 0002 X                                                  
                BDC_SUBSCR             SAPLKACB                  
                BDC_OKCODE             =ENTE                     
SAPLKACB 0002 X                                                  
                BDC_SUBSCR             SAPLKACB                  
                BDC_OKCODE             =ENTE                     
SAPMM07M 0410 X                                                  
                BDC_SUBSCR             SAPLKACB                  
                DKACB-FMORE            X                         
SAPLKACB 0002 X                                                  
                BDC_SUBSCR             SAPLKACB                  
                BDC_OKCODE             =ENTE                     
SAPMM07M 0410 X                                                  
                BDC_SUBSCR             SAPLKACB                  
                DKACB-FMORE            X                         
SAPLKACB 0002 X                                                  
                BDC_SUBSCR             SAPLKACB                  
                BDC_OKCODE             =ENTE                     
SAPMM07M 0410 X                                                  
                BDC_SUBSCR             SAPLKACB                                                                                
DKACB-FMORE            X                         
SAPLKACB 0002 X                                                  
                BDC_SUBSCR             SAPLKACB                  
                BDC_OKCODE             =ENTE                     
SAPMM07M 0410 X                                                  
                BDC_SUBSCR             SAPLKACB
                DKACB-FMORE            X                    
SAPLKACB 0002 X                                             
                BDC_SUBSCR             SAPLKACB             
                BDC_OKCODE             =ENTE                
SAPMM07M 0410 X                                             
                BDC_SUBSCR             SAPLKACB             
                DKACB-FMORE            X                    
SAPLKACB 0002 X                                             
                BDC_SUBSCR             SAPLKACB             
                BDC_OKCODE             =ENTE                
SAPMM07M 0410 X                                             
                BDC_SUBSCR             SAPLKACB             
                DKACB-FMORE            X                    
SAPLKACB 0002 X                                             
                BDC_SUBSCR             SAPLKACB             
                BDC_OKCODE             =ENTE                
SAPMM07M 0410 X                                             
                BDC_SUBSCR             SAPLKACB             
                DKACB-FMORE            X                    
SAPLKACB 0002 X                                             
                BDC_SUBSCR             SAPLKACB             
                BDC_OKCODE             =ENTE                
SAPMM07M 0421 X                                             
                BDC_CURSOR             MSEG-ERFMG(01)       
                BDC_SUBSCR             SAPLKACB             
                DKACB-FMORE            X                    
                BDC_OKCODE             =NLE                 
SAPLKACB 0002 X                                             
                BDC_OKCODE             =ENTE                
SAPMM07M 0421 X                                             
                BDC_CURSOR             MSEG-ERFMG(01)       
                MSEGK-WEMPF            0486                 
                MSEGK-UMLGO            1412                 
                DKACB-FMORE            X                    
                BDC_OKCODE             /00                  
                mseg-matnr(01)         2000090  
                mseg-erfmg(01)         2                  
                mseg-lgort(01)         1112               
                mseg-charg(01)         0000006822         
                mseg-matnr(02)         2000090            
                mseg-erfmg(02)         2                  
                mseg-lgort(02)         1112               
                mseg-charg(02)         0000006822         
                mseg-matnr(03)         2000090            
                mseg-erfmg(03)         2                  
                mseg-lgort(03)         1112               
                mseg-charg(03)         0000006822         
                mseg-matnr(04)         2000090            
                mseg-erfmg(04)         2                  
                mseg-lgort(04)         1112               
                mseg-charg(04)         0000006822         
                mseg-matnr(05)         2000090            
                mseg-erfmg(05)         2                  
                mseg-lgort(05)         1112               
                mseg-charg(05)         0000006822         
                mseg-matnr(06)         2000090            
                mseg-erfmg(06)         2                  
                mseg-lgort(06)         1112               
                mseg-charg(06)         0000006822                                                                                
mseg-matnr(07)         2000090            
                mseg-erfmg(07)         2                  
                mseg-lgort(07)         1112               
                mseg-charg(07)         0000006822         
SAPMM07M 0410 X                                           
                BDC_SUBSCR             SAPLKACB           
                DKACB-FMORE            X                  
SAPLKACB 0002 X                                           
                BDC_SUBSCR             SAPLKACB           
                BDC_OKCODE             =ENTE              
SAPMM07M 0410 X                                           
                BDC_SUBSCR             SAPLKACB           
                DKACB-FMORE            X                 
SAPLKACB 0002 X                                          
                BDC_SUBSCR             SAPLKACB          
                BDC_OKCODE             =ENTE             
SAPMM07M 0410 X                                          
                BDC_SUBSCR             SAPLKACB          
                DKACB-FMORE            X                 
SAPLKACB 0002 X                                          
                BDC_SUBSCR             SAPLKACB          
                BDC_OKCODE             =ENTE             
SAPMM07M 0410 X                                          
                BDC_SUBSCR             SAPLKACB          
                DKACB-FMORE            X                 
SAPLKACB 0002 X                                          
                BDC_SUBSCR             SAPLKACB          
                BDC_OKCODE             =ENTE             
SAPMM07M 0410 X                                          
                BDC_SUBSCR             SAPLKACB          
                DKACB-FMORE            X                 
SAPLKACB 0002 X                                          
                BDC_SUBSCR             SAPLKACB          
                BDC_OKCODE             =ENTE             
SAPMM07M 0410 X                                          
                BDC_SUBSCR             SAPLKACB          
                DKACB-FMORE            X                 
SAPLKACB 0002 X                                          
                BDC_SUBSCR             SAPLKACB          
                BDC_OKCODE             =ENTE             
SAPMM07M 0410 X                                          
                BDC_SUBSCR             SAPLKACB          
                DKACB-FMORE            X                 
SAPLKACB 0002 X                                          
                BDC_SUBSCR             SAPLKACB          
                BDC_OKCODE             =ENTE             
SAPMM07M 0421 X                                          
                BDC_OKCODE             =BU               
SAPLKACB 0002 X                                 
                BDC_OKCODE             =ENTE
            
                  

Former Member
0 Kudos

Hi Adrian,

Do not use the step loop screen for your recording. When you create your recording, after entering plant, movement type and location from, instead of pressing enter, click on new item.

It is a bit tricky to use step loop screens in BDC.

regards

Ravi

Former Member
0 Kudos

Gosh! Thanks Ravi. I've been figuring this out for weeks. And that is really the problem.

Thanks. I'll give you points for this.