cancel
Showing results for 
Search instead for 
Did you mean: 

AMDP Function not populating while Class does

04-14-2021 6:14 PM
258 views 0 comments
0 Likes
SAP Managed Tags
Subscribe

Hi all, I have created an AMDP Class that is paired with a table function. However, the table function is not populating at all while the class itself is producing a sound output. Any clue on what might be the issue?

Table function:

@AccessControl.authorizationCheck: #NOT_REQUIRED
define table function ZCDS_SAC_TEMP
returns {
	CLIENT: abap.clnt;
	COMPANY_CODE : abap.char( 18);
	ACCOUNTING_DOCUMENT_NUMBER : abap.char( 50 );
} 
implemented by method ZCL_AMDP_TEMP=>ZF_TEMP;

Class:

class ZCL_AMDP_TEMP definition
	public
	final
	create public.
	
public section.
interfaces if_amdp_marker_hdb.
	class-methods: ZF_TEMP for table function ZCDS_SAC_TEMP.
protected section.
private section.
ENDCLASS.


CLASS ZCL_AMDP_TEMP IMPLEMENTATION.


method ZF_TEMP by database function for hdb language sqlscript
OPTIONS READ-ONLY.
a= 
	SELECT
	"CLIENT",
	"COMPANY_CODE",
	"ACCOUNTING_DOCUMENT_NUMBER"
	FROM "_SYS"."GTM.SAC/CA_SAC_SAL_WORKLIST";
	
	return :a;
endmethod.
ENDCLASS.

Thanks

0 Likes

Accepted Solutions (0)

Answers (0)