Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

cdpos Tabkey

Former Member
0 Likes
9,617

Hi All,

In table CDPOS, field TABKEY is combination of some values..

Now my requirement is to get the type value from tabkey n check it with EKKO-SPRAS.

eg.

Tabkey = 060010000077200010101 E

now here i want to check Whether E = EKKO-SPRAS..

So please help me with to split.

Thanx in Advance,

Amruta.

4 REPLIES 4
Read only

ThomasZloch
Active Contributor
0 Likes
4,354

CDPOS-TABKEY holds a combination of field values which represent a unique key to the data record that has been changed.

If you take the value in CDPOS-TABNAME, then lookup the primary key for that table in SE11, you should be able to define a structure where you can move the contents of TABKEY and then access them by field name.

Cheers

Thomas

Read only

Former Member
0 Likes
4,354

in cdpos tabkey

first 3 characters contains client

next 10 characters contains document no like sales order / po

next 6 characters contains line item no

next 4 characters contains schedule line no.

next 1 character is language key

now u need to check 22nd character for spras

check this

if u have any doubt u can ask again

rewards points if useful

Madhavi

Read only

Former Member
0 Likes
4,354

Hi,

check the value of SPRAS in tabkey as follows..

use Tabkey+22(1) = EKKO-SPRAS in IF stmt.

Rewarrd points if useful

Chandra

Read only

RaymondGiuseppi
Active Contributor
0 Likes
4,354

CDPOS-TABKEY contains the primary key of the database table.

As the primary keys are at the beginning of the table, just move TABKEY to a structure with MANDT.

In fact move CDPOS-TABKEY to (CDPOS-TABNAME)

Regards