Skip to Content
avatar image
Former Member

Enquiry in Routine in Smartform

Hi,

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

Pooja

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Apr 04, 2007 at 01:39 PM

    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 .

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 04, 2007 at 02:01 PM

    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

    Add comment
    10|10000 characters needed characters exceeded