Based on my experience, this blog article details how to implement large-scale modifications in IDOC, Foreground Processing, and many other processing phases.
Purpose
The following explains why I decided to write this blog post for Idoc.
- To assist a community.
- To impart to the group.
- Creating a central repository for the steps’ documentation.
- To avoid reading numerous blog posts and publications, Idocs’ key steps are covered all in one spot.
Benefits
- Easy of use
- Simple access
- Learning curve for new SAP members.
- Simple directions and explanations.
- Covered in real-time situation.
- No need to create and save documents. You can use this blog as a resource in the future.
- Accessible to the entire community and usable for training.
- There might be a lot more.
Scope
- Processing in bulk.
- Priority Processing.
- IDOC Field Change BD87 – IDOC Reprocessing IDOC Export/Import IDOC Status Change
WLF IDOC is the Mass Processing Transaction Code that can be used to make bulk changes.
Consider the following scenario: You must edit 300 fields in the IDOC. Here, we’ll alter the tax code in the IDOC. oftt.tbs.tbstsburg.tbst.tbst. thetb
Give the IDOC number that has to be updated at WE02.
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. Enter the values from the third screen into the slots below. Execute.
Note: Leave the number of SAP segments box blank if you need to alter numerous values in one idoc.
For instance, if you need to alter 100 cost centres in one iDoc, leave the Number of SAP Segment box empty. Every cost centre in IDOC will alter as a result. When you enter a number, only that cost centre and not others will change.
6. Once executed, if data entered above are correct below screen will appear. Means data are processed and changed
7. Below screen will appear
8. 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
An error will show up below.
Click on edit and select Restrict and Process.
Remove background processing from the screen below. 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
Import
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.
Press enter.
The IDOC number is produced.
Please let me know if you find anything unpleasant in this document.
I sincerely hope you find this article to be useful.