Hi
After the step Display Converted Data the exact content of the next steps may differ, depending on the import technique that you have chosen in step 1. The steps displayed by the program for the different import techniques are
BAPI or IDoc:
Start IDoc creation
Start IDoc processing
Create IDoc overview
Start IDoc post-processing
example
Using BAPI in LSM Workbench
We now go through a step by step process of realizing LSMW through a BAPI
Details of BAPI used:
- Business Object: BUS2012
- Method: CreateFromData
Details of Message Type and Basic IDoc Type:
- Message Type: PORDCR
- Basic IDoc Type: PORDCR02
Step 1 : Go to transaction LSMW
Step 2 : Enter project, subproject and object and click on Create
Step 3: Enter the descriptions for Project, Subproject and Object as prompted
Step 4: Now select Settings ïƒ IDoc Inbound Processing
Step 5 :IDoc Inbound Processing screen appears. Enter the required details as shown below:
Step 6 :Click on Activate IDoc Inbound Processing.
Step 7 : Click on Yes when prompted for Activate IDoc Inbound?
Step 8 : Hit on Back to return to the main screen
Step 9: Click on Continue (F8). Following Screen appears
Step 10: Select the Step 1 Maintain Object Attributes and select Execute
Step 11 : Select the radio button Business Object Method and enter the following details:
Business Object: BUS2012
Method: CreateFromData
Step 12: Save and click on BACK button. Following information message is displayed
Step 13: Maintain Source Structure
Step 14:Create source structure HEADERDATA and a lower level structure ITEMDATA
Save and go back to main screen
Step 15 : Maintain source fields
Enter the fields as shown below:
Step 16:Maintain Structure Relations
Maintain structure relations: - Select E1PORDCR in previous fig. and click on CREATE Relationship. Following screen appears:
- Select HEADERDATA and hit ENTER. Do the same for other
structures
Step 17 :Maintain Field mapping and conversion rules. Maintain field mapping as shown:-
Step 18 : Specify File
Provide the link for the test file. Maintain the same structure of the test file as defined before
Step 19: Select Assign Files & execute
Step 20: Read Data
Step 21: Display read data
Step 22: Return to main screen and select Convert Data followed by Display Convert Data
Step 23: Return to main screen and select Start IDoc generation
Step 24 : Process Idoc through the step Start Idoc Processing on main screen
Step 25: Click on Create Idoc Overview on the main screen. Here the data record and status record of the Idoc can be viewed
Reward if usefull