81
Warranty Processing_Pre Credit_ConfigGuide Warranty Processing Configuration Guide

Warranty Processing Pre Credit ConfigGuide

Embed Size (px)

DESCRIPTION

sap warranty credit

Citation preview

Page 1: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

Warranty ProcessingConfiguration Guide

Page 2: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

Page 2 of 70

Page 3: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

ContentsWarranty Processing: Configuration Guide.....................................................................................5

1 Purpose................................................................................................................................... 5

2 Preparation.............................................................................................................................. 5

2.1 Prerequisites..................................................................................................................5

2.1.1 Building Blocks..........................................................................................................5

3 Configuration........................................................................................................................... 5

3.1 QM Standard Setting.....................................................................................................5

3.1.1 Maintaining QM Standard Setting Catalogs...............................................................5

3.1.2 Maintaining QM Standard Setting Quality Notifications.............................................6

3.2 Manual Step..................................................................................................................7

3.2.1 Creating Function Group...........................................................................................7

3.2.2 Changing Function Group.........................................................................................9

3.2.3 Defining the Table YWTY_DM................................................................................12

3.2.4 Defining Generating Table Maintenance Dialog YWTY_DM...................................16

3.2.5 Creating Transaction Code YWTY_DM...................................................................17

3.2.6 Creating Message Class.........................................................................................20

3.2.7 Business Add-Ins: Enhancement of Document Flow...............................................21

3.2.8 Business Add-Ins: Data Checking and Changing for Inbound IDocs.......................22

3.2.9 Business Add-Ins: Data Checking and Changing for Outbound IDocs....................23

3.2.10 Creating Function Model: Good Receipt of Return Parts into Q-Stock....................24

3.2.11 Creating Function Model: Rel. Version IC for sending.............................................38

3.3 EDI Communication General Settings.........................................................................42

3.3.1 Partner Profile, Only Basic Data..............................................................................42

3.3.2 Partner Profile Inbox................................................................................................45

3.3.3 Maintaining a tRFC Port..........................................................................................46

3.3.4 Maintaining a File Port.............................................................................................47

3.3.5 Activating IDoc Inbound...........................................................................................49

3.4 Creating Claim Type YA02..........................................................................................50

3.5 Creating Claim Type YA01..........................................................................................53

3.6 Creating Notification Type...........................................................................................53

3.7 Defining Warranty Claim Groups.................................................................................54

3.8 Defining Status for Parts to Be Returned.....................................................................55

3.9 Defining Message Type...............................................................................................56

3.10 Defining Control Data..................................................................................................57

3.10.1 Defining Actions......................................................................................................57

Page 3 of 70

Page 4: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

3.10.2 Defining Action Controls..........................................................................................61

3.10.3 Assigning Function Codes to Action Codes.............................................................64

3.10.4 Defining Copy Procedure........................................................................................65

3.10.5 Assigning Copy Procedure to Claim Type...............................................................65

3.11 Layout Settings............................................................................................................66

3.11.1 Defining Pushbutton Profile.....................................................................................66

3.12 Manual Step................................................................................................................70

3.12.1 Maintaining Document Type Determination for Warranty........................................70

Page 4 of 70

Page 5: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

Warranty Processing: Configuration Guide

1 PurposeThis configuration guide provides the information you need to set up the configuration of this building block manually.

If you do not want to configure manually and prefer an automated installation process using BC Sets and other tools, use the Best Practices Installation Assistant.

2 Preparation

2.1 Prerequisites

2.1.1 Building BlocksBefore you start installing this building block, the installation of the following building blocks must have been completed:

Building Block Description

Baseline Project for Automotive In Sales client

A01 (Sales) Automotive Basic Settings

A05 (Sales) Master Data for Automotive

3 Configuration

3.1 QM Standard Setting

3.1.1 Maintaining QM Standard Setting Catalogs

UseThe purpose of this activity is to copy entries for QM standard settings for catalogs from client 000 to the installation client.

Procedure

Page 5 of 70

Page 6: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

1. Access the activity using one of the following navigation options:

Transaction Code QCCK

2. Confirm the Do you want to copy customizing to your client? dialog box with Yes.

3. The system displays the result.

4. Choose Back.

ResultYou have copied the QM Standard Settings for Catalogues from client 000 to your installation client.

3.1.2 Maintaining QM Standard Setting Quality Notifications

UseThe purpose of this activity is to copy entries for QM Standard Settings for Quality Notifications from client 000 to the installation client.

Procedure

Page 6 of 70

Page 7: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

1. Access the activity using one of the following navigation options:

Transaction Code QCCM

2. Confirm the Do you want to copy customizing to your client? Dialog box with Yes.

3. The system displays the result.

4. Choose Back.

ResultYou have copied the QM Standard Settings for Quality Notifications from client 000 to your installation client.

3.2 Manual Step

3.2.1 Creating Function Group

Procedure1. Access the activity using one of the following navigation options:

SAP Menu Tools ABAP Workbench Development Function Builder

Transaction Code SE37

2. On the Function Builder: Initial Screen choose from the menu: Goto Function Group Create Group.

3. In the Create Function Group dialog box, make the following entries:

Page 7 of 70

Page 8: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

Field User action and values

Function Group Y_WTY_AT

Short Text Warranty Development

4. Choose Save.

5. In the Create Object Directory Entry dialog box, choose Local Object.

6. Repeat steps 2 – 5 to create function group Y_WTY_TABLE. Make the following entries:

Field User action and values

Function Group Y_WTY_TABLE

Short Text Extended Table Maintenance (Generated)

7. Go Back to the SAP Easy Access screen.

ResultThe Function Groups are created.

Page 8 of 70

Page 9: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

3.2.2 Changing Function Group

Procedure1. Access the activity using one of the following navigation options:

SAP Menu Tools ABAP Workbench Development Function Builder

Transaction Code SE37

2. On the Function Builder: Initial Screen, choose from the menu: Goto Function Group Change Group.

3. In the Change Function Group dialog box, make the following entries:

Field User action and values

Function Group Y_WTY_AT

4. Choose Continue.

5. On the Change Function Group dialog box, choose Main program.

6. On the following screen, choose Display <-> Change.

7. On the ABAP Editor, check the following code:******************************************************************** System-defined Include-files. ******************************************************************** INCLUDE LY_WTY_ATTOP. " Global Data INCLUDE LY_WTY_ATUXX. " Function Modules

******************************************************************** User-defined Include-files (if necessary). ********************************************************************* INCLUDE LY_WTY_ATF... " Subprograms* INCLUDE LY_WTY_ATO... " PBO-Modules

* INCLUDE LY_WTY_ATI... " PAI-Modules

Page 9 of 70

Page 10: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

8. Choose Save.

9. Choose Activate.

10. On the Inactivate Object for user XXXXXXXX View, Local Objects tab page,

Field name Description User action and values Note

Object name SAPLY_WTY_AT Selected

Object name LY_WTY_ATTOP Selected

11. Choose Continue.

12. Choose Back (F3).

13. If the Change Function Group dialog box appears, choose Cancel.

14. Repeat steps 2 – 7 to change the function group Y_WTY_TABLE. On the ABAP Editor check the following code:

******************************************************************** System-defined Include-files. ******************************************************************** INCLUDE LY_WTY_TABLETOP. " Global Data INCLUDE LY_WTY_TABLEUXX. " Function Modules

Page 10 of 70

Page 11: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

Page 11 of 70

Page 12: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

