Step by Step Tutorial to Use Sap. Net Connector with VS 2008

Get SAP Bapi Table (not Exporting) after processing - Using Sap Connector 3.0

I Finally found what was happening.
When I executed the BAPI on SAP, I just wrote the Customer Code. Without the Left pad 000.

But when I Called it i just Needed to add the Zeros to the Customer Code.

          CUSTOMERRANGE.SetValue("LOW", "000" + ClienteMin);

Hibernate SAP integration

As far as I know I don't think that exists. SAP has its own data mapping strategy known as Open SQL and also provides special functions to insert, update and delete data that also ensure data consistency, those functions are called BAPI and unless you have an SAP connector to call these BAPIs then there's not much you can do. For more reference check this .Net connector example.

Sure you can make a connection directly (if the system administrator and/or DBA let you) to the database however is not advisable and is very dangerous because you could create inconsistencies in the system. Please do not try this approach.

However you can make use of software like the connectors I mentioned before or you could use the SAP interface system. You can find more information on this issue checking out the terms ALE and IDocs.

Another strategy is using an intermediate table on a database where you and SAP take and write data and with some controls communicate each other but on this issue you would use a BAPI in case of using a standard table or making a custom table (Z table) where you have more freedom to make your own changes.

Hope it helps

How to display a pdf from an SAP RFC in C#

Since HRB2A_TAB_RAW255 is a raw table where each line is a field of type HRB2A_RAW255, which is raw data, probably every row of this table is a byte array.

Consider this mapping table from SAP: RFC To .NET Data Type Mapping.

You can try something like this:

foreach (IRfcStructure row in sapTable)
{
DataTable loTable = new DataTable();
for (int liElement = 0; liElement < sapTable.ElementCount; liElement++)
{
RfcElementMetadata metadata = sapTable.GetElementMetadata(liElement);

byte[] binary = new byte[255];
binary = row.GetByte(metadata.Name);
ldr[metadata.Name] = binary;
}
loTable.Rows.Add(ldr);
}
return adoTable;
}

Don't put it literally, it's just a quick shot, I don't even know if it works. You may also check this.



Related Topics



Leave a reply



Submit