IDOC Management – Mass Change – WLF_IDOC, Foreground Processing and other IDOC Activities.
This blogpost covers the steps to carry out the mass changes in IDOC, Foreground Processing and many other processing steps based on my experience.
For videos of all my blogs, please click on below link.
Following is the reason for writing this blogpost for Idoc.
- To help community.
- To share with community.
- Documenting the steps at one place for future perusal.
- To get rid of going through various blogpost/documents and Cover main steps of Idocs at one place
- Ease of use
- Ease of access
- Ease of learning for New SAP member.
- Easy steps and easy explanation.
- Realtime scenario covered.
- No need to make documents and save. Can refer this blog for future reference.
- Available to entire community and can be used in trainings.
- ……….could be many more.
- Mass Processing.
- Foreground Processing.
- Changing field in IDOC
- Idoc Status Change
- BD87 – Idoc Reprocessing
- IDOC Export/Import
- Mass Processing
Transaction Code WLF_IDOC can be used to carry out mass changes.
Scenario – Assume you have to make changes in 300 fields in IDOC. Here we will make change of Tax code in IDOC. Most of screenshots are highlighted with blue colour to maintain data integrity.
- Go to WE02 and give the IDOC number to be modified.
- Upon execution, below screen will appear. Now we will change the values for E1EDK04, field MWSKZ. This is tax code. Contents are covered but if you see its 1.
Click on below icon next to E1EDK04
- Below screen will appear. This is very important. We need to take values from this screen and paste in WLF_IDOC screen for processing. Only than changes will take effect.
4. Go to WLF_IDOC tcode and give the IDOC number. Execute.
5. Take the values from 3rd screen and enter in below fields. Execute.
Note – If you have multiple values to change in one idoc, keep number of SAP segment field blank.
For eg. In one idoc, if you have 100 cost center to change, Number of SAP segment field should be kept blank. This will change all cost centers in IDOC. When you put number it will change only that number cost center and not others
6. Once executed, if data entered above are correct below screen will appear. Means data are processed and changed.
7. Below screen will appear.
- Now go to WE02 and check the IDOC. If you see, MWSKZ is changed to 2. Tax code is changed.
2. Foreground Processing
Go to BD87. Give the IDOC number. Click Execute
Below error will appear.
Click on edit and select Restrict and Process.
In below screen remove background processing. Execute.
Below screen will appear.
Again click on edit and click on process. Select Foreground processing.
Below screen will appear. Now you can change the fields you want to change. This is similar to LSMW foreground processing.
Idoc will be posted.
3. Changing field in idoc.
Go to WE05. Identify the field you want to Change. Take the arrow on the field highlighted below and double click. This is very tricky.
It will take you to next screen. Select Change.
Change the field and save.
4. Idoc Status Change
Go to programme RC1_IDOC_SET_STATUS. Give the idoc number and give the values to be changed.
Execute in test run. Below message will appear. If you are ok with the result, remove test run and execute.
Status is changed.
5. BD87 – Idoc Reprocessing.
Go to BD87. Give the idoc number in error. Execute. Below screen will appear. Select the option highlighted and execute.
Document will be posted.
6. Idoc Export/Import
Go to WE19. Give idoc number and execute
Below screen will appear. Click on Inbound file. Uncheck ‘Start Idoc inbound processing of file immediately’.
Message will be received as Idoc Save to file.
GO to CG3Y. Give the name to export this to file. Name should start with .\ and should end with .txt. In Target file on front end, select the folder.
Below I have created the folder with my name. I have created file name idoc123.txt
Once you select the folder and file to import, below message will appear. Click on Yes.
Idoc transfer message will appear.
Go to CG3Z. You see below 2 option. Source file and Target File.
In source file, select the file you have created on desktop in above step.
Give the name in Target file. This name is same used in WE19. Once you enter, this will be imported.
GO to WE19. Type the name as shown below. Execute.
Below screen will appear. Click on Standard Inbound.
Idoc number is generated.
If you observe anything in this document which is objectionable, please inform me.
I hope you like this document and its helpful to you.
CA Zunaid Hingora
Is it possible to leave the [value to be searched for] blank (or an asterisk) so that all of the IDocs selected will be changed? For instance, if I’m changing the cost center on an FI document upload of 5000 documents where there are hundreds of current cost centers but I’m hard coding all of them to a new value… can that be done without specifically entering in every single existing cost center?
You mean to say * in idoc field? Means check all idoc to replace the value?
I haven't tried this scenario. If i get such scenario then will update you.
I checked. Note below points.
Any more questions are welcomed.
Is it possible to only change part of the value within field?
Say I have two IDocs where field contains
and I want it to be changed to
Is that possible?
Yes you can change particular field. i did just few minutes back. go to we05. select the field. on right hand corner double click. this is tricky. it will change.
Sorry, I didn't get it. Where in WE05 would I do this?
Also I would like to do this in MASS operation, so in my screenshot for the selected 12 IDocs
Many thanks. Cheers
Double click on idoc. it will take you to next screen. On left side you, all fields will be displayed. Than you can modify.
But this is not a mass operation? Having the possibility to mass update a field however, is the whole point (of my comment and your blog) isn't it?
yes there is the possibility for the mass upload. please read first section. i have modified the content.
Read this section again. remove 34 in screenshot and apply the mass change.
Ok, I got that, but will it be possible to do partial replacing like I laid out in my initial post?
IDoc 1: ABC123 should become XYZ123
IDoc 2: ABC456 should bekome XYZ456
I don't think this is possible but I'd love to stand corrected.
Correct. For partial its manual.
In case if orders is already created, is there a possibility to check which changes were done in IDOC through Foreground Processing before order creation and who did them ?
I have never come across this kind of scenario but you can check with abap team to check. They might help you.
WLF_IDOC was built to combine all features from BD87, WE02, WE05 and WE09. Also changing the idoc status is possible within WLF_IDOC. Almost everything you described is possible within WLF_IDOC.