15. Choose Save.

16. Choose Activate.

17. On the Inactivate Object for user XXXXXXXX View, Local Objects tab page, make the following entries:

Field name Description User action and values Note

Object name SAPLY_WTY_TABLE Selected

Object name LY_WTY_TABLETOP Selected

18. Choose Continue.

19. Choose Back. If the Change Function Group dialog box appears, choose Cancel.

20. Go Back to the SAP Easy Access screen.

3.2.3 Defining the Table YWTY_DM

UseThe purpose of this activity is to define the table.

Procedure1. Access the activity using one of the following navigation options:

SAP Menu Tools ABAP Workbench Development ABAP Dictionary

Transaction Code SE11

Page 12 of 70

Page 13: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

2. On the ABAP Dictionary: Initial Screen, enter the following data:

Field name Description User action and values Note

Database Table

Database Table Name

YWTY_DM

3. Choose Create.

4. On the Dictionary: Maintain Table screen, make the following entries:

Field name Description User action and values Note

Short Text Document Type Determination for Warranty

Delivery Class A Application table

Data Browser / Table View Maintenance

Display / Maintenance Allowed

Select from the dropdown list

5. Choose the tab Fields.

6. On the screen Dictionary: Maintain Table, make the following entries:

Page 13 of 70

Page 14: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

Field Name Field Key Initial Values Data element

Entry 1 MANDT Selected Selected MANDT

Entry 2 RELTY Selected Selected WTY_RELTY

Entry 3 CLMGRP Selected Selected WTY_CLMGRP

Entry 4 CLMTY Blank Blank WTY_CLMTY

7. Choose ENTER to confirm your entries.

8. Select the CLMGRP row.

9. Choose Foreign Keys .

10. On the screen Create Foreign Key YWTY DM-CLMGRP, in the field Check table enter CWTY006.

11. Choose Enter to confirm your entries, and confirm the dialog box with Yes.

Page 14 of 70

Page 15: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

12. Select the radio button Key fields/candidates, and fill the Cardinality with 1:1.

13. Choose Copy to confirm your entries.

14. On the Dictionary: Maintain Table screen, choose Technical Settings.

15. Confirm the dialog box with Yes and save as local object.

16. On the screen Dictionary: Maintain Technical Settings, enter the following entries:

Field name Description User action and values Note

Data class APPL0

Size category 0

17. Choose Save, and go Back.

18. Choose Activate to activate the table.

19. Choose No if warning message appears..

20. Choose Back to the SAP Easy Access screen.

ResultTable YWTY_DM has been defined.

Page 15 of 70

Page 16: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

3.2.4 Defining Generating Table Maintenance Dialog YWTY_DM

UseThe purpose of this activity is to define the generate table maintenance dialog.

Procedure1. Access the activity using one of the following navigation options:

SAP Menu Tools ABAP Workbench Development Other Tools General Table Maintenance Dialog

Transaction Code SE54

2. On the Generate Table Maintenance Dialog: Initial Table/View Screen, make the following entries:

Field name Description User action and values Note

Generated Objects

Check the Generated Objects

Set indicator

Table / View YWTY_DM

3. Choose Create/change.

4. Confirm the dialog box with Yes.

5. On the Generate Table Maintenance Dialog: Generate Environment screen, make the following entries:

Field name User action and values

Note

Technical Dialog Details View

Authorization Group AC AM: User Control

Function Group Y_WTY_TABLE

Maintenance Screens View

Maintenance Type One step Set the indicator

Maintenance Screen No: Overview Screen

1

Dialog Data Transport Details

Recording routine no, or user, recording routine

Set the indicator

Page 16 of 70

Page 17: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

6. Choose Create.

7. In the Create Object Directory Entry dialog box, choose Local Object.

8. Choose Back twice to the SAP Easy Access screen.

3.2.5 Creating Transaction Code YWTY_DM

UseThe purpose of this activity is to create transaction code YWTY_DM.

Procedure 1. Access the activity using one of the following navigation options:

SAP Menu Tools ABAP Workbench Development Other Tools Transactions

Transaction Code SE93

Page 17 of 70

Page 18: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

2. On the Maintain Transaction screen, make the following entries:

Field User action and values

Transaction Code YWTY_DM

3. Choose Create.

4. In the Creation Transaction dialog box, make the following entries:

Field User action and values

Transaction Code YWTY_DM

Short Text Warranty Table Maintenance

Start Object

Transaction with parameters (parameter transaction)

Set the indicator

5. Choose Continue (Enter).

6. On the Create Parameter Transaction screen, make the following entries:

Field User action and values

Default values for

Transaction SM30

Skip initial screen Set indicator

Classification

Inherit GUI attributes Set indicator

Default Values

Name of screen field UPDATE

value X

Name of screen field VIEWNAME

value YWTY_DM

Page 18 of 70

Page 19: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

7. Choose Save.

8. In the Create Object Directory Entry dialog box, choose Local Object.

9. Go back to the SAP Easy Access menu.

Page 19 of 70

Page 20: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

3.2.6 Creating Message Class

UseThe purpose of this activity is to create message class YEAT.

Procedure 1. Access the activity using one of the following navigation options:

SAP Menu Tools ABAP Workbench Development Programming Environment Messages

Transaction Code SE91

2. On the Message Maintenance Initial Screen, make the following entries:

Field User action and values

Message Class YEAT

3. Choose Create.

4. On the Attributes tab page, make the following entries:

Field User action and values

Short Text Automotive - Warranty

Page 20 of 70

Page 21: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

5. Choose Save.

6. In the Create Object Directory Entry dialog box, choose Local Object

7. Select the Messages tab page, make the following entries:

Message Field User action and values

001 Material document & created when claim is saved

009 Program run O.K.

010 Program run not O.K.

8. Choose Save.

9. Go Back to the SAP Easy Access screen.

ResultMessage class YEAT is created.

3.2.7 Business Add-Ins: Enhancement of Document Flow

Procedure1. Access the activity using one of the following navigation options:

Transaction Code OWTY

IMG Menu Warranty Claim Processing Business Add-Ins Processing of Warranty Claims BADI: Enhancement of Document Flow

2. Choose Create.

3. In the Business Add-In Builder: Create Implementation dialog box, make the following entries:

Page 21 of 70

Page 22: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

Field User action and values

Implementation Name Y_WTY_DOCU_ADD

4. Choose Continue.

5. In the following screen, make the following entries;

Field User action and values

Implementation Short Text BP for Automotive

6. Choose Save.

7. In the Create Object Directory Entry dialog box, choose Local Object. In the Information Window choose Continue.

8. On the Select or Create Enhancement Implementation screen, choose Create Enhancement Implementation and make the following entries:

Field User action and values

Enhancement Implementation Y_WTY_DOCU_ADD

Short Text BP for Automotive

9. Choose Save.

10. In the Create Object Directory Entry dialog box, choose Local Object.

11. On the Select or Create Enhancement Implementation screen, select Y_WTY_DOCU_ADD and choose Enter.

12. Go to the Interface tab page, double click the method ADD_DOCUMENT.

13. On the ABAP Editor, delete all of old source codes.

14. Load the source code from ADD_DOCUMENT.txt under \MISC\ A20 folder on the DVD.

15. Choose Save and then Activate.

16. On the appearing dialog box, choose continue.

17. Choose Back.

18. Double click the other method DOCUMENT_DISPLAY.

19. On the ABAP Editor, delete all of old source codes.

