gorfc API to fetch the Line Type for custom RFC
Hello,
I am working on a custom RFC (Z_TEST_COMPLEX_TT_EXP) whose definition is available in the attached document. For I_SIMPLE interface, on clicking on TYPE MAND_TYPE, second screenshot from the document displays the Line Type details. It also shows MANDT name for the Line Type.
Now, I am trying to fetch the metadata for Z_TEST_COMPLEX_TT_EXP using GetFunctionDescription method.
funcDesc, _ := conn.GetFunctionDescription(rfcName)
But I do not see any struct field that holds information MANDT. Can you please highlight how can I fetch the same by either using same API or different API?
Using JCO library, I am able to get above information using metaData.getRecordTypeName(i) where metaData is of Type com.sap.conn.jco.JCoRecordMetaData
I am doing a POC to change the existing code from using JCO library to gorfc and wanted to understand how I can take care of above usecase with gorfc.
Attaching the RFC definition for reference. RFCDefinition.docx