Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

We have a SAP 4.7 system. We are facing an issue while exporting parameters to an RFC. As can be seen in below (highlighted in blue) function call we are passing a structure in exporting parameter 'IV_EQUO_HEADER'. But when this structure goes in .NET interface the values of recently added 6 fields in this structure are becoming 'BLANK'. Surprisingly when we debug the process we see values in this structure but when this structure is received in .NET interface few fields are losing their values/or they are facing some conversion problem that's why becoming blank. The main point which has to be analyzed is - why the values which are there in SAP system(char - 3) are not getting recognized at .Net's system whereas other values in the same structure are? I have also heard that RFC should be re-generated in the .NET system since there are recent additions in the receiving structure. Not sure about the root cause.

Please give your expert suggestions on this issue. Thanks!

* == Call RFC FM at the web application == *
 CALL FUNCTION 'Z_SD_EQUO_SEND_PROC'
 DESTINATION 'ZSD_EQUOTATION'
   EXPORTING
     iv_equo_header        = wa_equo_send_hd
     iv_so_doc_flag        = wf_rfc_so_flag
   IMPORTING
     ev_result             = ev_result
     ev_message            = ev_message
   TABLES
     it_equo_item          = tb_equo_send_it
     it_equo_item_price    = tb_equo_send_it_price
     it_equo_item_stdtxt   = tb_equo_send_stdtxt
     it_equo_cust_addr     = tb_equo_send_custadr
   EXCEPTIONS
    communication_failure = 1  " MESSAGE wa_equo_send_hd_new-err_message
    system_failure        = 2. " MESSAGE wa_equo_send_hd_new-err_message.
share|improve this question
What do you mean by sending the data from SAP to a .NET application? I assume you are calling this RFC from within your .NET application, aren't you? – Jagger Sep 29 '12 at 22:14
Actually we are sending data from SAP to .Net web form. Like we create or change a quotation in VA21/VA22 t-code of SAP. Then there are some fields in quotation additional data tab b (header level) which are sent to web application (.net) through the RFC call mentioned by me in my query. Further .Net web application do some processing on that data. The main thing all the fields in this structure are getting passed except 6 fields that i have added recently! Not able to find the exact root cause for this issue. Any help will be appreciated. Thanks! – user1708850 Sep 30 '12 at 12:21
In this case I think you should rather provide the body of this function module instead of the interface. If this is a simple HTML form (so in fact it is independent from the technology, it could be ASP.NET, JSP, PHP, etc.) then I should be able to reproduce it on my side and see whether I have the same problem. – Jagger Sep 30 '12 at 15:40
I've build MVC.NET front ends for SAP, but I don't recognize that code. Are you using the .NET Connector? – nunzabar Oct 1 '12 at 13:21
Hello all thanks for your helpful comments..I have got the solution..Actually the structure that we were passing from sap was having 100 fields whereas the receiving structure at .Net's end was having 90 fields...so they have not used all the fields of SAP..but in SAP we added our new z-fields at end of the structure that's why they were not getting identified at .Net's end. Once we displaced our new fields to few up positions. The problem was resolved. – user1708850 Oct 8 '12 at 21:09

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.