user9618369
user9618369

Reputation: 1

C# SAP ABAP query TABLE STRUCTURE

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

Answers (0)

Related Questions