20. Load the source code from DOCUMENT_DISPLAY.txt under \MISC\ A20 folder on the DVD.

21. Choose Save and Activate.

22. On the appearing dialog box, choose Continue.

23. Choose Back.

24. On the Business Add-In Builder: Change Implementation Y_WTY_DOCU_ADD screen, choose Activate.

25. Go Back to the IMG menu.

3.2.8 Business Add-Ins: Data Checking and Changing for Inbound IDocs

Page 22 of 70

Page 23: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

Procedure1. Access the activity using one of the following navigation options:

Transaction Code OWTY

IMG Menu Warranty Claim Processing Business Add-Ins External Creation of Warranty Claims Data Check and Change for Inbound Idocs

2. In the Business Add-In Builder: Create Implementation dialog box, make the following entries:

Field User action and values

Implementation Name Y_WTY_IDOC_IN

3. Choose Continue (Enter).

4. On the following screen, make the following entries;

Field User action and values

Implementation Short Text Change Inbound Warranty Idoc

5. Choose Save.

6. In the Create Object Directory Entry dialog box, choose Local Object.

7. On the Interface tab page, double click the method CHECK_IDOC.

8. On the ABAP Editor, delete all of old source codes.

9. Load the source code from CHECK_IDOC.txt under \MISC\ A20 folder on the DVD.

10. Choose Save and Activate.

11. On the appearing dialog box, choose Continue.

12. Choose Back.

13. Double click method INTERPRET_ADDITIONAL_SEGMENT.

14. Choose Activate, and on the appearing dialog box, choose Continue.

15. Choose Back.

16. Repeat step 12-14 to activate method INTERPRET_IDOC, CHANGE_EXPORT_PARAMETERS and CHECK_PARTNER.

17. On the Business Add-In Builder: Change Implementation Y_WTY_IDOC_IN screen, choose Activate.

18. Go back to the IMG menu.

3.2.9 Business Add-Ins: Data Checking and Changing for Outbound IDocs

Procedure1. Access the activity using one of the following navigation options:

Transaction Code OWTY

Page 23 of 70

Page 24: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

IMG Menu Warranty Claim Processing Business Add-Ins External Creation of Warranty Claims Data Check and Change for Outbound Idocs

2. In the Business Add-In Builder: Create Implementation dialog box, make the following entries:

Field User action and values

Implementation Name Y_WTY_IDOC_OUT

3. Choose Continue (Enter).

4. On the following screen, make the following entries;

Field User action and values

Implementation Short Text Change Outbound Warranty Idoc

5. Choose Save.

6. In the Create Object Directory Entry dialog box, choose Local Object.

7. On the Interface tab page, double click the method CHANGE_SEGMENT.

8. On the ABAP Editor, delete all of old source codes.

9. Load the source code from CHANGE_SEGMENT.txt under \MISC\ A20 folder on the DVD.

10. Choose Save and then Activate.

11. On the appearing dialog box, choose Continue.

12. Choose Back.

13. On the Business Add-In Builder: Change Implementation Y_WTY_IDOC_OUT screen choose Activate.

14. Go Back to the IMG menu.

3.2.10 Creating Function Model: Good Receipt of Return Parts into Q-Stock

Procedure1. Access the activity using one of the following navigation options:

SAP Menu Tools ABAP Workbench Development Function Builder

Transaction Code SE37

2. In the Function Builder: Initial Screen dialog box, make the following entry:

Field User action and values

Function Module Y_WTY04_GR_QSTOCK

3. Choose Create.

Page 24 of 70

Page 25: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

4. On the following screen, make the following entries;

Field User action and values

Function Group Y_WTY_AT

Short Text Good Receipt of Return Pats into Q-Stock

5. Choose Enter.

6. On the following screen, select the tab Import, and make the following entries:

Page 25 of 70

Page 26: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

Parameter Name Type Spec. Associated Type Optional

IT_RCODE TYPE WTY_RCODE_TAB X

IV_RCODE_MAX TYPE SYSUBRC X

IV_MODE TYPE WTY_MODE X

IV_ACODE TYPE WTY_ACODE X

7. Select the tab Export, and make the following entries:

Parameter Name Type Spec. Associated Type Optional

EV_RETURN_CODE TYPE SYSUBRC

EV_SAVE_DATA TYPE C

8. Select the tab Changing, and make the following entries:

Page 26 of 70

Page 27: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

Parameter Name Type Spec. Associated Type Optional

CT_PRELID TYPE PRWTY_TAB X

CS_PNWTYH_DIA TYPE WTY_PNWTYH_DIA X

CT_PNWTYV_DIA TYPE WTY_PNWTYV_DIA_TAB X

CT_PVWTY_DIA TYPE WTY_PVWTY_DIA_TAB X

9. Select the tab Source Code

10. On the ABAP Editor, delete all of old source codes.

11. Load the source code from Y_WTY04_GR_QSTOCK.txt under \MISC\ A20 folder on the DVD.

Page 27 of 70

Page 28: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

Page 28 of 70

Page 29: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

Page 29 of 70

Page 30: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

Page 30 of 70

Page 31: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

Page 31 of 70

Page 32: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

FUNCTION Y_WTY04_GR_QSTOCK.*"----------------------------------------------------------------------*"*"Local Interface:*" IMPORTING*" REFERENCE(IT_RCODE) TYPE WTY_RCODE_TAB OPTIONAL*" REFERENCE(IV_RCODE_MAX) TYPE SYSUBRC OPTIONAL*" REFERENCE(IV_MODE) TYPE WTY_MODE OPTIONAL*" REFERENCE(IV_ACODE) TYPE WTY_ACODE OPTIONAL

Page 32 of 70

Page 33: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

*" EXPORTING*" REFERENCE(EV_RETURN_CODE) TYPE SYSUBRC*" REFERENCE(EV_SAVE_DATA) TYPE C*" CHANGING*" REFERENCE(CT_PRELID) TYPE PRWTY_TAB OPTIONAL*" REFERENCE(CS_PNWTYH_DIA) TYPE WTY_PNWTYH_DIA OPTIONAL*" REFERENCE(CT_PNWTYV_DIA) TYPE WTY_PNWTYV_DIA_TAB OPTIONAL*" REFERENCE(CT_PVWTY_DIA) TYPE WTY_PVWTY_DIA_TAB OPTIONAL*"----------------------------------------------------------------------* PVWTY TYPES: pwty_pvwty_li TYPE pvwty, pwty_pvwty_li_tab TYPE STANDARD TABLE OF pwty_pvwty_li WITH KEY pvguid pvcnt. CONSTANTS: cv_bus2222(10) TYPE c VALUE 'BUS2222', cv_bus2032(10) TYPE c VALUE 'BUS2032',* Goods mvmt cv_bus2017(10) TYPE c VALUE 'BUS2017'. DATA: ls_pnwtyv TYPE pnwtyv, ls_pvwty TYPE pvwty, lt_pvwty TYPE pwty_pvwty_li_tab, lt_pvwty_dia TYPE wty_pvwty_dia_tab.

DATA: lv_version_guid TYPE pvs_guid, ls_pnwtyv_dia TYPE wty_pnwtyv_dia, ls_pvwty_dia TYPE wty_pvwty_dia, lv_docno TYPE bapivbeln-vbeln, ls_obj_rolea TYPE borident, ls_obj_roleb TYPE borident, lv_reltype TYPE breltyp-reltype, lv_dummy TYPE string.

