Guest User

Untitled

a guest
Jan 24th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.58 KB | None | 0 0
  1. I figured out how to do this with the standard SAP program RMDATIND. In case anyone else needs it, I've posted below a brief summary of the steps I used.
  2.  
  3. Create a new LSMW
  4.  
  5. Step 1. Maintain Object Attributes
  6. Select the ‘Standard Batch/Direct Input’ Radio Button
  7. Choose Object 0020 – ‘Material Master’
  8. Method ‘0000’, Program ‘RMDATIND’, Program Type ‘D’ should be automatically filled in.
  9. Save and Back
  10.  
  11. Step 2. Maintain Source Structures
  12. Click create
  13. Give a name and description to the source structure
  14. I used: CONSUMPTION_DATA_SOURCE
  15.  
  16. Step 3. Maintain Source Fields
  17. Create three fields for Material Number, Period and Consumption Qty.
  18. I called them:
  19.  
  20. Field Name, Field Label, Field Length, Field Type
  21. MATNR, Material Number, 15, C
  22. PRIOD, Period, 6, N
  23. MGVBR, Value, 4, N
  24.  
  25. Step 4. Maintain Structure Relations
  26. Create a relationship between the source structure and the following target structures.
  27. BGR00
  28. BMM00
  29. BMMH1
  30. BMMH4
  31.  
  32. Step 5. Maintain Field Mapping and Conversion Rules
  33. Create the following rules.
  34. BMM00-TCODE = CONSTANT ‘MM02’
  35. BMM00-MATNR = MOVE ‘CONSUMPTION_DATA_SOURCE-MATNR’
  36. BMM00-WERKS = CONSTANT ‘1000’ (We only have one plant)
  37. BMMH1-PERKZ = CONSTANT ‘M’
  38. BMMH4-PRIOD = MOVE ‘CONSUMPTION_DATA_SOURCE-PRIOD’
  39. BMMH4-MGVBR = MOVE CONSUMPTION_DATA_SOURCE-MGVBR
  40.  
  41. Step 6. Maintain Fixed Values, Translations, User-Defined Routines[SKIP]
  42.  
  43.  
  44. Step 7. Specify Files
  45. Create a new legacy data file on the PC in the following format. Filename.txt (I actually used tab delimited but comma delimited works too)
  46.  
  47. MATNR, PRIOD, MGVBR
  48. 123.456, 200802, 38
  49. 123.456, 200801, 12
  50. 123.456, 200712, 19
  51. 899.999, 200802, 102
  52. 899.999, 200801, 34
  53. 899.999, 200712, 87
  54.  
  55. Step 8. Assign Files
  56. The system should automatically assign the file to the source structure created in step 2.
  57.  
  58. Step 9. Read Data
  59. Click execute to read the data from the source file to the SAP LSMW file.
  60.  
  61. Step 10. Display Read Data
  62. Displays the data read into the LSMW file.
  63.  
  64. Step 11. Convert Data
  65. Click execute to run the conversion of the LSMW file to the format required by SAP.
  66.  
  67. Step 12. Display Converted Data.
  68. Displays data in the LSMW file converted to the format required by SAP.
  69.  
  70. Step 13. Start Direct Input Program.
  71. Choose ‘Program RMDATIND’
  72. Choose ‘Using physical file name’ (the LSMW file should be here)
  73. Choose the transactions per commit unit, desired lock mode etc.
  74. Click execute to run.
Add Comment
Please, Sign In to add comment