FM to retrieve help data of a screen field? How to fill structure PHELP?
Hi Experts,
Iam designing dynamic search helps. With connection to this
i have to get the preliminary data about the screen field. i.e the technical details
of F1 help of a particular field. Is there any function module which take input as
screen field name and fetch me its details like domain, database table etc?
How does the structure PHELP be loaded at run time?
Thanks,
Satish.
hi
you can try 'DYNP_READ' or 'DYNP_VALUES'
To read the contents of a screen data- its fields, characters, values and positions.
Thanks.
Similar Messages
-
F4 Help for the selection screen field
Hi Gurus,
I have to display F4 help for a selection screen field. i am using following code:
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'CODE'
dynpprog = lw_repid
dynpnr = sy-dynnr
VALUE_ORG = 'S'
TABLES
value_tab = gi_text
field_tab = li_fields_tab
return_tab = pi_return_tab
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
My internal table gi_emp has two fields CODE & TEXT. When i select 1 particular value, it returns the CODE value in the pi_return_tab table.
But my requirement is i have to capture the corresponding TEXT value for the Returned CODE. Ex: following is the F4 help being displayed: -
001 test
001 test1
but is i select code 001(First Value), i also need to capture it's corresponding Text value. In return table pi_return_tab i have only Code value.
Please help me out.
Note: Based on return code i can't search into the internal table gi_code, because as shown in the example, code has multiple text.Sachin,
I think this is what you need. The following code will return the key and the text (OR any other columns), if both columns are in the selection screen the selected values (both columns) will also be passed to the corresponding parameters. If you only need the text to be in the return table and not passed to the selection screen then set the parameter for text with NO-DISPLAY option.
REPORT zktest01 .
DATA :
BEGIN OF value_tab OCCURS 0,
field LIKE e070-trkorr,
text LIKE e07t-as4text,
END OF value_tab.
DATA: t_fldtab LIKE dfies OCCURS 0 WITH HEADER LINE,
t_rettab LIKE ddshretval OCCURS 0 WITH HEADER LINE,
t_dynmap LIKE dselc OCCURS 0 WITH HEADER LINE.
PARAMETERS : p_field LIKE value_tab-field,
p_text LIKE value_tab-text. "NO-DISPLAY.
INITIALIZATION.
t_fldtab-tabname = 'VALUE_TAB'.
t_fldtab-fieldname = 'FIELD'.
t_fldtab-langu = 'E'.
t_fldtab-position = 1.
t_fldtab-offset = 0.
t_fldtab-fieldtext = 'Key'.
t_fldtab-reptext = 'Key'.
t_fldtab-leng = 20.
t_fldtab-intlen = 20.
t_fldtab-outputlen = 20.
t_fldtab-datatype = 'CHAR'.
t_fldtab-inttype = 'C'.
t_fldtab-headlen = 20.
t_fldtab-keyflag = 'X'.
t_fldtab-lowercase = ' '.
APPEND t_fldtab.
t_fldtab-tabname = 'VALUE_TAB'.
t_fldtab-fieldname = 'TEXT'.
t_fldtab-position = 2.
t_fldtab-offset = 20.
t_fldtab-fieldtext = 'Text'.
t_fldtab-reptext = 'Text'.
t_fldtab-leng = 60.
t_fldtab-intlen = 60.
t_fldtab-outputlen = 60.
t_fldtab-headlen = 60.
t_fldtab-keyflag = ' '.
t_fldtab-lowercase = ' '.
APPEND t_fldtab.
value_tab-field = '101'.
value_tab-text = 'dddd'.
APPEND value_tab.
value_tab-field = '202'.
value_tab-text = 'aaaa'.
APPEND value_tab.
t_dynmap-fldname = 'FIELD'.
t_dynmap-dyfldname = 'P_FIELD'.
APPEND t_dynmap.
t_dynmap-fldname = 'TEXT'.
t_dynmap-dyfldname = 'P_TEXT'.
APPEND t_dynmap.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_field.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'FIELD'
dynpprog = 'ZKTEST01'
dynpnr = '1000'
dynprofield = 'P_FIELD'
value_org = 'S'
TABLES
field_tab = t_fldtab
value_tab = value_tab
return_tab = t_rettab
dynpfld_mapping = t_dynmap
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc EQ 0.
ENDIF.
START-OF-SELECTION.
Jeffrey Satriadi -
How to link a search help to a selection screen field
Hi All,
I am using field PKWRG from PA0017 table in selection screen. I need F4 help there as in Tcode PA30 . But this field does not have value table or check table. However, it has a search help attached 'TRV_PKWRG' .
But, I donot know how to assign a search help to a selection screen field. Please help.
Regards,
NibhaHello,
Fetch all the data which from the table which you want to show in the search help and pass the value to the FM
F4IF_INT_TABLE_VALUE_REQUEST and the selection-screen event must be
at selection-screen on value request parameter or selection option variable.
BCALV_TEST_FULLSCREEN
BCALV_TEST_FULLSCREEN_CALLS
BCALV_TEST_FULLSCREEN_PRINT
BCALV_TEST_FULLSCREEN_STATUS
BCALV_TEST_GRID
BCALV_TEST_GRID_DRAG_DROP
BCALV_TEST_GRID_EDITABLE
BCALV_TEST_GRID_EVENTS
BCALV_TEST_GRID_INDEX
BCALV_TEST_GRID_TOOLBAR
BCALV_TEST_HIERSEQ_LIST
BCALV_TEST_LIST
BCALV_TEST_LIST_PRINT
BCALV_TEST_LIST_STATUS
BCALV_VERIFY_DTYPES_D0100_F01
BCSMENUF01
BDLCOF10
BDLDVI10
BDLTREDF -
Can we create serach help for a selection screen field
Can we create serach help for a selection screen field with out creating searchhelp object.
I mean is it possible to create serchelp in the program itself with some specific values i want to give.
E.g say we can define any internal table and fill it with values and using that into selection screen fields
Regards
MaveAT SELECTION-SCREEN ON VALUE-REQUEST FOR paymeth.
PERFORM PAYMENT_HELP.
FORM PAYMENT_HELP.
DATA: begin of DESCR_TAB occurs 0,
DESCR LIKE BKPF-BKTXT,
END OF DESCR_TAB.
DATA: gd_repid like sy-repid.
gd_repid = sy-repid.
DESCR_TAB-DESCR = 'aaaaa'.
append DESCR_TAB.
DESCR_TAB-DESCR = 'bbbbb'.
append DESCR_TAB.
DESCR_TAB-DESCR = 'ccccc'.
append DESCR_TAB.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'DESCR'
DYNPPROG = gd_repid
DYNPNR = '1000'
DYNPROFIELD = 'paymeth'
VALUE_ORG = 'S'
DISPLAY = ' '
TABLES
value_tab = DESCR_TAB.
endform.
Svetlin -
Enhancements:Search help addition to standard screen-field
Hi Guys,
I am trying to add search help to the standard screen field inco2 in transaction va02. for this I am trying to add inplicit enhancement point in include MV45AFZZ.
I right click over the yellow line and create enhancement implementation in local object. the moment I choose my enhancemetn implementation and press enter, it gives me dump, Please nebody tell me where am I going worng, or Is my approach correct.....Please suggest.......
thanks in advanceHi Anil,
Can you please tell me how to approach for adding search help to standard screen field INCO2 in transaction VA02. -
How to retrieve the data stored in BLOB field in MySql using java?
Hi all!
i stored a file content into the MySql database in BLOB field.
and i now want retrieve the data......
Please help me out in doing the task...........
Thanx...........Thrisha..
When u get a result set u can have rs.getBlob() function that will give u a BLOB object that can be captured using Blob interface of javax.sql package...
Blob interface has getBinaryStream, getBytes etc as functions...
i think i cleared u
regards
Shanu -
How to assign F1 help to the selection screen fields
Hi All,
I have a requirement.I have to create a button named "HELP" at the side of Execute button in the selection screen.If I place my cursor in the selection screen field and I press that "HELP" button, I should get the Documentation help for that field.
Please suggest me on this.
Thanks in advance.
Sreeharsha SinguruHi sreeharsha,
here a short example:
TABLES: MARA.
TABLES: SSCRFIELDS.
TYPE-POOLS: ICON.
DATA: CURSORFIELD(20).
SELECTION-SCREEN: BEGIN OF LINE.
SELECT-OPTIONS: S_MATNR FOR MARA-MATNR.
SELECTION-SCREEN: END OF LINE.
SELECTION-SCREEN: BEGIN OF LINE.
SELECT-OPTIONS: S_MTART FOR MARA-MTART.
SELECTION-SCREEN: END OF LINE.
SELECTION-SCREEN: SKIP 3.
SELECTION-SCREEN: BEGIN OF LINE.
SELECTION-SCREEN: PUSHBUTTON (10) PB01 USER-COMMAND HELP.
SELECTION-SCREEN: END OF LINE.
AT SELECTION-SCREEN.
GET CURSOR FIELD CURSORFIELD.
CASE SSCRFIELDS.
WHEN 'HELP'.
CASE CURSORFIELD.
WHEN 'S_MATNR-LOW'.
CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT' "Make your own Text
EXPORTING
TITEL = 'Information'
TEXTLINE1 = 'Information for field:'
TEXTLINE2 = 'S_MATNR-LOW'
START_COLUMN = 10
START_ROW = 15.
WHEN 'S_MTART-LOW'.
CALL FUNCTION 'POPUP_TO_DISPLAY_TEXT' "Make your own Text
EXPORTING
TITEL = 'Information'
TEXTLINE1 = 'Information for field:'
TEXTLINE2 = 'S_MTART-LOW'
START_COLUMN = 10
START_ROW = 15.
ENDCASE.
ENDCASE.
INITIALIZATION.
CONCATENATE ICON_INFORMATION 'Help' INTO PB01.
START-OF-SELECTION.
SELECT * FROM MARA WHERE MATNR IN S_MATNR.
WRITE: / MARA-MATNR.
ENDSELECT.
Hope it helps.
Regards, Dieter -
F4 help for the selection screen field designed in screen painter
Hi all,
I have designed selection screen in the screen painter. in that for one of the fields i have to give f4 help. for that i have writter the code in PAI event. in this event i have used the standard Function module for f4 help. but no f4 help is comming for that field. can any body suggest what i have to do.
Thanks & Regards,
Giri.Hi,
You must use the correct event to meet ur requirement use POV event instead of PAI event.
for more clarification and example program see below the demo program
DEMO_DYNPRO_F4_HELP_DYNPRO
DEMO_DYNPRO_F4_HELP_MODULE
Cheers
fareed -
Adding search help (F4) for a screen field in standard screen of VA02
Dear Gurus,
I need to add a Search Help (F4) to a Standard Screen Field VBAK-VSNMR_V in the standard Screen of VA01/Va02.....Can anyone please guide me how it can be done.
Regards
Sajid
Edited by: shaik sajid on Feb 2, 2009 8:38 AMHi shaik,
Refer to the following useful link:
Search help enhancement in VA01
Hope this will help you... -
Suppose we have 4 fields , data type u0093 DATS u0094 for those fields how do you
Hi Experts,
How we decide particular field map to particular info object. Suppose we have 4 fields , data type DATS for those fields how do you decide the InfoObject 0calday
have to map.
thanks®ards
pradeepHi Pradeep,
It merely depends upon ur requirement.
If u r having 4 dats fields and is it up to ur requirement to map one of that obj to the 0calday. -
Use search help to populate two screen fields
I've done a search on this and see that plenty of people ask this question but none get answers, hopefully you'll be able to help me out.
I have a selection screen with two fields:
data: s_house LIKE t012k-hbkid,
s_account LIKE t012k-bankn.
I've created my own search help Z99FI_BANKN and attached it to field s_account. The search help has two fields:
BANKN - IMP, EXP
HBKID - IMP, EXP
If I click on F4 in field s_account and select an account, it populates s_account but not s_house. Can someone tell me where I'm going wrong? I'd like the one search help, when I select an account on field s_account to populate s_house too.
Thanks,
GillGill,
Try the following.
First of all in your top include define your structure:
TABLES: Z99FI_T012K.
Second, open your structure, select BANKN, select the tab Entry help/check
and press the button Search Help. There you must match the fields from your structure with your search help parameters.
In my case it was:
ZLOAD_DESCR ZZLOAD ZLOAD_DESCR
ZLOAD_ID ZZLOAD ZLOAD_ID
Also make sure that in your search help the field you are selecting on is checked as import and export and the field where the data must come along is checked as Export.
Now open up the graphical screen painter, and put on your screen
the fields from your structure. You can do this by opening the window Dictionnary / Program Fields window -> give in the name of your structure and press "Get from dictionary".
Place your fields on your screen, activate it and try again.
Thanks for your feedback on this.
Reward points if helpfull.
Best regards,
Tom. -
Input help for a selection screen field
I have a selection screen with field species and checkoff activity .
For a given species('sc','sb' or 'ss') , the input values allowed for the
check off activity must be 'SCCK' for species 'SC' ,'SBCK' for species 'SB' and so on.
I need to provide input help for check off activity based on the value of the species.How do i do that?PARAMETER : p_val(10) TYPE c ,
p_val2(10) TYPE c.
AT SELECTION-SCREEN on p_val.
IF p_val = 'SC'.
p_val2 = 'SCCK'.
ENDIF. -
Attach search help to a selection screen field
Hi All,
I have a parameter p_kschl like nast-kschl in my selection screen.
My requirement is whenever sales org equals to '3' i need to set p_kschl
default ZE02 and make a picklist available with ZE02 and ZE04 available with the descriptions
How to make that picklist having ZE02 and ZE04 with descriptions.Yes, then you will use a FM like [F4IF_INT_TABLE_VALUE_REQUEST|https://forums.sdn.sap.com/search.jspa?objID=c42&q=F4IF_INT_TABLE_VALUE_REQUEST]
But as this event is in the POV, data may have been changed to screen and not yet in the program, so you will need to use FM [DYNP_VALUES_READ|https://forums.sdn.sap.com/search.jspa?threadID=&q=DYNP_VALUES_READ&objID=c42&dateRange=last90days&numResults=15&rankBy=10001] to get current value of some fields on the screen (sales org.). (and [DYNP_VALUES_UPDATE|https://forums.sdn.sap.com/search.jspa?threadID=&q=DYNP_VALUES_UPDATE&objID=c42&dateRange=last90days&numResults=15&rankBy=10001] if you want to change the current value of another field on screen)
Regards,
Raymond -
Sending/reiving data remains on screen. How to get pass this?
Password protected PDF (e-book) does not open anymore with Adobe Reader. "Sending/Receiving data" remains at bottom of screen. What to do?
Put it in Recovery Mode. If your computer won't recognize your iPod, try another one. How did you wiped the iPod? With iTunes or directly with the settings app?
-
F1 help for SRM portal Screen fields
HI Friends,
Is there any way find the use of particular fields which displayed in SRM Portal(Like we do in ECC by pressing F1)
Pls suggest some way to understand the purpose of all fields getting displayed in SRM portal..(like usae all fileds available in Shopping cart,PO,GC,Contract,SOC etc)
Thanks,
SanHi Sankar
No F1 help option like that available ..you may need to go back to the BADI and depending on which structure it is which you can see in DOC_CHANGE Badi you will see the description ..of those fields
which can help you to udnerstand a bit more on what the field is about ..
Since the fields are generally self explanatory and intuitive SAP has probably not provided an option of F1` help like that in MM .
Regards
Vinita
Maybe you are looking for
-
WebServer 6.1 SP3 SSL reverse proxy to Sun One Application Server 7
I have an application in the appserver7 that requires SSL authentication. I have already installed a self cert in the appserver7, and the authentication works fine when I browse directly to the appserver. The appserver7 has both listener for port 80
-
i lose my iphone but i turn off icloud >> how i can use ( find my phone ) or another way or another sofware to find my iphone please help me
-
Hi Experts , We have Oracle View . There is no primary key is defined in this view. I need to join this view with some table in OBIEE physical layer. 1. I have created one opaque view with query SELECT 'YES' PRESERVE FROM DUAL (Dummy table) and make
-
Hi, The links about Oracle9i Database Online Courses Training at OTN seems to be broken, any ideas? Thanks in advance. The URL with courses is the following: http://www.oracle.com/technology/idevelop/online/courses/oln/getting_started.html sve
-
Could not read definitions; no read definitions permission for table
We have a hand punch (time clock) that is maintained in Access. This is a 3rd party product, I believe I'm having a permissions problem but the vendor says we should be able to read the data as a guest account. I select the database push the >> arr