cancel
Showing results for 
Search instead for 
Did you mean: 

Custom BAPI not accepting Request Parameters.

Former Member
0 Kudos

Hello all

I i'm using a JCO connector to call a custom ZBAPI to do a material move update. the BAPI has 3 required and 1 optional parameters.. all type string. The response is either an error message or confirm.

I have several BAPI's that I call in my application both standard and custom, all of them work except this one. For some reason it is not accepting the parameters we send it. I had the SAP integrator alter the BAPI to return the values I send it and its getting none of them.

I have Auto Commit Turned on as well.

Any thoughts? I have the source code for the BAPI if that would help

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Doug,

Does the updated RequestXML structure appear in the JCo action config? If not this could be because in v11.5.x the JCo API caches the BAPI Request/Response XML documents. If the ZBAPI definition changes after these documents were loaded in the transaction then the older XML docs will be sent to ERP causing the call to fail. To fix this issue, restart the xMII service...this will clear the JCo API cache and re-configure the JCo actions.

Hope this helps.

Sam

Former Member
0 Kudos

Yes, I'm getting the XML structure for the Request and the Respond. I've restarted, and created a new transaction and hard coded the Request parameters.. still the same. I don't think this is an xMII issue. Whats wierd is that the BAPI works fine when I execute it manually through SAP GUI

0 Kudos

Doug,

Try executing the BAPI using the WAS block and see if that works. You can find the Port Information in SAP GUI, transaction SICF then click Goto -> Port Information

You want to use the HTTP port and not the SAP HTTP port.

Sam

0 Kudos

Doug,

Are you sure that the user has permissions to remotely execute that ZBAPI? One symptom of this is that the ResponseXML comes back but all values are null.

Sam

Former Member
0 Kudos

Neophyte question... how does one check to see if I have permissions? I have permissons to execute all the other BAPI's I have called.

0 Kudos

Doug,

Unfortunatly I cannot answer that question because the Group/Role/User configuration for the ERP system is custom. Sometimes in the BAPI you will attempt to call a func. that requires additional permissions than the standard BAPIs; such as Cost Assignment when releasing a work order. If this is the case the user will have to have access/permissions to the FI/CO module. In order to check and eliminate the permissions issue as a possibility, request SAP_ALL permissions in the dev system and try it again.

Hope this helps.

Sam

Former Member
0 Kudos

Found the problem. The BABI had not been promoted for remote access for the client we were testing with. We could see the request / recieve information from the BAPI, and I could execute it with the SAP GUI (using the same client) But could not send any parameters from the JCO block.

Thanks for all the suggestions.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Doug,

Are you able to execute the BAPI in SAP and getting the required result? (in SE37)

Regards,

Musarrat