cancel
Showing results for 
Search instead for 
Did you mean: 

Enquiry in Routine in Smartform

Former Member
0 Kudos

Hi,

Can any one help me to include code in Form Routines in Global Settings in SMARTFORM with example.

Pooja

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

hi

it is same link normal abap program only..

one thing u have to remember here is u have to give all the varaiblesand ITAB names in INPUT and OUTPUT parameters of ITNAILIZATIONS tab

<b>calling the form in Initialization tab..</b>

 *   Get details for condition values.
      PERFORM GET_INVOICE_CONDITION_VALUES USING IT_KOMV
                                                 IT_KOMVD
                                                 V_LAND1
                                                IS_BIL_INVOICE-HD_GEN
                                        CHANGING WA_INVOICE.

<b>difinatonin FORM routines tab</b>

FORM GET_INVOICE_CONDITION_VALUES
                             USING    FP_IT_KOMV    TYPE TY_IT_KOMV_T
                                      FP_IT_KOMVD   TYPE TY_IT_KOMVD_T
                                      FP_V_LAND1    TYPE LAND1
                                      FP_GS_HD_GEN  TYPE LBBIL_HD_GEN
                             CHANGING FP_WA_INVOICE TYPE TY_INVOICE.

    DATA: L_WA_KOMV  TYPE KOMV,
          L_WA_KOMVD TYPE KOMVD.
  FORM GET_INVOICE_CONDITION_VALUES
                             USING    FP_IT_KOMV    TYPE TY_IT_KOMV_T
                                      FP_IT_KOMVD   TYPE TY_IT_KOMVD_T
                                      FP_V_LAND1    TYPE LAND1
                                      FP_GS_HD_GEN  TYPE LBBIL_HD_GEN
                             CHANGING FP_WA_INVOICE TYPE TY_INVOICE.

    DATA: L_WA_KOMV  TYPE KOMV,
          L_WA_KOMVD TYPE KOMVD.

xxxxxx
xxxxxx
xxxxx
 ENDFORM.                    "GET_INVOICE_CONDITION_VALUES

Please Close this thread.. when u r problem is solved. Reward all Helpful answers

Regards

Naresh Reddy K

Former Member
0 Kudos

hi Pooja

under form routines you can write form endform only.

and you can call this subroutine inside any of the program lines.

hope this gives you an idea how to use it.

Please reward points if its helpful.

Regards

Zarina .