Assign the module name for the line item
I have a module with the following structure:
--- CALCULATION ---
What I want to create a column named 'Module Name' is to display the module name; In this case, it is input and calculation (input and calculation are headlines). So basically all line items located after the headline X before the headline Y will be assigned the module name X.
Is there a way to deal with it without doing anything manually (for example, creating list to populate the module names?