0% found this document useful (0 votes)
10 views14 pages

B3.3 - Global Events

Uploaded by

John Gutierrez
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views14 pages

B3.3 - Global Events

Uploaded by

John Gutierrez
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

B3.

3 - Global Events
Level Topic
B3 (Medium Three) This tutorial describes how to use mass mode to create field selections. A report
will be generated – it provides a quick overview about all selections and table
connections. The global event will be created and the scope adjusted. A data
Keys migration will illustrate the behavior of the global event.
Mass mode to create
field selections Content

Estimated time: • ...


• ...
1h

Goals
TC release:
XX.XX SPXX ...

Related JIRA tests: Attachments

TCT-179, TCT-205. • ...


• ...
Last changes:
Fields/Virtual tables/System Environment:
29-Jan-18
• ...
• ...

Prerequisites:

• Scenario has been created


• System connections are maintained
• ...

Nice to have:

• All previous tutorials of this level.

Necessary tutorials to complete beforehand:

• All tutorials of level A (Basic).

Following Tutorials can be recommended afterwards:

• All remaining tutorials of this level.

Level: B3 (Medium Three) Seite 1


Please go through the steps and check the results according to recommended values:

Values Result

1 Start TC and create a new scenario. Transaction: TC starts and the new
/n/SNP/TC scenario is displayed.

2 Create a module and a data object.

3 In the Mass maintenance tab, click Add A pop-up opens.


from DDIC.

4 Enter MA* into the Tables text field and The Table selection
confirm the pop-up. window opens.

5 Click Select all and confirm the window. All SAP tables starting with
the letters “MA” will be

Level: B3 (Medium Three) Seite 2


Values Result
assigned to the data
object.

6 Start transaction SE38 in the central The report Generate field


system and execute the report selections starts.
/SNP/TE02_CREATE_FIELD_SELS

7 Enter the name of the current scenario into Field name:


the Scenario text field. MATNR
VALUE: 100-100

8 Execute the report. All tables of the current


scenario that contain fields
for the domain MATNR
have been assigned a field
selection with the selection
value 100-100.

Level: B3 (Medium Three) Seite 3


Values Result

9 Switch back to the Transformation Cockpit The field selections have


and check the created field selections. been assigned correctly.

10 Create a global selection for the domain


WERKS in the table MARC.

Level: B3 (Medium Three) Seite 4


Values Result

11 Enter the selection values:


1000
1200

12 Create a second data object. Assign the The connection field


selection table LFA1 and the dependent LIFNR is maintained
table LFAS. automatically by the
system.

Level: B3 (Medium Three) Seite 5


Values Result

13 Start transaction SE38 in the central The report Overview of


system and execute the report the selections starts.
/SNP/TE02_SELECTION_OVERVIEW

14 Enter the name of the current scenario and


execute the report.

Compare the following entries with the current scenario:


- All field selections with the corresponding values
- The global selection for the domain WERKS
- Table connection field LIFNR for tables LFA1 and LFAS

Level: B3 (Medium Three) Seite 6


Values Result

15 Return to the Transformation Cockpit.


Select the Events tab in the Global area.

16 Click Add rule. The detail window for


maintaining the global
event opens.

17 Enter a title and the following code. Title:


Global_event

CASE te-tabname.
WHEN 'marc'
OR 'mara'.
PERFORM api_message_add
USING
'I'
'The global event has been called from table MARC or MARA'.
WHEN OTHERS.
PERFORM api_message_add
USING
'I'
te-tabname.
ENDCASE.

Level: B3 (Medium Three) Seite 7


Values Result

18 Save the global event and run a syntax The syntax check finishes
check. without finding errors.

19 Try to add a second global event. An error message appears


because only one global
event can be created.

20 Select the global event and click Cross


reference.

Level: B3 (Medium Three) Seite 8


Values Result

21 Compare the number of effected tables The global rule has been
with the total number of tables. assigned to all tables from
the current scenario.

22 Switch to the Data objects area and check The global event appears
that the global event has been assigned to in the navigation list
all tables. beneath every table.

23 Right-click the global event and select Module ID: MM


Maintain scope in the context menu.
Object name:
Maintain the values for the Module ID and
MARA
Object name text fields.

Level: B3 (Medium Three) Seite 9


Values Result

24 Confirm the pop-up. The scope of the global


event has been changed
successfully. The
assignment of the global
event has been deleted for
all tables from the data
object FI (LFA1 and
LFAS).

25 Right-click the table LFA1 and select the


entry for creating a global event.

Level: B3 (Medium Three) Seite 10


Values Result

26 The pop-up states that the global event has A second global event
already been created. Confirm the pop-up cannot be maintained.
with Yes to adjust the scope. Only the scope can be
adjusted.

27 Maintain the name of the module and use


the multiple selection button for the Object

Level: B3 (Medium Three) Seite 11


Values Result
name text field. Enter the names of both
created data objects.

28 Use the multiple selection button for the


Table name text field. Switch to the
Exclude Single Values tab and add the
table name LFAS. Adjust of the scope.

29 Check that the global event is assigned to


all tables from the scenario, with exception
of the excluded table LFAS.

30 Switch to the Transformation area. Create The export finishes


an export block and assign both data successfully and the status
objects. Execute the export in the changes to Complete. For
background. some tables no data
records were exported.

Level: B3 (Medium Three) Seite 12


Values Result

31 Create an import block and assign both The import finishes


data objects. Change the block mode to successfully and the status
MODIFY and execute the import. changes to Complete.

32 Double-click the import block and switch to


the Log tab.

33 The message outputs the name of the Information messages


processed table. The information message exist for all tables with

Level: B3 (Medium Three) Seite 13


Values Result
only differs for the tables MARC and exported data records,
MARA. except table LAFS.
The global event has been called from the
table MARC or MARA.

Verbesserungen die noch gemacht werden müssen:

Ändern der Tabelle LFAS

Ausgabe der zugehörigen Selektionstabelle mit: te-sel_tabname

Level: B3 (Medium Three) Seite 14

You might also like