Regarding smartform designing

Hi experts,
please help me.
for the first itme i am working with smart form.
I want ot modify a smart form by adding a new field.
I am getting the error
"FIRST LABEL-table is wider than window"

Hi  ,
As per your issue 
Your are diffined as window name as first label (may be it will be other than main window  )
Your diffined window size is not fitting the page format what your are deffined  ....
check with your  page seetings    .....
Letme know if you have any concernss..... (Checkwith my business card )
Regards,
Lokesh .

Similar Messages

  • Regarding Smartform Assigning to TCODE MR90

    Hi Friends,
    I have my Print program and Smartform designed for which if i see Print preview it looks fine .
    But when this Print porgram assigned to Tcode MR90.
    There when i am seeing Print preview i still get my O/p as expected But when i hit Execute button for which spool get created some times certain values which are totals in my smartform values changes for the same in print preview looks Good.
    What can be the issue when i get my preview correct but Spool data shown incorrectly.
    Regards,
    Poornima

    Hi Sachin,
    These are variable which i am populating in Printprogram and passing through Interface parameters .
    If its the case with clearing varible should it not be the case with when i see preview also ?
    But Thanks for the reply.
    trying  on the same end clearing variable and all .
    Regards,
    Poornima
    Edited by: Pendyala_poornima on Dec 1, 2010 7:54 AM

  • Table name n fields for smartform design

    Dear experts,
                        I want to display employee personal number, name, month and particular months salary, with 4 employees in each row and 5 employees in each column, in every page. Employee number range and month has to be input by the user. i dont know the tables and table-fields to fetch those data. Please help me with your inputs, for this program and smartform design.

    Hi,
        Thank you so much for the reply. My abapping skills are still very poor. i tried all your tables, but couldnt retreive data from it. sorry for the late reply...now i have edited a salary register program to which has all the fields that i require-personal number, name, month, rounded net salary of that month. but it is getting displayed in left hand side only. i want 4 employee details in each row, with 7 rows in each page. help me if possible...
    thanks.

  • Regarding smartforms very urgent

    Hi All,
    I have created a smartfrom.In that I have converted smartform output to html.Now I am sending this HTML output as an attachment to an email address but here I am unable to add graphic to the HTML ouput.How can I do this.
    Regards,
    shravan

    hi sharavan,
    just try this code, u can get the solution.
    *& Report  ZINV_FORM
    report  zinv_form.
    tables: vbrk,vbrp.
    *TYPES: BEGIN OF t_itab,
          vbeln TYPE vbeln_vf,
          fkdat TYPE fkdat,
          name1 TYPE name1_gp,
          addr  TYPE c.
    *TYPES: END OF t_itab.
    types : begin of ty_binary,
              binary_field(1000) type c,
            end of ty_binary.
    data: g_name_itab type standard table of zinv_name.
    data: g_name_wa  type line of zinv_namet.
    data: g_head_itab type standard table of zinv_str_head.
    data: g_head_wa type line of zinv_ttype_head.
    data: g_item_itab type standard table of zinv_str_item.
    data: g_item_wa type line of zinv_ttype_item.
    data: g_tot_tab type standard table of zinv_str.
    data: g_tot_wa type line of zinv_ttype.
    data: g_pay_tab type standard table of zinv_pay_str.
    data: g_pay_wa  type line of zinv_pay_tab.
    data: l_index type i.
    data: sf_name type  rs38l_fnam.
    data: ssfcrescl type ssfcrescl,
          final_ssfcrescl type ssfcrescl,
          xstring type xstring,
          l_data_tab type standard table of ty_binary,
          tline type table of tline with header line,
          ls_out_opt type ssfcompop,
          filesize type i,
          l_pac_list type standard table of sopcklsti1,
         l_pac_list LIKE sodocchgi1,
         l_docu_data LIKE sodocchgi1-doc_size,
          l_doc_chng type sodocchgi1,
          l_receivers type standard table of somlreci1.
    select-options: s_inv for vbrk-vbeln.
    *PARAMETERS: p_inv LIKE vbrk-vbeln default '90005298'.
    *PARAMETERS: p_email1 LIKE somlreci1-receiver.
    start-of-selection.
      perform get_header.
      perform get_item.
      perform get_name.
      perform call_form.
    PERFORM send_email.
    *&      Form  get_header
          text
    form get_header.
      select vbeln fkdat kunag zterm from vbrk into corresponding fields of table
                                                           g_head_itab where vbeln in s_inv.
      loop at g_head_itab into g_head_wa.
        select zterm text1 spras from t052u into table g_pay_tab where zterm = g_head_wa-zterm
                                                                    and spras = sy-langu.
        l_index = sy-tabix.
        read table g_pay_tab into g_pay_wa index l_index.
        move: g_pay_wa-text1 to g_tot_wa-text1.
        move-corresponding g_head_wa to g_tot_wa.
        append g_tot_wa to g_tot_tab.
      endloop.
    endform.                    "get_header
    *&      Form  get_item
          text
    form get_item.
      select vbeln posnr arktx fkimg netwr mwsbp from vbrp into corresponding fields of table g_item_itab
                                     for all entries in g_head_itab where vbeln eq g_head_itab-vbeln.
      loop at g_head_itab into g_head_wa.
       l_index = sy-tabix.
       g_item_wa-tot = g_item_wa-fkimg * g_item_wa-netwr.
       MODIFY g_item_itab FROM g_item_wa INDEX l_index.
        data: l_tab_item type standard table of zex_struct.
        data: l_wa_item like line of l_tab_item.
        clear l_tab_item[].
        call function 'ZAPR_GET_COND_DETAILS'
          exporting
            i_vbeln                = g_head_wa-vbeln
      I_POSNR                    =
      I_KSCHL                    =
          tables
            export_tab             = l_tab_item.
    EXCEPTIONS
      INCORRECT_INV_NUMBER       = 1
      COND_REC_NOT_FOUND         = 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.
        delete l_tab_item where kschl ne 'PR00'.
        loop at l_tab_item into l_wa_item.
          l_index = sy-tabix.
          move l_wa_item-kbetr to g_item_wa-kbetr.
          modify g_item_itab from g_item_wa transporting kbetr where posnr = l_wa_item-posnr
                                                               and vbeln = g_head_wa-vbeln.
        endloop.
      endloop.
    endform.                    "get_item
    *&      Form  get_name
          text
    form get_name.
      select name1 kunnr from kna1 into corresponding fields of table g_name_itab
                                    for all entries in g_head_itab where kunnr = g_head_itab-kunag.
      if sy-subrc = 0.
        loop at g_name_itab into g_name_wa .
          l_index = sy-tabix.
          call function 'Z_DR_GET_CUSTOMER_ADDRESS'
            exporting
              customerno       = g_name_wa-kunnr
            importing
              customer_city    = g_name_wa-ort01
              customer_street  = g_name_wa-stras
              customer_country = g_name_wa-landx
              customer_zipcode = g_name_wa-pstlz.
          modify  g_name_itab from  g_name_wa index l_index.
        endloop.
        loop at g_name_itab into g_name_wa .
          move-corresponding g_name_wa to g_tot_wa.
          modify g_tot_tab from g_tot_wa
                           transporting ort01 stras landx name1 pstlz where kunag = g_name_wa-kunnr.
        endloop.
      endif.
    endform.                    "get_name
    end-of-selection.
    *&      Form  call_form
          text
    -->  p1        text
    <--  p2        text
    form call_form .
      data:   wa_output type zinv_str,
              gt_header type table of zinv_str_head,
              gt_temp   type table of zinv_str_item,
              wa_header type zinv_str_head,
              l_lines   type i,
              l_tabix   type sy-tabix,
              l_ssfctrlop type ssfctrlop.
      call function 'SSF_FUNCTION_MODULE_NAME'
        exporting
          formname                 = 'ZINV_FORM1'
      VARIANT                  = ' '
      DIRECT_CALL              = ' '
       importing
         fm_name                  = sf_name.
    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.
    CLEAR g_tot_tab[].
    g_tot_tab[] = gt_output[].
    gt_temp[]   = gt_output[].
    DELETE ADJACENT DUPLICATES FROM gt_header COMPARING order_number.
      describe table g_head_itab lines l_lines.
      gt_temp[] = g_item_itab[].
    l_ssfctrlop-no_dialog = 'X'.
    l_ssfctrlop-preview   = 'X'.
    l_ssfctrlop-getotf    = 'X'.
    ls_out_opt-tdnoprev = 'X'.
    ls_out_opt-tddest = 'locl'.
      loop at g_tot_tab into g_tot_wa.
        g_item_itab[] = gt_temp[].
        delete g_item_itab where vbeln ne g_tot_wa-vbeln.
        loop at g_item_itab into g_item_wa.
          move: sy-tabix to g_item_wa-sino.
          modify g_item_itab from g_item_wa.
        endloop.
        add 1 to l_tabix.
        if l_tabix gt 1 and l_tabix le l_lines.
          l_ssfctrlop-no_open = 'X'.
        endif.
        if l_tabix eq l_lines.
          l_ssfctrlop-no_close = space.
        else.
          l_ssfctrlop-no_close = 'X'.
        endif.
        call function sf_name
         exporting
      ARCHIVE_INDEX              =
      ARCHIVE_INDEX_TAB          =
      ARCHIVE_PARAMETERS         =
           control_parameters      = l_ssfctrlop
      MAIL_APPL_OBJ              =
      MAIL_RECIPIENT             =
      MAIL_SENDER                =
         output_options             = ls_out_opt
      USER_SETTINGS              = 'X'
        is_inv_header              = g_tot_wa
       importing
      DOCUMENT_OUTPUT_INFO       =
         job_output_info            = ssfcrescl
      JOB_OUTPUT_OPTIONS         =
          tables
            l_itab                 = g_item_itab
    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.
       APPEND LINES OF ssfcrescl-otfdata TO final_ssfcrescl-otfdata.
      endloop.
      call function 'CONVERT_OTF'
       exporting
         format                      = 'PDF'
      MAX_LINEWIDTH               = 132
      ARCHIVE_INDEX               = ' '
      COPYNUMBER                  = 0
      ASCII_BIDI_VIS2LOG          = ' '
       importing
         bin_filesize                = filesize
         bin_file                    = xstring
        tables
          otf                         = final_ssfcrescl-otfdata
          lines                       = tline
    EXCEPTIONS
      ERR_MAX_LINEWIDTH           = 1
      ERR_FORMAT                  = 2
      ERR_CONV_NOT_POSSIBLE       = 3
      ERR_BAD_OTF                 = 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.
      call function 'SCMS_XSTRING_TO_BINARY'
        exporting
          buffer                = xstring
        APPEND_TO_TABLE       = ' '
      IMPORTING
        OUTPUT_LENGTH         =
        tables
          binary_tab            = l_data_tab.
      call function 'GUI_DOWNLOAD'
        exporting
        BIN_FILESIZE                    =
          filename                        = 'C:\invoice.pdf'
         filetype                        = 'BIN'
        APPEND                          = ' '
        WRITE_FIELD_SEPARATOR           = ' '
        HEADER                          = '00'
        TRUNC_TRAILING_BLANKS           = ' '
        WRITE_LF                        = 'X'
        COL_SELECT                      = ' '
        COL_SELECT_MASK                 = ' '
        DAT_MODE                        = ' '
        CONFIRM_OVERWRITE               = ' '
        NO_AUTH_CHECK                   = ' '
        CODEPAGE                        = ' '
        IGNORE_CERR                     = ABAP_TRUE
        REPLACEMENT                     = '#'
        WRITE_BOM                       = ' '
        TRUNC_TRAILING_BLANKS_EOL       = 'X'
      IMPORTING
        FILELENGTH                      =
        tables
          data_tab                        = l_data_tab
        FIELDNAMES                      =
      EXCEPTIONS
        FILE_WRITE_ERROR                = 1
        NO_BATCH                        = 2
        GUI_REFUSE_FILETRANSFER         = 3
        INVALID_TYPE                    = 4
        NO_AUTHORITY                    = 5
        UNKNOWN_ERROR                   = 6
        HEADER_NOT_ALLOWED              = 7
        SEPARATOR_NOT_ALLOWED           = 8
        FILESIZE_NOT_ALLOWED            = 9
        HEADER_TOO_LONG                 = 10
        DP_ERROR_CREATE                 = 11
        DP_ERROR_SEND                   = 12
        DP_ERROR_WRITE                  = 13
        UNKNOWN_DP_ERROR                = 14
        ACCESS_DENIED                   = 15
        DP_OUT_OF_MEMORY                = 16
        DISK_FULL                       = 17
        DP_TIMEOUT                      = 18
        FILE_NOT_FOUND                  = 19
        DATAPROVIDER_EXCEPTION          = 20
        CONTROL_FLUSH_ERROR             = 21
        OTHERS                          = 22
      if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    endform.                    "call_form
    **&      Form  send_email
          text
    *FORM send_email.
    Document information.
    **wa_doc_chng-obj_name = 'Smartform'.
    **wa_doc_chng-expiry_dat = sy-datum + 10.
    **wa_doc_chng-obj_descr = 'Smart form output'.
    **wa_doc_chng-sensitivty = 'F'. "Functional object
    **wa_doc_chng-doc_size = v_lines_txt * 255.
    **data:i_objpack LIKE sopcklsti1 OCCURS 0 WITH HEADER LINE,
    CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
       EXPORTING
         document_data                    = l_doc_chng
      put_in_outbox                       = 'X'
        sender_address                   = sder_add
      sender_address_type                 = 'U'
      commit_work                         = 'X'
    IMPORTING
      SENT_TO_ALL                      =
      NEW_OBJECT_ID                    =
      SENDER_ID                        =
       TABLES
         packing_list                     = l_pac_list
      OBJECT_HEADER                    =
      CONTENTS_BIN                     =
      CONTENTS_TXT                     =
      CONTENTS_HEX                     =
      OBJECT_PARA                      =
      OBJECT_PARB                      =
         receivers                        = l_receivers
    EXCEPTIONS
      TOO_MANY_RECEIVERS               = 1
      DOCUMENT_NOT_SENT                = 2
      DOCUMENT_TYPE_NOT_EXIST          = 3
      OPERATION_NO_AUTHORIZATION       = 4
      PARAMETER_ERROR                  = 5
      X_ERROR                          = 6
      ENQUEUE_ERROR                    = 7
      OTHERS                           = 8
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    *ENDFORM.                    "send_email
    regards,
    seshu.

  • HI Regarding smartforms

    HI,
    1.  I downloaded one smartform.
        If in that text in the text element is written ater some spaces.
        IF i upload the same form ,will the layout come same, or text in the textelements is moved left?
    2. How can i see history of changes done to the smartform layout(like username, date......)
    3.If we save the smartform in one request and after that if we delete that request or object in the request,
      can we get that information?who has done changes?
    Regards
    Ramakrishna L

    1. It will be same.
    2. From transport Requests.
    3. No
    4. Search forum for this kind of queries.

  • Regarding Smartforms and Print Programs in MM

    HI
    ALL
    I need to customise the all  the standard smartforms  Purchase Requisition , Purchase Order,Goods receipt,Goods issue,Goods return in MM .For this I need the standard smartforms and driven programs(Print Programs) for these . send me the smartforms and printprograms for these.
    Regards
    Venkat

    Hi,
      You can goto 'NACE' transaction and select the Required Application then Click on OUTPUT TYPES and select the required Output type and click on PROCESSING ROUTINES.
      In this way you can get the standard Smartforms.
    Hope this may be helpful,
    Regards,
    Sravanthi

  • Regarding Smartform Function module

    Hi,
    When i am executing the smartform function module via print program, Smart form output is displaying properly but it is not showing any OTF data in the importing parameter  JOB_OUTPUT_INFO . (JOB_OUTPUT_INFO-OTFDATA). Why it is happening? Could you please help me in this regard?

    To get the OTF data you need to set the GETOTF parameter in the Control Parameters of the Smartforms.
        DATA: LS_CONTROL  TYPE SSFCTRLOP.  " Controlling info
        LS_CONTROL-GETOTF    = 'X'.
        CALL FUNCTION WF_FM
          EXPORTING
            CONTROL_PARAMETERS         = LS_CONTROL
         IMPORTING
            JOB_OUTPUT_INFO            = WF_OUTDATA
    I guess, when we set the GETOTF flag, it will not generate the output and only puts the data JOB_OUTPUT_INFO-OTFDATA.
    Regards,
    Naimesh Patel

  • Regarding Smartforms Main Window

    Hi SAP Gurus,
    In a customized smartform,
    i am having an output  :
    srl no                 mat no                  mat desc                     quan              uom               rate
    10                        123456             aaaaaaaaa                 55                      MM            4500
                                                        sales tx : 123
                                                         cst : 2% 
    for Eg,Like this are 10 line items, now while prining, at the bottom of the page it is printing the line item but sales tax and cst are starting on a new page, but the requirement is to display salestax and cst along with it .
    Plz help,
    Thanks & Regards,
    Pavan.

    Hi,
    All the above responses are very good but i think i had not get a clear picture.
    Select your table node and in the table tab details you will find your line type on your line type you will find a check box with
    No page break then check the check box it will solve your problem.
    If the above problem is not solved your solution then the check the text element output options and above and below text elemtes also check whether any new line new cell are checked or not these two doesn't need to be checked and better to
    write all the three in a single text element may be problem is with your new line & new cell options.
    If not solved your problem please mention much clear what you did so we can get much clear idea.
    Thanks,
    Phani.

  • Regarding RFID Design

    We are on way to implement WM(Warehouse management)module from the scratch along with the
    RF functionality(Mobile data entry) in one of our ware house....project time line is 4
    months to go live and we are at design stage now..
    Need your guidance on
    1)How do we implement Radio Frequency functionality with SAP CONSOLE??how to start with
    from scratch??what all are needed for this??
    2)How do we install SAP Console to test different scenarios of WM functionality??
    3)***We are intrested in implementaion on Packing process with RF functionality???plz
    detailly guide us how to proceed??
    4)Does SAP allow Batch Picking by RF scanner??
    5) packing -> we would like to know when we need to scan exactly
    6) picking -> ldoes RFID support batch picking
    7) how do i know
    Appreciate your immediate reply...
    Regards,
    Kiran
    6128595097

    Hi Arnab,
    1) I think you will get the SAP Console preinstalled with the SAP GUI Installation you can find it in Control Panel with the name SAPConsole Administrator. This communicates with SAP using some Telnet server and there are lot of telnet servers available in the market.
    Some Useful Information for SAP Console and Telnet Server:
    SAP Console –Framework which enables users to execute R/3 transactions from Character based device including RF devices.
    SAP Console consists of following three main components
    1. SAP Console – Software / Interface component
    2. SAP Console Administrator – Defining properties of SAP console
    3. SAP Console I/O Engine – I/O engine through which SAP console and User interact
    Installation of SAP Console is a part of SAP GUI installation
    Telnet server installation on the same machine in which SAP console is installed.
    Standard Telnet server are
    1.Slnet From Seattle Labs
    2.GS_Tnet from Georgia Soft works
    But any Telnet Sever application can be used which supports VT220 emulation.
    Telnet Client is the Interface which is used to execute transactions. Ex. – RF device
    2) It comes preloaded with SAP GUI so need not worry about installation.
    3) Yeah Packing process is supported in RF and you can get the couple of transactions related to RF and they start with LM*
       For the rest you have transaction codes available like for example LM74, LM47, etc or else best thing is you use LM00 which is the starting transation code for your RF related activities.
       Or else search for LM* in TSTC table.
    Thanks & Regards,
    YJR.
    Message was edited by: YJR

  • Regarding smartform page wise total.

    hi
    guru's
    i  am having doubt on smartform
    i want to   caluclate  sum of qunatities in pagewise
    Regards
    Anand

    Hello Anand ,
           Really good Question.
    As per my knowledge and understanding it is possible only a only when , when the you know the no of row you can print in Main window  like......
         In my Main Window I can print 5 Row . Then in the Footer you can Code like this. That's i don't thing big issue. But majar thing on the basic of your data in internal table (you can say how many row can be printed in first and so on page).
    I haven't done this yet , quite sure it will help you.
    Regards
    Swati namdeo

  • Regarding smartforms

    hi,
    i have a problem in printing of smartform.i.e i want to display the column header information in all pages.

    Hi,
           The column heading should be used in main page, then only it will appear in all pages.
    regards,
    Santosh Thorat

  • Query regarding screen designing

    Hi Experts,
       I am designing a page using  sap  webdynpro  java in which page header should contain 5 buttons as follows.
    Home  Porders  Corders   Inventory    GReciepts
    By clicking GReciepts i should get  4 buttons As follows.
    OFSummery   GReciept   GRDetailList    CBSummery.
    in OFSummery I have to design a FORM.
    which property is required from rootuielement container to reech my requirement.Please help me in this regard.
    thank's@Regard's,
    Prashanth

    For this,
    1. First, in the context create an attribute of type Visibility.
    Steps for this:
    Create a context attribue
    In properties of the attribute you see the property 'type'.
    To the far right of this is a button with three dots, click it, a window pops up.
    Select 'Dictionary Simple Type'.
    Expand 'com.sap.ide.webdynpro.uielementdefinitions'.
    Select 'Visibility'
    Click 'OK'
    2. Bind this attribute to the Visible property of the container.
    3. On the 'Onclick' action of the header row button, set the visibility value of the container to Visible.
    wdContext.current<node>Element().set<Visibilityattribut>(WDVisibility.VISIBLE);
    4.in the onInit(), write:
    wdContext.current<node>Element().set<Visibilityattribut>(WDVisibility.NONE);
    Thanks and Regards,
    Shyam.

  • Query regarding smartform

    Hi Experts,
    I have a requirement in which I am sending a mail through actions.In the action I have mentioned the smartform.The email sent should have voting buttons such as 'YES' and 'NO'.
    If the reciever replies back to the email and selects 'YES' the subject line should get propagated with the string 'YES'.
    Is this possible using smartforms?
    Thanks and Regards
    Shilpi

    Hello Mr Grover,
    I tried doing as said in that thread  but I could not get it right .Could any one tell me where am i going wrong .
    g_Control_parameters-NO_DIALOG = 'X'.
    g_Control_parameters-PREVIEW = 'X'.
    g_OUTPUT_OPTIONS-TDDEST = 'locl'.
    *-- to suppress the print preview option .
    CALL FUNCTION 'SSF_OPEN'
    EXPORTING
        OUTPUT_OPTIONS           = G_output_options
        CONTROL_PARAMETERS       = g_control_parameters
    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 'SSF_FUNCTION_MODULE_NAME'
      EXPORTING
         FORMNAME           = 'ZHR_SCR_L03'
      IMPORTING
         FM_NAME            = WF_FNAME
    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 WF_FNAME
          TABLES
            INT_SALARY       = INT_SALARY
          EXCEPTIONS
            FORMATTING_ERROR = 1
            INTERNAL_ERROR   = 2
            SEND_ERROR       = 3
            USER_CANCELED    = 4
            OTHERS           = 5.
    " here the sy-subrc is coming as 2 WHY?
    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 'SSF_CLOSE'
    IF SY-SUBRC <> 0.
    "* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    "*         WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
      ELSE.
        MESSAGE S082(Z1)."'No salary has been Changed during the selected period' TYPE 'S'.
      ENDIF.
    Thanks
    Message was edited by:
            Khaleel S.Mohammed

  • Regarding the design

    Hi gurus,
    I am very new to ABAP,Here i have a project scenario where i want to create a transaction system in R/3 using ABAP,and feed DATA .. i dont know how to do this and i know it is not possible to give the code and everything to this but i want to know the overall idea to do this in step by step here is the project scenario
    The project is all about designing a security information system for a company...which has to fullfill the following
    1.To track the time of an employee enters and leaves the organisation.the granularity in this should be upto various departments.
    2.And the employee can bring any number of visitors to the company..and we  should  be able to track the visitor information also..(ie the name ,address and other details)
    3.the approval for the visitor is given by the immediate manager of the employee...and we should be able to find the peak time of the visitor visit ..ie the day,month on which the visitor flow is more in the company.
    i want to feed  all this information in r/3
    Ie empid,emp name,manager id,department id,department name,time in,time out and date for the employee
    and also
    visitor id,visitor name ,visitor address, time in ,timeout and date for that visitor and also the employee through whom he came into the office...
    I want to know how these can be done in ABAP..
    Please let me know asap and i will assign the maximum points fir the usefull answer.
    Regards,
    RK

    Hi,
    For this kind of applications you need to design a module pool
    program.
    through se51 create the screen and maintain the logic in
    PAI and PBO events.
    Here Iam providing you some links which explains to create
    such applications using module pool.
    Check the below link:
    http://sap.mis.cmich.edu/sap-abap/abap09/index.htm
    Simple program to create module pool.
    http://wiki.ittoolbox.com/index.php/FAQ:What_is_module_pool_program_in_abap%3F
    http://help.sap.com/saphelp_46c/helpdata/en/35/26b1aaafab52b9e10000009b38f974/content.htm
    http://sap.mis.cmich.edu/sap-abap/abap09/sld011.htm
    http://sap.mis.cmich.edu/sap-abap/abap09/index.htm
    Regards,
    Raj.

  • Regarding smartform

    hi guru's,
    i have a requirement to develop a purchase order smartform which takes in purchase order no i.e. EBELN as input and display MATNR MENGE MEINS NETPR NETWR from ekko table and with the above MATNR no it should display MAKTX from MAKT and EINDT from EKET adjacent to the above field .here we require two loops i.e loop for ekko  and another loop for eket and makt under ekko.and with the above EBELN it should also disply the vendor address in another field.
    can anyone help with looping one under another.
    thanks and regards,
    siri

    Hi Sirisha,
    Please find below  the links which contain the tutorials on SMART FORMS.In may of the tutorials we have the concept of looping one under the other.
    http://www.****************/Tutorials/Smartforms/SFMain.htm
    Warm Regards
    R Adarsh

Maybe you are looking for

  • How do i get my ipod touch to work in window 7 64bit

    how do i get my ipod touch to work in window 7 64bit

  • Report Script parameter

    hi all, I am using a report script to generate a text file with budget data. This works fine in AAS console but I am automating this process by usning an ESSCMD and batch script. tha batch script will call the ESSCMD script which in turn executes the

  • Experiences of Partitioning FACT tables

    Running BPC 7.0 SP3 for MS We have two very large FACT tables (195milliion records and 105million records) and these are currently growing at a rate of 2m/5m records per month - we are running an incremental optimize twice per day It has been suggest

  • Error when calling the SAP GUI

    Hello everybody, i have installed the NW2004s SneakPreview on my Notebook. Since then i cant call the sap gui anymore (installed the latest version from SAP Service Marketplace). Im getting the error: 'The procedure entry point 'RfcResetTraceDir' cou

  • Postinstallation error

    I have install oracle 11g release2 in linux 5 server. But after slient installl.. when i try to execute dbca command for database creation then i am getting below error dbca -silent -createDatabase -templateName General_Purpose.dbc -gdbName orcl -sys