cancel
Showing results for 
Search instead for 
Did you mean: 

AgentryException on Transmit Screen

Former Member
0 Kudos

Hello all,

We are developing custom agentry application from scratch, while SAP server sending Errror mesages and we are catching it in Java source and using "throwExceptionToClient" method in SAPCommon jar,- like image below -

Transmit Screen shutsdown itself, and not shows anything about Error Message,

What we are going to expect is, shows us with pop-up if transmit screen not available at that time, or just prints the lines on transmit screen.

Like RFC Logon Error

Anyone can help us ?

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

what will you do.

If you want to show the ErrorMessage from the SAP Backend on the client in a popupscreen u need to give the error text to the object wich you transfer and then check with a rule if the text is there and show it in a message screen.

If you do a tranfer the transmitscreen will open and and will show you the exception text which you throw with the "throw exception to client" while the transfer happens. If it is a login problem use "LoginBlockException". And please check in the TransmitActionStep if the option "hide transmission screen" is checked and if the "hide time out" is set.

Maybe i could help you.

André

Former Member
0 Kudos

André Nehm wrote:

If you do a tranfer the transmitscreen will open and and will show you the exception text which you throw with the "throw exception to client" while the transfer happens. If it is a login problem use "LoginBlockException".

       LoginBlockException such as, "RFC_LOGON_ERROR", is error which we can see on pop-up screen, but any other exception, which you mention "throwExceptionToClient" method, does not throw any thing to client, even transmit screen is open at that time.

Regards

Murat

Former Member
0 Kudos

Hi Murat,

thats right. If you want to send an Message from SAP backend asynchronously to the client you have to use the push mechanism.

André

Former Member
0 Kudos

How looks your implementation from do steplet() function in the steplet?

It should look like this:

public boolean doSteplet() throws AgentryException

{

  try {

        "call stephandler implementation"

        return true;

        }

  catch (Throwable exception) {

       throwExceptionToClient(exception, user);

       return false;

  }

}

André

Former Member
0 Kudos

     There is no method which accept to parametres,like you said, it gives an error,


  catch (Throwable exception) {

       throwExceptionToClient(exception, user);

       return false;

  }

}

Regards,

Murat

Former Member
0 Kudos

Sorry my fault,

i forgot to see in our parent class. Try to raise such exception:

BusinessLogicException e2 = new BusinessLogicException(msg);

  throw e2;

André

0 Kudos

Are you able to login to SAP GUI with the same user - just to make sure the password has not expired? If you are on SP07 and using WPF please check the NOTE 2150573

Thanks,

Chandra

former_member208808
Active Participant
0 Kudos

Hi,

Is this issue occurring only when you do re-transmit after first transmit is done or in first transmit only.

Also can you please let us know about Java backend logs as well (assuming you have set logging to Low -most detail)

Regards,

AK

Former Member
0 Kudos

      Hi AK,

    

      It is actually happened even first transmit, and also re-transmit.   

       These lines from log files, when we are expecting to see Error Message from Transmit Screen.


t##anonymous#Agentry com.vkt.sap.crm Worker Thread###execute::::VMHAGENTRYT3::before BAPI execute: Z_VKT_SMP_TX_DOCONF_CRT |

2015 05 06 11:27:00#+0300#INFO#System.out##anonymous#Agentry com.vkt.sap.crm Worker Thread###execute::::VMHAGENTRYT3::after BAPI execute: Z_VKT_SMP_TX_DOCONF_CRT |

2015 05 06 11:27:00#+0300#INFO#System.out##anonymous#Agentry com.vkt.sap.crm Worker Thread###checkForErrors::1::message ID::E::     Belge bulunamad - ı   |

2015 05 06 11:27:00#+0300#INFO#System.out##anonymous#Agentry com.vkt.sap.crm Worker Thread###checkForErrors::1::message::E:: |

2015 05 06 11:27:00#+0300#INFO#System.out##anonymous#Agentry com.vkt.sap.crm Worker Thread###throwExceptionToClient::com.vkt.sap.crm.component.serviceorder.steplet.ConfirmationMaintainSteplet::throwExceptionToClient::2738::ConfirmationMaintainSteplet -  |

2015 05 06 11:27:00#+0300#INFO#System.out##anonymous#Agentry com.vkt.sap.crm Worker Thread### |

2015 05 06 11:27:00#+0300#INFO#System.out##anonymous#Agentry com.vkt.sap.crm Worker Thread###User - setting inFetch to false |

2015 05 06 11:27:00#+0300#INFO#System.out##anonymous#Agentry com.vkt.sap.crm Worker Thread###Steplet::doSteplet() |

2015 05 06 11:27:00#+0300#INFO#System.out##anonymous#Agentry com.vkt.sap.crm Worker Thread###create::nulled repository::created new repository |

0 Kudos

Did you overwrite the Server and User class. Please check if you have read/write permission to crypto. I am suspecting that if you debug you will observe that the password is not being passed into the java layer.

Thanks

Chandra

Former Member
0 Kudos

Hi Chandra,

Actually we are accesing 'password' into the java layer while debuging. But I do not understand what you mean, if we have r/w permission to crypto, could you explain more, please.

Regards

Murat

0 Kudos

what version of SMP Server and SDK are you using? Are you on SP06 or SP07

Former Member
0 Kudos

We are using SP07.

Regards

Murat