2013 Aug 14 7:07 AM
Hi experts.
I want to call Function Module in ABAP program written by using "AP:" syntax, like following.
AP:
' REPORT ZZZIG_VMR00. '
,' INCLUDE ZZZIG_VIF0001. '
,' FORM F_INSERT_DATA '
,' USING '
.
.
.
,' CALL FUNCTION 'NUMBER_GET_NEXT' '
,' EXPORTING '
,' NR_RANGE_NR = CL_RANGENO '
,' OBJECT = CL_RANGEOBJ '
,' IMPORTING '
.
.
.
But this makes conpile error,
because CALL FUNCTION statement needs " ' (single quotation)" .
I think this error can be pass by escaping " ' " around Function Module name,
but I have not solve this problem.
Can you have any good idea to escape " ' " in AP: syntax ?
Regards,
Hodaka Yamada
2013 Aug 20 5:57 AM
This problem has been solved by following escape logic.
,' CALL FUNCTION ''NUMBER_GET_NEXT'' EXPORTING '
,' NR_RANGE_NR = CL_RANGENO '
,' OBJECT = CL_RANGEOBJ '
,' IMPORTING '
Regards,
Hodaka Yamada
2013 Aug 20 5:57 AM
This problem has been solved by following escape logic.
,' CALL FUNCTION ''NUMBER_GET_NEXT'' EXPORTING '
,' NR_RANGE_NR = CL_RANGENO '
,' OBJECT = CL_RANGEOBJ '
,' IMPORTING '
Regards,
Hodaka Yamada