Application Development 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: 

A BSP application involving multiple table

Former Member
0 Kudos

Hi.. I am in learning process of BSP .

I have a requirement as below . I am getting confused as to which part of coding I write in layout and in even handler.

Each time the loop runs I need to get the corresponding itab-feild records which are there in *itab_final *

This is the sample code in abap editor.

 
Loop at itab . 
...
....
....
....
Loop at  itab1. 
         Read itab2 with key feild1 = itab1-field1. 

            If sy-ubrc <> 0. 

       move  table1-field1 to itab_final.
       append itab_final.
            
            endif. 
Endloop. 

Write : Records for tab1-fld. 

         Loop at itab_final. 
              write : / itab_final-field1. 
         Endloop. 
Endloop. 



Can plz some one suggest me how do i go about this requirement to implement in a BSP application.

2 REPLIES 2

former_member242255
Active Contributor
0 Kudos

can you explain u r requirement a bit more clear..

0 Kudos

Hi Sravan,

Till now I worked on small BSP application where in there is a single select query using which all record go in to a single internal table(which is genrally written in event handler) which can be displayed writing code in layout tab.

Now my requirement is that I have a internal table itab and for every single record of itab I have few records which are appended to itab2. I need to display the records in itab2 for each loop pass of itab.