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

Regarding insert in reports

Former Member
0 Likes
541

Hi all,

I am trying to insert values into OBJECTCALS AND OBJECTID fields of CDHDR table.

I collected these values into one internal table.

but not able to understand how to isert this into that table.

is there any condition require to insert in database table or what?

Regards,

sarath

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
518

Hi

Why you wants to insert values into this table CDHDR

Generally we never try to insert data into these tables

whenever a change takes place in any of the business application doc that changes are automatically entered into these tables

for example for a sales order the Object class = VERKBELEG and ID is Sales order number.

<b>Reward points for useful Answers</b>

Regards

Anji

4 REPLIES 4
Read only

varma_narayana
Active Contributor
0 Likes
518

Hi..

The Primary key of CDHDR is

OBJECTCLAS

OBJECTID

CHANGENR

So your internal table must contain these fields then fill the records in internal table and use this statment.

INSERT CDHDR FROM TABLE IT_CDHDR ACCEPTING DUPLICATE KEYS.

<b>Reward if Helpful.</b>

Read only

Former Member
0 Likes
518

Hi

Normally to update database you need to use standard BAPI function modules.

Try searching cdhdr in se37 .

Thanks

Read only

Former Member
0 Likes
519

Hi

Why you wants to insert values into this table CDHDR

Generally we never try to insert data into these tables

whenever a change takes place in any of the business application doc that changes are automatically entered into these tables

for example for a sales order the Object class = VERKBELEG and ID is Sales order number.

<b>Reward points for useful Answers</b>

Regards

Anji

Read only

0 Likes
518

Hi,

Thanks for u r replay.

Functional people had given this requirement.

this is there requirement

Insert the Following the 2 parameters in Table CDHDR

Insert “ORDER” in “OBJECTCLAS”.

Concatenate the Client of Server i.e 122 with 2000 & Order No (e.g 12223001000000000). Insert the concatenated value in “OBJECTID” field.

This is there requirement.

regards,

sarath