<?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: Please Help!! Error in document : BKPFF $ DEVCLNT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-error-in-document-bkpff-devclnt/m-p/12421836#M1997281</link>
    <description>&lt;P&gt;  &lt;SPAN class="mention-scrubbed"&gt;frdric.girod&lt;/SPAN&gt; this is pretty serious. You can tell it because after the "Please help", that guy used TWO exclamation signs.&lt;/P&gt;&lt;P&gt;So I'll drop all my workload, tell my boss I'll not be able to work until this matter is solved and will refuse to be paid until the question is marked as answered.&lt;/P&gt;&lt;P&gt;You do not want to know what I'd do if there were three marks.&lt;/P&gt;</description>
    <pubDate>Wed, 01 Sep 2021 13:08:05 GMT</pubDate>
    <dc:creator>VXLozano</dc:creator>
    <dc:date>2021-09-01T13:08:05Z</dc:date>
    <item>
      <title>Please Help!! Error in document : BKPFF $ DEVCLNT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-error-in-document-bkpff-devclnt/m-p/12421832#M1997277</link>
      <description>&lt;P&gt;JCoTable tbl_CURRENCYAMOUNT = tables.getTable("CURRENCYAMOUNT"); tbl_CURRENCYAMOUNT.appendRow(); tbl_CURRENCYAMOUNT.setRow(1); tbl_CURRENCYAMOUNT.setValue("ITEMNO_ACC","0000000001"); tbl_CURRENCYAMOUNT.setValue("CURRENCY","MMK"); tbl_CURRENCYAMOUNT.setValue("AMT_DOCCUR","100"); tbl_CURRENCYAMOUNT.appendRow(); tbl_CURRENCYAMOUNT.setRow(2); tbl_CURRENCYAMOUNT.setValue("ITEMNO_ACC","0000000002"); tbl_CURRENCYAMOUNT.setValue("CURRENCY","MMK"); tbl_CURRENCYAMOUNT.setValue("AMT_DOCCUR","-100");&lt;BR /&gt;&lt;BR /&gt;Error as below &lt;BR /&gt;|E|RW |609|Error in document: BKPFF $ DEVCLNT779 | |000000|BKPFF |$ |DEVCLNT779 | | |00000000| |DEVCLNT779| |E|RW |008|FI/CO interface: Inconsistent currency information &lt;/P&gt;</description>
      <pubDate>Tue, 31 Aug 2021 18:12:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-error-in-document-bkpff-devclnt/m-p/12421832#M1997277</guid>
      <dc:creator>myominkhaing</dc:creator>
      <dc:date>2021-08-31T18:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Please Help!! Error in document : BKPFF $ DEVCLNT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-error-in-document-bkpff-devclnt/m-p/12421833#M1997278</link>
      <description>&lt;P&gt;This is not serious&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;In your title, what is the subject ?&lt;/LI&gt;&lt;LI&gt;In your title "Please Help", you are in a forum, this is the goal of this forum&lt;/LI&gt;&lt;LI&gt;In the text, a description, something else than your log could be nice&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 01 Sep 2021 05:36:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-error-in-document-bkpff-devclnt/m-p/12421833#M1997278</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2021-09-01T05:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Please Help!! Error in document : BKPFF $ DEVCLNT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-error-in-document-bkpff-devclnt/m-p/12421834#M1997279</link>
      <description>&lt;P&gt;Hello &lt;SPAN class="mention-scrubbed"&gt;myominkhaing&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Your question is very concise. You are not showing all of your code and not explaining what you are trying to do. I can only assume, you are trying to post a document with the accounting interface.&lt;/P&gt;&lt;P&gt;Still you get two error messages: RW609 and RW608. Consult their long texts available in the SE91 transaction. RW609 just says there is an error during a document posting posting. RW608 says:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Short Text &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;FI/CO interface: Inconsistent currency information &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;Diagnosis &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The FI/CO document does not contain any currency information for the following item: &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;• Reference document "" &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;• Reference organization "" &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;• Item number "" &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;System Response &lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;The system expects at least one currency item for each FI/CO document line item.&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;You may consult SAP support notes on RW008 error or double check the data with which you call the accounting interface.&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Dominik Tylczynski&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 05:59:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-error-in-document-bkpff-devclnt/m-p/12421834#M1997279</guid>
      <dc:creator>Dominik_Tylczynski</dc:creator>
      <dc:date>2021-09-01T05:59:51Z</dc:date>
    </item>
    <item>
      <title>Re: Please Help!! Error in document : BKPFF $ DEVCLNT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-error-in-document-bkpff-devclnt/m-p/12421835#M1997280</link>
      <description>&lt;P&gt;These are functional errors, so you should change the tag from ABAP Development to something related to Finance...&lt;/P&gt;&lt;P&gt;You can also search the Web:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;RW609 site:sap.com&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;or&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;RW008 site:sap.com&lt;BR /&gt;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Sep 2021 06:16:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-error-in-document-bkpff-devclnt/m-p/12421835#M1997280</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2021-09-01T06:16:23Z</dc:date>
    </item>
    <item>
      <title>Re: Please Help!! Error in document : BKPFF $ DEVCLNT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-error-in-document-bkpff-devclnt/m-p/12421836#M1997281</link>
      <description>&lt;P&gt;  &lt;SPAN class="mention-scrubbed"&gt;frdric.girod&lt;/SPAN&gt; this is pretty serious. You can tell it because after the "Please help", that guy used TWO exclamation signs.&lt;/P&gt;&lt;P&gt;So I'll drop all my workload, tell my boss I'll not be able to work until this matter is solved and will refuse to be paid until the question is marked as answered.&lt;/P&gt;&lt;P&gt;You do not want to know what I'd do if there were three marks.&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 13:08:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-error-in-document-bkpff-devclnt/m-p/12421836#M1997281</guid>
      <dc:creator>VXLozano</dc:creator>
      <dc:date>2021-09-01T13:08:05Z</dc:date>
    </item>
    <item>
      <title>Re: Please Help!! Error in document : BKPFF $ DEVCLNT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-error-in-document-bkpff-devclnt/m-p/12421837#M1997282</link>
      <description>&lt;P&gt;Thanks for your replied. &lt;BR /&gt;Now it's fixed and I changed Bankor cash Account ITEMNO_ACC "01" and Customer's ITEMNO_ACC "02"&lt;/P&gt;&lt;P&gt;Let me share the code as below:&lt;BR /&gt;package MGS_DMS;
