Quantcast
Viewing all articles
Browse latest Browse all 518

how to print a return structure for BAPI_PO_CREATE1

Hi i am working with creation of Purchase Order using JCO3. I am having difficulty in printing the return structure or the response. Could someone help in understanding what line of java code i have to add to print the response.

 



// Print the Return Message

//JCoStructure returnStructure = createPurchaseOrderFunction.getTableParameterList().getStructure("RETURN");


//
JCoTable table = createPurchaseOrderFunction.getTableParameterList().getTable("Number");


//
System.out.println("Field" + createPurchaseOrderFunction.getExportParameterList().getValue("Number"));

//System.out.println(table.);


//System.out.println("RETURN: \n" + returnStructure.getString("MESSAGE"));

I am not sure how to print and check the result of Purchase Order creation. Please tell me the exact table and structure with java code so that i can understand what wrong i am doin.


Viewing all articles
Browse latest Browse all 518

Trending Articles