on 12-28-2007 6:12 AM
Hi all,
My function Module name is BAPI_COMPANYCODE_GETLIST.Here i want to send some input data to update a record which is there in SAP.
JCO.Table codes =
function.getTableParameterList().getTable("COMPANYCODE_LIST");
after setting values as
codes.setValue("","");
Is it necessary to have codes.appendRows(1); before executing the function module
Regards
Padma N
Hi padma,
Function func = getDefaultJCoConnection().getJCoFunction(FUNCTION MODULE NAME);
func.getImportParameterList().getField(IMPORTPARAMETER).setValue(VALUE);
Table table = func.getTableParameterList().getTable(TABLENAME);
productTable.appendRow();
productTable.setValue(VALUE1,FIELDNAME1);
productTable.setValue(VALUE2,FIELDNAME2);
getDefaultJCoConnection().execute(func);
Follow this code and send parameters through table to an RFC
Regards,
Sateesh Chandra
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Padma,
If you are trying to update rows of record to the backend system. you have to set(bind, addElement, append) the value before executing.
For example, if cardinality is 0..1 you may add sole element or bind this element. If the cardinality is 0..n (rows of record) then you may either bind collection of elements or add elements one by one.
Regards, Suresh KB
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.