How to get Documentation on Funtion Module
hi Experts,
I want to know where can we find the documentation of a FM like for a badi... you can get it from spro..srm...Business add in... where u can click on documentatio....
But how to get documentation fo Funtion module , for example if want to get docs related to FM "BBP_PD_SC_GETDETAIL" how to get it....
Thanks
sameer
Hi. If you go to SE37 and enter the FM name, then press display, there is a button top right called "Function Module Documentation".
It is not maintained for every function though, if the button is greyed out there is nothing. If there is nothing there I do not know if there is anywhere else to look, apart from SDN of course....
Regards,
Dave.
Similar Messages
-
How to get parameter for Adapter Module ?
Hi XI Expert,
I have write some simple adapter module in my sender file adapter. in order to make it more flexible i need to read some parameter that already set in communication channel module parameters.
please advise how to get those parameter value from my ejb module.
Thank You and Best Regards
Fernandhi,
follow this example SAP contribution for parameter in Adapter Module
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3bdc14e1-0901-0010-b5a9-a01e29d75a6a
Regards
Ramesh P -
How to get documentation of a report with its respective headers?
I know fm, SRTU1_GET_REPORT_DOCUMENTATION, has to be used to get the documentation of a report. But when i print out the result it only shows the documentation data and not the data's respective headers. Without the headers the data looses its meaning.
Any idea on how to get both the report documentation and its respective headers.
Any help will be appreciated.
Thanks
NahmanThe following code downloads program docu as pdf file:
data: header like thead,
options like itcpo.
data: lines like tline occurs 0 with header line,
otfdata like itcoo occurs 0 with header line,
pdflines like tline occurs 0 with header line,
docstab like docs occurs 0 with header line,
binfilesize type i,
filenm type string.
parameters: program like trdir-name obligatory,
filenam like rlgrap-filename default 'c:temppdftest.pdf'.
start-of-selection.
call function 'DOC_OBJECT_GET'
exporting
class = 'RE'
name = program
language = sy-langu
short_text = 'X'
appendix = 'X'
importing
header = header
tables
* RTF_LINES =
itf_lines = lines
exceptions
object_not_found = 1
others = 2
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
options-tdgetotf = 'X'.
options-tdprogram = 'SAPLSHL2'.
options-TDDEST = 'LOCL'.
call function 'PRINT_TEXT'
exporting
application = 'TD'
* ARCHIVE_INDEX = ' '
* ARCHIVE_PARAMS = ' '
device = 'PRINTER'
dialog = ' '
header = header
options = options
* IMPORTING
* NEW_ARCHIVE_PARAMS =
* RESULT =
tables
lines = lines
otfdata = otfdata
exceptions
canceled = 1
device = 2
form = 3
options = 4
unclosed = 5
unknown = 6
format = 7
textformat = 8
communication = 9
bad_pageformat_for_print = 10
others = 11
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
refresh lines.
call function 'CONVERT_OTF_2_PDF'
* EXPORTING
* USE_OTF_MC_CMD = 'X'
* ARCHIVE_INDEX =
importing
bin_filesize = binfilesize
tables
otf = otfdata
doctab_archive = docstab
lines = pdflines
exceptions
err_conv_not_possible = 1
err_otf_mc_noendmarker = 2
others = 3
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
filenm = filenam.
call function 'GUI_DOWNLOAD'
exporting
* BIN_FILESIZE =
filename = filenm
filetype = 'BIN'
tables
data_tab = pdflines
* FIELDNAMES =
exceptions
file_write_error = 1
no_batch = 2
gui_refuse_filetransfer = 3
invalid_type = 4
no_authority = 5
unknown_error = 6
header_not_allowed = 7
separator_not_allowed = 8
filesize_not_allowed = 9
header_too_long = 10
dp_error_create = 11
dp_error_send = 12
dp_error_write = 13
unknown_dp_error = 14
access_denied = 15
dp_out_of_memory = 16
disk_full = 17
dp_timeout = 18
file_not_found = 19
dataprovider_exception = 20
control_flush_error = 21
others = 22
if sy-subrc <> 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
Regards
Sridhar -
How to get the text in module pool program after f4 help
Hi to all experts,
My required is to get the text of a field when the user clicks on the f4 help text should be populated automatically beside the field
how to do it>
> the screen name is defined as t528t-plstx and while passing im using the same name in the POV module after what could be the reason;
Hi in the POV module, first read the dynpro filed for which a text has to be displayed (using FM- DYNP_VALUES_READ)and then update your Text Description field uing the FM -'DYNP_VALUES_UPDATE
dynpfields-fieldname = 'FNAME'. "FNAME is the field for which POV is called
append dynpfields.
repid = sy-repid.
call function 'DYNP_VALUES_READ'
exporting
dyname = sy-cprog
dynumb = sy-dynnr
tables
dynpfields = dynpfields
exceptions
others.
read table dynpfields index 1.
fname = dynpfields-fieldvalue.
*Fetxh the Text field into a local varaible.
l_plstx = XXXXXXX.
dynpfields-fieldname = 'T528T-PLSTX'.
dynpfields-fieldvalue = l_plstx.
APPEND dynpfields .
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
dyname = sy-repid
dynumb = sy-dynnr
TABLES
dynpfields = dynpfields.
This will update your text field dynamically.
Regards,
Rajesh -
How to get data from function module in crystal report
Hi,
I installed Crystal Reports 2008 and BO SAP Integration kit for CR.
I connected successfully to SAP system from CR but unable to get the data into Report ...
But data is present in function module.
Could you please tell me what may be the reason ...!!
Thanks
RaghavendraHi,
I connected successfully to SAP system from CR but unable to get the data into Report with all the Input parameters and data is present in function module.
Note: - If we take Start date as input parameter in Crystal report data is coming for single parameter, whereas we take input parameters like Partner function, Region and Customer - we are not getting data. (These fields we created parameters in Crystal report)
In Function Module IMPORT Parameters are below mentioned and Export parameter is Blank
Start Date (Mandatory field)
Partner Function (Mandatory)
Region
Customer
Please let us know if required any information.
Regards,
Raghavendra -
How to get start with FI module(functional)
Hello,
I want to know how to start with functionally on FI moduleHello Bahrgavi
Here is a check list:
- Bcom / Mcom / MBA / CA / ICWA - Yes / No
- Functional Experience in a manufacturing / process industry - Yes / No
- Worked in large establishments - Yes / No
- Ability to understand to the basics of all modules, purpose, types of transactions, data inflow and data outflows, expected reporting, possible areas of errors, basic configuration required for operations and integration.
- Understand the sub modules within FI, like AR,AP,AA,Banks, Controlling.
- Understand the use of each component
- Understand why and how data should flow
- Understand the base line configuration
- Understand the reports in each component
- Understand the different transactions in each component
There is lot, if you can be more specific, then there is more to come.
Reg
*assign points if useful -
How to get information about the modules used in the RT system from host pc.
hi all,
i am trying to read the modules of the RT tragets from my host pc without deploying the program.
i have 2 or more than 2 rt systems from which i am trying to get the information about the modules used in that particular system.
Regards,
Santhosh Mhi, you can use the sys_context function, like this:
select sys_context('userenv','current_user'),
sys_context('userenv','os_user'),
sys_context('userenv','host'),
sys_context('userenv','ip_address'),
sys_context('userenv','instance'),
sys_context('userenv','sessionid'),
sys_context('userenv','terminal')
from dual;
Is this what you 're looking for? -
How to get documentation of table in Modulepool
Hi all,
I created documentation for ztable and in my customized screen , if click on one button i have to get that table documentation like in sap img (if i click on one documentation button i got performance assistance popup like the same way)..
Is there any way to get as such.................
Thanks in advance
M prasannaTry Something like following
PROGRAM z_gtren_test.
PARAMETERS P_TABLE TYPE TABNAME.
DATA LV_OBJECT TYPE DOKHL-OBJECT.
START-OF-SELECTION.
LV_OBJECT = P_TABLE.
CALL FUNCTION 'DOCU_CALL'
EXPORTING
* CMOD_ENTRANCE = ' '
DISPL = 'X'
DISPL_MODE = '2'
* DYNPRO_FOR_THLPF = ' '
* FDNAME_FOR_THLPF = ' '
ID = 'TB'
LANGU = SY-LANGU
OBJECT = LV_OBJECT
* PROGRAM_FOR_THLPF = ' '
* SHORTTEXT = ' '
TYP = 'E'
SUPPRESS_EDIT = 'X'
* USE_SEC_LANGU = ' '
* FORCE_EDITOR = ' '
* EXTENSION_MODE = ' '
* TEMPLATE_ID = ' '
* TEMPLATE_OBJECT = ' '
* TEMPLATE_TYP = ' '
* USE_NOTE_TEMPLATE = ' '
* DISPLAY_SHORTTEXT = ' '
* IMPORTING
* SAVETEXT =
* EXIT_CODE =
EXCEPTIONS
WRONG_NAME = 1
OTHERS = 2
IF SY-SUBRC <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
WRITE : / '1'. -
How to get pernr from Recruitment module(PB000),
Hi All,
I want to read the pernr from the applicant data PBnnnn, There is one GET PERNR,
for PAnnnn, which reads pernrs from Employee data. Is there any similar way for
applicant data also?Do i understand you correctly that you are not getting the portal event ?
This can be several reasons ?
Both portal system and WDA server has to be in same domain and same proptocol to communicate with Portal event.
Please check in that direction and search posts on this topic. -
How to get data to internal table from function module tr_inspect_objects
How to get data from funtion module to an internal table .
function module name is tr_inspect_objects(code inspectore se10)
how top collect all task request data into one internal table using this fm or we have to create another fm .
If you have already made FM please give us the code .Hi,
You can use tables E070 or E071 to get data into your internal tables instead of a function module.
Hope this helps.
BR
Dep -
Documentation of function module
Hi All,
How to create documentation of function module while creating function module
Pl tell me step by step process
Helpfule answer will definatly rewarded
Regards
ShashikantHi Shashikanth,
go to tcode se37.
before creating a function module we have to create function group.
so to create function group.
chose menu path GOTO -- Function group -- create function group .
give the name of the FG.
again choose menuu path GOTO -Function group -- change group.
give the FG name and select MAIN PROGRAM tab and activate that one.
now create ur FM and click on functiona module documentation button on the application tool bar.
then u will get a PC Editor
in that u will have &FUNCTIONALITY& below this line write ur discription
and for all the remaining options such as &EXAMPLE& &HINTS& &FURTHER_SOURCES_OF_INF&
write ur desired documentation
Then in d application tool bar u will have an icon 'SCREEN OUTPUT' or press ctrlshiftF6.
then u will see the documenation.
Plz reward if helpful,
S.Gagnireddy. -
How to Update crmd_customer_h TABLE Using CRMV_EVENT Through Funtion Module
Hi
How we can update customer_h table using the CRMV_EVENT Where i implemented logic below in the Funtion Module.
data: lt_doc_flow TYPE crmt_doc_flow_wrkt,
lw_cust_h_com TYPE crmt_customer_h_com,
lw_input_field_names TYPE crmt_input_field_names,
lt_input_field_names TYPE crmt_input_field_names_tab,
lt_objects_to_save TYPE crmt_object_guid_tab,
lw_guid TYPE CRMT_OBJECT_GUID.
DATA : lv_process_type TYPE crmt_process_type.
data: wa_doc_flow type CRMT_DOC_FLOW_WRK.
data: wa_customer_h type crmd_customer_h.
* Function module for retriving the Process type.
CALL FUNCTION 'CRM_ORDERADM_H_READ_OW'
EXPORTING
iv_orderadm_h_guid = iv_header_guid
IMPORTING
ev_process_type = lv_process_type
EXCEPTIONS
admin_header_not_found = 1
OTHERS = 2.
if lv_process_type eq 'ZG01'.
CALL FUNCTION 'CRM_DOC_FLOW_READ_OB'
EXPORTING
IV_HEADER_GUID = iv_header_guid
IMPORTING
ET_DOC_FLOW_WRK = lt_doc_flow.
read table lt_doc_flow with key objtype_a = 'BUS2000116' INTO wa_doc_flow. "gc_object_type-service.
if sy-subrc eq 0. "set flag for service order
lw_cust_h_com-ref_guid = wa_doc_flow-objkey_a.
lw_cust_h_com-ZZTRAIL_FLAG = 'X'.
lw_cust_h_com-mode = 'A'.
lw_cust_h_com-ref_handle = '0000000001'.
lw_guid = wa_doc_flow-objkey_a.
INSERT lw_guid INTO TABLE lt_objects_to_save.
endif.
lw_input_field_names-fieldname = 'REF_GUID'.
lw_input_field_names-fieldname = 'ZZTRAIL_FLAG'.
lw_input_field_names-changeable = ' '.
INSERT lw_input_field_names INTO TABLE lt_input_field_names.
Maintain Customer H
CALL FUNCTION 'CRM_CUSTOMER_H_MAINTAIN_OW'
EXPORTING
is_customer_h_com = lw_cust_h_com
CHANGING
ct_input_field_names = lt_input_field_names
EXCEPTIONS
header_change_error = 1
header_create_error = 2
error_occurred = 3.
ENDIF.
*endif.
*Clearing local variables
clear: lv_process_type,
lw_cust_h_com,
lw_input_field_names.
*Free internal tables
free: lt_doc_flow,
lt_input_field_names.Hi Faisal
I think your not clear with what i am saying anyhow i will again explain you my requirement
As per my requirement
1)in the service order search report i need to add a field called "Has trail order with No Follow up" with values "Yes" & "Blank"
For above Field i added using the structure CRMST_QUERY_SRVO_BTIL and through configuration i am able to display the field in webui as per (Attachement Pic 1)
2)When i search with search criteria as "Has trail order with No Follow up" with "Yes"
Then in result list i need to show the service order those having follow up as trail orders(sales order) only.if for next document trail order having any follow up then those service orders dont want to show in result list.
For above requirement i implemented F.M using CRMV_EVENT & I configured for BUS2000115 And BEFORE_SAVE The Order
The FM Will get trigger when i save the service order and for that service order if create any follow up and try to save the trail order then This FM Will trigger and in this i am doing validations.
3)Add one AET Trail Flag field is added under CUSTOMER_H Table.
4)in the FM I am validating for if the trail order having the preceding document as service order then i need to make flag as "X" For that service order in customer_h
if suppose when i delete trail order from the service order then that flag must need to be "unset" from the CUSTOMER_H.
Why bcoz we are doing above process is do show records in result list based on Flag values
these flag checks are validating in the BADI Which we implemented for search logic.
Please refer below Login for my requirement:-
Proposal to have a custom “flag” field (background at table level,
crmd_customer_h) linked to service order which gets flagged whenever at
least one Trial order is created and saved from the Service Order.
The flag value should be cleared when all the trial orders created and
saved as follow up transactions are deleted from the system.
Similarly for Trial Orders will use the same custom “flag” field
which gets activated when at least one follow up is created and saved from Trial Order.
The flag value should be cleared when all the follow up transactions from
the Trial Order are deleted from the system.
When the above search criteria “Has Trial order with no follow up”
“is” “Yes” is applied then the logic derives all the service
orders which satisfy additional search criteria applied in the search and
for these Service orders checks if the custom flag field is checked to
derive all Service orders which have Trial order. The custom flag values
values are derived from crmd_customer_h table in CRM.
4 )Further for all the Trial Orders determined in Step 3
check if the Trial Order has a follow up by checking if the custom flag field
is checked. The custom flag values are derived from crmd_customer_h table in
CRM.
5) If step 4 is not met populate the preceding Service
Orders in the Result list -
How to create a funtion module as i need.
How to create a funtion module, that which should retrive mutiple data with out using data structure.
i.e..using internal table i need to get only some data.
Example:
1) Using MARC table, i need to get fields only with data (werks, matnr, mmsta, pstat).
i.e importing : werks.
exporting: werks,
matnr,
mmsta,
pstat.
2) Also i need coding to get data by without using internal table with the only fields i want.Hi,
You can only create function modules and function groups using the Function Builder in the ABAP Workbench. For further information, refer to Creating New Function Modules. This section uses an example to illustrate how a function module is created from the point of view of ABAP programming.
<u><b>Function Groups and Function Modules:</b></u>
Firstly, we create a new function group DEMO_SPFLI to hold the function module. Then, we can create the new function module.
<u><b>Parameter Interface:</b></u>
You can specify the types of interface parameters in function modules in the
same way as the parameter interfaces of subroutines. Since function
modules can be used anywhere in the system, their interfaces can only contain
references to data types that are declared systemwide. These are the elementary
ABAP data types, the systemwide generic types, such as ANY TABLE, and types
defined in the ABAP Dictionary. You cannot use LIKE to refer to data types
declared in the main program.
<u><b>Exceptions:</b></u>
Our function module needs an exception that it can trigger if there are no entries
in table SPFLI that meet the selection criterion. The exception NOT_FOUND
serves this function.
<u><b>Source Code:</b></u>
Having defined the parameter interface and exceptions, we can now write the
source code of our function module. To do this, choose Source code in the
Function Builder. This opens the ABAP Editor for the include program
L<fgrp>U<xx> (see Function Groups). This is the include that will
hold the program code for the function module;
<i><u><b>Data in Function Modules</b></u></i>
You can use the TYPES and DATA statements to create local data types and
objects. The interface parameters also behave like local data objects. In
addition, you can access all of the global data of the main program. This data is
defined in the include program L<fgrp>TOP. To open this include, choose Goto
Global data. The global data behaves like the instance attributes of a class.
The first time you call a function module in a particular function group, the data is
loaded into memory. It can then be accessed and changed by all of the function
modules in the group. The system retains the values until the next time a function
module is called.
<u><b>Calling Subroutines</b></u>
You use subroutines for local modularization. Function modules can
also use this technique. The function module that they call are defined in the
corresponding main program.
If you only want to call a subroutine from a single function module, it is best to
define them in the same include program as the function module itself, directly
after the ENDFUNCTION statement. These subroutines can be called from all
function modules in the function group, but for clarity, they should only be called
from the function module that precedes them.
If you want to define a subroutine that will be called from several different function
modules, you can define a special include program for it with the name
L<fgrp>F<xx>.
<b><u><i>Raising Exceptions</i></u></b>
There are two ABAP statements for raising exceptions. They can only be used in
function modules:
RAISE <except>.
and
MESSAGE..... RAISING <except>.
The effect of these statements depends on whether the calling program handles
the exception or not. If the name <except> of the exception or OTHERS occurs
in the EXCEPTIONS addition of the CALL FUNCTION statement, the exception is
handled by the calling program.
If the calling program does not handle the exception
The RAISE statement terminates the program and switches to debugging mode.
The MESSAGE ..... RAISING statement display the specified message. How the
processing continues depends on the message type.
If the calling program handles the exception, both statements return control to the
program. No values are transferred. The MESSAGE ..... RAISING statement
does not display a message. Instead, it fills the system fields SY-MSGID, SYMSGTY,
SY-MSGNO, and SY-MSGV1 to SY-MSGV4.
Source Code of READ_SPFLI_INTO_TABLE
The entire source code of READ_SPFLI_INTO_TABLE looks like this:
FUNCTION READ_SPFLI_INTO_TABLE.
""Local interface:
*" IMPORTING
*" VALUE(ID) LIKE SPFLI-CARRID DEFAULT 'LH '
*" EXPORTING
*" VALUE(ITAB) TYPE SPFLI_TAB
*" EXCEPTIONS
*" NOT_FOUND
SELECT * FROM SPFLI INTO TABLE ITAB WHERE CARRID = ID.
IF SY-SUBRC NE 0.
MESSAGE E007(AT) RAISING NOT_FOUND.
ENDIF.
ENDFUNCTION.
The function module reads all of the data from the database table SPFLI where
the key field CARRID is equal to the import parameter ID and places the entries
that it finds into the internal table SPFLI_TAB. If it cannot find any entries, the
exception NOT_FOUND is triggered using MESSAGE...RAISING. Otherwise, the
table is passed to the caller as an exporting parameter.
Regards,
Bhaskar -
How to get the "last changed by" for a set of function modules?
How to get the "last changed by" for a set of function modules?
is there any table to get it??See [this|Re: Date of creation of function module] I posted earlier.
>TFDIR will give you the name of the function group program and the include number.
>E.g. SAPLZFUNCGROUP Include 01.
>From this you can construct the include name: LZFUNCGROUPU01.
>You can look this up in TRDIR to find the creation date (CDAT) of the function module.
In your case, you need unam and udat.
matt -
How to get sysnr value in a Function Module
Hi all,
I need to get the sysnr(system number) value of the R/3 system. I execute a RFC function module and need to get the value of sysnr of the system it executes in as a return parameter. Can somebody tell me how to get this value in the function module and return it.
Thanks and Regards,
PratikHello Pratik
The system number has to be defined in the RFC destination. Thus, select on your local system (where you call the RFC function module) the corresponding RFC destination from table <b>RFCDES</b>. In field RFCDES-RFCOPTIONS you will find a string like this:
H=<ip address>,S=21,R=N, ...
S=system number
Regards
Uwe
Maybe you are looking for
-
Report is showing "null" string for null values.
hi , I am new to BI Publisher and creating a report in BI Publisher. In the result set for null values, report is printing as "null". I checked the query , it gives blank (empty value) data for null values. But in report it is coming as "null" value
-
Custom LoginActions PEI - error
I have custom loginActions PEI - OnAfterLogin function which needs to set the cookie in user browser. same way OnBeforeLogout function needs to delete the cookie. The code as follows to set the cookie: (I am getting error in this line "m_WebData.AddC
-
How to dislpay image in frame???
I tried displaying image in a lable But it shows only a part of the image. Is there any function to resize a jpg file and display?
-
Print designer looking for a good crash course on Flash. Any good basic books people would recommend?
-
HT4757 is canon SX 50 digital camera compatible with iphoto
Is the Canon SX50 compatible with iPhoto?