DATA: wrk_quan LIKE bapi2017_gm_item_create-entry_qnt, mat_doc LIKE mseg-mblnr, mat_year LIKE mseg-mjahr. DATA: s_head_01 TYPE bapi2017_gm_head_01, s_gm_code TYPE bapi2017_gm_code. DATA: BEGIN OF lt_items OCCURS 0. INCLUDE STRUCTURE bapi2017_gm_item_create. DATA: END OF lt_items. DATA: BEGIN OF lt_return OCCURS 0. INCLUDE STRUCTURE bapiret2. DATA: END OF lt_return. DATA: BEGIN OF i_errors OCCURS 0. INCLUDE STRUCTURE hrale_err. DATA: END OF i_errors.

IF iv_rcode_max > 0. ev_return_code = 2. EXIT. ENDIF.

CALL FUNCTION 'WTY07_CLEAR_DFLMESSAGES' EXPORTING iv_pnguid = cs_pnwtyh_dia-pnguid iv_dflmsg = 'YAGR'

Page 33 of 70

Page 34: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

iv_versn = ls_pnwtyv_dia-versn.

*--- determine items of active IC-version CLEAR ls_pnwtyv. CALL FUNCTION 'WTY03_ITEM_FROM_AC_VERSION_GET' EXPORTING it_pnwtyv_dia = ct_pnwtyv_dia iv_kateg = 'IC' it_pvwty_dia = ct_pvwty_dia IMPORTING es_pnwtyv = ls_pnwtyv et_pvwty = lt_pvwty EXCEPTIONS no_active_version = 1 no_item = 2 OTHERS = 3. IF sy-subrc <> 0. ev_return_code = 1. exit. endif.

s_gm_code-gm_code = '05'. s_head_01-pstng_date = sy-datum. s_head_01-doc_date = sy-datum. s_head_01-pr_uname = sy-uname. CONCATENATE 'Claim ' cs_pnwtyh_dia-clmno INTO s_head_01-header_txt separated by space. REFRESH lt_items.

* Select those items which have to be returned LOOP AT lt_pvwty into ls_pvwty where RETPA = 1.

CLEAR lt_items. wrk_quan = ls_pvwty-quant. lt_items-material = ls_pvwty-matnr. lt_items-plant = cs_pnwtyh_dia-werks. SELECT single maktx FROM MAKT into lt_items-item_text WHERE MATNR = ls_pvwty-matnr AND SPRAS = sy-langu.

lt_items-stge_loc = 'Z001'.* ‘YD03’ refers to the storage location for return parts. In case the *storage location is not ‘YD03’, change the source code above *accordingly. lt_items-move_type = '503'. lt_items-entry_qnt = wrk_quan. lt_items-entry_uom = ls_pvwty-meinh.* ISO-Code CALL FUNCTION 'RH_ALE_MEASURE_CODE_SAP_TO_ISO' EXPORTING measure_sap = ls_pvwty-meinh field_name_sap = 'ERFME' IMPORTING measure_iso = lt_items-entry_uom_iso TABLES

Page 34 of 70

Page 35: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

error_table = i_errors.

lt_items-ref_date = sy-datum. lt_items-move_reas = space. "Grund der Bew.

APPEND lt_items.

ENDLOOP.

REFRESH: lt_return. CLEAR: mat_doc, mat_year. IF NOT lt_items[] IS INITIAL.

CALL FUNCTION 'BAPI_GOODSMVT_CREATE' EXPORTING goodsmvt_header = s_head_01 goodsmvt_code = s_gm_code IMPORTING materialdocument = mat_doc matdocumentyear = mat_year TABLES goodsmvt_item = lt_items return = lt_return.

* LOOP AT lt_return WHERE type <> 'E' AND type <> 'A'. DELETE lt_return. ENDLOOP.

*--- claim IF lt_return[] IS INITIAL. MOVE cs_pnwtyh_dia-clmno TO ls_obj_rolea-objkey. MOVE cv_bus2222 TO ls_obj_rolea-objtype.*--- Material document. MOVE mat_doc TO ls_obj_roleb-objkey. MOVE cv_bus2017 TO ls_obj_roleb-objtype.* Relationtype MOVE 'VONA' TO lv_reltype.

PERFORM document_flow_create USING ls_obj_rolea ls_obj_roleb lv_reltype cs_pnwtyh_dia-pnguid.* MESSAGE i001(YA71) WITH mat_doc into lv_dummy. MESSAGE i001(YEAT) WITH mat_doc.* Material document & created when claim is saved* CALL FUNCTION 'WTY07_MESSAGE_PROCESSING'* EXPORTING* iv_msgty = sy-msgty* iv_msgid = sy-msgid* iv_msgno = sy-msgno* iv_msgv1 = sy-msgv1* iv_msgv2 = sy-msgv2* iv_msgv3 = sy-msgv3* iv_versn = ls_pnwtyv_dia-versn

Page 35 of 70

Page 36: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

* iv_dflmsg = 'YAGR'* iv_pnguid = cs_pnwtyh_dia-pnguid.* Change status of Parts to 3 - "Partial delivered" LOOP AT lt_pvwty into ls_pvwty where RETPA = 1. read table CT_PVWTY_DIA into ls_pvwty_dia with key pvguid = ls_pvwty-pvguid. if sy-subrc = 0. ls_pvwty_dia-retpa = 3. modify CT_PVWTY_DIA index sy-tabix from ls_pvwty_dia transporting retpa. endif. ENDLOOP.

ev_return_code = 0.

ELSE. LOOP AT lt_return. MESSAGE ID lt_return-id TYPE lt_return-type NUMBER lt_return-number WITH lt_return-message_v1 lt_return-message_v2 lt_return-message_v4 lt_return-message_v4. CALL FUNCTION 'WTY07_MESSAGE_PROCESSING' EXPORTING iv_msgty = sy-msgty iv_msgid = sy-msgid iv_msgno = sy-msgno iv_msgv1 = sy-msgv1 iv_versn = ls_pnwtyv_dia-versn iv_dflmsg = 'YAGR' iv_pnguid = cs_pnwtyh_dia-pnguid. ENDLOOP. ev_return_code = 4. ENDIF. ENDIF.

ENDFUNCTION.

*&---------------------------------------------------------------------**& Form document_flow_create*&---------------------------------------------------------------------** text*----------------------------------------------------------------------** -->P_LV_OBJ_ROLEA text* -->P_LS_OBJ_ROLEB text* -->P_LV_RELTYPE text*----------------------------------------------------------------------*FORM DOCUMENT_FLOW_CREATE USING CS_OBJ_ROLEA LIKE BORIDENT CS_OBJ_ROLEB LIKE BORIDENT CV_OBJ_RELTYPE LIKE BRELTYP-RELTYPE IV_HEADER_GUID TYPE PVS_GUID. DATA: LV_OWN_LOGICAL_SYSTEM TYPE TBDLS-LOGSYS, LV_MSGTXT TYPE STRING.

* get own logical system CALL FUNCTION 'OWN_LOGICAL_SYSTEM_GET'

Page 36 of 70

Page 37: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

IMPORTING OWN_LOGICAL_SYSTEM = LV_OWN_LOGICAL_SYSTEM EXCEPTIONS OWN_LOGICAL_SYSTEM_NOT_DEFINED = 0.

*--- Object A CS_OBJ_ROLEA-LOGSYS = LV_OWN_LOGICAL_SYSTEM.

*--- Object B CS_OBJ_ROLEB-LOGSYS = LV_OWN_LOGICAL_SYSTEM.

