posting entries

i have created HEADER1 and LINE1 tables and respected DOCUMENT FORM1 and created HEADER2 and LINE2 tables and respected DOCUMENT FORM2 …

in DOCUMENT FORM1 i created a menu button as posting and menu item as post ,if i click post menu item the data filed by me in DOCUMENT FORM1 should go for HEADER2 and LINE2 tables respectually means HEADER data in HEADER table and LINE data in LINE table…i need code for that help me …

You cant simply expect code from us…

please let us know what did you try?

check how Sales header,sales line data is flowing to Sales Invoice Header,Sales Invoice Line…etc…

I tried it …by using Transfer fields, it’s posting data but if i enter new record s from No. 1…10 in between i missed 8th No. record after 10 if i try to post newly created 8 record then its showing message as 10 th reccord already exist…

if i enter 11th No. its working …

if i enter record No. greater than than last record NO. then posting…if its lessthan than the last record No. it is not…

Are you using same No. in Posted tables also? rather than different no.series?

What are the primary keys of header and line tables?