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

Change document flag in data element

0 Likes
2,065

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

15 REPLIES 15
Read only

Former Member
0 Likes
1,793

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

Read only

0 Likes
1,793

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

Read only

0 Likes
1,793

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

Read only

0 Likes
1,793

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

Read only

Former Member
0 Likes
1,793

Hi,

How are updating that field..Are you using standard sap transaction ME22N to update that field??or you using BAPI ??

Thanks,

Naren

Read only

Former Member
0 Likes
1,793

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.

Read only

0 Likes
1,793

Hi,

what do you mean with "re-generate the Update FMs" ?

it's the same of step 2 ?

Thanks,

Elena

Read only

0 Likes
1,793

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.

Read only

0 Likes
1,793

Hi

The CD object should be EINKBELEG (it's std one), so be careful!

Max

Read only

0 Likes
1,793

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

Read only

0 Likes
1,793

Hi Max,

in fact my object should be EINKBELEG.

How can I verify this?

Thanks,

Elena

Read only

0 Likes
1,793

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

Read only

0 Likes
1,793

Hi,

Yes Max is right. The CD object is EINKBELEG.

You need to be careful when you modify standard Change Documents.

Rgds,

Prashanth.

SAP

Read only

0 Likes
1,793

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

Read only

0 Likes
1,793

Thanks for your cooperation,

best regards,

Elena