Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
aashakabra opened this issue Nov 20, 2023 · 0 comments
Open

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

aashakabra opened this issue Nov 20, 2023 · 0 comments

Comments

@aashakabra
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant