You are on page 1of 13

Note 819937 - Correct BW extractors to use UTC DeltaID/Ext.

Loc numbers

Note Language: English Version: 7 Validity: Valid from 03.05.2005

Summary

Symptom
Need to correct/create all F&R ANA extractor FMs to address the following:
1- The Delta timestamp needs to be converted to UTC time zone instead of
system local time zone. 2- The location numbers need to be converted to
external location numbers(i.e. numbers used in the master data leading
system). In case the note 458914 has been implemented in the SCM system.

More Terms
0FRE_ANA_STCKEXC_1, 0FRE_ANA_WEEKLY_1, 0FRE_MATPLANT_ATTR
0FRE_ANA_OP_MCHG_1, 0FRE_ANA_OP_STAT_1, 0FRE_ANA_VAR_1, 0FRE_REPL_EXC_1
extractor delta external location

Cause and Prerequisites

1. F&R Analytics and BW delta management are used

2. F&R Analytics is used and note 458914 has been implemented

Solution

3. Create function group FRE_BWEX_UTIL, using transaction SE80:

a) Select Package FRE_BWEX.

b) Right click on function group and choose create.

c) Enter Function Group name FRE_BWEX_UTIL

d) Enter Short text "F&R BW Utilities" press enter (press save button)

4. Create Function Module FRE_BWEX_CONVERT_TSTAMP_TO_UTC

a) Select Function Group FRE_BWEX_UTIL right click and select create


Function Module.

b) Enter the name FRE_BWEX_CONVERT_TSTAMP_TO_UTC

c) Enter the short text "Convert BW date and time to UTC timestamp"
(press enter)

d) Go to the Import tab and enter the following parameters:

Parameter Name Type Associated Type


I_DELTAID TYPE RODELTAID

e) Go to the Export tab and enter the followign parameters:

Parameter Name Type Associated Type


E_TIMESTAMP TYPE TIMESTAMP

f) Press save and activate

5. Create Structure Type /FRE/EXTLOC_KEY_STY

18.06.2008 Page 1 of 13
Note 819937 - Correct BW extractors to use UTC DeltaID/Ext. Loc numbers

a) Use transaction SE11

b) Select Data Type

c) Enter name /FRE/EXTLOC_KEY_STY (press Create button)

d) Select structure and press enter

e) Enter short text "External Location Key Structure"

Component Component Type


.INCLUDE /SCMB/MDL_EXTLOC_KEY_STR

f) Press save

g) Enter Package /FRE/DB press save

h) Press activate

i) Select enhancement category = can be enhanced(character-type or


numeric)

6. Create Table Type/FRE/EXTLOC_KEY_TTY

a) Use transaction SE11

b) Select Data Type

c) Enter name /FRE/EXTLOC_KEY_TTY (press Create button)

d) Select table type and press enter

e) Enter short text "External Location Key Table Type"

f) Enter Line type /FRE/EXTLOC_KEY_STY

g) Press save

h) Enter Package /FRE/DB press save

i) Press activate

7. Create Data Element /FRE/EXT_LOCNO

a) Use transaction SE11

b) Select Data Type

c) Enter name /FRE/EXT_LOCNO (press Create button)

d) Select Data Element and press enter

e) Enter short text "External Location Number"

f) Enter Domain /SCMB/MDL_LOCATION_NO

g) Press save

18.06.2008 Page 2 of 13
Note 819937 - Correct BW extractors to use UTC DeltaID/Ext. Loc numbers

h) Enter Package /FRE/DB press save

i) Press activate

8. Create Structure /FRE/LOC_EXTLOC_STY

a) Use transaction SE11

b) Select Data Type

c) Enter name /FRE/LOC_EXTLOC_STY (press Create button)

d) Select Structure and press enter

e) Enter short text "Location - External Location Structure Type"

Component Component Type


LOCNO /FRE/LOCNO
LOCID /FRE/LOCID
EXT_LOCNO /FRE/EXT_LOCNO

f) Press save

g) Enter Package /FRE/DB press save

h) Press activate

i) Select enhancement category = can be enhanced(character-type or


numeric)

9. Create Table Type /FRE/LOC_EXTLOC_TTY

a) Use transaction SE11

b) Select Data Type

c) Enter name /FRE/LOC_EXTLOC_TTY (press Create button)

d) Select table type and press enter

e) Enter short text "Location - External Location Table Type"

f) Enter Line type /FRE/LOC_EXTLOC_STY

g) In the Initialization and Access tab

h) Select Access equal to Sorted Table

