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
670

HI,

this is very urgent please solve my issue.

please give me some fundamental of list box.

like where i will code that key and that text.

i have only one input field in which i waana to show the content after drill down.

and then wanna to do some operation like adding new entry ,saving etc.

thanks in advance.

marks will b sure.

thanks and regards

vijay

6 REPLIES 6
Read only

former_member491305
Active Contributor
0 Likes
647

Hi,

You have to write in screen FLOW LOGIC on 'PROCESS ON VALUE-REQUEST"

event for the corresponding screen.

Syntax:

PROCESS ON VALUE-REQUEST

FIELD <FIELD-NAME> MODULE <MODULE NAME>.

Read only

0 Likes
647

HI VIGNESH,

what code i will give in se 38 program. is this process needs a seach help or it will work with out that properly

please sort out my probem, its really urgent.

thanks and regards

vijay dwivedi.

Read only

0 Likes
647

Hi ,

IF you want the search help for screen then u got to do in above event (POV).

If it is a selection screen then u got to do it in AT SELECTION-SCREEN ON VALUE-REQUEST FOR <FIELD-NAME> event.

Please find the following Eg.

Eg:

********For Screen

PROCESS ON VALUE-REQUEST.

FIELD x_zpinv-ztagn MODULE f4_ztagn.

MODULE f4_ztagn INPUT.

DATA:x_ret TYPE ddshretval,

it_ret LIKE TABLE OF x_ret.

DATA:BEGIN OF x_ztagn,

ztagn TYPE zpinv-ztagn,

END OF x_ztagn.

DATA:it_ztagn LIKE STANDARD TABLE OF x_ztagn.

CLEAR :x_ztagn, x_ret.

REFRESH:it_ztagn,it_ret.

SELECT ztagn FROM zpinv INTO TABLE it_ztagn

WHERE gjahr = w_cntdt+0(4)

AND bupem = w_cntdt+4(2)

AND werks = w_plant

AND lgort = w_sloc.

CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'

EXPORTING

retfield = 'ZTAGN'

dynpprog = sy-repid

dynpnr = sy-dynnr

dynprofield = 'X_ZPINV-ZTAGN'

value_org = 'S'

TABLES

value_tab = it_ztagn

return_tab = it_ret

EXCEPTIONS

parameter_error = 1

no_values_found = 2.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

ENDMODULE. " f4_ztagn INPUT

***For selection screen

AT SELECTION-SCREEN ON VALUE-REQUEST FOR X_ZPINV-ZTAGN.

Copy the same code here from module f4_ztagn.

Read only

0 Likes
647

Hi,

This is sample code for Search help.

try this:

AT SELECTION-SCREEN ON VALUE-REQUEST FOR field.
PERFORM search_help_field . 
form search_help_field.
CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
EXPORTING
retfield = 'field'
dynpprog = sy-repid
dynpnr = sy-dynnr
dynprofield = 'S_field'
value_org = 'S'
TABLES
value_tab = itab_field
return_tab = t_return
EXCEPTIONS
parameter_error = 1
no_values_found = 2
OTHERS = 3.
IF sy-subrc EQ 0.
READ TABLE itab_field INDEX 1. "transporting LGBKZ.
IF sy-subrc EQ 0.
MOVE itab_field-field TO s_field-low.
ENDIF.
ENDIF.
endform. 

Read only

former_member196299
Active Contributor
0 Likes
647

Hi Vijay ,

Why dont you use a search help there so that it will give you a list box ...

or else use the Function module VRM_GET_VALUES . In this FM pass the internal table with data and provide the screen-field name.

Code for the VRM_GET_VALUES in the PAI of the screen .and no need to do anything. I mean when u execute the screen and click on the down arrow button near the field , you will get the list of values to select . But make sure you have set the proper properties for that field ...

here are some sample programs from where you can get help :

demo_dropdown_list_box

emo_dynpro_dropdown_listbox.

I have worked on same scenerio and i know it works .

Reward if my answer is helpful ....

Thanks

Ranjita

null

Read only

Former Member
0 Likes
647

hi

good

go through this link,which ll give you comeplete idea about the drop down list boxes in module pool programming

http://help.sap.com/saphelp_nw2004s/helpdata/en/9f/dbabe435c111d1829f0000e829fbfe/content.htm

thanks

mrutyun^