Sunteți pe pagina 1din 7

11 July 2019

New ABAP program Requirement:

Background: We need to Generate, store & retrieve a code generated using Specific logic. (CRC32)
output in Decimal. The input will be material number + Serial number.

There should be T-codes

1. Generate (ZIC_GEN)
2. View (ZIC_VIEW)
3. Update (ZIC_UPDATE)
4. List (ZIC_LIST)

1.Generate: (ZIC_GEN)

This T-Code will generate a Code for the Material and Serial Number given in Input.

Input parameters:

a) Material number: Ranges (Mandatory)


b) Serial number: Ranges (Mandatory)

Based on the provided input a Numeric code (10 digits) will be Generated. This generated code will
be stored in custom table ZIC_CODE. This table will have following fields
1. Material Number
2. Serial Number
3. Generated Code
4. Username
5. Date of Generation
6. Time of Generation.

Validation: While generating code, system will check whether code is already generated for the
combination of Material Number and Serial Number. If Generated, an error message will be
provided “Code already generated for the Material and Serial Number”.

Output parameters:

Material number Serial number Generated code


F3-86-390-0967-23 H19G00996 7899998998

2.View: (ZIC_VIEW)

This T-code will show the generated codes for the list of Material Number and Serial Numbers

Input parameters:

a) Material Number: Ranges (Mandatory) (Help will be given to choose from ZIC_CODE Table)
b) Serial number: Ranges (Mandatory) (Help will be given to choose from ZIC_CODE Table)
Based on the given Input we will pick the Generated Code for the Combination of Material and Serial
Number and display it in Output Screen.

Output parameters:

Material number Serial number Generated code


F3-86-390-0967-23 H19G00996 7899998998

3. Update customer details: (ZIC_UPDATE)

This T-Code will activate the code for the Material based on the Customer

Input parameters:

Two Radio buttons will be there.

Radio button 1: Customer exist


Radio button 2: Customer does not exist

Case 1: Radio button 1: Customer exists

Input Parameters:
1. Material number. (Single Value: Mandatory)
2. Serial number. (Single Value: Mandatory)
3. Customer number. (Single Value: Mandatory)
4. Requester.
5. Requester Phone.

Based on the given Material and Serial Number Input, System will pick the generated code from
Table ZIC_CODE along with the Customer details from Customer Table KNA1 and Display all Details in
Output Screen. These details will be saved in a Custom Table ZIC_CUST.

Validations:
1. System will check if the Customer exists in Database, Otherwise an error message will be
displayed.
2. System will check if a code has been generated for the Material and Serial Number.

Case 2: Radio button 2: Customer does not exist

Input Parameters:

1. Material Number
2. Serial Number
3. Customer Name
4. Hospital Name
5. Street 1
6. Street 2
7. City
8. Postal Code
9. State
10. Telephone
11. E-Mail Address
12. Requester Name
13. Requester Phone

Based on Given Input, System will pick the generated code for the Material and Serial Number
combination and show the Output in following screen along with Customer Number. Since in this
case Customer number does not exist, System will generate a Customer number based on Internal
Number Range and all details will be saved in Table ZIC_CUST.

ZIC_CUST will have following fields:


1. Material Number
2. Serial Number
3. Generated Code
4. Customer Number
5. Customer Name
6. Hospital Name
7. Street 1
8. Street 2
9. City
10. Pin Code
11. State
12. Phone
13. Email Address
14. Requester Name
15. Requester Phone
16. User ID
17. Date of Activation
18. Time of Activation

Output parameters:

Customer number Material number Serial number Generated code


Abc F3-86-390-0967-23 H19G00996 7899998998

4.List: (ZIC_LIST)

This T-code will show the List of Codes which are Activated by User.

Input parameters:

a) Material Number (Ranges-Mandatory)


b) Serial Number (Ranges-Mandatory: Option to search from ZIC_CUST table)
c) Date of generation
d) Generated by user

Based on Input, System will pick all relevant data from ZIC_CUST Table and show it in Output Screen

Output parameters:
list_Output
parameters.xlsx

S-ar putea să vă placă și