cancel
Showing results for 
Search instead for 
Did you mean: 

Dropdown values from ECC

Former Member
0 Kudos

Hi,

We have a requirement where we got to display the Employee Number(Employee Name) for the Dropdown of Employee Number in ISR Based forms.

Well, I have chosen the QISR1 Badi Implementation to do this. I have used the SCENARIO_PROCESS_USER_COMMAND method for this purpose. I have used my BUSINESS LOGIC to get the Employee List and populated the ADDITIONAL_DATA Internal Table for the appropiate CHARACTERISTIC.

And in the ISR Customization(QISRSCENARIO txn) also, I have defined, the characteristics Attribute as ...

Placeholder for Key Values : PERNR_KEY

Placeholder for Default Values : PERNR_LABEL

And in the Adobe form, I have defined a DROPDOWN LIST control and binding with my appropiate CHARACTERISTIC.

When I have launched this Form, I still cant see the Dropdown box in my Form in EP.

Is there anything which I am missing.

Regards,

<i><b>Raja Sekhar</b></i>

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

I guess you have forgotten to fill additional_data in de BADI implemtation. You should have to code there, in the method SCENARIO_SET_ADDITIONAL_VALUES, something like this:

loop at ta_pa0001 into wa_pa0001.

lo_tabix = sy-tabix.

lo_fielddata-fieldindex = lo_tabix.

lo_fielddata-fieldname = 'PERNR_KEY'.

lo_fielddata-fieldvalue = wa_pa0001-pernr.

append lo_fielddata to additional_data.

lo_fielddata-fieldindex = lo_tabix.

lo_fielddata-fieldname = 'PERNR_LABEL'.

lo_fielddata-fieldvalue = wa_pa0001-emnam.

append lo_fielddata to additional_data.

endloop.

Mind the fieldindex, to be set in ascending order, or in this case by tabix of the looped internal table.

Former Member
0 Kudos

Yes Hans,

I have done this and now my DROPDOWN Lists are working.

Thanks for the reply.

Regards,

<i><b>Raja Sekhar</b></i>

Answers (1)

Answers (1)

Former Member
0 Kudos

Dear Raja,

could you please show some example code for SCENARIO_PROCESS_USER_COMMAND how to react on DropDown buttons?

The Adobe form already contains the dropdown list control.

Thanks in advance for your input.

kind regards,

René van Eijk