cancel
Showing results for 
Search instead for 
Did you mean: 

Need help related with SAP Netweaver SDK

Former Member
0 Kudos

Hi Experts,

I have a query regarding the SAP Netweaver SDK which is as below-

How to get the complete data row from the table which contains data from SAP server  while using the SAP Netweaver SDK.  Currently we have used the below approach to get the data from SAP Server.

rc = RfcInvoke(connection, bapiFunction, &errorInfo);

RfcGetTable(bapiFunction, cU("ITM_HOSTS"), &tableHandle, 0);

RfcGetRowCount(tableHandle, &count, 0); //<-- moving table

For (unsigned I =0; i<count;i++)

{

                RfcMoveTo(tableHandle, i, &errorInfo);

                tabLine = RfcGetCurrentRow(tableHandle, &errorInfo);

                RfcGetChars(tabLine, cU("ORIGINNODE"), buffer, 33, NULL);

                RfcGetChars(tabLine, cU("SYSID"), buffer+33, 3, NULL);

}

Further we also wanted to convert the tabLine (current row reference from above code snap) into the single character buffer.

Please let me know if any more information is required.

Please help us resolve this issue urgently!

Thanks in advance.

Regards,

Kapil Laud

Accepted Solutions (0)

Answers (1)

Answers (1)

ashish_vikas
Active Contributor
0 Kudos

Hi Kapil,

please check below documentation from SAP : RFC API: Classical & NetWeaver. It may help you with your requirement.

http://help.sap.com/saphelp_nwpi71/helpdata/en/45/b04419a2146000e10000000a1553f6/content.htm

best regards

ashish