on 02-12-2008 5:09 PM
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!
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Yes, I have binded it.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please help, I will give reward points.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
6 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.