<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem when BAPI with this RETURN MESSAGE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-bapi-with-this-return-message/m-p/5782249#M1308476</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks for response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use an external java program with JCo to call this BAPI, following is the part of my program.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IFunctionTemplate functionTemplate =
		          mRepository.getFunctionTemplate("BAPI_MATPHYSINV_COUNT");
		      
		      JCO.Function function = new JCO.Function(functionTemplate);
		      JCO.ParameterList input = function.getImportParameterList(); // Fill in input parameters 
		      
			  input.setValue("01000011962",   "PHYSINVENTORY" );
			  input.setValue("2009"	  , "FISCALYEAR" );
			  
			 
System.out.println(input);			  
			  JCO.Table input_table = function.getTableParameterList().getTable("ITEMS");
		      input_table.appendRow();
			  input_table.setRow(0);
			  input_table.setValue("001", "ITEM");
			  input_table.setValue("100-200", "MATERIAL");
			  input_table.setValue(20, "ENTRY_QNT");
			  input_table.setValue("pc" "ENTRY_UOM");
mConnection.execute(function);
		
		      //initialize table object
			  JCO.Table return_table = function.getTableParameterList().getTable("RETURN");
System.out.println(return_table);	
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe there is some type can't be resolved? But I tried for a long time and can't find any problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really need some advises, Thanks for any response.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jun 2009 12:14:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-17T12:14:14Z</dc:date>
    <item>
      <title>Problem when BAPI with this RETURN MESSAGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-bapi-with-this-return-message/m-p/5782246#M1308473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    I want to use this BAPI "BAPI_MATPHYSINV_COUNT" to enter the count for a specific physical inventory document, after I assigned required data. The RETURN table shows following messgaes:&lt;/P&gt;&lt;P&gt;TYPE    :A&lt;/P&gt;&lt;P&gt;ID         :M7&lt;/P&gt;&lt;P&gt;Number:695&lt;/P&gt;&lt;P&gt;Message:Required function MB_PHYSICAL_INVENTORY not processed &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   And the count haven't entered the physical inventory document. Could anyone give some advises to solve this problem? Thanks a lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 11:44:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-bapi-with-this-return-message/m-p/5782246#M1308473</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-17T11:44:48Z</dc:date>
    </item>
    <item>
      <title>Re: Problem when BAPI with this RETURN MESSAGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-bapi-with-this-return-message/m-p/5782247#M1308474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;TYPE A means the program is being Aborted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What input are you giving to PHYSINVENTORY in the IMPORT of BAPI?&lt;/P&gt;&lt;P&gt;Make it sure you provide some data to it....its a mandatory one...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 11:55:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-bapi-with-this-return-message/m-p/5782247#M1308474</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-17T11:55:22Z</dc:date>
    </item>
    <item>
      <title>Re: Problem when BAPI with this RETURN MESSAGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-bapi-with-this-return-message/m-p/5782248#M1308475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This may be because some of error condition is occuring. Try to give all relevant data to BAPI. Manually do the transaction and then give approate parameters / tables data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Most of the time, from error message it is difficult to find out exact data problem in BAPI. Try to debug and find out what is missing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anil&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 12:02:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-bapi-with-this-return-message/m-p/5782248#M1308475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-17T12:02:05Z</dc:date>
    </item>
    <item>
      <title>Re: Problem when BAPI with this RETURN MESSAGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-bapi-with-this-return-message/m-p/5782249#M1308476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks for response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I use an external java program with JCo to call this BAPI, following is the part of my program.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IFunctionTemplate functionTemplate =
		          mRepository.getFunctionTemplate("BAPI_MATPHYSINV_COUNT");
		      
		      JCO.Function function = new JCO.Function(functionTemplate);
		      JCO.ParameterList input = function.getImportParameterList(); // Fill in input parameters 
		      
			  input.setValue("01000011962",   "PHYSINVENTORY" );
			  input.setValue("2009"	  , "FISCALYEAR" );
			  
			 
System.out.println(input);			  
			  JCO.Table input_table = function.getTableParameterList().getTable("ITEMS");
		      input_table.appendRow();
			  input_table.setRow(0);
			  input_table.setValue("001", "ITEM");
			  input_table.setValue("100-200", "MATERIAL");
			  input_table.setValue(20, "ENTRY_QNT");
			  input_table.setValue("pc" "ENTRY_UOM");
mConnection.execute(function);
		
		      //initialize table object
			  JCO.Table return_table = function.getTableParameterList().getTable("RETURN");
System.out.println(return_table);	
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe there is some type can't be resolved? But I tried for a long time and can't find any problem. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really need some advises, Thanks for any response.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 12:14:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-bapi-with-this-return-message/m-p/5782249#M1308476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-17T12:14:14Z</dc:date>
    </item>
    <item>
      <title>Re: Problem when BAPI with this RETURN MESSAGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-bapi-with-this-return-message/m-p/5782250#M1308477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Type A means it is aborted.&lt;/P&gt;&lt;P&gt;See the import parameters your are passing are correct.&lt;/P&gt;&lt;P&gt;Also try to execute this bapi using some test data existsing so that you will get an idea what is to be passed under each parameter,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Deepa Kulkarni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 12:15:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-bapi-with-this-return-message/m-p/5782250#M1308477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-17T12:15:30Z</dc:date>
    </item>
    <item>
      <title>Re: Problem when BAPI with this RETURN MESSAGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-bapi-with-this-return-message/m-p/5782251#M1308478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, there's a mistake, following is the correct version. I uses the real parameters to represnts what I hope to entered. Thanks for any help.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IFunctionTemplate functionTemplate =
		          mRepository.getFunctionTemplate("BAPI_MATPHYSINV_COUNT");
		      
		      JCO.Function function = new JCO.Function(functionTemplate);
		      JCO.ParameterList input = function.getImportParameterList(); // Fill in input parameters 
		      
			  input.setValue("01000011962",   "PHYSINVENTORY" );
			  input.setValue("2009"	  , "FISCALYEAR" );
			  
			 
System.out.println(input);			  
			  JCO.Table input_table = function.getTableParameterList().getTable("ITEMS");
		      input_table.appendRow();
			  input_table.setRow(0);
			  input_table.setValue("001", "ITEM");
			  input_table.setValue("100-200", "MATERIAL");
			  input_table.setValue("20", "ENTRY_QNT");
			  input_table.setValue("pc" "ENTRY_UOM");
mConnection.execute(function);
		
		      //initialize table object
			  JCO.Table return_table = function.getTableParameterList().getTable("RETURN");
System.out.println(return_table);
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 12:17:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-when-bapi-with-this-return-message/m-p/5782251#M1308478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-17T12:17:21Z</dc:date>
    </item>
  </channel>
</rss>

