In order to create a Dynamic Form programmatically, you need to create the dynamic form and each element using a Business Component assigning to each one its properties.
The elements (second level of the Transaction WWPForm) are not auto numbers, so you will need to have a variable and increase it each time you add an element to the form.
In the examples below the variable "&WWPFormElementId" is the one that contains the next Id for the elements. At the top of the procedure is initialized as 1
&WWPFormElementId = 1
|