Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Function Module

Former Member
0 Likes
823

Hi All,

I want to write a function module in which we do get the product number from the user we need to get the product details from a ztable.

Please send me the code of the FM and how to call this FM in a report.

Thanks in Advance,

Praveen

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
806

Check the below thread

7 REPLIES 7
Read only

Former Member
0 Likes
807

Check the below thread

Read only

gopi_narendra
Active Contributor
0 Likes
806

goto SE37.

create a Z func module with reqd name

give the import parameters as PRODUCT NUMBER. IMPORT PARAMETERS are nothing but the input values

and the export parameters as the PRODUCT DETAILS (All required fields) EXPORT PARAMETER are nothing but the output values

then in the source code tab write the code to get the details required to the EXPORT PARAMETERS.

now in SE38 in ur program u can use the FM by ctrl+f6 and giving the FM name.

Regards

Gopi

Read only

0 Likes
806

Thanks for your responses,

How do I export the parameters.

Read only

Read only

0 Likes
806

You just need to give the field names at the import tab of the function module

and give the export parameters of the export tab.

once u see the SE37 you can find different tabs. You will understand it if you go to the tabs.

Regards

Gopi

Read only

Former Member
0 Likes
806

GO TO SE37 CREATE function group ... then function module ..

utility for function grup creation ...

in the

Import  paramater.

s_NUMER   like zTABLE-P_NUMBER .

inthe

TABLE
  
s_itab   like    ztable  ..

so that in the source code ...


select  * from   Ztable   into corresponding  fields of s_itab where  p_number  =  s_NUMER.

where ever you use this function moduele in your program just give <b>PRODUCT NUMBER to s_NUMER.</b>

Declare one internal table of type ztable in your program so that the output of the function module is <b> s_itab = itab </b> .

over ......

reward points if it is usefull ...

Girish