2014 Feb 03 5:30 AM
Hi All
Im going to do smartform, I have two internal tables,
Header internal table - IT_HEAD ( MBLNR key )
Detail Table - IT_DET ( MBLNR , etc... )
i want to print MBLNR as header , and want to print detail data , relavent to same MBLNR,
and also print different MBLNR different pages.
Im going to loop header data in LOOP node and under that i have TABLE, in that table im looping my detail TABLE,
But it is not working properly, can u pls explain this......
rgds
pramod
2014 Feb 03 10:19 AM
Hi Pramod,
you can achieve your requirements wih help of one loop statement,one table loop and page break.
please collect the different mblnr in new internal table with help of collect statement.
Please Refer below screenshots .
please let me know further facing the prob..
Regards,
Thangam.P
2014 Feb 03 5:54 AM
You will need nested table. One for header and other for item. After the item loop you need to put command page break so that each document is printed on a new page
2014 Feb 03 5:54 AM
Hi Pramod,
If i understand your reuirement correctly then it is to display material document number along some other deatils as a header and item level deatils on a smartform with page-break on MBLNR field.
I would suggest you the below approach :
Main: this will be the one main table which will store the header and item level data for a particular mblnr.
structure of main table:
Header : contains header details
Item[] : contains item details
Sort the main table based on mblnr first.
Steps :
1.Now loop through main table .
2.Display your header details
3.Loop your item table and dispaly its details.
4.At the end of main loop provide the command to page break .
regards,
Sumit
2014 Feb 03 10:19 AM
Hi Pramod,
you can achieve your requirements wih help of one loop statement,one table loop and page break.
please collect the different mblnr in new internal table with help of collect statement.
Please Refer below screenshots .
please let me know further facing the prob..
Regards,
Thangam.P
2014 Feb 03 10:34 AM
HI Thangam
Thank you very much, very help full answer,i got good idea from u r screen shoots,
Thnks.
pramod