cancel
Showing results for 
Search instead for 
Did you mean: 

Only one value shown in dropdown list of ISR form using pure ABAP

Former Member
0 Kudos

Hi all,

We are trying to create a Adobe form using ISR library controls. We want to populate a dropdown list with all the values from the table T001 dynamically. We have implemented the BAdi QISR1 & populated the ADDITIONAL_DATA. The BAdi is executing & populating the value correctly.

In the we have created a control using the ISR Dropdown & mapped to the Context BUKRS from the interface created. When we execute the form, only the first value is getting filled.

Can anyone help us in this ??? Its very urgent....

Thanx,

Sivagami.R

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi

debug the function module using remote debuging method while executing the form, so that we can see exactly what happening while loading data.

thanks

Gopal

Former Member
0 Kudos

Hi,

Stil I am not able to solve the problem. I checked with some std. forms of similar kind. In binding, it is mentioned as

$record.sap-vhlist.WERKS_NEW\.DATA\.FIELD.item[*]

which is not coming in our case. it is simply taken as

$record.BUKRS.DATA.FIELD[*]

<b>what is sap-vhlist? Wht else i need to check on this issue?</b>

Plz guide me...

Thanx,

Sivagami.R

Former Member
0 Kudos

Hi,

I am just giving the solution what I have done in my project. Hope this will help:

DATA: BEGIN OF it_ccode OCCURS 0,

bukrs TYPE t001-bukrs,

butxt TYPE t001-butxt,

END OF it_ccode.

DATA: wa_ccode like line of it_ccode.

Select Company Code (bukrs) and Text (butxt) from table T001.

SELECT bukrs butxt

from t001

into table it_ccode.

LOOP AT it_t001.

ADD 1 TO lv_index.

ls_additional_data-fieldindex = lv_index.

ls_additional_data-fieldname = 'FIELDNAME_KEY'.

ls_additional_data-fieldvalue = it_t001-bukrs.

APPEND ls_additional_data TO additional_data.

ls_additional_data-fieldname = 'FIELDNAME_LABEL'.

CONCATENATE it_t001-bukrs '-' it_t001-butxt

INTO ls_additional_data-fieldvalue.

APPEND ls_additional_data TO additional_data.

ENDLOOP.

And the form my fields binding is:

$record.FIELDNAME.DATA[*].FIELD

Try this out. Hope this will help.

Regards,

Amit

Former Member
0 Kudos

Hi,

I have tried the same code of urs. But it is showing only one value in the dropdown. Please let me know if i am missing any thing else....

Thanx,

Sivagami.R

Former Member
0 Kudos

Hi,

The problem is solved by regenerating the same form after implementing the BAdi.

Thanx,

Sivagami

Former Member
0 Kudos

Hi,

Check this .

Hope this will help you, please reward point if helpful :).

Regards,

Amit