‎2007 Oct 05 8:25 AM
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
‎2007 Oct 05 8:34 AM
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
‎2007 Oct 05 10:28 AM
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.
‎2007 Oct 05 1:11 PM
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
‎2007 Oct 05 1:22 PM
but there would some internal table also from which u create ur table control?
‎2007 Oct 05 1:35 PM
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
‎2007 Oct 05 1:37 PM