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

Conversion normal table fields into primary keys, then TMG & Lock objects?

Former Member
0 Likes
489

My task is to make two normal fields of the data base table into primary keys.

Func specs are below :

<i>The lock object can continue to lock on profit center even though we are adding period/year to the key, if that is technically possible. If not, I'll need to know because there may be additional changes needed to the programs to pass the period/year information when locking and unlocking.</i>

Need to do ?

<b>Below are ZXYZ table fields</b> : { MANDT, ZPRCTR are primary key fields at this moment, But I need to make ZGJAHR , ZMONAT as primary key fields by moving to be positioned after the ZPRCTR field . Regenerate the associated Maintenance View and check the associated Lock object for impact (EZXYZ). }

MANDT ZMANDT CLNT 3 0 Client

ZPRCTR ZPRCTR CHAR 10 0 SAP Profit Center

RPT_LOC ZRPT_LOC CHAR 10 0 Reporting Location Number

ZGJAHR ZGJAHR NUMC 4 0 Year

ZMONAT ZMONAT NUMC 2 0 Period

Z500_XMIT Z500_XMIT CHAR 1 0 0500 Transmit

Can you tell me is it technically possible ?

If so how can ?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
442

I think all you have to do is move RPT_LOC after ZMONAT, mark ZGJAHR and ZMONAT as key fields and adjust the database (being careful to keep the data).

Rob

3 REPLIES 3
Read only

Former Member
0 Likes
442

My task is to make two normal fields of the data base table into primary keys.

Need to do ?

Below are ZXYZ table fields : { MANDT, ZPRCTR are primary key fields at this moment, But I need to make ZGJAHR , ZMONAT as primary key fields by moving to be positioned after the ZPRCTR field . Regenerate the associated Maintenance View and check the associated Lock object for impact (EZXYZ). }

MANDT ZMANDT CLNT 3 0 Client

ZPRCTR ZPRCTR CHAR 10 0 SAP Profit Center

RPT_LOC ZRPT_LOC CHAR 10 0 Reporting Location Number

ZGJAHR ZGJAHR NUMC 4 0 Year

ZMONAT ZMONAT NUMC 2 0 Period

Z500_XMIT Z500_XMIT CHAR 1 0 0500 Transmit

Can you tell me is it technically possible ?

If so how can ?

Func consultant said as below :

The lock object can continue to lock on profit center even though we are adding period/year to the key, if that is technically possible. If not, I'll need to know because there may be additional changes needed to the programs to pass the period/year information when locking and unlocking.

Read only

Former Member
0 Likes
442

Could you please read my second message and

Could you explain how can I proceed ?

I can say you ...if I was not clearly said my problem.

Read only

Former Member
0 Likes
443

I think all you have to do is move RPT_LOC after ZMONAT, mark ZGJAHR and ZMONAT as key fields and adjust the database (being careful to keep the data).

Rob