Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BDC via web service

Former Member
0 Kudos

I have created a SAP RFC function module that contains a BDC that is used to update an order using VA02.  When running the RFC within SAP everything is working fine, but once I tried to make the connection to our asp.net application it would give me "SOAP-ENV" is undefined.  I found out that this was occurring because of the MESSAGES being passed would blow up the connection.  After fixing that problem and passing the errors back within a structure things were fine until I ran the .net application again and it got the bdc transaction.  When it called "CALL TRANSACTION VA02 using BDCDATA" it would blow up within that function and kill the program and pass back to .net "SOAP-ENV" is undefined.  Has anyone ever ran into this same issue?


The way the RFC was consumed within my application was by going to "Service References > Add Web References"  I've built many other RFC's without any issues of passing data back and forth between .net and SAP but this is the firs time I've tried to use a BDC within a FM.

Thanks,

Curtis

3 REPLIES 3

arindam_m
Active Contributor
0 Kudos

Hi,

I think a better way might be to Use a BAPI inside your RFC FM instead of the BDC. BAPI has a better design for the message passing and handling of such situation when the process stops due to raised messages.

Cheers,

Arindam

venkateswaran_k
Active Contributor
0 Kudos

Hi Curtis,

There is already a BAPI (RFC) is available to make changes in the Sales Order.   (VA02).

BAPI_SALESORDER_CHANGE

Instead of encapsulating a BDC in your own RFC function, call the BAPI itself from your .net application.

Regards,

Venkat

Former Member
0 Kudos

Hi ,

Can you Share your Message Capturing Code and is it assign with any Export Parameter with RFC FM,

also i hope your FM is Remote-Enable Module Radio button is Selected .

Regard's

Smruti