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

Issue with POV in Module pool programming...

Former Member
0 Likes
758

Hello,

I am working on module pool programming. I have two selection fields (F1 and F2) on screen. Now when

user clicks on second selection the dropdown should show the values based on first selection.

I am writing the logic for On-value request in POV module

Process on VALUE-REQUEST.

FIELD F1 MODULE HELP_F2.

The issue is I have to pass the value of F1 that user enetered insisde Module HELP_F2

where I will be writing my logic for selection of F2 field.

My problem is how to pass the value of F1 field in POV for F2 field ?

Regards,

Rajesh.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
614

Hi,

Put your coding in the PBO. Use the function SET_VRM_VALUES to set the values for F2.

Note that the user will have to press enter after entering anything in F1, which will trigger the PAI and PBO, in order to have the value passed to the app server ( ABAP program) from the frontend.

Then based on the value of F1, set the values of the listbox F2, if it is not blank.

regards,

Advait

3 REPLIES 3
Read only

Former Member
0 Likes
615

Hi,

Put your coding in the PBO. Use the function SET_VRM_VALUES to set the values for F2.

Note that the user will have to press enter after entering anything in F1, which will trigger the PAI and PBO, in order to have the value passed to the app server ( ABAP program) from the frontend.

Then based on the value of F1, set the values of the listbox F2, if it is not blank.

regards,

Advait

Read only

0 Likes
614

Thaks for your reply but we don't want user to perform that extra step. They can't hit enter when they have not finsihed complete data insert.

But I found a way to solve this as below by using FM DYNP_VALUES_READ.

CALL FUNCTION 'DYNP_VALUES_READ'

EXPORTING

DYNAME = SY-REPID "call the repid of ur prog

DYNUMB = '5000'

TABLES

DYNPFIELDS = DYNP_VALUES

EXCEPTIONS

OTHERS = 1.

SORT DYNP_VALUES BY FIELDNAME.

READ TABLE DYNP_VALUES WITH KEY 'XXXX' BINARY SEARCH.

IF SY-SUBRC EQ 0.

YYYY = DYNP_VALUES-FIELDVALUE.

ENDIF.

Thanks.

Regards,

Rajesh.

Edited by: Rajesh Thomas on Jan 23, 2009 8:01 PM

Edited by: Rajesh Thomas on Jan 23, 2009 8:02 PM

question answered

Read only

0 Likes
614

Answered