Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Queries : Need help ..

Former Member
0 Kudos

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 ?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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

5 REPLIES 5

Former Member
0 Kudos

Hi,

Field Catalogs

Use

With this function, you can create new field catalogs and work with existing field catalogs. Archiving information structures are defined on the basis of Field Catalogs.

Standard field catalogs, which are designed to cover most application requirements, are supplied with the Archive Information System. You should therefore only create your own field catalogs if the fields contained in the standard field catalogs do not meet your requirements.

If a standard transaction of an application only allows for standard field catalogs, customer specific field catalogs are not recognized by the system.

Prerequisites

You need to have some expert knowledge to use this function. For example, you should be familiar with the data model of the archiving object up to table level.

Features

Working With Existing Field Catalogs

You can change the definition of the existing field catalogs, for example, by adding further source fields or changing the allocation of data- and key fields. When working with existing field catalogs, you basically use the same procedures you would use for creating field catalogs (see below).

You must copy a standard field catalog from the SAP namespace into your own namespace—that is, make it a customer-specific field catalog—before you make any changes to it. All entries that begin with "SAP" belong to the SAP namespace and may no be changed.

Creating New Field Catalogs

When you create a new field catalog, you have the options of using fields from:

· one source table

· more than one source table

For information on procedures, see Creating Field Catalogs (One Source Table).

To create field catalogs from more than one source table, refer to the additional Notes, which you must observe.

Deleting Field Catalogs

Before you delete a field catalog, you must first delete all of the archive information structures that use this field catalog. The deletion of catalogs that are still being used is prevented by a deletability check. If you try to delete an SAP standard field catalog, the system issues a warning message to this effect.

Regards,

Padmam.

Former Member
0 Kudos

Hi,

Whenever a Smartform is Activated,the Function Module is Created automatically by the System.

If u create ur own Function Module using the Function Module 'SSF_FUNCTIONMODULE_NAME' then this Function Module gets Updated while activating the Smartforms.

Regards,

Padmam.

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

<b>To Upload Logo in Scripts:</b>

Command in your Sapscript

/: INCLUDE Z_YOUR_LOGO OBJECT TEXT ID ST LANGUAGE E

These are the steps to be followed for uploading graphics in R/3 system

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

(or)In 4.6x

1. Goto SE71 Change the mode to GRAPHICAL

2. Choose the Graph Tabstrips

3. Now type in some name for the LOGO WINDOW

4. Press the IMPORT BUTTON (third button from left) and then IMPORT the BMP file from your DESKTOP

5. The code will be written automatically. You just need to drag and drop wherever you want

the graphics to be.

/: INCLUDE Z_COMPANY_LOGO OBJECT GRAPHICS ID BMON LANGUAGE EN

Regards,

Padmam.

Former Member
0 Kudos

Hi,

1) Using fieldcatlog you can give the parameters to ALV for representation of your final output of program.

2) using events you can header and footer to ALV reports.

3) using the Function Module REUSE_ALV_COMMENTARY_WRITE we can upload the LOGO in ALV report