Reputation: 1
I have the following structure received from SAP software, what is the correct way to obtain the DATA
field where the TBL_ACT
field is equal to "TAR - ENTRY"?
Code used in the API:
public HttpResponseMessage RFC_GETEND([FromBody] SapModel model)
{
RfcDestination dest = RfcDestinationManager.GetDestination(model.Ip);
RfcRepository r= dest.Repository;
IRfcFunction f = r.CreateFunction("ZUBGP_RFC_019");
f.Invoke(dest);
return new HttpResponseMessage() {
Content = new StringContent(f[0].GetValue().ToString(), Encoding.UTF8, "text/plain")
};
}
Structure received from SAP software:
TABLE
[STRUCTURE ZUBGPMS019 { FIELD TBL_ACT=VIM - OUT DATA=2019-09-03 }]
[STRUCTURE ZUBGPMS019 { FIELD TBL_ACT=TAR - ENTRY FIELD DATA=2021-10-01 }]
[STRUCTURE ZUBGPMS019 { FIELD TBL_ACT=TAR - OUT FIELD DATA=2022-12-31 }]
[STRUCTURE ZUBGPMS019 { FIELD TBL_ACT=SEC - OUT DATA=2019-06-01 }]
Upvotes: 0
Views: 101