‎2008 Jul 28 8:36 AM
I need to restrict the values int eh search help where the value of a particular field is zero. For this is need to write code in search help exit.but the values are coming as a string where i'm trying to split it at that particular offset but it is not considering in a right way. kindly help me
‎2008 Jul 28 10:07 AM
if u r using that search help in program then u can create ur own search help for that program
by putting the condition delete the initial values.
at-selection screen on value request.
perform search help.
cal a function module
i think ur problem will be solved.
‎2008 Jul 28 11:44 AM
Try creating your own search help pop up.
In at-selection screen on value request for <field_name>.
Create your own itab and pass it to the function module "F4IF_INT_TABLE_VALUE_REQUEST".
I think this will solve your issue.
Regards
Samson.
‎2008 Jul 28 12:26 PM
Hi,
Use the FM ' F4IF_INT_TABLE_VALUE_REQUEST'.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
RETFIELD = PC_RETFIELD
DYNPPROG = SY-CPROG
DYNPNR = SY-DYNNR
DYNPROFIELD = PC_DYNPROFIELD
VALUE_ORG = 'S'
TABLES
VALUE_TAB = PC_T_HELP
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..populate PC_T_HELP internal table according to ur need and pass it.
ur problem will be solved
Thanks,
Khushbu.
‎2008 Jul 28 12:38 PM
‎2008 Jul 28 1:38 PM
Hi,
at-selection screen on value request for <field_name>.
Create your own itab and pass it to the function call function "F4IF_INT_TABLE_VALUE_REQUEST".
for deleting the 0, u use
call function "conversion_exit_alpha_output"
or
left deleting leading '0'.
plz try this way.
Thanking you.
Subash