import com.sap.conn.jco.AbapException;
import com.sap.conn.jco.JCoContext;
import com.sap.conn.jco.JCoDestination;
import com.sap.conn.jco.JCoException;
import com.sap.conn.jco.JCoFunction;
import com.sap.conn.jco.JCoParameterList;
import com.sap.conn.jco.JCoStructure;
import com.sap.conn.jco.JCoTable;
import com.sap.conn.jco.JCoDestinationManager;
import java.util.Date;
public class JCOPayment_WOSOS {
static SAPCON con=new SAPCON();
public static void main(String[] args) throws JCoException{
// TODO Auto-generated method stub
con.createProperties();
BAPI_Invoice_CREATEFROMDAT2();
}
public static void BAPI_Invoice_CREATEFROMDAT2() throws JCoException {
JCoDestination destination = JCoDestinationManager.getDestination("mySAPSystem");
JCoFunction function = destination.getRepository().getFunction("BAPI_ACC_DOCUMENT_POST");

JCoContext.begin(destination);
if (function == null) {
throw new RuntimeException("Function not found in SAP.");
} else {
JCoParameterList importParameterList = function.getImportParameterList();
System.out.println(importParameterList);
JCoStructure input_header = importParameterList.getStructure("DOCUMENTHEADER");
input_header.setValue("USERNAME", "APP");
input_header.setValue("COMP_CODE", "1000");
input_header.setValue("DOC_DATE", new Date());
input_header.setValue("PSTNG_DATE", new Date());
input_header.setValue("TRANS_DATE", new Date());
//input_header.setValue("FISC_YEAR", "2021");
//input_header.setValue("FIS_PERIOD", "8");
input_header.setValue("DOC_TYPE", "DZ");
input_header.setValue("REF_DOC_NO", "ACE TEST");
//input_header.setValue("AC_DOC_NO", "1400000018");

JCoParameterList tables = function.getTableParameterList();
System.out.println(tables);

JCoTable tbl_ACCOUNTGL = tables.getTable("ACCOUNTGL");
tbl_ACCOUNTGL.appendRow();
tbl_ACCOUNTGL.setRow(1);
tbl_ACCOUNTGL.setValue("ITEMNO_ACC","0000000001");//***1 is for Bank Account 
tbl_ACCOUNTGL.setValue("GL_ACCOUNT","0010000115");//Bank Account 
//0100000194
//tbl_ACCOUNTGL.setValue("AC_DOC_NO","0010000115");

JCoTable tbl_AR = tables.getTable("ACCOUNTRECEIVABLE");
tbl_AR.appendRow();
tbl_AR.setRow(1);
tbl_AR.setValue("ITEMNO_ACC","0000000002"); //***2 is for Customer Account
tbl_AR.setValue("CUSTOMER","0001000206");

JCoTable tbl_CURRENCYAMOUNT = tables.getTable("CURRENCYAMOUNT");
tbl_CURRENCYAMOUNT.appendRow();
tbl_CURRENCYAMOUNT.setRow(1);
tbl_CURRENCYAMOUNT.setValue("ITEMNO_ACC","0000000001");
tbl_CURRENCYAMOUNT.setValue("CURRENCY","MMK");
tbl_CURRENCYAMOUNT.setValue("AMT_DOCCUR","100.0000");
//tbl_CURRENCYAMOUNT.setValue("AMT_BASE","100.0000");
tbl_CURRENCYAMOUNT.appendRow();
tbl_CURRENCYAMOUNT.setRow(2);
tbl_CURRENCYAMOUNT.setValue("ITEMNO_ACC","0000000002");
tbl_CURRENCYAMOUNT.setValue("CURRENCY","MMK");
tbl_CURRENCYAMOUNT.setValue("AMT_DOCCUR","-100");
//tbl_CURRENCYAMOUNT.setValue("AMT_BASE","100.0000");
try {
function.execute(destination);           
JCoParameterList exportParameterList = function.getExportParameterList();
System.out.println(exportParameterList);
String value = exportParameterList.getValue("OBJ_KEY").toString();
System.out.println("Payment Slip:"+ value);
//Check Point 
JCoParameterList tables1 = function.getTableParameterList();
System.out.println(tables1);

JCoTable table_R = tables1.getTable("RETURN");
System.out.println(table_R);
System.out.println(table_R.getString("MESSAGE"));
System.out.println(table_R.getString("TYPE"));
con.TRANSACTION_COMIT();

//BAPI_DELIVERYORDER_PIG_CREATEFROMDAT2(DELIVERYID);
} catch (AbapException e) {
System.out.println(e.toString());
return;
}
}

}
}&lt;/P&gt;</description>
      <pubDate>Wed, 01 Sep 2021 15:18:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/please-help-error-in-document-bkpff-devclnt/m-p/12421837#M1997282</guid>
      <dc:creator>myominkhaing</dc:creator>
      <dc:date>2021-09-01T15:18:05Z</dc:date>
    </item>
  </channel>
</rss>

