2006 Jul 14 1:34 PM
Hello,
Can anyone give a small example of how to display fields of type I and P in an ALV grid. Using the alv grid FM and manually filling the fieldcatalog.
Thanks for your help.
2006 Jul 14 2:23 PM
Hi Moussa,
What problem are you encountering while using integer type values in ALV...?
If it is like you want to learn ALV grid using Function Modules, you can go through this document.
http://esnips.com/doc/4c4b7308-db7f-4c27-a153-71fbd9419568/ABAP_List_Viewer....doc
Regards,
SP.
Hello,
Can anyone give a small example of how to display fields of type I and P in an ALV grid. Using the alv grid FM and manually filling the fieldcatalog.
Thanks for your help.
2006 Jul 14 1:41 PM
Hai,
Change the field type to character type and display it in alv. Always quantity or price fields should be taken in a character field and it should be displayed.
Reward if useful.
regards,
Umasankar
2006 Jul 14 2:23 PM
Hi Moussa,
What problem are you encountering while using integer type values in ALV...?
If it is like you want to learn ALV grid using Function Modules, you can go through this document.
http://esnips.com/doc/4c4b7308-db7f-4c27-a153-71fbd9419568/ABAP_List_Viewer....doc
Regards,
SP.
2006 Jul 14 2:26 PM
2006 Jul 14 2:31 PM
Hi Moussa Khelifi ,
u can manually fill fieldcatalog like this..
form manual_filling_fieldcatalog.
X_FIELDCAT-FIELDNAME = 'ATWRT'.
X_FIELDCAT-TABNAME = 'TB_FINAL'.
X_FIELDCAT-SELTEXT_L = 'Source of Supply'(001).
X_FIELDCAT-DDICTXT = L_DDICTXT.
X_FIELDCAT-FIELDNAME = 'MATNR'.
X_FIELDCAT-TABNAME = 'TB_FINAL'.
X_FIELDCAT-SELTEXT_L = 'MATERIAL'(002).
X_FIELDCAT-DDICTXT = L_DDICTXT.
APPEND X_FIELDCAT TO TB_FIELDCAT .
endform.
u can directly pass the table to 'REUSE_ALV_GRID_DISPLAY'
regardless of type p or i fields in it.
Regards,
kiran B
2006 Jul 17 12:06 PM
Thanks for the responses.
I have tried using a QUAN type but it still doesn't work.
My issue is:
I have an itab with the following columns,
MATNR, ARKTX, formula1, formula2, formula3, formula4, formula5.
and my alv output looks like this.
MATNR, ARKTX, ARKTX, ARKTX, ARKTX, ARKTX, ARKTX.
For some reason when it get's to the first formula "TYPE P", it does not take the content of my itab but instead keep using the content of the last column "in this case ARKTX".
I'm not sure why it's behaving this, it's like the FM module recognizes only DDIC types.
Thx
MK
2006 Jul 17 9:04 PM
fyi,
It was because the fomulas in the fieldcatalog were in lowercase.
Thanks for your answers.
MK
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |