Function Module for F4 Help
HI Experts
What is the function module for F4 help download.
Thanks in advance
Hi,
try these fn modules,
F4IF_INT_TABLE_VALUE_REQUEST
its a F4 help that returns the values selected in an internal table.
F4_IF_FIELD_VALUE_REQUEST
It uses values from a DDIC table to provide a list of possible values
Similar Messages
-
Function module for F4 help download
HI Experts
What is the function module for F4 help download.
Thanks in advanceHi,
Function module is F4IF_FIELD_VALUE_REQUEST.
Use the Function moduel like this in this i create screen 100 by using se51.
REPORT zcl_f4_help.
TYPES: BEGIN OF values,
carrid TYPE spfli-carrid,
connid TYPE spfli-connid,
END OF values.
DATA: carrier(3) TYPE c,
connection(4) TYPE c.
DATA: progname TYPE sy-repid,
dynnum TYPE sy-dynnr,
dynpro_values TYPE TABLE OF dynpread,
field_value LIKE LINE OF dynpro_values,
values_tab TYPE TABLE OF values.
CALL SCREEN 100.
MODULE init OUTPUT.
progname = sy-repid.
dynnum = sy-dynnr.
CLEAR: field_value, dynpro_values.
field_value-fieldname = 'CARRIER'.
APPEND field_value TO dynpro_values.
ENDMODULE.
MODULE cancel INPUT.
LEAVE PROGRAM.
ENDMODULE.
MODULE value_carrier INPUT.
CALL FUNCTION 'F4IF_FIELD_VALUE_REQUEST'
EXPORTING
tabname = 'DEMOF4HELP'
fieldname = 'CARRIER1'
dynpprog = progname
dynpnr = dynnum
dynprofield = 'CARRIER'.
ENDMODULE.
MODULE value_connection INPUT.
CALL FUNCTION 'DYNP_VALUES_READ'
EXPORTING
dyname = progname
dynumb = dynnum
translate_to_upper = 'X'
TABLES
dynpfields = dynpro_values.
READ TABLE dynpro_values INDEX 1 INTO field_value.
SELECT carrid connid
FROM spfli
INTO CORRESPONDING FIELDS OF TABLE values_tab
WHERE carrid = field_value-fieldvalue.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'CONNID'
dynpprog = progname
dynpnr = dynnum
dynprofield = 'CONNECTION'
value_org = 'S'
TABLES
value_tab = values_tab.
ENDMODULE.
you use this exaple code.
Plz Reward if Help,
Mahi. -
Function Module for search help Exit
How to create a function Module for search help exits?
please explain in details with step by step process.Hi,
How to create a function Module for search help exits?
function module for search help F4IF_SHLP_EXIT_EXAMPLE
dynamic search help use 'F4IF_INT_TABLE_VALUE_REQUEST'
please check out the link below it will help you
A repository object maintained in the ABAP Dictionary. It supplies input fields on Dynpros with single- or multi-column input helps. Search helps can be linked in the Dictionary with components from structures, data elements, and check tables. A search help enables you to search for entry values with assigned data, without you having to know the exact spelling of the value.
http://help.sap.com/saphelp_46c/helpdata/EN/cf/21ee52446011d189700000e8322d00/content.htm
please explain in details with step by step process.
create a search help exit:
1. create an fm with this interface:
*" TABLES
*" SHLP_TAB TYPE SHLP_DESCR_TAB_T
*" RECORD_TAB STRUCTURE SEAHLPRES
*" CHANGING
*" VALUE(SHLP) TYPE SHLP_DESCR_T
*" VALUE(CALLCONTROL) LIKE DDSHF4CTRL STRUCTURE DDSHF4CTRL
put this logic in it:
Delete duplicate filter logic.
This logic only needs to apply at the 'DISP' event - which is just
before the hit list is displayed
if callcontrol-step = 'DISP'.
delete adjacent duplicates from record_tab.
endif.
2. edit your search help in se11 and enter the name of the above search help exit fm
check this sample code..for dynamic search help
REPORT ZTEST_F4HELP .
*---Report with selection screen and to display the list of
possible entries for field 'B' as per the value in field 'A'.
parameters: p_vbeln type vbak-vbeln,
p_posnr type vbap-posnr.
at selection-screen on value-request for p_posnr.
data: begin of help_item occurs 0,
posnr type vbap-posnr,
matnr type vbap-matnr,
arktx type vbap-arktx,
end of help_item.
data: dynfields type table of dynpread with header line.
dynfields-fieldname = 'P_VBELN'.
append dynfields.
call function 'DYNP_VALUES_READ'
exporting
dyname = sy-cprog
dynumb = sy-dynnr
translate_to_upper = 'X'
tables
dynpfields = dynfields
exceptions
invalid_abapworkarea = 1
invalid_dynprofield = 2
invalid_dynproname = 3
invalid_dynpronummer = 4
invalid_request = 5
no_fielddescription = 6
invalid_parameter = 7
undefind_error = 8
double_conversion = 9
stepl_not_found = 10
others = 11.
read table dynfields with key fieldname = 'P_VBELN'.
p_vbeln = dynfields-fieldvalue.
call function 'CONVERSION_EXIT_ALPHA_INPUT'
exporting
input = p_vbeln
importing
output = p_vbeln.
select posnr matnr arktx into table help_item
from vbap
where vbeln = p_vbeln.
call function 'F4IF_INT_TABLE_VALUE_REQUEST'
exporting
retfield = 'POSNR'
dynprofield = 'P_POSNR'
dynpprog = sy-cprog
dynpnr = sy-dynnr
value_org = 'S'
tables
value_tab = help_item.
also check this link it will help you
/message/3854825#3854825 [original link is broken]
*********please reward points if the information is helpful to you************* -
Hi all!
I want to know the function module to create your own F1 help.
Please Help me OutU can use FMs 'DSYS_SHOW_FOR_F1HELP'/1. HELP_OBJECT_SHOW_FOR_FIELD /HELP_OBJECT_SHOW
Example:
REPORT ZGB_TEST_SEARCH_HELP .
INTERNAL TABLE FOR STORING NAMES IN SELECTION LIST
data: begin of t_itab occurs 0,
name(10) type c,
end of t_itab.
*FIELDNAME AND TAB NAME FOR THE SELECTION
DATA :field_tab LIKE dfies OCCURS 0 WITH HEADER LINE.
*THE TABLE FOR RETURNING THE NAME OF THE SELECTED ITEM
DATA : return_tab LIKE ddshretval OCCURS 0 WITH HEADER LINE.
*START THE SELECTION SCREEN BLOCK
selection-screen begin of block ss1 with frame.
parameters: p_name1(10) type c.
selection-screen end of block ss1.
*& F4 Help for p_name1 *
at selection-screen on value-request for p_name1.
*CLEAR ALL EXISTING DATA
*TO BE DONE EVERYTIME F4 HELP IS REQUESTED
REFRESH t_itab.
REFRESH field_tab.
field_tab-fieldname = 'ERNAM'.
field_tab-tabname = 'VBAK'.
APPEND field_tab.
t_itab-name = 'Andrews'.
append t_itab.
t_itab-name = 'Jennie'.
append t_itab.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
retfield = field_tab-fieldname
PVALKEY = ' '
DYNPPROG = ' '
DYNPNR = ' '
DYNPROFIELD = ' '
STEPL = 0
WINDOW_TITLE = 'Select name'
VALUE = ' '
VALUE_ORG = 'C'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
tables
value_tab = t_itab
FIELD_TAB = field_tab
RETURN_TAB = return_tab
DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 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.
else.
p_name1 = return_tab-fieldval.
ENDIF.
*& F1 Help for p_name1 *
at selection-screen on help-request for p_name1.
CALL FUNCTION 'DSYS_SHOW_FOR_F1HELP'
EXPORTING
APPLICATION = 'SO70'
dokclass = 'TX'
DOKLANGU = SY-LANGU
dokname = 'Z_GAURAB_DEMO'
DOKTITLE = 'This appears as bold title'
HOMETEXT = ' '
OUTLINE = ' '
VIEWNAME = 'STANDARD'
Z_ORIGINAL_OUTLINE = ' '
CALLED_FROM_SO70 = ' '
SHORT_TEXT = ' '
APPENDIX = ' '
IMPORTING
APPL =
PF03 =
PF15 =
PF12 =
EXCEPTIONS
CLASS_UNKNOWN = 1
OBJECT_NOT_FOUND = 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.
Regards,
Joy. -
Function module for F4 help in ranges.
The function module COMPLEX_SELECTIONS_DIALOG is used for providing the multiple selection popup screen for a particuler field.Now the problem is F4 help is not availble for each row in the multiselection pop up screen if the field refers to a custom table's field.But it is available if it refers to standard table.
Please suggest if there is nayway to do this or is there any other alternative function module.
Thanks!
Savitha.Hi
Have you assigned the CUSTOM table as a CHECK table against the fields of the row.
Or declare as a master data table fields to see the F4 help.
Or use the fun module F4IF_INT_TABLE_VALUE_REQUEST
see the sample code
See the following ex:
TYPES: BEGIN OF TY_MBLNR,
MBLNR LIKE MKPF-MBLNR,
END OF TY_MBLNR.
DATA: IT_MBLNR TYPE STANDARD TABLE OF TY_MBLNR WITH HEADER LINE.
data: it_ret like ddshretval occurs 0 with header line.
At selection-screen on value-request for s_mat-low.
Select MBLNR from mkpf into table it_mblnr.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
DDIC_STRUCTURE = ' '
RETFIELD = 'MBLNR'
PVALKEY = ' '
DYNPPROG = ' '
DYNPNR = ' '
DYNPROFIELD = ' '
STEPL = 0
WINDOW_TITLE =
VALUE = ' '
VALUE_ORG = 'S'
MULTIPLE_CHOICE = ' '
DISPLAY = ' '
CALLBACK_PROGRAM = ' '
CALLBACK_FORM = ' '
MARK_TAB =
IMPORTING
USER_RESET =
TABLES
VALUE_TAB = IT_MBLNR
FIELD_TAB =
RETURN_TAB = IT_RET
DYNPFLD_MAPPING =
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 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.
IF SY-SUBRC = 0.
read table it_ret index 1.
move it_ret-fieldval to S_mat-low.
ENDIF.
Go through the test program.
REPORT Ztest_HELP .
TABLES : MARA.
SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
PARAMETERS : P_MATNR(10) TYPE C.
SELECTION-SCREEN END OF BLOCK B1.
DATA : BEGIN OF ITAB OCCURS 0,
MATNR TYPE MATNR,
END OF ITAB.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_MATNR.
SELECT MATNR
FROM MARA
INTO TABLE ITAB
UP TO 10 ROWS.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'MATERIAL NUMBER'
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = 'P_MATNR'
VALUE_ORG = 'S'
TABLES
VALUE_TAB = ITAB
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2
OTHERS = 3.
Regards
Anji -
Function module for f4 help in presentaion server and application server.
hi guys,
I need to create a function module that will get the file or folder name by f4 help for the file in the presentation server or application server based on the location selected.
For this function module what are the minimum impot parametrs and export parameters required.
i have tried with 'f4_filename' for presentation server
and '/SAPDMC/LSM_F4_SERVER_FILE' for application server.
but i am not able to get this.
can any one help me in this regard ?
cheers,
kumar.hi use like this ..
if p_presvr = 'X'.
*-- if the file is to be downloaded to presentation server
call function '/SAPDMC/LSM_F4_FRONTEND_FILE'
changing
pathfile = p_file
exceptions
canceled_by_user = 1
system_error = 2
others = 3.
if sy-subrc <> 0.
if sy-batch = 'X'.
message id sy-msgid type 'S' number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 into v_msg.
write / v_msg.
clear v_msg.
stop.
else.
message id sy-msgid type 'S' number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
endif.
else.
*-- if the file is to be downloaded to application server
call function '/SAPDMC/LSM_F4_SERVER_FILE'
exporting
directory = '/'
filemask = '*'
importing
serverfile = p_file
exceptions
canceled_by_user = 1
others = 2.
if sy-subrc <> 0.
if sy-batch = 'X'.
message id sy-msgid type 'S' number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4 into v_msg.
write / v_msg.
clear v_msg.
stop.
else.
message id sy-msgid type 'S' number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.
endif.
endif. -
Function Module for F4 Help for stext ( table Hrp000 ) type field
Hello all,
I have defined one selection parameter as "Event_NAME FOR HRP1000-STEXT" .
But while running the program, system does not provide any drop down for Event_Name,just displaying it as a text field. I wanted a drop down that contains all entries of STEXT in Hrp1000.
For that I have written following code to make drop down available for event name in selection screen.The code is working fine.But the issue is that i can just select one value from the list on selection screen.I need multiple selections.How can i do that??
PARAMETERS : EV_NAME LIKE HRP1000-STEXT AS LISTBOX VISIBLE LENGTH 50.
PARAMETERS : EV_GRP LIKE HRP1000-STEXT AS LISTBOX VISIBLE LENGTH 50.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR EV_NAME.
SELECT STEXT FROM HRP1000 INTO TABLE F4_EV_NAME WHERE OTYPE = 'E'.
SORT F4_EV_NAME BY EV_NAME.
DELETE ADJACENT DUPLICATES FROM F4_EV_NAME.
LOOP AT F4_EV_NAME.
LWA_VRM2-KEY = F4_EV_NAME-EV_NAME.
APPEND LWA_VRM2 TO L_VRM_VALUES2.
ENDLOOP.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = 'EV_NAME'
VALUES = L_VRM_VALUES2
EXCEPTIONS
ID_ILLEGAL_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.
For Event Group*************
AT SELECTION-SCREEN ON VALUE-REQUEST FOR EV_GRP.
SELECT STEXT FROM HRP1000 INTO TABLE F4_EV_GRP WHERE OTYPE = 'L'.
SORT F4_EV_GRP BY EV_GRP.
DELETE ADJACENT DUPLICATES FROM F4_EV_GRP.
LOOP AT F4_EV_GRP.
LWA_VRM3-KEY = F4_EV_GRP-EV_GRP.
APPEND LWA_VRM3 TO L_VRM_VALUES3.
ENDLOOP.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = 'EV_GRP'
VALUES = L_VRM_VALUES3
EXCEPTIONS
ID_ILLEGAL_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.
Regards,
Aisha Ishrat
ICI Pakistan Ltd.i have done this as following code:it appears as a range selection parameter but no options available in 2 drop downs.
any replies??
SELECTION-SCREEN BEGIN OF BLOCK b2 WITH FRAME TITLE text-ft2.
SELECT-OPTIONS :EV_NAME FOR HRP1000-STEXT,
SELECTION-SCREEN END OF BLOCK b2.
AT SELECTION-SCREEN ON EV_NAME.
SELECT STEXT FROM HRP1000 INTO TABLE F4_EV_NAME WHERE OTYPE = 'E'.
SORT F4_EV_NAME BY EV_NAME.
DELETE ADJACENT DUPLICATES FROM F4_EV_NAME.
LOOP AT F4_EV_NAME.
LWA_VRM2-KEY = F4_EV_NAME-EV_NAME.
APPEND LWA_VRM2 TO L_VRM_VALUES2.
ENDLOOP.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = 'EV_NAME'
VALUES = L_VRM_VALUES2
EXCEPTIONS
ID_ILLEGAL_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. -
Function Module for open Purchase Order & Sales Order?
Hi, commonly I read the data from tables and calculate the open quantity for sales order and purchase order, but I want to know, are there any standard function modules for getting the list of open "purchase order" and "sales order" respectively?
Thanks and Regards.hi Ren,
u can check all these bapi's related to salesorder
BAPI_SALESORDER_CHANGE Sales order: Change Sales Order
BAPI_SALESORDER_CONFIRMDELVRY Sales Order: Confirmation of Delivery; Document Flow Update
BAPI_SALESORDER_CREATEFROMDAT1 Sales order: Create Sales Order
BAPI_SALESORDER_CREATEFROMDAT2 Sales order: Create Sales Order
BAPI_SALESORDER_CREATEFROMDATA Create Sales Order, No More Maintenance
BAPI_SALESORDER_GETLIST Sales order: List of all Orders for Customer
BAPI_SALESORDER_GETSTATUS Sales Order: Display Status
BAPI_SALESORDER_SIMULATE Sales Order: Simulate Sales Order
May be this FM can help you
MB_ADD_PURCHASE_ORDER_QUANTITY (Reading and adding open purchase order quantities)
Regards,
Naveen -
Function module for GL account open items at a key date
Is there a function module for "GL account open items at a key date" similar to following for customer and vendor accounts?
BAPI_AR_ACC_GETOPENITEMS Customer account open items at a key date
BAPI_AP_ACC_GETOPENITEMS Vendor account open items at a key date
If not, please suggest any alternatives. I am looking to capture the output of FBL3N (GL account line item display) in a program.
Thank you in advance.
Prasanna Pujarihi,
please go through the below link i think it will help u.
http://sapfunctional.com/FI/GL/Balance.
Regard
Abhishek Tripathi -
Function Module for Job reschedule
Hello Experts,
Is there a function module for job rescheduling as i need to create a automation program where i need to select all jobs from excel sheet and reschedule at different time.
Thanks and Regards,
Nikhil Kanegaonkar.You could use the following FM
- [BP_JOB_READ|http://www.sdn.sap.com/irj/scn/advancedsearch?query=bp_job_read] (read first from TBTCO to fill field JOBCOUNT)
- [BP_JOB_CREATE|http://www.sdn.sap.com/irj/scn/advancedsearch?query=bp_job_create] (change schedule parameters first)
- for recent versions [BP_JOB_COPY|http://www.sdn.sap.com/irj/scn/advancedsearch?query=bp_job_copy]
You should take a look at FM of the FG BTCH and SAP documentation like [Programming with the Background Processing System (BC-CCM-BTC)|http://help.sap.com/saphelp_nwpi71/helpdata/en/fa/096c53543b11d1898e0000e8322d00/frameset.htm]
Regards,
Raymond -
Function Module for creation of variant in BADI
I need to create a variant to store shipment no's which are coming in BADI. And variant need to be passed to a report which has to be run Background. can anyone help me out how to do it. Can anyone know the function module for this.
Hi Anirban,
Use the bapi BAPI_BUSPROCESSND_CREATEMULTI to achieve the same.
<b>Reward points if it helps.</b>
Regards,
Amit Mishra -
Function module for getting the all PO waiting for release
Hi,
Is there any standard Function module for gettting all the PO's which all waiting for release.
Regards
Bala.hi Bala,
ECC 6.0 Exits for VA01
go through the above link i think that will help u...
Regards,
sindhu. -
Function Module for getting address from address number
Hi all,
Is there any function module for getting address from address number. kindly reply.
regards,
siyaHI,
just try this function module:
CALL FUNCTION 'HR_GET_ADDRESS'
EXPORTING
ankey = ankey
anart = anart
molga = '01'
IMPORTING
address_detail = adr_data
EXCEPTIONS
not_found = 1
OTHERS = 2.
HOPE IT WILL HELP YOU
regards
rahul -
Is there any function module for getting distribution list name
Hi all,
Is there any function module for getting distribution list name when there is same description for two distribution list name.
or
help me how to fetch the correct distribution name when there is same description.
In order to send mails.
Tell me ASAP.
thanks
sagar.http://www.sapbrainsonline.com/REFERENCES/FunctionModules/SAP_function_modules_list.html
list of Fms -
BAPI or Function Module for getting Pending Purchase Orders Information
Dear Sir,
We have input information comprising of :
List of Item Codes
Plant
WBS Element
For this input data set , We want to know the list of Pending Purchase Orders information . To get the desired information , we are looking for the suitable BAPI / Function Module which can provide the desired information .
I understand that there is ME2L tcode availavle which can give the desired information .
But as we need to use the information in one of our Z program , so we need the BAPI / Function Module .
Kindly help us to know the suitable BAPI / Function Module available for getting the desired information .
With Thanks and Rgds
Sonia AgarwalHi
Check if this is helpfull:
BAPI_PO_GETDETAIL
BAPI_PO_GETDETAIL1
regards,
Maybe you are looking for
-
I have been using the Voice Transformer plug in to change the sounds of peoples voices in my project. I adjust the settings to the way I want them to give the people lower or deeper voices, but after it starts to play back Soundtrack makes it sound l
-
Query w/ Seagate External Hard Drive
Hi, I recently bought a 1TB Seagate hard drive which I believed to be "plug 'n play" but that is apparently only awarded to Windows users. The one I bought is... http://www.play.com/PC/PCs/4-/9752952/Seagate-Expansion-1TB-External-USB-2-0-Des ktop-Ha
-
Photos in trash can not be viewed. I have rebuilt the library but that did not help.
I need to retrieve a photo that went into Aperture trash, but no images appear in trash, though it says it has 13 versions filed there. I rebuilt the library as per trouble shooting instructions, but still no go. The rest of Apperture seems to be w
-
Convert Files to PDF (Support Batch Mode)
In order to save time on converting files to PDF, the function, batch conversion is developed by converter developers. Spire Free PDF Converter is one good choice to batch convert files (including Word, Excel, HTML, Text and All Image Formats) to PDF
-
HT1688 i have sims in it but it say no sims.
I have a iphone 3gs an it say no sims but its git a sim