i) In the Key tab

j) Select Key Components

k) and enter the field LOCNO under the Key components Name column

l) Select Key category equal to Unique

m) Press save

18.06.2008 Page 3 of 13
Note 819937 - Correct BW extractors to use UTC DeltaID/Ext. Loc numbers

n) Enter Package /FRE/DB press save

o) Press activate

10. Create Function Module /FRE/DB_EXTLOC_GET_MULTI

a) In transaction SE80 select function group /FRE/DB_MD_CONVERT:

b) Right click on function group and choose create Function Module

c) Enter the Function Module name /FRE/DB_EXTLOC_GET_MULTI

d) Enter the short text "Get Location External Numbers" (press enter)

e) Go to the Import tab and enter the following parameters:

Parameter Name Type Associated Type Optional


IT_LOCID TYPE /FRE/LOCID_TTY X
IT_LOCNO TYPE /FRE/LOCNO_TTY X

f) Go to the Export tab and enter the following parameters:

Parameter Name Type Associated Type


ET_EXTLOCKEY TYPE /FRE/EXTLOC_KEY_TTY

For DataSource 0FRE_ANA_STCKEXC_1, create the following:

11. Create Structure FRE_ANA_BWEX_STCKEXC_STY

a) Use transaction SE11

b) Select Data Type

c) Enter name FRE_ANA_BWEX_STCKEXC_STY (press Create button)

d) Select Structure and press enter

e) Enter short text " F&R Stock Exception BW Extraction Structure"

Component Component Type


.INCLUDE /FRE/ANA_STCKEXC

f) Press save

g) Enter Package FRE_BWEX press save

h) Press activate

i) Select enhancement category = can be enhanced(character-type or


numer

12. Create Table Type FRE_ANA_BWEX_STCKEXC_TTY

a) Use transaction SE11

18.06.2008 Page 4 of 13
Note 819937 - Correct BW extractors to use UTC DeltaID/Ext. Loc numbers

b) Select Data Type

c) Enter name FRE_ANA_BWEX_STCKEXC_TTY (press Create button)

d) Select Table Type and press enter

e) Enter short text "F&R Stock Exception BW Extraction Table Type"

f) Line Type FRE_ANA_BWEX_STCKEXC_STY

g) Press save

13. Create Function Module FRE_BWEX_ANA_STCKEXC

a) In transaction SE80 select function group FRE_BWEX_ANA:

b) Right click on function group and choose create Function Module

c) Enter the Function Module name FRE_BWEX_ANA_STCKEXC

d) Enter the short text " BW Extraction of F&R Replenishment


Exceptions

e) Go to the Import tab and enter the following parameters:

Parameter Name Type Associated Type Opt Pas Value


I_REQUNR TYPE SBIWA_S_INTERFACE-REQUNR X
I_ISOURCE TYPE SBIWA_S_INTERFACE-ISOURCE X X
I_MAXSIZE TYPE SBIWA_S_INTERFACE-MAXSIZE X X
I_INITFLAG TYPE SBIWA_S_INTERFACE-INITFLAG X X
I_UPDMODE TYPE SBIWA_S_INTERFACE-UPDMODE X X
I_DATAPAKID TYPE SBIWA_S_INTERFACE-DATAPAKID X X
I_PRIVATE_MODE X X
I_CALLMODE LIKE ROARCHD200-CALLMODE X X

f) Go to the Table tab and enter the following parameters:

Parameter Name Type spec.Associated Type Op


I_T_SELECT TYPE SBIWA_T_SELECT X
I_T_FIELDS TYPE SBIWA_T_FIELDS X
E_T_FRE_ANA_BWEX_STCKEXC_STY LIKE FRE_ANA_BWEX_STCKEXC_STY X

g) Go to the Exceptions tab and enter the following exceptions:

h) NO_MORE_DATA

i) ERROR_PASSED_TO_MESS_HANDLER

14. Create Include LFRE_BWEX_ANAF07

a) In transaction SE80 select Include (under function group


FRE_BWEX_ANA):

b) Right click choose create include

c) Enter the include name LFRE_BWEX_ANAF07

18.06.2008 Page 5 of 13
Note 819937 - Correct BW extractors to use UTC DeltaID/Ext. Loc numbers

d) Press enter

e) In the menu GoTo-> Attributes

f) Enter the Title "Internal to external numbers -Stock Exceptions"

For DataSource 0FRE_ANA_VAR_1


As indicated for the previous DataSource create the following:

