Application Development and Automation 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: 
Read only

calling a BAPI FOR quotation from VB.NET

Former Member
0 Likes
392

Dear experts,

I created a RFC function module say 'ZFM'.This is RFC Enabled.In addition,i applied a BAPI code in this which further

create quotation 'BAPI_QUOTATION_CREATEFROMDATA2'.I am able to create quotation by callng this RFC.This Z function module

formats error messages in format we require to display from user perspective.Thats the reason why we created this Z function module (RFC).

Now issue is that first time it creates quotation from .NET giving quotation number.But next time following error occur.


Details: ErrorCode=RFC_SYS_EXCEPTION. ErrorGroup=RFC_ERROR_SYSTEM_FAILURE. SapErrorMessage=Screen output without connection to user.. AdapterErrorMessage=Error returned by RfcCallReceiveEx while calling RFC: ZFMQUOTATION.., System.Collections.ListDictionaryInternal

I studied online for this error and came to conclusion either some error occur or some popup is opening.I executed the

BAPI in SAP.All things were fine with creating quotations.

But at last i realized that a popup opens .This popup is for printing ie directing the spool to printer.

My question is

a) how to prevent opening this dialog ?.Is there some option in 'BAPI_QUOTATION_CREATEFROMDATA2' where i can stop immediate printing.

Any ideas other than this in this scenario also will be appreciated and rewarded.

Edited by: aditya sharma on Jun 17, 2010 7:20 AM

2 REPLIES 2
Read only

Former Member
0 Likes
324

You can supress the popup by changing the print parameters in that associated Form.

gs_control_parameters-no_dialog = 'X'.

  CALL FUNCTION g_fm_name
    EXPORTING
     control_parameters         = gs_control_parameters

Thanks and Regards

Read only

0 Likes
324

Thanx, we resolved by suppressing an unwanted dialog coming through one userexit.