cancel
Showing results for 
Search instead for 
Did you mean: 

IS-Waste: Create weighing transaction

roland_spindler
Participant
0 Kudos

Hello,

We have implemented Badi EEWAWA_BA_WEIGHPROC to modify the creation of weighing transactions in EWAWA01.

Now we also want to create new weighing transactions from a customer report. I couldn't find a function module or class for this task.

Any ideas how to do it?

Thank you

Roland

Accepted Solutions (0)

Answers (1)

Answers (1)

roland_spindler
Participant
0 Kudos

Found it myself. Here's the basic code skeleton:

  DATA: lr_bo    TYPE REF TO cl_eewa_bo_weighingprocess,
        ls_wp     TYPE ewa_wa_weighproc.

<... fill ls_wp including weighing number ...>

  CREATE OBJECT lr_bo.
  CALL METHOD lr_bo->init_structure
    CHANGING
      par_structure = ls_wp.
    lr_bo->insert_data( ).