Hi Experts,
My req. is on one screen i will have order document number and outbounddelivery(vbelv), and 2 radio buttons.
when order document is entered and radio button is selected Vbelv should get the values in drop down.
so i wrote the following code in SE38 and flow logic.
But I am getting error as vbfa-vbelv is not an Input/output field
so please help me in doing it
in SE38
&----
*& Report Zorder_delivery *
&----
REPORT Zorder_delivery.
&----
*& Global Declarations *
&----
Screen Interfaces
TABLES vbfa.
Global data
TYPES: BEGIN OF it_tab,
vbelv type vbfa-vbelv,
end of it_tab.
data : ORDER_DOCUMENT type C.
data:i_tab type standard table of it_tab.
DATA ok_code TYPE sy-ucomm.
&----
*& Processing Blocks called by the Runtime Environment *
&----
Event Block START-OF-SELECTION
START-OF-SELECTION.
CALL SCREEN 100.
Dialog Module PBO
MODULE status_0100 OUTPUT.
SET PF-STATUS 'SCREEN_100'.
ENDMODULE.
Dialog Modules PAI
MODULE cancel INPUT.
LEAVE PROGRAM.
ENDMODULE.
*
MODULE user_command_0100 INPUT.
CASE ok_code.
WHEN 'SELECTED'.
write:/vbfa-vbelv.
ENDCASE.
ENDMODULE.
Dialog Module POV
MODULE create_dropdown_box INPUT.
case sy-ucomm.
when 'RB1X'.
select vbelv
from vbfa
into table i_tab
where vbelv = ORDER_DOCUMENT.
Endcase.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'vbelv'
value_org = 'S'
TABLES
value_tab = it_tab
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
...
ENDIF.
ENDMODULE.
In Flow Logic
PROCESS BEFORE OUTPUT.
MODULE status_0100.
PROCESS AFTER INPUT.
MODULE cancel AT EXIT-COMMAND.
MODULE user_command_0100.
PROCESS ON VALUE-REQUEST.
FIELD vbfa-vbelv MODULE create_dropdown_box INPUT.