Function Module
-
Upload
viswa5671931 -
Category
Documents
-
view
2.962 -
download
5
Transcript of Function Module
STEPS FOR FUNCTION MODULE EXTRACTION
•I. CREATE EXTRACT STRUCTURE•II. CREATE FUNCTION MODULE•III. AFTER CREATING PLACE ABOVE TWO (FM, EX.STRU.) IN RSO2 BY SELCTING TAB EXTRACTION BY FUNCTION MODULE TAB
Go to SE11 Select the data type radio button . Enter your structure name
Specify the technical nameAnd click on create
In the next screen specify the structure radio button
Click on continue
Give Some Short Description In Enter The Fields Name From Kna1 (If You Want Data From Kna1 Table)
Then save check activate the structure
Structure name is “YSTRUCTURE1”Now create function module.GO TO “SE37”Create function groupFor that menu option go tofunction group create group
Specify the function group name and click on save
Now Create The Function Module In Se37Specify the technical name and click on create
In the next screen specify the function group nameAnd click on save
in the next screen
Go to import tab Enter the values, which is already having data source “extractor program”. Copy from extractor program and paste is here. To copy that program dataGo to se11 and open “ROOSOURCE table” in another screenOpen new window and give se11 T-codeSpecify ROOSOURCE table name and click on display
Click on contentsIn the next screen specify the datasourse name as 2LIS_11_HDR” TO GET THE EXTRACTOR NAME
And click on execute
In the next screen select the first one and double click on it
The system opens a new screen
In that copy the extractor name MCEX_BW_LO_API ” which is available 3rd last of the row
Now open se37 t-codeSpecify the extractor name and click on display
System opens the new screen
In that go to imports tabThis is your existed “2lis_02_hdr” program copy
And paste in your actual program, which you are creating i.e. Y_ext_stru_fm11next screen will be my fm program screen like this
Like paste all the clams’ data (type, associated type, data values)And check the check boxes also how exactly we have in the extractor
Then go to the table tab in both of the screens and copy paste all the things previously how exactly you are done like these
Now you mention our extract structure name, which we have created “YSTRUCTURE1” and specify Type spec is LIKE
Go to source code, select statement, and write a code “Select mandt kunnr land1 name1 name2 from kna1 into table e_t_data.”
Then click on save
Then again go to se37 T-codeAnd open function group already what you created previously
In the next screen click on main program
Then double click on LYGGROUPTOPIn the next screen specify TYPE-POOLS: SBIWA, SBIW.
Save check and activate the group