Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Queries : Need help ..

What is a Field Catalogue ?

What is the significance of EVENTS in ALV ?

How to upload Logo using ALV?

How to upload Logo using Scripts ?

What is the F.M. created whenever a smart form is activated ?

Tags:
Former Member
replied

Hi,

The main <b>events in alv</b> and their significance:

<b>1. SLIS_PRINT_ALV</b>. to print ALV report

2.<b> SLIS_T_LISTHEADER</b>. Is used to print the header information in the ALV List. Name, Date, Time, ALV Name and other details are called as Header information.

3. <b>SLIS_T_EVENT</b>. Basically this is the FM to handle Event's. When the user needs to do some event operation like when double clicking the a particular field we need to perform some operation. These events are captured by this FM.

4. <b>SLIS_T_SORTINFO_ALV</b>.

5. <b>SLIS_T_LAYOUT_ALV</b>. This FM is used to define the layout of the List. There are many options available in this FM to define the Layout style.

6. <b>SLIS_T_FIELDCAT_ALV</b>. These are used to populate the List header. We can change them according to our req.

User-defined Text Output Event

Application

<b>print_end_of_list</b>

Define output text to be printed at the end of the entire list

<b>print_top_of_list</b>

Define output text to be printed at the beginning of the entire list

<b>print_end_of_page</b>

Define output text to be printed at the end of each page

<b> print_top_of_page</b>

Define output text to be printed at the beginning of each page

<b>subtotal_text</b>

Define self-defined subtotals texts

Mouse-controlled Actions in the Grid Control Event

Application

<b>button_click</b>

Query a click on a pushbutton in the ALV Grid Control

<b>double_click</b>

Query a double-click on a cell of the ALV Grid control

<b>hotspot_click</b>

Query a hotspot click on columns defined for this purpose in advance

<b>onDrag</b>

Collect information when elements of the ALV Grid Control are dragged

<b>onDrop</b>

Process information when elements of the ALV Grid Control are dropped

<b> onDropComplete</b>

Perform final actions after successful Drag&Drop

<b>onDropGetFlavor</b>

Distinguish between options for Drag&Drop behavior

<b>Steps for uploading Logo in ALV</b> :-:

1. Goto the transaction OAER

2. Enter the class name as 'PICTURES'

3. Enter the class type as 'OT'

4. Enter the object key as the name of the logo you wish to give

5. Execute

6. Then in the new screen select Standard doc. types in bottom window

Click on the Screen icon

Now, it will ask for the file path where you have to upload the logo

7. Now you can use this logo in REUSE_ALV_COMMENTARY_WRITE

These are the <b>steps to be followed for uploading graphics in SAPscript</b>:

1. First save the file as BMP

2. Open the BMP file in IMaging (Goto -> Programs -> Accessories -> Imaging) and

make it Zoom as 100% and save as *.TIFF

3. Open SE38 and execute program RSTXLDMC

4. Give your TIFF file path name

5. Select Bcol (for Color)

6. TEXT ID will be ZHEX-MACRO-*.

7. Inplace of * write your own logo name (ZCOMPANYLOGO)

8. Execute the program

9. Now Goto SE71 create your ZFORM

10. Create logo window

11. Goto text element of logo window

<b>F.M. created whenever a smart form is activated</b>

call function 'SSF_FUNCTION_MODULE_NAME'

exporting

formname = 'ZSMARTFORM'

  • VARIANT = ' '

  • DIRECT_CALL = ' '

IMPORTING

FM_NAME = FM_NAME

EXCEPTIONS

NO_FORM = 1

NO_FUNCTION_MODULE = 2

OTHERS = 3.

if sy-subrc <> 0.

WRITE: / 'ERROR 1'.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

endif.

call function FM_NAME

  • EXPORTING

  • ARCHIVE_INDEX =

  • ARCHIVE_INDEX_TAB =

  • ARCHIVE_PARAMETERS =

  • CONTROL_PARAMETERS =

  • MAIL_APPL_OBJ =

  • MAIL_RECIPIENT =

  • MAIL_SENDER =

  • OUTPUT_OPTIONS =

  • USER_SETTINGS = 'X'

  • IMPORTING

  • DOCUMENT_OUTPUT_INFO =

  • JOB_OUTPUT_INFO =

  • JOB_OUTPUT_OPTIONS =

TABLES

GS_MKPF = INT_MKPF

EXCEPTIONS

FORMATTING_ERROR = 1

INTERNAL_ERROR = 2

SEND_ERROR = 3

USER_CANCELED = 4

OTHERS = 5.

if sy-subrc <> 0.

MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

endif.

Hope this helps.

Reward if helpful.

Regards,

Sipra

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question