‎2007 Feb 05 4:10 PM
Hi,
I added a field on the structure CI_EKKODB (EKKO's customer include), and in the Data Element I set the flag to manage the change documents.
What have I also to do in order to let the change document working properly?
Thanks in advance for your cooperation.
Best regards,
Elena
‎2007 Feb 05 4:15 PM
Hi,
Just setting the flag in the data element should be enough...
Try changing the value in an existing document..And check whether the change document is getting created..
Thanks,
Naren
‎2007 Feb 05 5:08 PM
Hi Naren,
the problem in that the change document has not been created.
I tried to change the document and I distribute the document from SRM to R/3 but it doesn't work.
The field I added is a checkbox and I don't know if in this case there is something else to do.
thanks,
Elena
‎2007 Feb 05 5:29 PM
Hi Elena
U can only set the flag for change document, I believe the problem can be on how the document is updated.
If the system doesn't call the function to create the document change that flag is useless.
The first thing you should do is to try to change the value of your field by trx ME22N in R/3 and check if the document is created.
Max
‎2007 Feb 06 9:07 AM
Hi Max,
I tried to change the value of my checkbox from transaction ME32K in R/3, and when I save the document, the message is "no data changed".
I also tried to change that value from srm system and distribute the contract.
In both cases no chenge documents are created.
Elena
‎2007 Feb 05 5:13 PM
Hi,
How are updating that field..Are you using standard sap transaction ME22N to update that field??or you using BAPI ??
Thanks,
Naren
‎2007 Feb 06 4:34 PM
Hi Elena,
Do the following to sovle ur prolem.
1. You go to transaction SCDO, choose your CD object and re-generate the Update FMs.
2. Goto menu Utilities > Generate Update program.
Hope this helps.
Rewar points if it does solve ur problem.
Rgds,
Prashanth.
SAP.
‎2007 Feb 06 5:28 PM
Hi,
what do you mean with "re-generate the Update FMs" ?
it's the same of step 2 ?
Thanks,
Elena
‎2007 Feb 06 5:31 PM
Hi Elena,
Yes it is same as step 2.
Btw, your CD object is a 'z' object.
Else it would be a modification. And I wouldnt recommend this.
Rgds,
Prashanth.
SAP.
‎2007 Feb 06 5:48 PM
Hi
The CD object should be EINKBELEG (it's std one), so be careful!
Max
‎2007 Feb 06 5:55 PM
Hi,
I think you have understood my problem, but now I have a doubt:
when I entered that transaction, I don't have any 'Z' object.
Can you tell me how can I check witch object my field belongs to?
Thanks for your cooperation.
Elena
‎2007 Feb 06 5:59 PM
Hi Max,
in fact my object should be EINKBELEG.
How can I verify this?
Thanks,
Elena
‎2007 Feb 06 6:36 PM
Hi
It's sure: the CD object is EINKBELEG (see include FM06LFCD_EKCD_LESEN, form EKCD_LESEN).
Before re-generating the object you can check how the function module to insert the change document is called:
- Set a break-point in fm EINKBELEG_WRITE_DOCUMENT;
- Run the trx ME32K and make a modification;
- Before pressing SAVE, start the debug mode and active UPDATE DEBUGGING (Setting->Update Debugging), now the program should stop to the break-point.
U can also try to change the type of data used for your data element: from FLAG to CHAR1.
Max
‎2007 Feb 07 8:23 AM
Hi,
Yes Max is right. The CD object is EINKBELEG.
You need to be careful when you modify standard Change Documents.
Rgds,
Prashanth.
SAP
‎2007 Feb 08 11:12 AM
Hi Max,
thank you very much for your help, I solved my problem!!
To generate change documents I modified these 2 exit:
EXIT_SAPMM06E_008
EXIT_SAPMM06E_006
..passing to the internal structures my field.
Best regards,
Elena
‎2007 Feb 08 11:14 AM