15. Create Structure FRE_ANA_BWEX_VAR_STY

a) Use transaction SE11

b) Select Data Type

c) Enter name FRE_ANA_BWEX_VAR_STY (press Create button)

d) Select Structure and press enter

e) Enter short text "F&R Minimum Stock Variances BW Extraction


Structure"

Component Component Type


.INCLUDE /FRE/ANA_VAR

f) Press save

g) Enter Package FRE_BWEX press save

h) Press activate

i) Select enhancement category = can be enhanced(character-type or


numer

16. Create Table Type FRE_ANA_BWEX_VAR_TTY(use the just created struc.


type)

a) Use transaction SE11

b) Select Data Type

c) Enter name FRE_ANA_BWEX_VAR_TTY (press Create button)

d) Select Table Type and press enter

e) Enter short text "F&R Minimum Stock Variances BW Extraction Table


Type"

f) Line Type FRE_ANA_BWEX_VAR_STY

g) Press save

17. Create Function Module FRE_BWEX_ANA_VAR


Enter the short text " BW Extraction of Stock Variances

18.06.2008 Page 6 of 13
Note 819937 - Correct BW extractors to use UTC DeltaID/Ext. Loc numbers

Go to the Import tab and enter the following parameters:

Parameter Name Type Associated Type Opt Pas Value


I_REQUNR TYPE SBIWA_S_INTERFACE-REQUNR X
I_ISOURCE TYPE SBIWA_S_INTERFACE-ISOURCE X X
I_MAXSIZE TYPE SBIWA_S_INTERFACE-MAXSIZE X X
I_INITFLAG TYPE SBIWA_S_INTERFACE-INITFLAG X X
I_UPDMODE TYPE SBIWA_S_INTERFACE-UPDMODE X X
I_DATAPAKID TYPE SBIWA_S_INTERFACE-DATAPAKID X X
I_PRIVATE_MODE X X
I_CALLMODE LIKE ROARCHD200-CALLMODE X X

a) Go to the Table tab and enter the following parameters:

Parameter Name Type spec.Associated Type Op


I_T_SELECT TYPE SBIWA_T_SELECT X
I_T_FIELDS TYPE SBIWA_T_FIELDS X
E_T_FRE_ANA_BWEX_VAR_STY LIKE FRE_ANA_BWEX_VAR_STY X

b) Go to the Exceptions tab and enter the following exceptions:

c) NO_MORE_DATA

d) ERROR_PASSED_TO_MESS_HANDLER

e) Create Include LFRE_BWEX_ANAF08


Enter the Title "Internal to external numbers -Stock Variances"

For DataSource 0FRE_ANA_WEEKLY_1


As indicated for the previous DataSource create the following:

18. Create Structure FRE_ANA_BWEX_WEEKLY_STY

a) Use transaction SE11

b) Select Data Type

c) Enter name FRE_ANA_BWEX_WEEKLY_STY (press Create button)

d) Select Structure and press enter

e) Enter short text "Analytics Weekly F&R Information for BW


Extraction St"

Component Component Type


.INCLUDE /FRE/ANA_WEEKLY

f) Press save

g) Enter Package FRE_BWEX press save

h) Press activate

18.06.2008 Page 7 of 13
Note 819937 - Correct BW extractors to use UTC DeltaID/Ext. Loc numbers

i) Select enhancement category = can be enhanced(character-type or


numer

19. Create Table Type FRE_ANA_BWEX_WEEKLY_TTY(use the just created str


type)

a) Use transaction SE11

b) Select Data Type

c) Enter name FRE_ANA_BWEX_WEEKLY_TTY (press Create button)

d) Select Table Type and press enter

e) Enter short text "Analytics Weekly F&R Information for BW


Extraction TT"

f) Line Type FRE_ANA_BWEX_WEEKLY_STY

g) Press save

20. Create Function Module FRE_BWEX_ANA_WEEKLY


Enter the short text " BW Extraction of F&R Weekly Information"
Go to the Import tab and enter the following parameters:

Parameter Name Type Associated Type Opt Pas Value


I_REQUNR TYPE SBIWA_S_INTERFACE-REQUNR X
I_ISOURCE TYPE SBIWA_S_INTERFACE-ISOURCE X X
I_MAXSIZE TYPE SBIWA_S_INTERFACE-MAXSIZE X X
I_INITFLAG TYPE SBIWA_S_INTERFACE-INITFLAG X X
I_UPDMODE TYPE SBIWA_S_INTERFACE-UPDMODE X X
I_DATAPAKID TYPE SBIWA_S_INTERFACE-DATAPAKID X X
I_PRIVATE_MODE X X
I_CALLMODE LIKE ROARCHD200-CALLMODE X X

