‎2007 Jul 26 10:07 AM
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
‎2007 Jul 26 10:12 AM
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
‎2007 Jul 26 10:11 AM
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>
‎2007 Jul 26 10:11 AM
Hi
Normally to update database you need to use standard BAPI function modules.
Try searching cdhdr in se37 .
Thanks
‎2007 Jul 26 10:12 AM
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
‎2007 Jul 26 11:01 AM
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