cancel
Showing results for 
Search instead for 
Did you mean: 

How to get a dropdownlist into inter active form

gerd_hotz
Contributor
0 Kudos

Hello,

I have alrady generated an interactive form and an interface in order to generate

an activity from this offline form, and its working

But now I want that the filed 'category' should already be filled as dropdownlist.

How can I pre-fill this field / table 'category' ?

I generate the inter active form with FUNCTION 'FP_FUNCTION_MODULE_NAME',

so I do not use web-dynpro.

I think I must pre-fill this field in the interface, but how ? while initialzation ?

Has anybody made something like this ?

Thanks for response.

G

Accepted Solutions (0)

Answers (2)

Answers (2)

gerd_hotz
Contributor
0 Kudos

Hello,

I use the followign code

in order to export the filled table category to create the function modul of the form:

CALL FUNCTION fm_name

EXPORTING

/1bcdwb/docparams = fp_docparams

langtext = langtext

category_tab = category_tab

IMPORTING

/1bcdwb/formoutput = fp_formoutput

EXCEPTIONS

usage_error = 1

system_error = 2

internal_error = 3

OTHERS = 4.

But when I open the form I still do not get a dropdownlist for the field category.

Must I use a special field in the form in order to show this table as dropdownlist ?

Thanks G

OttoGold
Active Contributor
0 Kudos

how exactly do you want the system to "create" the dropdown in the form for you? if you change the interface and then assign the table through the print program code, you only send the data into the form. you must obviously create a field and maintain the field binding. search for keywords like "dynamic binding drop down field".

Regards Otto

p.s.: this question is VERY basic, you could use some training...

gerd_hotz
Contributor
0 Kudos

I've already filled this internal table with values and I've already a field-binding but while

calling

CALL FUNCTION fm_name

EXPORTING

/1bcdwb/docparams = fp_docparams

langtext = langtext

category_tab = category_tab

I only get one value into the form for field category and no table

this is the problem.

If this problem is so VERY basic you can provide a solution

OttoGold
Active Contributor
0 Kudos

Ok, let´s doublecheck everything:

- what is the type of the category_tab?

- if you would place the breakpoint here, you´re 110% sure you get more than 1 value?

- did you try using the form trace? what was the result?

- what field and what binding do you use?

Otto

gerd_hotz
Contributor
0 Kudos

Hi,

the category_tab is type CRMC_ACT_CAT_T.

I fill this internal tabel with values and while

transfering it with

CALL FUNCTION fm_name

EXPORTING

/1bcdwb/docparams = fp_docparams

langtext = langtext

category_tab = category_tab

IMPORTING

/1bcdwb/formoutput = fp_formoutput

EXCEPTIONS

usage_error = 1

system_error = 2

internal_error = 3

OTHERS = 4.

In form trace I only can see the last value-set in my from.

In the form I use a dropdown-field, so I think there shouldn't be a problem.

Is it possible to fill the from with this internal table ?

BR

OttoGold
Active Contributor
0 Kudos

If you don´t see all the values in the form trace XML data file, then the problem is in ABAP or interface. In the file you should be able to see ALL the data you send from the backend. If you cannot see it, you don´t pass it correctly, you didn´t load it correctly, or there is a problem with the interface.

Otto

gerd_hotz
Contributor
0 Kudos

Problem is solved.

I've made the dropdownlist manually in the form itself.

So I don't need to push the category table to the form,

because this didn't work, however.

Thanks for help.

OttoGold
Active Contributor
0 Kudos

How to deal with SAP-standard Adobe forms: /people/otto.gold/blog/2010/05/06/how-to-deal-with-sap-standard-adobe-forms

Yes, in the inititalization of the interface of you could change/ repair the printing program.

Otto