*--- create relation CALL FUNCTION 'WTY07_CLEAR_DFLMESSAGES' EXPORTING IV_MSGID = 'WTY' IV_MSGNO = 114 IV_PNGUID = IV_HEADER_GUID. CALL FUNCTION 'BINARY_RELATION_CREATE' EXPORTING obj_rolea = CS_OBJ_ROLEA obj_roleb = CS_OBJ_ROLEB relationtype = CV_OBJ_RELTYPE EXCEPTIONS NO_MODEL = 1 INTERNAL_ERROR = 2 UNKNOWN = 3 OTHERS = 4.

* CALL FUNCTION 'BINARY_RELATION_CREATE'* EXPORTING* OBJ_ROLEA = CS_OBJ_ROLEA* OBJ_ROLEB = CS_OBJ_ROLEB* RELATIONTYPE = CV_OBJ_RELTYPE* EXCEPTIONS* NO_MODEL = 1* INTERNAL_ERROR = 2* UNKNOWN = 3* OTHERS = 4.

IF SY-SUBRC <> 0. MESSAGE S114(WTY) INTO LV_MSGTXT. CALL FUNCTION 'WTY07_MESSAGE_PROCESSING' EXPORTING* IT_MESG = IV_MSGTY = SY-MSGTY IV_MSGID = SY-MSGID IV_MSGNO = SY-MSGNO IV_DFLMSG = 'R3' IV_PNGUID = IV_HEADER_GUID. ENDIF.

ENDFORM. " document_flow_create

Page 37 of 70

Page 38: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

In our solution we use the storage location for returnable parts ‘YD03’. If you wish to personalize your solution and change your storage location for returnable parts to another value, ensure you change the value ‘YD03’ in the source code below, to your own storage location. lt_items-stge_loc = 'YD03'.

12. Choose Save and Activate.

13. Go Back the SAP Easy Access screen.

3.2.11 Creating Function Model: Rel. Version IC for sending

Procedure1. Access the activity using one of the following navigation options:

SAP Menu Tools ABAP Workbench Development Function Builder

Transaction Code SE37

2. On the Function Builder: Initial Screen dialog box, make the following entries:

Field User action and values

Function Module Y_WTY04_VER_IC_SEND

3. Choose Create.

4. On the following screen, make the following entries:

Page 38 of 70

Page 39: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

Field User action and values

Function Group Y_WTY_AT

Short Text Rel. Version IC for Sending

5. Choose Enter.

6. Select the tab Import, and make the following entries:

Parameter Name Type Spec. Associated Type Optional

IT_RCODE TYPE WTY_RCODE_TAB X

IV_RCODE_MAX TYPE SYSUBRC X

IV_MODE TYPE WTY_MODE X

7. Select the tab Export, and make the following entries:

Page 39 of 70

Page 40: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

Parameter Name Type Spec. Associated Type Optional

EV_RETURN_CODE TYPE SYSUBRC

8. Select the tab Changing, and make the following entries:

Parameter Name Type Spec. Associated Type Optional

CT_PRELID TYPE PRWTY_TAB X

CS_PNWTYH_DIA TYPE WTY_PNWTYH_DIA X

CT_PNWTYV_DIA TYPE WTY_PNWTYV_DIA_TAB X

CT_PVWTY_DIA TYPE WTY_PVWTY_DIA_TAB X

9. Select the tab Source Code.

10. On the ABAP Editor, delete all of old source codes.

11. Load the source code from Y_WTY04_VER_IC_SEND.txt under \MISC\ A20 folder on the DVD.

Page 40 of 70

Page 41: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

FUNCTION Y_WTY04_VER_IC_SEND.*"----------------------------------------------------------------------*"*"Local Interface:*" IMPORTING*" REFERENCE(IT_RCODE) TYPE WTY_RCODE_TAB OPTIONAL*" REFERENCE(IV_RCODE_MAX) TYPE SYSUBRC OPTIONAL*" REFERENCE(IV_MODE) TYPE WTY_MODE OPTIONAL

Page 41 of 70

Page 42: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

*" EXPORTING*" REFERENCE(EV_RETURN_CODE) TYPE SYSUBRC*" CHANGING*" REFERENCE(CT_PRELID) TYPE PRWTY_TAB OPTIONAL*" REFERENCE(CS_PNWTYH_DIA) TYPE WTY_PNWTYH_DIA OPTIONAL*" REFERENCE(CT_PNWTYV_DIA) TYPE WTY_PNWTYV_DIA_TAB OPTIONAL*" REFERENCE(CT_PVWTY_DIA) TYPE WTY_PVWTY_DIA_TAB OPTIONAL*"----------------------------------------------------------------------

IF iv_rcode_max > 0. ev_return_code = 2. EXIT. ENDIF.

CALL FUNCTION 'WTY03_VERSION_XX_SEND' EXPORTING it_rcode = it_rcode iv_rcode_max = iv_rcode_max iv_mode = iv_mode iv_kateg = 'IC' IMPORTING ev_return_code = ev_return_code CHANGING cs_pnwtyh_dia = cs_pnwtyh_dia ct_pnwtyv_dia = ct_pnwtyv_dia ct_pvwty_dia = ct_pvwty_dia.

ENDFUNCTION.

12. Choose Save and Activate.

13. Go Back to the SAP Easy Access screen.

3.3 EDI Communication General Settings

3.3.1 Partner Profile, Only Basic Data

UsePartner profiles for EDI communication are created at the supplier side.

Procedure1. Access the activity using one of the following navigation options:

Transaction Code WE20

IMG Menu Basis Components Application Link Enabling Modeling and Implementing Business Processes Partner profiles and Time of processing Maintain Partner Profile Manually

2. On the Partner profiles screen, select Partner profiles Partner type LS.

3. Choose New .

Page 42 of 70

Page 43: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

4. On the right top area of Partner profiles screen, Make following entry:

Field name Description User action and values

Note

Partner Number

for example: ET6CLNT104

Sales Logical System Name

The system assigns this number if you create a master record in an application (for example, purchasing, sales). The EDI partner is identified uniquely via the partner number and partner type.

If you define your own partner types, they are also identified by this number.

5. On the Partner profiles screen, select Post processing: permitted agent.

6. Make the following entries:

Field name

Description User action and values

Note

Type Agent type US Agent type

Classifies the recipient of error notifications.

Examples

'US': An individual agent is notified.

‘O’: Agent type is an organizational unit: all persons assigned to this organizational unit are notified.

Dependencies

Individual persons are assigned to the positions, organizational units etc. in the PD Organizational Model (PD-ORG).

Page 43 of 70

Page 44: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

Field name

Description User action and values

Note

Agent AM-MUSTER Permitted users: ID

Specifies the job (person or group of people) to be notified if processing errors occur on the IDoc interface. You can define up to three different jobs:

In the inbound or outbound partner profiles for special partners, messages and direction.

In the general partner profiles for special partners.

In the general IDoc Administration settings.

Use

If an error occurs, only one (the most specific) job is notified. If an error occurs in the ORDERS message for partner HUGH, the system first attempts to determine whether a job responsible for ORDERS and HUGH is defined. If this is not the case, the job defined for HUGH (required entry) is notified.

The IDoc administrator is notified if HUGH does not exist at all in the partner profiles.

Examples

If the recipient type is 'US' ('user'), enter the name of the SAP user who is to be notified.

