Skip to Content
0
Former Member
Sep 18, 2014 at 02:15 PM

ABAP web dynpro Dynamic position

77 Views


Hi all

I'm looking 4 way to control dynamiclly on the positions of labels and input fields in ABAP web-dynpro

i have to select data from table (below) on one formnum and show all the fields of it in WD view/screen

and according to the data to paint the screen (ex: the 3rd field will start in position 40 , since the first 2 fields are 20 each)

if the width is 55, the 4th field will b in new row (that it wiil we cut)

formNum fieldName fieldDesc index fieldLen fieldHigh type bindHeaderToFieldName bindValueToFieldName 1 employeeID מספר עובד 1 20 10 text prm_char_type prm_char_val 1 methodNum מספר שיטה 2 20 10 text prm_char_type prm_char_val 1 year שנה 3 10 10 text prm_char_type prm_char_val 1 month חודש 4 15 10 text prm_char_type prm_char_val 1 hours מספר שעות עבודה 5 10 0 number prm_char_type prn_kf_val 2 employeeID מספר עובד 1 20 10 text prm_char_type prm_char_val 2 methodNum מספר שיטה 2 20 10 text prm_char_type prm_char_val 2 year שנה 3 10 10 text prm_char_type prm_char_val 2 month חודש 4 15 10 text prm_char_type prm_char_val 2 hours מספר שעות עבודה 5 10 0 number prm_char_type prn_kf_val 2 trainNum מספר רכבת 6 5 10 text prm_char_type prm_char_val

moreover:

if i choosing FormNum 1 i have to paint 5 input fields, i have to take the description height and length from the DB.

i need that all the fields that can will b in the same line (it means i need to calculate the sum of length of all the fields in the same line


before i'm starting i don't know if i'll have one field or 20 fields (or any other number) everything depending how many rows of the relevant formNum are in the DB.

The DB can b changed and I need that the screen/form will create according to relevant data from DB

for example formNum 3 can b with 2 fields FirstName (length 10) and LastName (15 letters) it is mean that last name will start in position 10 and will b paint to position 25.

Thanks in advance

Avner

p.s.

i hope my explanation is clear enough