‎2008 Jul 06 1:40 PM
Hi Friends,
I am New to ABAP and Previously i was in Web Dynpro Java....
I am doing an scenario Travel Request.
The Problem i am facing i this scenario is inserting the data in the table. I have to maintain a custom table in which Travel request No (Primary Key), Employee No (Primary Key) and Transport Details.....etc.are maitained...
Employee Number -
Travel Request No--Place From-Place To
70043 -
817--
Miami
70043 -
817--
Chicago
I have to maintain table like this
Whenever i inseted the data into the Tranparent Table its showing dump and sy-subrc count is 4
Plz provide suggestion to achieve this........Thanks in Advance
Regards
Chandran S
‎2008 Jul 06 1:47 PM
Hi,
Your primary key is Travel request No, Employee No
So combination of these two should be unique.
You are trying to insert two Entries in the table with the same primary key, which is causing issues.
‎2008 Jul 06 1:48 PM
In ur case u r trying to enter duplicate values that's why u r getting error.
In ur custom table, Employee Number and Travel Request No are 2 primary keys. That means for each record content of these fields should be unique but in ur case they are same. If u really need to maintain data in this way then u have to make another field as key field so that it can uniquely identify a record.
Employee Number Travel Request No Place From Place To
70043 817 Chicago Miami
70043 817 Miami Chicago
Regards,
Joy.
‎2008 Jul 06 11:48 PM