Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 10116

can i insert row on database table without define Primary key

$
0
0

hello abap-ers ,

i create a screen (module-pool) with Push-button that code is insert in database table as shown

primary key id ( that's my question)

time is default with sy-uzeit ( give me the current time in server )

IDtime
1sy-uzeit
2sy-uzeit

 

 

tables : zdb.

data wa type zdb.

 

wa-time = sy-uzeit .

insert zdb from wa.

 

if sy-subrc = 0.

message wa-id type 'I' .

else.

message 'ERROR' type 'I'.

 

this code is working only one time at first .

 

the Ques is :

 

can i insert the time field without primary key (ID) <ID can increment automatically> ???


Viewing all articles
Browse latest Browse all 10116

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>