cancel
Showing results for 
Search instead for 
Did you mean: 

calling sub window more than one time in a page.

senthil_kumar29
Participant
0 Kudos

Hi Guys,

I design a sub window which carry more than one line of data.

I am looping through my code to call the sub window more than one time.

But its printing only one line.

I already have a main window.

Any suggestions How to overcome this issue.

Cheers

Senthil

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

When u want to call the sub window more than one time,loop the window and not the code.

senthil_kumar29
Participant
0 Kudos

Hi,

What U mean Loop the window.. of course I am calling the window inside a loop.

Senthil

Former Member
0 Kudos

Hi,

While calling sub window mention function type (one of exporting parameters) as "APPEND" instead of "SET". This could be the problem for getting one line instead of multiple lines. Even after mentioned function type as append get only single line, please check window size.

Hope this will give you some idea,

Regards,

Aswini.

senthil_kumar29
Participant
0 Kudos

Hi,

I add function APPEND to the write_form FM.

here is the code.

CALL FUNCTION 'WRITE_FORM'

EXPORTING

window = 'SUM_WIN'

function = 'APPEND'

EXCEPTIONS

window = 1.

I am not sure why its not working..

Cheers

Senthil

Former Member
0 Kudos

write code in your pagw window also..

like

/: SUM_WIN

and pass your value

Former Member
0 Kudos

Hi,

Try like this

CALL FUNCTION 'WRITE_FORM'

EXPORTING

ELEMENT = <element name>

FUNCTION = 'APPEND'

TYPE = 'BODY'

WINDOW = 'SUM_WIN'

EXCEPTIONS

ELEMENT = 1

FUNCTION = 2

TYPE = 3

UNOPENED = 4

UNSTARTED = 5

WINDOW = 6

OTHERS = 7.

Check the window size also and length of the writing data.

Hope this will give you some idea,

Regards,

Aswini.

senthil_kumar29
Participant
0 Kudos

Hi,

I tried this, but still no luck, its showing only one line.

Any thing I need to do. I keep the window size is Variable.

Cheers

Senthil