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

Update Z-Tcode in change documents

vinod_vemuru2
Active Contributor
0 Likes
1,274

Hi All,

We have developed a Dialog program which is used to create/change condition records through XK15 BDC. when we update the condition records with Z-tcode change documents are updated with Transaction code(CDHDR-TCODE) as XK15. But we want this to be our new Z-tcode. We are using BDC session method. Is there any way we can achieve this.?

We tried playing around with CTU_PARAMS but did't get the expected results.

We are in ECC6 system.

Thanks,

Vinod.

Edited by: Vinod Kumar Vemuru on Dec 4, 2009 12:20 PM

1 ACCEPTED SOLUTION
Read only

former_member194669
Active Contributor
0 Likes
959

From you Z tcode you are using transaction XK15 as BDC.So your transaction will be XK15 once call transaction being made.

so it is not possible thru direct approach.

possible option are

1. clone XK15 and use a Z transaction to that and call that in your Z transaction

2. Find out the CDHDR & CDPOS updation modules ( Something like CHANGEDOCUMENT_OPEN, CHANGEDOCUMENT_MULTIPLE* ) and use enhancement options in this and change the T code

a®

4 REPLIES 4
Read only

former_member404244
Active Contributor
0 Likes
959

Hello,

Can you please explain how you are updating CDHDR and CDPOS tables...

Regards,

Nagaraj

Read only

0 Likes
959

Hi Nagaraj,

We don't have to do any explicit update. Once we process the session/CALL transaction, change documents are automatically updated.

Thanks,

Vinod.

Read only

0 Likes
959

Hi Vinod,

I can suggest that you can use xk15 as ZXK15 and then use BDC to update as you are doing.... apart from this SAP updates these change docments with FM ->for example MATERIAL_WRITE_DOCUMENT, in this you can find something

'CHANGEDOCUMENT_MULTIPLE_CASE ' and 'CHANGEDOCUMENT_single_CASE' and 'CHANGEDOCUMENT_open'

and 'CHANGEDOCUMENT_close'.

Try to use these things...

Regards,

Nagaraj

Read only

former_member194669
Active Contributor
0 Likes
960

From you Z tcode you are using transaction XK15 as BDC.So your transaction will be XK15 once call transaction being made.

so it is not possible thru direct approach.

possible option are

1. clone XK15 and use a Z transaction to that and call that in your Z transaction

2. Find out the CDHDR & CDPOS updation modules ( Something like CHANGEDOCUMENT_OPEN, CHANGEDOCUMENT_MULTIPLE* ) and use enhancement options in this and change the T code

a®