Quantcast
Channel: SCN : All Content - ABAP Development
Viewing all articles
Browse latest Browse all 8332

How to test a Function Module by passing in an internal table?

$
0
0

Hi,

 

I am going to use this FM CRM_ORDER_READ_OW in my transformation routine in SAP BI to calculate the SLA Duration.

 

SLA Duration  = Time case confirmed/report generated - Case creation

 

I am referring to table SCAPPTSEG to get the time from (TST_FROM) and time to (TST_TO) of the APPT_TYPE = Z_DT_CREATED (case creation) & Z_DT_CONFIRM (case confirmed) by passing in the GUID value to the field APPL_GUID as shown below.

 

SCAPPTSEG.PNG

Before I use this FM, I would like to do a test run (test/execute F8) on the FM.

 

I want to pass the GUID/APPL_GUID = 00505605000903D0BBB625D2F08147D7 into the internal table IT_HEADER_GUID and pass the values Z_DT_CREATED & Z_DT_CONFIRM into the internal table IT_REQUESTED_OBJECTS so that the SLA Times will be exported into the parameter ET_APPOINTMENT.

 

FM.JPG

Can someone guide me on how to do this test run? I am not sure on how to pass the values.

 

Please help. Let me know if you have any further questions.

 

Thank you very much!

 

 

Kind regards,

Rebekah


Viewing all articles
Browse latest Browse all 8332

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>