‎2011 Nov 02 9:01 PM
I am fairly new to data transfer with sap.
I am trying to write app to export list of customer from sap using bapi_customer.getlist. Below is my test code but I am getting o rows back. Can anyone help.
Thanks
AppSapConfig sapCfg = new AppSapConfig();
RfcDestinationManager.RegisterDestinationConfiguration(sapCfg);
RfcDestination sb = RfcDestinationManager.GetDestination("XXX");
try{
RfcRepository repo = sb.Repository;
IRfcFunction companyBapi = repo.CreateFunction("BAPI_CUSTOMER_GETLIST");
companyBapi.SetValue("Maxrows", "0");
companyBapi.SetValue("Cpdonly", "");
companyBapi.Invoke(sb);
IRfcTable detail = companyBapi.GetTable("AddressData");
for (int ii = 0; ii < detail.Count; ii++)
{
Console.WriteLine("????");
}
‎2011 Nov 03 2:31 AM
Hi,
Please pass some number in Maxrows ,id range parameters and see.Then check in Addressdata and Special data.
Regards,
Madhu.
‎2011 Nov 03 2:25 PM
Thanks
madhurao123
However would you have some sample code I work with? I am very visual?
Thanks in advance
kevlangdo
‎2011 Nov 03 2:38 PM
Hi Kelvan,
There are some good no of threads available please check.
[Calling Bapi |https://websmp209.sap-ag.de/~sapdownload/011000358700007640702002E/SAPJCo.pdf]
Regards,
Madhu.
‎2011 Nov 03 3:02 PM
Sorry I don't have access to the marketplace. Only a few people at our company have this access and I am not one of them.
Thanks