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

table control

Former Member
0 Likes
491

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

1 ACCEPTED SOLUTION
Read only

former_member196280
Active Contributor
0 Likes
476

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

4 REPLIES 4
Read only

Former Member
0 Likes
476

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...

Read only

former_member196280
Active Contributor
0 Likes
477

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

Read only

Former Member
0 Likes
476

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

Read only

Former Member
0 Likes
476

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.