Function Module

13
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 name And click on create

Transcript of Function Module

Page 1: 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

Page 2: Function Module

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)

Page 3: Function Module

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

Page 4: Function Module

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

Page 5: Function Module

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

Page 6: Function Module

Click on contentsIn the next screen specify the datasourse name as 2LIS_11_HDR” TO GET THE EXTRACTOR NAME

And click on execute

Page 7: Function Module

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

Page 8: Function Module

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

Page 9: Function Module

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

Page 10: Function Module

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

Page 11: Function Module

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

Page 12: Function Module

In the next screen click on main program

Then double click on LYGGROUPTOPIn the next screen specify TYPE-POOLS: SBIWA, SBIW.

Page 13: Function Module

Save check and activate the group