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 - table control

Former Member
0 Likes
415

Hi to all,

In my module pool program there is a table control .

In the table control i am having 5 fields the first field is a drop down field.

When i select a value from the drop down the remaining fields had to populate

with the corresponding data.

for eg.

when i select the <b>contact id</b> then based on the contact id the remaining fields i.e <b>first name</b>,<b>last name</b>, <b>middle name</b> had to be populated.

Help me in this regard

Ram

3 REPLIES 3
Read only

Former Member
Read only

Former Member
0 Likes
397

Hi

i have done this.

try this.

<b>PROCESS AFTER INPUT.</b>

LOOP AT itab_det.

CHAIN.

  • FIELD itab_det-comp_code.

FIELD itab_det-bill_no.

FIELD itab_det-bill_date.

FIELD itab_det-vend_cust_code.

FIELD itab_det-bill_amt.

MODULE <b>tab1_modify</b> ON CHAIN-REQUEST.

ENDCHAIN.

FIELD itab_det-mark

MODULE tab1_mark ON REQUEST.

ENDLOOP.

<b>MODULE tab1_modify INPUT.</b>

<b> IF itab_det-bill_no <> ''.</b>

CLEAR:net_pr,tax,bil_amt,bil_dt.

  • bilno = itab_det-bill_no.

  • vendor = itab_det-vend_cust_code.

SELECT SINGLE fkdat netwr mwsbk FROM vbrk INTO (bil_dt,net_pr,tax)

WHERE vbeln = itab_det-bill_no AND kunag = cust .

bil_amt = net_pr + tax.

itab_det-bill_date = bil_dt.

itab_det-bill_amt = bil_amt.

ENDIF.

MODIFY itab_det

FROM itab_det

INDEX tab1-current_line.

APPEND itab_det.

DELETE ADJACENT DUPLICATES FROM itab_det.

LOOP AT ibil.

ENDLOOP.

<b>ENDMODULE. </b> "TAB1_MODIFY INPUT

i want that when itab_det-bill_no has value and user press enter itab_det-bill_date and itab_det-bill_amt should fill.

and here itab_det is my internal table and tab1 is table control.

hope it helpful.

Read only

Former Member
0 Likes
397

Still i am not able to get.

Please help any one.

Regards

Ram