cancel
Showing results for 
Search instead for 
Did you mean: 

web service in PDF not working for dropdownlist and checkbox

Former Member
0 Kudos

Dear All,

I created a PDF form and generated it by SFP transaction (not WD for business process reason).

The PDF works well

I created a web service, adapt the service to put correct data connection ...

I added a button in my form to allow to export all my form fields into SAP.

The connection works well.

I bound a dropdownlist in a import field of the Web service and a textfield and a checkbox.

To check if SAP catches my data, I insert them into a table (in the code of my FM).

Only the textfield is properly sent to SAP.

Could you please help me for the other field ? May be I don't bind it correctly.

Thanks a lot.

véronique

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

Dear Robert,

As explained in my previous message, the WS works but not for dropdownlist and table. It works for textfield, I received the value in SAP but only for this type of element.

Thanks

Véronique

OttoGold
Active Contributor
0 Kudos

Maybe this can help:

Retrieve table data from WebService

/people/rudy.clement2/blog/2010/03/10/how-to-use-the-postexecute-event-in-sap-interactive-forms-to-retrieve-a-table-from-a-webservice

By the way... have you though about helping others to earn the right to keep asking? 43/ 0;))

Regards Otto

Former Member
0 Kudos

Just to help other consultant : it was a problem of data declaration in the web service.

Former Member
0 Kudos

I haven't find a soluton for my problem. I find a lot of message but for WD on the subject.

Do you think it is possible that my web service is not well declared regarding the import/export parameters ? May be problem of type fields ?

In my function module, I declared fields as dictionnary element for dropdownlist, do you know if I have to declare it as string or something else ?

Thanks a lot

Véronique

Former Member
0 Kudos

are you sure the WS is working - have you gotten the web service to work from a different place - like an ABAP program or web dynpro?

after you're 100% sure the WS is working, it's an easy taks to create your new data connection, input th WSDL path and find your web service.

Double click to choose it and you will see all your import and export parameters + a Submit button.

You should be able to simply drag/drop the top nodes of each (import node and export node) then your button onto your form.

Former Member
0 Kudos

The drag and drop is the same so the binding is not so bad finally.

More in details to explain :

My dropdownlist is binded to SAP data table with 2 fields.

For example the material type in SD module : I have the description and the code. For the moment I binded my DDL like this :

TABLE

--- DATA

-

-


TEXT

-

-


MTART

default binding (open/save/submit) : TABLE.DATA[*]

Items : TABLE.DATA[*]

items text : TEXT

items values : TEXT

I want that the user choose from the description and not from the code. And when the user has choosen, i would like to see the description in the DDL value selected.

In the binding import/export bindings(execute): it is the field of my web service GENERAL_DATA-MTART

What is the need :

1/ When I open the form, I would lile to see the description in the DDL, the user choose on this description, the description appears as selected value

2/ When I click on my submit button to send the data through SAP, I would like to catch the code MTART

the first point is working fine but not the second point.

As I said in my previous message, I have a texfield binded (for submit button) on the webservice for which I can catch the data in SAP.

Thanks

kind regards

véronique

OttoGold
Active Contributor
0 Kudos

Hello again,

if you´re not sure about the binding, then you can just drag and drop the field you need from your data source tab onto the form layout. This way the editor will mainatin the binding for you.

regards Otto