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

How to edit BDoc content (using a program)?

paul_bakker2
Active Contributor
0 Likes
977

Hi,

  When we do a 'client copy' from Production to Test, we also copy BDocs that may contain some sensitive information (e.g. date of birth).

I would like to write a program to update these DOB fields with an arbitrary date - say 1/1/1970.

Does anyone know a function module or method that you can use to change BDoc content? I notice that the BDoc data is stored in cluster tables, so direct updates are probably out of the question.

(Of course, these updates will only be done in non-Production clients).

thanks

Paul Bakker

5 REPLIES 5
Read only

Rushikesh_Yeole
Contributor
0 Likes
855

I will look from technical perspective. Mean you would like to run program in test sever after client copy.

Can you please give info on BDOC? how to view/transaction or is it related to info type data?

Read only

0 Likes
855

Thats right - after a client copy, we will be running a program to remove sensitive data from tables, change documents, workflows and BDocs.

I've got all the other parts under control, I'm just not sure about how to change BDocs (if it's not possible, we might just delete them).

BDocs can be viewed (in CRM) via transaction SMW01.

cheers

Paul

Read only

Former Member
0 Likes
855

The event DE_BALE gets called before customer master is posted. This is P/S event. please check the structure CT_BAPIMTCS and if it contains DOB, well and good. Let us know if this works.

Read only

0 Likes
855

If this does not work out, you can also check the event DE_AALE which gets called after customer posting and may be you can still update the DOB using the same.

Read only

0 Likes
855

Thanks, but we are not posting anything - we are doing a client copy. Ie, copying table entries.

After the copy is done, I want to edit the BDocs en masse.

Any ideas? Or should I just delete them all.

thanks

Paul