If the recipient type is 'O' ('organizational unit'), enter the organizational unit whose personnel are to be notified.

Dependencies

This specification depends on how you have configured the PD Organizational Model (PD-ORG).

Lang. Language of notification

EN If an error occurs, SAPoffice notifies the permitted user in this language.

7. Choose Save .

If the partner already exists, you can change the partner or choose a different customer.

If the customer number doesn’t exist in your system, an error message pops up: Please enter a permitted partner number.

ResultPartner profile is created successfully.

Page 44 of 70

Page 45: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

3.3.2 Partner Profile Inbox

UseInbound parameters in partner profile are created at the supplier side.

Procedure1. Access the activity using one of the following navigation options:

Transaction Code WE20

IMG Menu Basis Components Application Link Enabling Modeling and Implementing Business Processes Partner profiles and Time of processing Maintain Partner Profile Manually

2. On the Partner profiles screen, select Partner profiles Partner type LS <Sales Logical System Name>, for example, ET6CLNT104.

3. On the Partner profiles screen, choose Insert under Inbound parmtrs .

4. On the Partner profiles: Inbound parameters screen, make the following entries:

Field name Description User action and values

Note

Partn. funct. Partner function of sender

As an optional parameter, the partner function containing the sender and the recipient can be specified. Example: 'LF' for 'vendor' or 'AG' for 'sold-to party'.

SNDPFC, SNDPRN and SNDPRT provide a unique ID for the sender. They are among the key fields in the partner profiles, which are used in inbound processing, for example, to determine the process code and therefore the internal processing for the IDoc. Therefore, if the sender function has been specified in the inbound partner profiles, the external system must maintain the field with the corresponding value.

Message type

WNTYCF In EDI, message types are normally assigned to SAP document types uniquely. Their names correspond as much as possible to those of the UN/EDIFACT standard. ALE scenarios, on the other hand, often have no EDIFACT correspondence, for example when master data is transmitted.

Example

ORDERS for purchase order data

INVOIC for invoice data

Page 45 of 70

Page 46: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

5. On the bottom area of the Partner profiles screen: Inbound parameters, select Inbound options tab.

6. Make the following entries:

Field name Description User action and values

Note

Process code Inbound Process Code

WTYIV The IDoc interface uses the process code to find the business process, which controls the conversion of the IDoc into the SAP document.

Syntax Check X If you select the syntax check, the IDoc Interface terminates the processing if a syntax error is found.

If you do not select the syntax check, the IDoc Interface continues the processing. You receive a message that a syntax error was found.

Trigger Immediately

X The inbound IDoc is processed immediately.

7. Choose Save.

8. Repeat step 1 - 7 to enter the following entries:

Partner type

Partner Number

Message Type

Partner function

Message Code

Process code

Trigger immediately

LS<Sales Logical System Name> WNTYRQ WTYIC X

Please enter your own Sales logical system name in the field Partner Number, for example, ET6CLNT104.

3.3.3 Maintaining a tRFC Port

UseA port is a group of technical attributes of a communication channel. This is required for dispatching messages to logical systems

Procedure 1. Access the activity using one of the following navigation options:

Transaction Code WE21

IMG Menu IMG Basis Component Application Link Enabling (ALE) Sending and Receiving Systems Systems in Network Asynchronous Processing Assigning Ports Define Port

2. On the Ports in IDoc processing screen, choose the Transactional RFC folder in the tree structure.

3. Choose Create.

Page 46 of 70

Page 47: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

4. In the dialog box displayed, choose own port name. Enter the port name Z_AUTO.

5. On the screen for creating a tRFC port, enter the following information:

Field name Description User action and values Comment

Description tRFC Port BP Automotive Sales

RFC destination for example : ET6CLNT104 Sales Logical System Name

The RFC destination here should enter the destination this client is to communicate, for example, you should enter the RFC destination of the relevant Supplier client.

6. Choose Save.

Result A port is created in system successfully.

3.3.3.1 Maintaining a tRFC Port pointing to same client

3.3.4 Maintaining a File Port

UseA port is description of the channel used by the SAP system for communicating with the external system during electronic data interchange. For Example: most EDI subsystems read IDocs in the form of sequential files, that is, the port type File is used.

In this section you can define the file port. This is required for dispatching messages to logical systems.

The port is assigned to a partner system in the partner profile.

Procedure1. Access the activity using one of the following navigation options:

Transaction Code WE21

IMG Menu Basis Components Application Link Enabling Sending and Receiving Systems Systems in Network Asynchronous Processing Assigning Ports Define Port

2. On the Ports in IDoc processing screen, select Ports File on the left area of screen.

3. Choose New.

4. On the right area of Ports in IDoc processing screen, make following entries:

Field name Description User action and values Note

Port Port Name YEDIFILE

Description Automotive EDI File Port

Version IDoc record types SAP Release 4.x

5. On the right bottom area of Ports in IDoc processing screen, select Outbound file tab.

Page 47 of 70

Page 48: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

6. Make following entries:

Field name Description User action and values

Note

Physical directory

The file is uniquely identified via the directory (path) and their names.

/usr/sap/<your system ID>/SYS/global/

for example: /usr/sap/ET6/SYS/global/

for example: under the UNIX operating system,

/usr/sap/ET6/SYS/global/

Under the Windows operating system:

\\sapdevdb\sapmnt\ET6\SYS\global\

Do not forget the last slash, as the file name is simply appended as a directory! In the example ET6 is the name of the SAP system.

Function Module

EDI_PATH_CREATE_USERNAME

In order to prevent unprocessed files being overwritten, you use function modules which generate file or directory names dynamically, that is to say, at runtime.

For the output value every function module must deliver a "complete file name", that is, a character string from directory and file names. The file system then operates with these complete names.

You can change the function module as you wish. To get all possible function modules, select F4 Help

You can choose Access Test to check the access permit to the folder you defined.

7. On the right bottom area of Ports in IDoc processing screen, select Inbound file tab.

8. Make following entries:

Field name

Description User action and values

Note

Physical directory

The file is uniquely identified via the directory (path) and their names.

/usr/sap/<your system ID>/SYS/global/

When system automatically proposes a directory, do not change the system proposal.

for example: \\PWDF2756\sapET6root\usr\sap\ET6\SYS\global\

Page 48 of 70

Page 49: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

Field name

Description User action and values

Note

Inbound file

Inbound Here you can specify a fixed name for the file, in which the IDocs from external systems (for example EDI subsystem) are transferred. SAP however recommends that the external system starts the inbound processing in the R/3 System and notifies what the transferred file is called (Parameter from startrfc). The field is then ignored.

In general SAP recommends using dynamic file names, that is, variable file names generated at runtime, in order to prevent the overwriting of non-processed files.

9. On the right bottom area of Ports in IDoc processing screen, select Status file tab.

10. Make following entries:

Field name

Description User action and values

Note

Physical directory

The file is uniquely identified via the directory ("path") and their names.

/usr/sap/<your system ID>/SYS/global/

When system automatically proposes a directory, do not change the system proposal.

for example: \\PWDF2756\sapET6root\usr\sap\ET6\SYS\global\

Inbound file

Status Here you can specify a fixed name for the file, in which the status records from external systems (for example EDI subsystem) are transferred. SAP however recommends that the external system starts the status processing in the R/3-System and notifies what the transferred file is called (Parameter from startrfc). In this case the field is ignored.

In general SAP recommends using dynamic file names, that is to say variable file names generated at runtime, in order to prevent the overwriting of non-processed files.

