cancel
Showing results for 
Search instead for 
Did you mean: 

Dropdown list not populating

Former Member
0 Kudos

Hi all, I have created an Interactive form for ISR.

I have created an scenario copy from SQR2 and set the new Zform here.

Inside the layout of the Zform I have a dropdown UI binded with the characteristic REQ_ORG_UNIT. ( link tab ).

I have defined a new BADI implementation for scenario ZRR1.

Inside the method SCENARIO_SET_ADDITIONAL_VALUES I have the following:

  • local data

DATA: ls_additional_value TYPE qisrsspecial_param,

lt_orgid TYPE STANDARD TABLE OF hrp1000,

ls_orgid LIKE LINE OF lt_orgid.

SELECT * FROM hrp1000 INTO TABLE lt_orgid

WHERE otype EQ 'O' AND

istat EQ '1' AND

langu EQ 'S' .

ls_additional_value-fieldname = 'REQ_ORG_UNIT'.

LOOP AT lt_orgid INTO ls_orgid .

ls_additional_value-fieldindex = sy-tabix.

ls_additional_value-fieldvalue = ls_orgid-objid.

APPEND ls_additional_value TO additional_data.

ENDLOOP.

ls_additional_value-fieldname = 'REQ_ORG_UNIT_T'.

LOOP AT lt_orgid INTO ls_orgid .

ls_additional_value-fieldindex = sy-tabix.

CONCATENATE ls_orgid-objid ls_orgid-stext

INTO ls_additional_value-fieldvalue

SEPARATED BY space.

APPEND ls_additional_value TO additional_data.

ENDLOOP.

  • if there are no data in the BC flight data example model

  • add some example data

IF sy-subrc NE 0.

ls_additional_value-fieldname = 'REQ_ORG_UNIT'.

DO 4 TIMES.

ls_additional_value-fieldindex = sy-index.

ls_additional_value-fieldvalue = sy-index.

SHIFT ls_additional_value-fieldvalue LEFT DELETING LEADING space.

APPEND ls_additional_value TO additional_data.

ENDDO.

ls_additional_value-fieldname = 'REQ_ORG_UNIT_T'.

DO 4 TIMES.

ls_additional_value-fieldindex = sy-index.

ls_additional_value-fieldvalue = sy-index.

SHIFT ls_additional_value-fieldvalue LEFT DELETING LEADING space.

CONCATENATE text-001

ls_additional_value-fieldvalue

INTO ls_additional_value-fieldvalue

SEPARATED BY space.

APPEND ls_additional_value TO additional_data.

ENDDO.

ENDIF.

But when launching the form in the portal the dropdown list is not filled with any data.

Can someone help me please?

Thanks in advance!

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Did u set the property of drop down list as user entered optional in object palette window. By doing this it will solve ur problem.

Former Member
0 Kudos

Yes, I have binded it.

Former Member
0 Kudos

Please help, I will give reward points.

Former Member
0 Kudos

Hi,

In the form have u used the binding tab to attach the value from the table filed to the field on the layout.

Regards,

sasi

can you send me the form to my id to check. sasidhar.yalamanchili@gmail.com