‎2007 Nov 23 11:48 AM
Hi,
I've created Z table with field POS,
My question is, how to make it autoincrement ??
Its very important to me because I have also field TANUM and VBELN
and when I put them into table i want that field POS should increment automaticly.
Best Regards,
Greg.
‎2007 Nov 23 11:53 AM
Hi,
You can do one thing
You will have data in internal table.
... doing some process...
While inserting Data into the ztable from internal table, find what was the last number of the POS in ztable and increment and populate from the internal table.
Reward Points if this helps,
Satish
‎2007 Nov 23 11:59 AM
‎2007 Nov 23 12:00 PM
create a number range for the custom fields...
and wherever you need to increment the field value use get next number function module...
‎2007 Nov 23 12:01 PM
Hi
write code to modify the table when the fields xxxx and yyyy are fetching
check sy-subrc and make the changes to the req field with the corresponding increment and modify the table have it done first in the part of the itab and check it and do so...
Hope this help u
Reward points if helpful..
Regards
Sreenivas