Alv with out field catalog
Hi experts,
Is it possible to display ALV report with out using field catalog ? If yes please tell me how .
Thanks,
Usha
Hi ,
use the FM 'REUSE_ALV_FIELDCATALOG_MERGE'
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
I_PROGRAM_NAME = SY-REPID
I_INTERNAL_TABNAME = 'T_KNA1'
I_STRUCTURE_NAME = 'KNA1'
I_CLIENT_NEVER_DISPLAY = 'X'
I_INCLNAME = SY-REPID
I_BYPASSING_BUFFER =
I_BUFFER_ACTIVE =
CHANGING
CT_FIELDCAT = T_FCAT1
EXCEPTIONS
INCONSISTENT_INTERFACE = 1
PROGRAM_ERROR = 2
OTHERS = 3
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Regards,
Vijay
Similar Messages
-
How to select multiple records in ALV with out pressing ctrl
Hi Experts,
Is there a way to select multiple records in ALV with out pressing ctrl button on the key board?
Selection and deselection should allow multiple records.
any clue is highly appreciated.
regards,
AjayThe keyboard always plays a role, although with the Shift key you can select blocks of records.
○ CTRLclick, CTRLspacebar
Toggles a selection.
○ SHIFTclick, CTRLshift
Selects the area from the lead selection to the row selected. If no lead selection is set, the selection starts from the first row. In the multiNoLead mode, the selection starts from the row last selected -
Hi ,
Can we create ALV tree in Field catalog and expand output table depending on the click on tree.
Regards,
SatyaDid you look at SLIS Dev. Class.
There are many samples in ALV.
ibrahim -
ALV Grid: Alternate Field Catalog per Line Type possible?
I'm using the ALV Grid Classes: Is it possible to change the Field Catalog per line type? I have two different line types: 1) Interspersed headers and 2) data lines. The Interspersed headers should have no_zero = 'x' and the data lines no_zero = space.
It can be done by REUSE_ALV_HIERSEQ_LIST_DISPLAY in classic ALV .
Alternately, it can be done by ALV object model. Try SALV* and look into sample programs. -
Regarding icons in alv (with out using oops concept)
i have generated an alv report.for that key field is vbeln .i have to add an icon coloumn before vbeln and have some icon for that coloumn to show that its a key field. how would i di that. and i have used macros to bulid fieldcatalog. now i have to add extra coloumn that too it should be in first position. since i have 20 fields and vbeln being first coloumn and i have to add icon coloumn before that.
there is atable in the dictionary ICON.
IN UR PROGRAM, in the structure declare
a variable like ICON-NAME as first field.
and pass it in the field catalog.
while entering values u pass the value in to the variable u will get the required icon.
u need to pass the id.
check the table u can find the name. -
Radio button in ALV without using field catalog
Hi All,
My requirement is i want to create a RFC function module to display the header table.
while executing the function module the output is of alv grid format.
i have used the structure for this.
i didnt create a layout and fieldcatalog.
now i need to add a radio button in that alv grid display.
how to create the radio button without using field catalog.
Thank in Advance.Hi Aishwarya,
You need to use the field catalog for displaying a field as a radio button in ALV grid.
Please refer to this link for doing so. [Radio buttons in ALV Grid|http://wiki.sdn.sap.com/wiki/display/Snippets/ABAP-RadioButtonsinALVGRIDREPORT]
You can use LVC_FIELDCATALOG_MERGE wherein you can use your structure and the Icon for Radiobutton.
Refer to this link -[Radiobuttons in ALV Grid 2|http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/a02535ce-9eaf-2910-ae8c-f2f2afc1c8e7?quicklink=index&overridelayout=true]
Best Regards,
Sharmila
Edited by: Sharmila Subramanian on Mar 18, 2011 12:34 PM -
ALV Grid Control -- Field Catalog
Hi ,
In the filed catalog for ALV grid control ( LVC_T_FCAT) ,there is a field called CHECKTABLE , can i use this to validate the value entered in that cell of a editable ALV.
If yes then what are the perquisites of using it.
Regards
ArunHi Arun,
look the help.sap.com documentation, all the field of the field catalog are describe and explain.
Regards
Frédéric -
Printing the Output of ALV with out page breaks
Dear all,
I had a problem while taking printout in FBL1N transaction . wheever i am taking a printout one block of ALV is coming in one page. The alv is grouped according to vendor and Company code. with is_sort-group = '*'. I read so many forms and found that whenver a list is grouped with something then automatically it will be divided ino pages according to that. But my client requirement is if there are four records in the first group. the system will print the 4 records in the first page then the other records in another group are printed in the next page. but it should be printed like after the 4 records of the first group is over then it should start printing the next group records in the same page.
I tried using the is_sort-group = 'UL' but the header of the list is getting suppressed with that.
the variant is 1SAP
can any one tell me how to handle the situation
Thanks & regards
sreehari pit is normal
with * in group you generate a NEW-PAGE event which in turn executes the TOP-OF-PAGE (and print list header)
with UL in group you don't generate a NEW-PAGE so no list header
there is no other option -
How can print alv with out color ?
i am printing an alv report that i define certain colors for
The columns.
But when i print the report i see lines (like XXX or /////) on the
Colors ( may be to see the difference of the colors ) .
is there any way to ignore the colors in printing ?
i checked IS_PRINT I didnt see any parameter to ignore
Colors in printing.Hi dakota,
if you print locally via SAPGUI, please play around with color options (use color!) of SAPLPD. If it happend with a SAP network printer, is has not been properly installed.
Regards,
Clemens -
Refresh REUSE_ALV_GRID_DISPLAY with Field Catalog
Hi Gurus.
Basicly : How can I refresh my ALV grid via field catalog?
Detail : I want refresh my ALV Grid (I am using Reuse_Alv_Grid_Display) with field catalog. Our end users want show/hide some columns. I have been adding a button at toolbar. If user click this. My ALV grid going refresh and show/hide columns. I have a global variable for this. If user click this I set its value X or ''. I set my catalog
Wa_cat-No_out = p_show
p_show will be 'X' or ''.
Perform Create_Alv_Catalog.
Perform ALVDisplay Tables IRapor.
If I re execute this lines. It is open another grid. It is not working clearlyHi Mehmet,
1. Due to some reasons, this
technique DOES NOT WORK.
2. However, we have a WORKAROUND
and it works FANTASTIC.
3. the key is
slis_selfield-EXIT = 'X'.
(in the call back FORM)
4. In the call back form,
do the following things :
a) reconstruct field catalogue,
b) show alv AGAIN
c) slis_selfield-EXIT = 'X'.
5. just copy paste this code in new program
a) it will show t001 (company info)
b) on double-clicking,
it will HIDE company text.
6.
REPORT abc.
TYPE-POOLS : slis.
Data
DATA : BEGIN OF itab OCCURS 0.
INCLUDE STRUCTURE t001.
DATA : END OF itab.
DATA : alvfc TYPE slis_t_fieldcat_alv.
DATA : alvwa TYPE slis_fieldcat_alv.
Select
SELECT * FROM t001 INTO TABLE itab.
*------- Field Catalogue
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = sy-repid
i_internal_tabname = 'ITAB'
i_inclname = sy-repid
CHANGING
ct_fieldcat = alvfc
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
Display
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
it_fieldcat = alvfc
i_callback_program = sy-repid
i_callback_user_command = 'ITAB_USER_COMMAND'
TABLES
t_outtab = itab
EXCEPTIONS
program_error = 1
OTHERS = 2.
FORM itab_user_command USING whatcomm TYPE sy-ucomm whatrow TYPE
slis_selfield.
LOOP AT alvfc INTO alvwa.
IF alvwa-fieldname = 'BUTXT'.
alvwa-no_out = 'X'.
MODIFY alvfc FROM alvwa.
ENDIF.
ENDLOOP.
*------- Field Catalogue
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
i_program_name = sy-repid
i_internal_tabname = 'ITAB'
i_inclname = sy-repid
CHANGING
ct_fieldcat = alvfc
EXCEPTIONS
inconsistent_interface = 1
program_error = 2
OTHERS = 3.
Display
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
it_fieldcat = alvfc
i_callback_program = sy-repid
i_callback_user_command = 'ITAB_USER_COMMAND'
TABLES
t_outtab = itab
EXCEPTIONS
program_error = 1
OTHERS = 2.
IMPORTANT.
IMPORTANT.
whatrow-exit = 'X'.
ENDFORM. "itab_user_command
regards,
amit m. -
How to Create Field Catalogs (More than one Source Table)
Hi Data Archiving Experts,
Could you please help me how to create the Field Catalogs (More than one Source Table). If any one is having example that will help.
My scenario:
Currently we are archiving on CRM Data archiving project. We are facing one issue on creating field catalog with more than one source table.
Ex: ST -- BP1
BP2
BP3
ST info store in one table and BP1 -- BP 3 info sotre in another table. with current field catalog we are getting ST -- BP1. Our requirment is we need to show the ST -- BP3 How we can achive this.
Regards,
SriniHi,
I don't think its possible to create fieldcatalog for different tables,
but if you want to do so create a dummy table which has all the fields which you want in fieldcatalog.
populate the data from different table to that dummy table
then create fieldcatalog for that table and pass it in the function module...
Regards,
Siddarth -
How to modify field symbol of type Index Table with other field symbol of type any.
Hello Experts,
How is it possible to update an filed symbol table of type Index table with other filed symbol table.
e.g.
Field symbol : <lt_table1> type Index table.
Field symbol : <lt_table2> type Index table.
after some code...at run time these table filled like following.
<lt_tabel1 > has value fore column like c11 , c12 , c13
<lt_table2> has value for column like C11 , C12 , C13 , C14 , C15 . some extra values from <lt_table1>
Now I want to be modify <table1> one entires like C12 with <table2 > col C12.
how I can achieve this.
Regards,
Chetan.Hi,
did you try ASSIGN COMPONENT xx OF STRUCTURE <IT_TABEL1> TO <IT_TABLE2>.
xx will contain the number of the column
or maybe, if you have the description with a field catalog or other, that will be easier ..
regards
Fred -
With out SLIS is it possible to write the ALV's programs?
if we can write what happend?
what is the noramal alv's and SLIS used alv's plz telme ?Hi,
Yes, With out SLIS it is not possible to write the ALV's programs by using Function Module <b>expect ABAP Objects (Classes and Methods</b>)
you can make ALV with out SLIS Typepool by using ABAP Objects (Classes and Methods)
So SLIS is optional for ALV
<b>Reward with points if helpful.</b>
Regards,
Vijay -
Field Catalog (Output Billing) for new Condition Table
Dear all,
I am struggling with new Field Catalog Fields for my Condition Table
To determine two different printers I have tried to add ERNAM (SAP author of document), and to print or not to print certain documents depending on Customer Number (Proforma and Packing list) I have tried to add KNDNR
No matter which field I add, the system warns me "Choose the key from the allowed namespace"
and in the Acces Sequence later on I am getting a red flag.
So far I have gotten advise that I need to ABAP user exits, create tables and lots of tech stuff.
I want to configure the system, not program it.
So: Can I add fields to the Field Catalog without being an ABAPPER or can I not?
Thanks,
NickelodeonHi,
You can add the field in the OUTPUT COMMUNICATION STRCTURES
OUTPUT COMMUNICATION AREA for Billing is KOMKBV3 and the Include is KOMKBZ5.
If you want to add the new field ERNAM then add this field from the VBRK
Enter the field ZZERNAM in the commnication strctre KOMKBV3 in the include KOMKBZ5 in the data dictionary
By entering the field in the Include KOMKBZ5 you automatically include it in the commnication structre KOMKBV3
Next add the field ZZERNAM in the communication table KOMB
Now assign the values to the field in the FUNCTION MODULE KOMKBV3FILL_
Include the ZZERNAM in the field catalogue for the CONDITION TABLE of Billing documents .
After doing this you can check the new field in the FIELD CATALOGUE in the CONDITION TABLE for OUTPUT DETERMINATION.
Please try this for your Application area ( as i gave example for Billing documents) and revert back if you need any more details
regards,
santosh -
How to download alv grid output(with field catalog) into excel file format
Hi all,
How to download alv grid output(with field catalogs) into excel file format and same file has to download to application server.
Please help.
Regards,
Satya.Hi,
On list where alv is displayed, select export icon( green color -> ),select spread sheet.
This will display records in Excel sheet.
Maybe you are looking for
-
I don't see a way to set page layout to landscape, so that you could fit 6 up on a contact sheet, with larger images. There is too much wasted space trying to do 6 up with page in portrait mode. Ideas?
-
Hi experts, How to ensure accounting document in material document, i.e. cannot PGI for outbound delivery if production order confirmation without costing? The reason is that no accounting document is found in materail document after PGI.
-
Fix for overlay text rendering issue
@Neil Enns - I have branched this into a new discussion from original thread: Re: Trouble with ipa size after changing assets Having some issues with overlays that are set to "vector" for "Export format in PDF articles" It seems as this setting doesn
-
ThinkPad USB Keyboard Driver SK-8855
The ThinkPad USB Keyboard SK-8855 is not listed in the driver matrix. I can only find the one for the newer 55Y9003. Help? Does anybody know if the newer driver works with the older keyboard?
-
Wireless keyboard will not pair with computer. Unable to submit password.
My wireless keyboard will not pair with the computer. Now I am unable to submit the password in order to access the computer.