cancel
Showing results for 
Search instead for 
Did you mean: 

how to match document no. in header window with the document no. in main .

Former Member
0 Kudos

Hi,

I have two windows header window and main window.

in my header window i am displaying document no. and according to that doc. no. the materials of that document no. should be printed in the main window and as the document no. changes there should be a page break.

how should i match the document no. in main window with the document no. in the header window.

and how to give page break.

Thanks,

Afzal

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

For Ex: In header window you are using the document number as V_DOC.

IT_TAB is the internal table that contains the Item details

Scripts:

Loop at IT_TAB into W_TAB where DOC_NO = V_DOC

Call the function module "WRITE_FORM" and pass the parameters

Window name as "MAIN" and give the element name

End loop.

Smart forms:

a) Go to Main window, right click on it and select a table for creating table

b) Select the Table, Go to DATA tab, Give the internal table and work area

In that, Where conditions tab give the condition as DOC_NO = V_DOC.

Clearly mention, when the document number is going to be changed, so that I will provide How to give page break.

Thanks

Srikanth(sriiiiiiii)