a) Go to the Table tab and enter the following parameters:

Parameter Name Type spec.Associated Type Op


I_T_SELECT TYPE SBIWA_T_SELECT X
I_T_FIELDS TYPE SBIWA_T_FIELDS X
E_T_FRE_ANA_BWEX_WEEKLY_STY LIKE FRE_ANA_BWEX_WEEKLY_STY X

b) Go to the Exceptions tab and enter the following exceptions:

c) NO_MORE_DATA

d) ERROR_PASSED_TO_MESS_HANDLER

e) Create Include LFRE_BWEX_ANAF09


Enter the Tittle "Internal to external numbers -F&R Weekly"

For DataSource 0FRE_MATPLANT_ATTR


As indicated for the previous DataSource create the following:

18.06.2008 Page 8 of 13
Note 819937 - Correct BW extractors to use UTC DeltaID/Ext. Loc numbers

21. Create Structure FRE_ANA_BWEX_MATPLANT_STY

a) Use transaction SE11

b) Select Data Type

c) Enter name FRE_ANA_BWEX_MATPLANT_STY (press Create button)

d) Select Structure and press enter

e) Enter short text "MATLOC F&R Information BW Extraction Structure


Type"

Component Component Type


.INCLUDE /FRE/MATLOC_FRP

f) Press save

g) Enter Package FRE_BWEX press save

h) Press activate

i) Select enhancement category = can be enhanced(character-type or


numer

22. Create Table Type FRE_ANA_BWEX_MATPLANT_TTY(use just created Str.


type)

a) Use transaction SE11

b) Select Data Type

c) Enter name FRE_ANA_BWEX_MATPLANT_TTY (press Create button)

d) Select Table Type and press enter

e) Enter short text "MATLOC F&R Information BW Extraction Table Type"

f) Line Type FRE_ANA_BWEX_MATPLANT_STY

g) Press save

23. Create Function Module FRE_BWEX_MATPLANT_ATTR


Enter the short text "BW Extraction of MATPLANT F&R Attributes"
Enter the following Import parameters (instead of the ones listed
for the the DataSource 0FRE_ANA_STCKEXC_1)

Parameter Type Associated Type Opt Pas


I_REQUNR TYPE SBIWA_S_INTERFACE-REQUNR X
I_DSOURCE TYPE SBIWA_S_INTERFACE-ISOURCE X
I_MAXSIZE TYPE SBIWA_S_INTERFACE-MAXSIZE X
I_INITFLAG TYPE SBIWA_S_INTERFACE-INITFLAG X
I_UPDMODE TYPE SBIWA_S_INTERFACE-UPDMODE X

18.06.2008 Page 9 of 13
Note 819937 - Correct BW extractors to use UTC DeltaID/Ext. Loc numbers

I_DATAPAKID TYPE SBIWA_S_INTERFACE-DATAPAKID X


I_S_TIMEINT TYPE SBIWA_S_TIMEINT X

Parameter Name Type spec.Associated Type Op


I_T_SELECT TYPE SBIWA_T_SELECT X
I_T_FIELDS TYPE SBIWA_T_FIELDS X
E_T_DATA LIKE FRE_ANA_BWEX_MATPLANT_TTY X

a) Go to the Exceptions tab and enter the following exceptions:

b) NO_MORE_DATA

c) ERROR_PASSED_TO_MESS_HANDLER

d) Create Include LFRE_BWEX_ANAF10


Enter the Tittle "Internal to external numbers -MATPLANT
Attributes"

For DataSource 0FRE_ANA_OP_MCHG_1


As indicated for the previous DataSource create the following:

e) Create Include LFRE_BWEX_ANAF11


Enter the Tittle "Internal to External Numbers -OP Manual Changes"

For DataSource 0FRE_REPL_EXC_1


As indicated for the previous DataSource create the following:

f) Create Include LFRE_BWEX_ANAF12


Enter the Tittle "Internal to External Numbers -Replenishment
Exception"

For DataSource 0FRE_ANA_OP_STAT_1


As indicated for the previous DataSource create the following:

24. Create Structure FRE_ANA_BWEX_OP_STAT_STY

a) Use transaction SE11

b) Select Data Type

c) Enter name FRE_ANA_BWEX_OP_STAT_STY (press Create button)

d) Select Structure and press enter

