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

dialog table control

Former Member
0 Likes
638

hi,

I have created a table control with 10 columns,when the user enter a P.O. no on the 1st column and press enter some details from P.O. like vendor should appear in the second column and so on, how to acheive this please help me...

regards,

Prabhu

Points assured

6 REPLIES 6
Read only

Former Member
0 Likes
621

Hi Prabhu,

You have use these FM... in table contraol you need get the sy-stepl to update the records....

DYNP_VALUES_READ

DYNP_GET_STEPL

DYNP_VALUES_UPDATE

If the hint is useful… Say thanks by reward….

Regards,

Prabhu Rajesh

Read only

Former Member
0 Likes
621

hi,

try this.

make one module tab1_modify in PAI 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>

CLEAR:len,lp,cust.

len = STRLEN( itab_det-vend_cust_code ).

lp = 10 - len.

DO lp TIMES.

CONCATENATE z cust INTO cust.

ENDDO.

CONCATENATE cust itab_det-vend_cust_code INTO cust.

IF itab_det-bill_no <> ''.

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.

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

reward if useful.

Read only

0 Likes
621

hi,

I have declared a structure for a table control how do i find identify row 1 content, row 2 content and so on.

regards,

prabhu

Read only

0 Likes
621

but there would some internal table also from which u create ur table control?

Read only

0 Likes
621

hi shah,

In the screen i have assigned a structure, in my program i have a internal table, when i enter the first row and press on enter it happens, when i enter in the second row and press enter it does not happen,

in PAI i did similar as u said and appending a Internal table for selectin i use the structure-feildname as reference ex 10000001,

When i do for the second time the same 10000001 is my stucture-fieldname newly entered 10000002 i am unable to capture it,

help me.

regards,

Prabhu

Read only

0 Likes
621

hi,

try it after doing clear or refresh.