Select-options: s_status for crm_jest-stat no intervals.
At selection-screen on value-request for s_status-low.
Perform serach_status.
Form serach_status.
DaTa return_tab like ddshretval occurs 0 with header line.
DaTa: Begin of lt_status occurs 0,
Estat like tj30t-estat,
Txt30 like a tj30t-txt30,
End of lt_status.
Select estat txt30
Into corresponding fields of table lt_status
From tj30t
Where stsma = 'ztsdc '. "Name of the ztsdc document
Call function 'f4if _ int_table_value_request'
Exporting
Retfield = 'estat' "inner field
Dynpprog = sy-repid
Dynpnr = sy-dynnr
Dynprofield ='s _ Status-low' "screen Field
Value_org = 'S'
Callback_program = sy-repid
Tables
Value_tab = lt_status
Return_tab = return_tab
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.
Endif.
Endform. "serach_status