Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Regarding Adobe form function module

Hi all,

i created an adobe form and interface but

when i was writing the driver program the generated function module is empty.here it is FM_NAME this is being populated as space.

please let me know the possible reasons for this code below for reference

Tables:usr03.

DATA: fm_name TYPE funcname.

data: begin of it_usr03 occurs 0,

bname like usr03-bname,

abtlg like usr03-abtlg,

regio like usr03-regio,

telnr like usr03-telnr,

telfx like usr03-telfx,

end of it_usr03.

selection-screen : Begin of block b1 .

parameter:p_bname like usr03-bname.

selection-screen : End of block b1 .

start-of-selection.

select bname abtlg regio telnr telfx

from usr03 into table it_usr03

where bname eq p_bname.

TRY.

CALL FUNCTION 'FP_FUNCTION_MODULE_NAME'

EXPORTING

I_NAME = 'ZVK_USER'

IMPORTING

E_FUNCNAME = fm_name.

CATCH cx_fp_api_usage.

CATCH cx_fp_api_repository.

CATCH cx_fp_api_internal.

ENDTRY.

DATA: FP_OUTPUTPARAMS TYPE sfpoutputparams.

FP_OUTPUTPARAMS-NODIALOG = 'X'.

FP_OUTPUTPARAMS-GETPDF = 'X'.

CALL FUNCTION 'FP_JOB_OPEN'

CHANGING

IE_OUTPUTPARAMS = FP_OUTPUTPARAMS

EXCEPTIONS

CANCEL = 1

USAGE_ERROR = 2

SYSTEM_ERROR = 3

INTERNAL_ERROR = 4

OTHERS = 5.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

DATA: FP_DOCPARAMS TYPE sfpdocparams .

DATA: FP_FORMOUTPUT TYPE fpformoutput .

CALL FUNCTION FM_NAME

EXPORTING

/1BCDWB/DOCPARAMS/ = FP_DOCPARAMS

zvk_user = it_usr03

IMPORTING

/1BCDWB/FORMOUTPUT = FP_FORMOUTPUT

EXCEPTIONS

USAGE_ERROR = 1

SYSTEM_ERROR = 2

INTERNAL_ERROR = 3

OTHERS = 4.

IF sy-subrc <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

Former Member
Former Member replied

Hi,

Just a quick check, is your form and interface active?

regards,

Amit

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question