on 02-13-2013 12:59 AM
BAPI_PR_GETDETAIL
function.getImportParameterList().setValue(
"NUMBER", "2252407");
JCoStructure exportStructure = function.getExportParameterList().getStructure(
"PRHEADER");
for
(int i = 0; i < exportStructure.getMetaData().getFieldCount(); i++)
{
System.
out.println(exportStructure.getMetaData().getName(i) + ":\t" + exportStructure.getString(i));
}
3.TO READ TABLE PARAMETER, ITEM
JCoTable itemData = function.getTableParameterList().getTable(
"PRITEM");
if(itemData == null)
throw new RuntimeException("RETURN table not found in PRITEM...");
System.
out.println("itemData.getNumRows():"+itemData.getNumRows());
for (int i = 0; i < itemData.getNumRows(); i++)
{
itemData.setRow(i);
System.
out.println("PR Number:"+itemData.getInt("PREQ_ITEM")+"-PR status:"+itemData.getString("PROC_STAT")+"-PR creator:"+itemData.getString("CREATED_BY")+"-PR status:"+itemData.getString("PROC_STAT")+"-MATL Group:"+itemData.getString("MATL_GROUP"));
}
COULD SOMEONE PLEASE SUGGEST THE REASON FOR THIS?..
Thanks in advance...
Agasthi...
Agasthi
did you check the PR number again? Does it have trailing zeroes in the backend..
Sandip
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
83 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.