2013 Nov 23 10:23 AM
Dear All,
i am new to ABAP, now i have to create a smartform in which i have created a page
having a main window, in the main window i have created a template and a table,
my problem is that, i can show only three sets of data per page,
But as in a PR, there may be many sets of data (PO) ocuurs (lets say there are 8 sets of data),
so i wants to show all these 8 sets of data in my smartform.
One more thing is that, i have 2 internal table in which first table have unique materils and second table
have unique PO. So i have to print unique materials in row of my smartform and unique PO should be shown
as column in my smartforms.
So please see my issue, and sujjest me how can i code and call my smartform to show all PO's value.
Thanks in advance.
2013 Nov 23 12:04 PM
Hi Shweta,
based on your requirement please check this,
lets say
it_final -> having all the data for your PO
it_final1-> having uniuqe PO
it_final2 -> having unique material
Now when you will pick unique material, in that internal table you may not have all the PO's values.
LOOP AT it_final2 INTO wa_final2.
READ TABLE it_final1 INDEX 1.
LOOP AT it_final INTO wa_final WHERE ebeln = it_final1-ebeln
matnr = wa_final2-matnr.
IF sy-subrc = 0
wa_final2-ebeln = wa_final-ebeln.
*
*
*
put all your data in wa_final as same as i have done for ebeln.
Modify it_final2 FROM wa_final2 TRANSPORTING ebeln............
ENDIF.
ENDLOOP.
ENDLOOP.
Do it for all index upto your internal table and pass it to your smartform ,
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |