cancel
Showing results for 
Search instead for 
Did you mean: 

Sending Dynamic fields to the method in webservice.

Former Member
0 Kudos

HI,

We are trying to consume a webservice provided by BO(busniess Objects). When the user enters details in SAP ( XD01) for example: name,search term,ort01,land1,postal code,this data in the fields are captured and sent to the input of the method as a structure with all the fields.But my problem is if the user don't enter any data in one of the above field even then the data is sent with a NULL value.Our requirement is that when the user don't enter data in any of the field then that field should not be populated in the internal table which we are passing to the method as input.So we have to pass field to the internal table dynamically basing on the user entry to the fields.Can anybody suggest how we can send data dynamically avoiding the fields which are not filled to the method basing on the user entry.We are using USEREXITS for the purpose of consuming the web service.Please respond quickly as this is an urgent requirement.

Thanks and Regards,

Raghuveer.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

did you already try to use PRXCTRLTAB (controller - structure with your Proxy) to get rid of those fields?

Field Control in XML Data Stream (=> Type Group SAI)

Standard Procedure

1 Initial Value

2 xsi:nil="true"

3 Hide

regards,

Carsten