Skip to Content
0
Former Member
Jul 22, 2005 at 09:25 AM

starting transaction in SAPGUI via JCo

44 Views

Hello,

I'm trying to start SAPGUI for Windows using parameter

setSapGui(1), but the GUI Window does not show. When I'm using setAbapDebug(true)than the GUI window starts in debug mode.

What can be wrong? Does anyone have any ideas?

I'm trying to start transaction se11 using BAPI RFC_CALL_TRANSACTION.

Code looks like this:

// Obtain parameter list for function 
      JCO.ParameterList input = function.getImportParameterList(); 
	
	  // Obtain table for function
	  JCO.Table BDCtable = function.getTableParameterList().getTable("BDCTABLE");	
      //BDCtable.setRow(0);
      
      BDCtable.appendRows(4);
      BDCtable.setValue("SAPMSRD0", "PROGRAM");
      BDCtable.setValue("0102", "DYNPRO");
      BDCtable.setValue("X", "DYNBEGIN");
      BDCtable.nextRow();
      BDCtable.setValue("BDC_CURSOR", "FNAM");
      BDCtable.setValue("RSRD1-TBMA_VAL", "FVAL");
      BDCtable.nextRow();
      BDCtable.setValue("BDC_OKCODE", "FNAM");
      BDCtable.setValue("=SHOW", "FVAL");
      BDCtable.nextRow();
      BDCtable.setValue("RSRD1-TBMA", "FNAM");
      BDCtable.setValue("X", "FVAL");
      BDCtable.nextRow();
      BDCtable.setValue("RSRD1-TBMA_VAL", "FNAM");
      BDCtable.setValue("BUKRS", "FVAL");
      BDCtable.nextRow();
      BDCtable.setValue("SAPMSRD0", "PROGRAM");
      BDCtable.setValue("0102", "DYNPRO");
      BDCtable.setValue("X", "DYNBEGIN");
      
      // Pass function parameters 
      input.setValue(transactionName, "TRANCODE"); 
      
      //input.setValue(daneKlienta, "DANE_KLIENTA"); 
      
      conn.execute(function, conn.createTID());

Regards Artur

Message was edited by: Artur Welke