Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Dialog Programming

Former Member
0 Likes
738

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.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
701

hi

Please chek your coding

The sample progoram for drop down is available in below link.Please check it .

6 REPLIES 6
Read only

Former Member
0 Likes
702

hi

Please chek your coding

The sample progoram for drop down is available in below link.Please check it .

Read only

0 Likes
701

Hi,

My field which shld get list down is vbelv.

if i sdyn-conn for screen connection then vbelv is not present in it.

please tell me what to use for screen connection in se 38

Read only

Former Member
0 Likes
701

Hi,

i assume u have a vbelv field in the screen/

So the vbelv name which u have in the screen should have the same name in ur program also.

ie., screen i/p name - > vbelv

then in ur program -> Data: vbelv type vbak-vbelv.

ie., the names should be same.

Regards

Sajid

Read only

Former Member
0 Likes
701

H

Edited by: shaik sajid on Jul 2, 2009 1:03 PM

Read only

0 Likes
701

But how do we establish the connection between the report an screen using VBELV FROM TABLE VBFA

Read only

0 Likes
701

hi

call screnn 100. will call the screen and in drop down u r getting the vbelv values the if u want to come back and display in some data in report menaus you have to use this command LEAVE TO LIST-PROCESSING.

are any other requirement?

Thanks