11. Choose Save.

Result A file port is created in system successfully.

3.3.5 Activating IDoc Inbound

UseThe purpose of this activity is to activate IDoc Inbound Processing.

Page 49 of 70

Page 50: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

This step only needs to be carried out once. If the system IDoc Inbound is already active, this step can be skipped.

Procedure1. Access the activity using one of the following navigation options:

SAP Menu Tools ABAP Workbench Development ABAP Editor

Transaction Code SE38

2. On the ABAP Editor: Initial Screen, enter program RSEINBEV.

3. Choose Display. If the program is already Active, skip the rest of this step.

4. Choose Activate.

5. Confirm the message.

Result A successful message is displayed.

3.4 Creating Claim Type YA02

UseThe purpose of this activity is to define the claim type YA02 used in warranty processing.

Procedure1. Access the activity using one of the following navigation options:

Transaction Code OWTY

IMG Menu Warranty Claim Processing Define Warranty Claim Types

2. On the initial screen, choose New Entries.

3. On the Detail view screen, maintain the following data:

Claim Type

Description PricingSchema

Message Schema

Partner Det.Prc

Reimburser Partner Profile

Partner Reimburs.

Claimant Partner Role

YA02 BP Auto Pre-crediting

WT0002

WTY001

C2 VN V7102 AS

Sales Org

Distribution Channel

Division Purch. Organization

Version Currency

Plant

Z001 Z1 Z1 EUR BP01

Page 50 of 70

Page 51: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

Layout W/O Nav. tree

Layout W Nav. tree

Action Control

Start Process Status

Start Category

Field Name Split Criterion

Item Type Group

SAPO SAP YA10 B001 IC HERST 00

Document Type Customer Posting

Document Type Vendor Posting

AcctDetProced

WP WR KOFI00

Page 51 of 70

Page 52: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

4. Choose Save (Ctrl + S).

ResultClaim type is created.

Page 52 of 70

Page 53: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

3.5 Creating Claim Type YA01

UseThe purpose of this activity is to define the claim type YA01 used in warranty processing.

Procedure1. Access the activity using one of the following navigation options:

Transaction Code OWTY

IMG Menu Warranty Claim Processing Define Warranty Claim Types

2. On the initial screen, choose New Entries.

3. On the Detail view screen, maintain the following data:

Claim Type

Description PricingSchema

Message Schema

Partner Det.Prc

Reimburser Partner Profile

Partner Reimburs.

Claimant Partner Role

YA01 BP Auto YA01 WT0002

WTY001

C2 VN AS

Sales Org

Distribution Channel

Division Purch. Organization

Version Currency

Plant

BP0X 03 01 EUR BP0X

Layout W/O Nav. tree

Layout W Nav. tree

Action Control

Start Process Status

Start Category

Field Name Split Criterion

Item Type Group

SAPO SAP YA11 B001 IC HERST 00

Document Type Customer Posting

Document Type Vendor Posting

AcctDetProced

WP WR KOFI00

5. Choose Save (Ctrl + S).

ResultClaim type is created.

3.6 Creating Notification Type

UseThe purpose of this activity is to define quality notification type.

Page 53 of 70

Page 54: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

Procedure 1. Access the activity using one of the following navigation options:

Transaction Code SPRO

IMG Menu Quality Management Quality Notifications Notification Creation Notification Types Define Notification Type

2. On the initial screen, choose New Entries.

3. On the New Entries: Details of Added Entries Screen, maintain the following data:

Field name Description User action and values Note

Notification Type

Y9

Description BP Customer Compl.

Notif. cat 02

Notification origin

Q1 Customer Complaint

Catalog Profile QM0000001

Early no. alloc. X

Number Range 02

4. Choose Save.

ResultThe notification Type is created.

3.7 Defining Warranty Claim Groups

UseThe purpose of this activity is to defined warranty Claim Groups for Pre-Credit.

Procedure 1. Access the activity using one of the following navigation options:

Transaction Code OWTY

IMG Menu Warranty Claim Processing Warranty Claim Define

Page 54 of 70

Page 55: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

Warranty Claim Groups

2. On the Change View: “Warranty Claim Groups” Overview screen, choose New Entries.

3. On the New Entries: Details of Added Entries Screen, maintain the following data:

Field name User action and values Note

Claim Group PREC

Description Claim Group Pre-credit

4. Choose Save.

ResultWarranty Claim Group is created.

3.8 Defining Status for Parts to Be Returned

UseIn this activity you define status that you require for warranty processing with parts to be returned.

Procedure 1. Access the activity using one of the following navigation options:

Transaction Code OWTY

IMG Menu Warranty Claim Processing Warranty Claim Warranty Claim Items Define Status for Parts to Be Returned

2. On the Change View” Status for Parts that Have to Be Returned”: Overview screen, choose New Entries.

3. Maintain the following data:

Field name User action and values Note

Partner Parts to Be Returned Claimant Selected

StsPrtsRtn 4

Status of Parts to Be Returned Completed

Partner Parts to Be Returned Reimburser Selected

StsPrtsRtn 4

Status of Parts to Be Returned Completed

Page 55 of 70

Page 56: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

4. Choose Save.

ResultStatus for parts to be returned defined.

3.9 Defining Message Type

UseIn this activity, you define the message types for message determination in Warranty Processing.

Procedure 1. Access the activity using one of the following navigation options:

Transaction Code OWTY

IMG Menu Warranty Claim Processing Warranty Claim Message Determination Define Message Types

2. On the Display View” Output Types”: Overview screen, choose Display Change (Ctrl+F1).

3. On the Change View” Output Types”: Overview screen, select WTOC item to choose Details.

4. On the Change View” Output Types”: Details screen, make the following entries;

Field name User action and values Note

Access Sequence 0005

Page 56 of 70

Page 57: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

5. Choose Save.

3.10 Defining Control Data

3.10.1 Defining Actions

UseThe purpose of this activity is to define actions used in warranty processing.

Procedure 1. Access the activity using one of the following navigation options:

Transaction Code OWTY

IMG Menu Warranty Claim Processing Control Data Process Control Define Actions

2. On the initial screen, choose New Entries.

3. Maintain the following data:

Page 57 of 70

Page 58: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

Action Action Type Description Function Module

Action Sequence

YA* All YA* actions

YA10 A Interlinking Action Displayed in Action Box

1st step - Check WTY & Credit Memo Post

A200, T810, A040, YA66, A008

YA11 A Interlinking Action Displayed in Action Box

2nd step - GR & Version to Reimburser

YA65, A070

YA12 A Interlinking Action Displayed in Action Box

3rd step - To Claimant & Debit Memo Post

YA13, A043

YA50 F Elementary Action Displayed in Action Box

Complete Claim WTY04_CLAIM_CLOSE

YA62 T Elementary Action Hidden in Action Box

Post goods receipt to Q-stock

Y_WTY04_GR_QSTOCK

YA65 V Interlinking Action Hidden in Action Box

Split Groups Proposal With Dialog Box

T061, T062

YA66 T Elementary Action Hidden in Action Box

Rel. IC-Version for sending

Y_WTY04_VER_IC_SEND

YA10:

Page 58 of 70

Page 59: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

YA11:

YA12:

Page 59 of 70

Page 60: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

YA50:

YA62:

YA65:

Page 60 of 70

Page 61: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

YA66:

4. Choose Save.

ResultThe actions are defined.

3.10.2 Defining Action Controls

