cancel
Showing results for 
Search instead for 
Did you mean: 

SMART FORMS

Former Member
0 Kudos

HI ABAPers

in smart forms i have created a form for purchase order

in SE38 i declare like

DATA: v_fnam type rs38l_fnam.

and how to call the v_fnam

program is running but out put is not coming can any tell me in detail ......

with coding and some examples.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hiii

DATA: <Internal tabname >TYPE <DB table>

DATA: LF_FM_NAME TYPE RS38L_FNAM.

DATA: LF_FORMNAME TYPE TDSFNAME.

CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

EXPORTING FORMNAME = LF_FORMNAME

  • variant = ' '

  • direct_call = ' '

IMPORTING FM_NAME = LF_FM_NAME

EXCEPTIONS NO_FORM = 1

NO_FUNCTION_MODULE = 2

OTHERS = 3.

IF SY-SUBRC <> 0.

  • error handling

CF_RETCODE = SY-SUBRC.

ENDIF.

  • call smartform

CALL FUNCTION LF_FM_NAME

EXPORTING

IS_DLV_DELNOTE = <Internal table>

IS_NAST = NAST

EXCEPTIONS

FORMATTING_ERROR = 1

INTERNAL_ERROR = 2

SEND_ERROR = 3

USER_CANCELED = 4

OTHERS = 5.

reward points if useful

regards

Jaipal