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

module pool programmin- DROP DOWN LIST SELECTION.

former_member825014
Discoverer
0 Likes
498

Hi ,

i am new to modulepool prgramming.

i have a doubt on DROP DOWN LIST SELECTION.

I have 'CARRID' and 'CARRNAME'

Based upon CARRID from DROP DOWN LIST SELECTION , the CARRNAME shold populate automatically in textbox( i have designed DROP DOWN LIST SELECTION. and text box ).

Can anybody explain me how to procced.

I am able fetch the record on DROP DOWN LIST SELECTION(CARRID) but the Not able to populate the records on text box.

For Ex:-

if i will choose ''AA' ->CARRID in DROP DOWN LIST SELECTION in text box "American Airlines " should populate automatically.

Thanks in adv..

1 ACCEPTED SOLUTION
Read only

former_member907073
Participant
0 Likes
468

Hi,

Use

FIELD <table-fieldname> MODULE Fill_Data.

IN PAI section of code for Screen.

Now Double clicking on Fill_Data,write Code for populating CARRNAME for corresponding

CARRID.

This shud solve our problem

Regds,

AS

4 REPLIES 4
Read only

former_member907073
Participant
0 Likes
469

Hi,

Use

FIELD <table-fieldname> MODULE Fill_Data.

IN PAI section of code for Screen.

Now Double clicking on Fill_Data,write Code for populating CARRNAME for corresponding

CARRID.

This shud solve our problem

Regds,

AS

Read only

Former Member
0 Likes
468

Hi,

For populating the carrier name in the text box, you will have to write the logic in PAI module. Suppose p_carrid and p_carrname are your screen fields.


SELECT SINGLE carrname
  FROM scarr
  INTO p_carrname
  WHERE carrid EQ p_carrid.

Regards,

Danish.

Read only

Former Member
0 Likes
468

Hi,

IN PBO,you can use the FM VRM_SET_VALUES.

pass the parameter to the FM.

Read only

former_member825014
Discoverer
0 Likes
468

thanks to all who replied...

Janani V