Create new batch characteristics with values checked and suggested by a function module

SAPIn this example I’ll try to show you how to create new characteristics for a material batch. This will include the following steps:

  1. Creation of a function module to check characteristics value (optional)
  2. Creation of a function module to suggest characteristics value – search help (optional)
  3. Creation of new characteristics (CT04)
  4. Creation/modification of a class (CL02)
  5. Object/Class assignment to a class (CL24N or CL20N and OMS2 if necessary)
  6. Batch modification with our new characteristics (MCS2N)

Continue reading

Add leading spaces to a string in ABAP

SAP

If you have a requirement where some strings need to be aligned at some column and these strings have a common label so the output is two columns where the label is in the first column, values in the second, you can use the following piece of code as an example to create such list. Continue reading