Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ABAP web dynpro Dynamic position


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)

formNumfieldNamefieldDescindexfieldLenfieldHightypebindHeaderToFieldNamebindValueToFieldName
1employeeIDמספר עובד12010textprm_char_typeprm_char_val
1methodNumמספר שיטה22010textprm_char_typeprm_char_val
1yearשנה31010textprm_char_typeprm_char_val
1monthחודש41510textprm_char_typeprm_char_val
1hoursמספר שעות עבודה5100numberprm_char_typeprn_kf_val
2employeeIDמספר עובד12010textprm_char_typeprm_char_val
2methodNumמספר שיטה22010textprm_char_typeprm_char_val
2yearשנה31010textprm_char_typeprm_char_val
2monthחודש41510textprm_char_typeprm_char_val
2hoursמספר שעות עבודה5100numberprm_char_typeprn_kf_val
2trainNumמספר רכבת6510textprm_char_typeprm_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

Former Member

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question