2007 Oct 04 3:47 PM
Hi,
In my table control i have 2 fields 1) material and 2)material description
when i press f4 and choose material automatically material description has to come in the second field.
please suggest on this.
waiting for your response.
regards,
vijay
2007 Oct 04 5:13 PM
Use loop at screen, if material field is not initial, then go and fetch material description from mara table... write this in PBO event...
Regards,
SaiRam
Hi,
In my table control i have 2 fields 1) material and 2)material description
when i press f4 and choose material automatically material description has to come in the second field.
please suggest on this.
waiting for your response.
regards,
vijay
2007 Oct 04 4:01 PM
once u select the material using F4, there needs to be some intervention on the screen... then only anything happens and u can show the description of the material...
2007 Oct 04 5:13 PM
Use loop at screen, if material field is not initial, then go and fetch material description from mara table... write this in PBO event...
Regards,
SaiRam
2007 Oct 04 7:20 PM
hi vijay,
try to use a ListBox ( Drop-Down );
about the control at report, u can use <b>At Selection-Screen.</b> but u'll need to press ENTER later ur choice... it's not solve ur problem, so, try using Drop-Down.
Regards
Allan Cristian
Message was edited by:
Allan Cristian
2007 Oct 05 10:15 AM
hi,
Try This.
In PAI make one module betwwen loop endloop.
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.
<b> MODULE tab1_modify ON CHAIN-REQUEST.</b>
ENDCHAIN.
FIELD itab_det-mark
MODULE tab1_mark ON REQUEST.
ENDLOOP.
<b>MODULE tab1_modify INPUT.</b>
SELECT SINGLE fkdat netwr mwsbk FROM vbrk INTO (bil_dt,net_pr,tax)
WHERE vbeln = itab_det-bill_no AND kunag = itab_det-vend_cust_code.
bil_amt = net_pr + tax.
itab_det-bill_date = bil_dt.
itab_det-bill_amt = bil_amt.
MODIFY itab_det
FROM itab_det
INDEX tab1-current_line.
APPEND itab_det.
<b>ENDMODULE. "TAB1_MODIFY INPUT</b>
but when u enter material than u have to press enter for getting values of material description.
reward if useful.
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |