‎2007 Jun 20 4:25 AM
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
‎2007 Jun 20 4:31 AM
‎2007 Jun 20 4:31 AM
‎2007 Jun 20 4:33 AM
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
‎2007 Jun 20 4:38 AM
‎2007 Jun 20 4:47 AM
‎2007 Jun 20 5:00 AM
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
‎2007 Jun 20 4:39 AM
Hi Praveen
Create FM
http://help.sap.com/saphelp_nw04/helpdata/en/26/64f623fa8911d386e70000e82011b8/content.htm
Call FM
http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/db98ef35c111d1829f0000e829fbfe/content.htm
Thanks
Rewards if Helpful
‎2007 Jun 20 4:45 AM
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