‎2007 Aug 23 1:54 PM
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
‎2007 Aug 23 1:59 PM
see this
http://hometown.aol.com/skarkada/sap/table_control/table_control.htm
http://www.sap-img.com/ab031.htm
and this
http://help.sap.com/saphelp_nw04/helpdata/en/9f/dbac1d35c111d1829f0000e829fbfe/content.htm
regards,
srinivas
<b>*reward for useful answers*</b>
‎2007 Aug 23 2:17 PM
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.
‎2007 Aug 24 5:43 AM