Skip to content

gorfc API to fetch the Line Type for custom RFC #40

@aashakabra

Description

@aashakabra

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions