Sie sind auf Seite 1von 3

Provide F4 Functionality: for Presentation Server File Input Field and

Front-End File Name for down load


By Calling Function Module = 'F4_FILENAME' .
Selection Screen Field Validations:
1) If Presentation Server Radio Button Selected:
Presentation Server File Input Field value is blank Then Give Error Message:As Enter Front-End Input File Name.
2) If Application Server Radio Button Selected:
Application Server File Input Field value is blank Then Give Error Message:As Enter Application Server File Name.

3) If Dow:nload To Front-End Radio Button selected :


If Front-End File Name input Field is Blank Then Give Error Message as:
Enter Front-End File Name for Downloading.
4) Presentation Server File extension and
Front-End File Name extension for down load are not equal to .xls then give error
message:Enter File Name with .xls extension
Sample Input File Format:-

test_1material.xls

Steps To Follow:
Step1: Upload Input Excel File Data into Internal Table By calling Function
Module: ALSM_EXCEL_TO_INTERNAL_TABLE .
Step2:

Get Material Number(MATNR)

Plant(WERKS)
BOM Usage(STLAN)
Alternative BOM(STLAL) fields data from table MAST(Material to BOM Link)
Based on Material Numbers(MATNR) = Input file Product Numbers .
Step3: After Getting Data from the MAST table then for Each Material
Explode the BOM for 3 levels
By Calling Function Module 'CSAP_MAT_BOM_READ' .
Note: Input Parameters to this Function Module:
Material Number = MAST-MATNR
Plant = MAST-WERKS
Bom_Usage = 3 levels
Valid From = Current Date Format DDMMYYYY
Bom Items Output Will get through internal Table
t_stpo like STPO_API02
Step4: If BOM Component(t_stpo-component) is initial then delete the record.
Delete Service and Software item from Exploded BOM components.
Check MARA-MATKL(Material Group) where Matnr = t_stpo-component.
If MARA-MATKL = 'E-NRR' or 'E-SWD' or 'PHANTOM' or
'SERVICES' Then delete corresponding Entry From t_stpo internal Table.
Step5: Explode the BOM for All Sub Levels(3) By Using Step 3 and follow step 4 also to check
qualified components .
Step6: Get Productline from MARA-SPART field for Corresponding MARA-MATNR = MAST-MATNR:
Calculate Each Period1, Period2.Period12

Content of each Period Multiply with Exploded Component Qty (COMP_QTY ).


Step7: Display Output and Down Load Output in Local Presentation Server with .xls

Das könnte Ihnen auch gefallen