e) Enter short text "F&R OP Statistics BW Extraction Structure"

18.06.2008 Page 10 of 13
Note 819937 - Correct BW extractors to use UTC DeltaID/Ext. Loc numbers

Component Component Type


.INCLUDE /FRE/ANA_OP_STAT

f) Press save

g) Enter Package FRE_BWEX press save

h) Press activate

i) Select enhancement category = can be enhanced(character-type or


numer

25. Create Table Type FRE_ANA_BWEX_OP_STAT_TTY(use just created Str. type)

a) Use transaction SE11

b) Select Data Type

c) Enter name FRE_ANA_BWEX_OP_STAT_TTY (press Create button)

d) Select Table Type and press enter

e) Enter short text "F&R OP Statistics BW Extraction Table Type"

f) Line Type FRE_ANA_BWEX_OP_STAT_STY

g) Press save

26. Create Function Module FRE_BWEX_ANA_OP_STAT


Enter the short text "BW Extraction of OP Statistics"
Go to the Import tab and enter the following parameters:

Parameter Name Type Associated Type Opt Pas Value


I_REQUNR TYPE SBIWA_S_INTERFACE-REQUNR X
I_ISOURCE TYPE SBIWA_S_INTERFACE-ISOURCE X X
I_MAXSIZE TYPE SBIWA_S_INTERFACE-MAXSIZE X X
I_INITFLAG TYPE SBIWA_S_INTERFACE-INITFLAG X X
I_UPDMODE TYPE SBIWA_S_INTERFACE-UPDMODE X X
I_DATAPAKID TYPE SBIWA_S_INTERFACE-DATAPAKID X X
I_PRIVATE_MODE X X
I_CALLMODE LIKE ROARCHD200-CALLMODE X X

a) Go to the Table tab and enter the following parameters:

Parameter Name Type spec.Associated Type Op


I_T_SELECT TYPE SBIWA_T_SELECT X
I_T_FIELDS TYPE SBIWA_T_FIELDS X
E_T_FRE_ANA_BWEX_OP_STAT_STY LIKE FRE_ANA_BWEX_OP_STAT_STY X

b) Go to the Exceptions tab and enter the following exceptions:

c) NO_MORE_DATA

d) ERROR_PASSED_TO_MESS_HANDLER

18.06.2008 Page 11 of 13
Note 819937 - Correct BW extractors to use UTC DeltaID/Ext. Loc numbers

e) Create Include LFRE_BWEX_ANAF13


Enter the Tittle "Internal to External Numbers -OP Statistics"

27. Modify the DataSources 0FRE_ANA_STCKEXC_1,


0FRE_ANA_VAR_1,0FRE_ANA_WEEKLY_1, 0FRE_ANA_OP_STAT_1 AND
0FRE_MATPLANT_ATTR:

a) Create report Z_FRE_BWEX_UPD_41_DATASOURCE using TA SE38.

b) title: 'Update F&R 4.1 datasources'

c) Type: Executable Program

d) Status: Test program

e) Save and activate

28. Import the attached note.

29. Run report Z_FRE_BWEX_UPD_41_DATASOURCE

30. Go to transaction RSA5 and transfer the DataSources found in the


following path: 0BW_DATASOURCES -> 0SCM -> 0FRE ->
Select the modified DataSources and press the Transfer DataSources
button.

Header Data
Release Status: Released for Customer
Released on: 03.05.2005 17:32:31
Priority: Correction with medium priority
Category: Program error

Main Component SCM-FRE-ANA Analytics


Additional Components:
BW-BCT-FRE Forecasting and Replenishment Engine Analytics

Valid Releases
Software Component Release From To Release and Following
Release
SCM 410 410 410

Support Packages

18.06.2008 Page 12 of 13
Note 819937 - Correct BW extractors to use UTC DeltaID/Ext. Loc numbers

Support Packages Release Package Name


SCM 410 SAPKY41007

Related Notes
Number Short Text
834180 Modify F&R 4.1 datasources
458914 Consulting note: Sample code for inbound user exit locations

Causes - Side-Effects
The following SAP Notes correct this note/patch:
Note Version Version Note Version Support
Reason from to Solution Package
819937 834180 1
819937 836117 1

Correction Instructions
Correction Valid Valid Software Typ Reference Last
Instructio from to Component e Correction Changed
ns *)
718671 410 410 SCM C AP6K020187 03.05.2005 12:17:29
*) C Correction, B Pre-Implementation, A Post-Implementation, M Undetermined

18.06.2008 Page 13 of 13

You might also like