‎2013 Nov 27 11:40 AM
I Am using a a FM:F4IF_INT_TABLE_VALUE_REQUEST, I want a report program when i press F4 On output screen i want a screen again with some fiels in it and also how can i keep a madatory field in the screeen displayed when i pressed CTRL+F4,
Can any one please help me on these issue.
‎2013 Nov 27 11:47 AM
Hi Rakesh,
I do not completely understand your question.
But if your question is to display Number of fields like a report in f4 help, take all those required fileds in internal table which you are passing to function module.
Regards,
Bhushan
‎2013 Nov 27 11:49 AM
‎2013 Nov 27 12:55 PM
Hi
The half of the problem is resolved by using search help concept now the problem is keeping "default value" in the next screen how should i keep default value.
‎2013 Nov 27 1:09 PM
Dear Rakesh,
Please Refer Below Code it will Maintain Default value of Next Screen.
DATA RETVALUE TYPE DDSHRETVAL OCCURS 0 WITH HEADER LINE ..
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'MARKNO'
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = 'MARKERNO '
VALUE_ORG = 'S'
TABLES
VALUE_TAB = ITAB2
RETURN_TAB = RETVALUE
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2.
READ TABLE RETVALUE INDEX 1.
LAYSLIP = RETVALUE-FIELDVAL.
or
please refer below
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = 'MARKNO' " internal table Field Name
DYNPPROG = SY-REPID
DYNPNR = SY-DYNNR
DYNPROFIELD = 'LAYSLIP' " Next Screen Name
VALUE_ORG = 'S'
TABLES
VALUE_TAB = ITAB2
RETURN_TAB = RETVALUE
EXCEPTIONS
PARAMETER_ERROR = 1
NO_VALUES_FOUND = 2.
Field Layslip will Hold the Value to Next Screen where u selected in F4 Help Option.
Regards,
Thangam.P
‎2013 Nov 27 4:08 PM
When i press f4 on p_para then i should get search term as default value as 'ft0-gb' but i should not use standard table or search help.
‎2013 Nov 28 5:43 AM
‎2013 Nov 28 6:14 AM
Hi ,
You can use the FM "F4UT_PARAMETER_VALUE_GET" to get the value of region selected by user in your search help exit.
or you have to use SET/GET PARAMETER ID concept.
Please go through the below link suggested by raymond, you will get your answer perfectly.
http://scn.sap.com/thread/1601608
https://scn.sap.com/thread/1866008
Thanks
Vijay Vikram
‎2013 Nov 29 10:42 AM
Now i developed these screen using the table BUT000, Now when i pressed CTRL+F4 i am geeting another screen like these
Now the problem is i am not getting the default value in the search term, The problem is i want the screen should display like these
I want Default Value in the SearchTerm as FTB-G00, how could i get that value.
Note : We should not create custom table.
‎2013 Nov 29 2:26 PM
Hi Rakesh,
There is no parameter id is attached to the screen field Search term. So if you want to attached the Parameter ID you need the access key.
So another option:-
Create one custom Parameter ID. Now your task is assigned this Custom created parameter id to the
Field shown in the Search term at dynamic time.
This search exit is used BUPAA.
Now put the breakpoint in the Exit. BUP_SHLP_EXIT_SEVERALS.
when CALLCONTROL-STEP.
in the Table SHLP_TAB first index data is the BUPAA search help. " you should do the enhancement.
and in the Search help there is a column FieldDescr at First index.
And SHLP_TAB[1]-FIELDDESCR
Read the Deep structure SHLP_TAB[1]-FIELDDESCR with field name PRECFIELD = 'BU_SORT1'
shlp_tab-fielddescr-memory_id = 'Custom create parameter ID'.
Modify the deep structure fielddescr .
And in the Program.
in the initialization event set the custom Parameter id value.
Set parameter id 'ztest' value ''MMMM' .
after successfully completed automatic default value is coming.
I know its very long process but it will help you. If any query Let me know.
Regards
Nishant Bansal.
‎2013 Nov 29 12:32 PM
Hi Rakesh ,
For setting the default value first you find the parameter id for particular field by using f1 help in technical information u get parameter id Then go to su2 in parameter tab give that parameter id and give the default value in parameter value field.
hope it helps to u