Skip to Content
avatar image
Former Member

SMARTFORM transport

Hi,

I have transported one smartform to Quality from Dev. But whn i try to process it , it can not find the generatd FM. I assumed the smartorm FM will be pulled automatcally once I transport th form.

Furher problem is that,it looks a for a FM in Qr1 , which is differnt from that being displayed in DR1, when I hit F8 on smartform.

Why its happening, and what could be the solution to get the thing working in quality system.

Reward Points Guarnteed.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • avatar image
    Former Member
    May 30, 2006 at 07:53 AM

    Hi anid,

    1. use like this to

    get the FM name, which is dynamically generated.

    2.

    <b> DATA : var TYPE rs38l_fnam.</b>

    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

    EXPORTING

    formname = 'ZSMARTFORMNAME'

    • VARIANT = ' '

    • DIRECT_CALL = ' '

    IMPORTING

    fm_name = var

    EXCEPTIONS

    no_form = 1

    no_function_module = 2

    OTHERS = 3

    .

    IF sy-subrc <> 0.

    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

    WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

    ENDIF.

    3. Then call the FM (Var)

    like this :

    CALL FUNCTION var

    TABLES

    itab_data = itab_incr_det

    itab_hod = itab_incr_hod.

    ( the parameters will be different)

    regards,

    amit m.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    May 30, 2006 at 07:53 AM

    check this

    CALL FUNCTION 'SSF_FUNCTION_MODULE_NAME'

    EXPORTING

    formname = g_form

    IMPORTING

    fm_name = g_fm_name

    EXCEPTIONS

    no_form = 1

    no_function_module = 2

    OTHERS = 3.

    CALL FUNCTION g_fm_name

    EXPORTING

    control_parameters = g_control

    output_options = g_output

    user_settings = ' '

    EXCEPTIONS

    formatting_error = 1

    internal_error = 2

    send_error = 3

    user_canceled = 4

    OTHERS = 5.

    Message was edited by: mukesh kumar

    Add comment
    10|10000 characters needed characters exceeded

  • May 30, 2006 at 07:57 AM

    Hi,

    are you doing like this only...

     
     [code]call function 'SSF_FUNCTION_MODULE_NAME'
        exporting
          formname           = 'Z_SAMRT'
        importing
    <b>      fm_name            = v_function_module</b>
        exceptions
          no_form            = 1
          no_function_module = 2
          others             = 3.
    
      if sy-subrc <> 0.
    * MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    *         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.

    call function <b>v_function_module</b>

    exporting

    control_parameters = ds_control

    output_options = ds_print_opt

    user_settings = space

    i_supp = x_logo

    i_last_pg = v_last_pg

    i_tknum = vbco3-tknum

    i_vsart = v_vsart

    i_sammg = v_sammg

    tables

    it_item = it_item

    it_sales = it_sales1

    it_total = it_total2 "it_total1

    it_summary = it_summary

    it_header = it_hdr1

    it_ship_header = it_ship_header

    exceptions

    formatting_error = 1

    internal_error = 2

    send_error = 3

    user_canceled = 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.[/code]

    or hardcoding the FM directly. can you show your code?

    Regards

    vijay

    Add comment
    10|10000 characters needed characters exceeded