on 11-20-2008 1:00 PM
Dear All,
We are in need of knowing the following info for the Business Partner, i guess by providing the Business Partner ID
"Business Partner Name", "Partner Type", "Name of Creator" .
Please let us know
what is BAPI ?
For verifying the what is the tCode for same from SAP GUI?
It's would great if you could help us by providing the JCo Sample code to achive this.
We all tried it from the following link
http://abap.wikiprog.com/wiki/Category:BAPI_BusinessPartner
Please kindly help us to resolve the issue.
regds
Kicha
Hello Kicha,
If you are using JCo, you can use (call) any RFC enabled function modules and not limited to BAPI (Business Application Programming Interface - from SAP Glossary).
BUPA_NUMBERS_GET - takes either partner id or partner guid. This return name, address, created by . This is the only such module that returns all you needed. The contents are available in table BUT000
Check with your SAP ABAP developer to get the input / output parameter details since this is not a BAPI, but an RFC.
Easwar Ram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Easwar Ram
Thanks for your kind reply, it really helped me.
Please let me know if there is any JCo sample code to access the Table and it's data.
When I tried
JCO.Function function = getFunction("RFC_READ_TABLE");
JCO.ParameterList listParams = function.getImportParameterList();
listParams.setValue("BUT000", "QUERY_TABLE");
listParams.setValue(5, "ROWCOUNT");
JCO.Table tableList = function.getTableParameterList().getTable("OPTIONS"); //also FIELDS
but I am getting the following exception
com.sap.mw.jco.JCO$AbapException: (126) DATA_BUFFER_EXCEEDED: Selected fields do not fit into structure DATA
at com.sap.mw.jco.JCO$Function.getException(JCO.java:14371)
at com.sap.mw.jco.JCO$Client.execute(JCO.java:2678)
at JcoBpTest.main(JcoBpTest.java:24)
Is this a right way using it if not what should be ? And when do we directly make use of the Table like BUT000
Please let us know you input.
Regds
Kicha
You better call the function module BUPA_NUMBERS_GET instead of reading the table. As I told you, it is a good practice NOT to do direct access to the tables. If you are using JCo and you need what you told you need in your first message, then use the function module I suggested and don't make a table read.
Don't be in a haste. Read, learn, understand and code.
Easwar Ram
User | Count |
---|---|
5 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.