UseThe purpose of this activity is to define action controls.

Procedure 1. Access the activity using one of the following navigation options:

Transaction Code OWTY

IMG Menu Warranty Claim Processing Control Data Process Control Define Action Controls

Page 61 of 70

Page 62: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

2. On the initial screen, choose New Entries.

3. On the New Entries: Details of Added Entries Screen, maintain the following records:

Field name Description User action and values Note

Action Control YA10

Action Control Processor Actions

4. Choose Enter.

5. Double-click Action Matrix, and on the Change View “Action Matrix”: Overview Screen, maintain the following data:

Action Control

Start Processing Action Target Processing

A* B002

YA10 T* B002

YA10 B001 A* B002

YA10 B001 T* B002

YA10 B001 YA* B002

YA10 B001 YA10 B040

YA10 B002 A* B002

YA10 B002 T* B002

YA10 B002 T060 B060

YA10 B002 YA* B002

YA10 B002 YA10 B040

YA10 B002 YA66 B040

YA10 B040 A* B040

YA10 B040 T* B040

YA10 B040 T060 B060

YA10 B040 YA* B040

YA10 B040 YA50 B060

YA10 B060 T065 B040

Page 62 of 70

Page 63: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

6. Choose Save.

7. Repeat steps 2 to 6 for YA11 with the following data:

Field name Description User action and values

Note

Action Control YA11

Action Control Reimburser Actions

Action Matrix:

Action Control StartProcessing Action Target Processing

YA11 A* B002

YA11 T* B002

YA11 B001 A* B002

YA11 B001 T* B002

YA11 B002 A* B002

YA11 B002 T* B002

YA11 B002 T060 B060

Page 63 of 70

Page 64: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

ResultThe action controls are defined.

3.10.3 Assigning Function Codes to Action Codes

UseThe purpose of this activity is to assign the function code to the action code.

Procedure 1. Access the activity using one of the following navigation options:

Transaction Code OWTY

IMG Menu Warranty Claim Processing Control Data Processing Control Assign Function Code to Action Code

2. On the “Change View: Assign Function Code to Action Code “ Overview screen, choose New Entries and enter the following data:

Field name User action and values Note

Function Entry in Command fld. YA10

Action YA10

Function Entry in Command fld. YA11

Action YA11

Function Entry in Command fld. YA12

Action YA12

Function Entry in Command fld. YA50

Action YA50

Function Entry in Command fld. YA62

Action YA62

Function Entry in Command fld. YA65

Action YA65

Function Entry in Command fld. YA66

Action YA66

Page 64 of 70

Page 65: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

3. Choose Save.

3.10.4 Defining Copy Procedure

UseThe purpose of this activity is to create the copying control.

Procedure 1. Access the activity using one of the following navigation options:

Transaction Code OWTY

IMG Menu Warranty Claim Processing Control Data Copying Control Define Copy Procedure

2. On the initial screen, choose New Entries.

3. On the New Entries: Overview of Added Entries Screen, maintain the following data:

Field name Description User action and values Note

Copy Procedure Y1

Description of Copy Procedure

BP Standard

4. Choose Save.

3.10.5 Assigning Copy Procedure to Claim Type

UseThe purpose of this activity is to assign copy procedure to claim type.

Procedure

Page 65 of 70

Page 66: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

1. Access the activity using one of the following navigation options:

Transaction Code OWTY

IMG Menu Warranty Claim Processing Control Data Copying Control Assign Copy Procedures to Claim Type

2. On the initial screen, choose New Entries.

3. On the New Entries: Overview of Added Entries screen, maintain the following data:

Claim Type

Source Category

Target Category

Copy Profile

CopyMATPrice

CopyFRPrice

CopySUBLPrice

YA01 IC OC Y1 X

YA02 IC OV Y1 X

YA02 IV OC Y1 X

YA02 OV IV Y1 X X X

ResultCopying Procedure is settled.

3.11 Layout Settings

3.11.1 Defining Pushbutton Profile

UseThe purpose of this activity is to create the pushbutton on the warranty claim screen.

Procedure 1. Access the activity using one of the following navigation options:

Transaction Code OWTY

IMG Menu Warranty Claim Processing Layout Define Pushbutton Profiles

Page 66 of 70

Page 67: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

2. On the initial screen, choose New Entries.

3. On the New Entries: Overview of Added Entries screen, maintain the following data:

Pushbutton Profile

Profile Description Action Control

YA_PROFILE BP Auto for Processor YA10

4. Choose Save.

3.11.1.1 Assigning Action Controlling

UseThe purpose of this activity is to assign the action controls to the pushbutton profile.

Procedure 1. Access the activity using one of the following navigation options:

Transaction Code OWTY

IMG Menu Warranty Claim Processing Layout Define Pushbutton Profiles

2. On the initial screen, select the pushbutton profile you created in the previous step and double click Action Control.

3. On the Change View “Action Control” Overview screen, choose New Entries, and maintain the following data:

Action Control Category

YA10 IC Incoming Customer (IC)

YA10 IV Incoming Vendor (IV)

YA10 OC Outgoing Customer (OC)

YA10 OV Outgoing Vendor (OV)

Page 67 of 70

Page 68: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

4. Choose Enter.

5. Choose Save

3.11.1.2 Defining Pushbutton Profile - Assigning Action Code

UseThe purpose of this activity is to assign the actions to the pushbutton profile.

Procedure 1. Access the activity using one of the following navigation options:

Transaction Code OWTY

IMG Menu Warranty Claim Processing Layout Define Pushbutton Profiles

2. On the initial screen, select the pushbutton profile you created in the previous step and double click Actions.

3. On the Change View “Actions”: Overview Screen, choose New Entries, and maintain the following data:

Function Action Code Text Pushbutton

W_BUTTON1 YA10 WTY Check & Post to FI

W_BUTTON2 YA62 Q-stock

W_BUTTON3 YA11 Version To Reimburser

W_BUTTON4 A100 Delivery

W_BUTTON5 A870 Release

W_BUTTON6 A019 From Reim.

W_BUTTON7 YA12 To Claimant

Page 68 of 70

Page 69: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

4. Choose Enter.

5. Choose Save.

ResultThe pushbutton profile is created.

3.11.1.3 Defining Message Groups

Use The purpose of this activity is to define message groups.

Procedure1. Access the activity using one of the following navigation options:

Transaction Code OWTY

IMG Menu Warranty Claim Processing Layout Define Message Groups

2. On the initial screen, choose New Entries.

3. On the New Entries: Details of Added Entries Screen, maintain the following data:

Message Group Description

KL Delivery w/o Charge

YAGR Goods receipt into Q-Stock

Page 69 of 70

Page 70: Warranty Processing Pre Credit ConfigGuide

Warranty Processing_Pre Credit_ConfigGuide

4. Choose Save.

ResultMessage Groups YAGR and KL are created.

3.12 Manual Step

3.12.1 Maintaining Document Type Determination for Warranty

UseThe purpose of this activity is to maintain document type determination.

Procedure1. Access the activity using one of the following navigation options:

Transaction Code YWTY_DM

2. On the Change View “Document Type Determination for Warranty”: Overview screen, choose New Entries, and make the following entries:

Field name Description User action and values Note

Object Typ Object Type EQUI Equipment

Claim Group PREC Pre-credit

WtyClm Type Warranty Claim Type YA01

3. Choose Enter to confirm your entries.

4. Choose Save.

Result Warranty document type determination is defined.

Page 70 of 70