Material Unit Conversion


Function : MD_CONVERT_MATERIAL_UNIT

Period Search Help

SELECTION-SCREEN BEGIN OF BLOCK param WITH FRAME TITLE text-000.
PARAMETERS     :  p_donem LIKE s031-spmon.
SELECTION-SCREEN END OF BLOCK param.


AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_donem.
  PERFORM f4_spmon CHANGING p_donem.

FORM f4_spmon CHANGING v_spmon .
  DATAmf_returncode1   LIKE sy-subrc,
        mf_monat1        LIKE isellist-month,
        mf_hlp_repid1    LIKE sy-repid.


  mf_monat1 sy-datum+0(6).

  CALL FUNCTION 'POPUP_TO_SELECT_MONTH'
    EXPORTING
      actual_month               mf_monat1
      factory_calendar           ' '
      holiday_calendar           ' '
      language                   sy-langu
      start_column               8
      start_row                  5
    IMPORTING
      selected_month             mf_monat1
      return_code                mf_returncode1
    EXCEPTIONS
      factory_calendar_not_found 1
      holiday_calendar_not_found 2
      month_not_found            3
      OTHERS                     4.

  IF sy-subrc AND mf_returncode1 0.
    v_spmon mf_monat1.
  ENDIF.

ENDFORM.                    "f4_spmon

Expand&Collapse Not Working In ALV Container


If you have any editable field in alv container , subtotal icons (expand,collapse) not works.

You should switch it ;


module pai input.
  save_ok ok_code.
  clear ok_code.
  case save_ok.
    when 'EXIT'.
      perform exit_program.
    when 'SWITCH'.
      perform switch_edit_mode.
    when others.
*     do nothing
  endcase.
endmodule.

form switch_edit_mode.

  if g_grid->is_ready_for_inputeq 0.
* set edit enabled cells ready for input
    call method g_grid->set_ready_for_input
                     exporting i_ready_for_input 1.

  else.
* lock edit enabled cells against input
    call method g_grid->set_ready_for_input
                    exporting i_ready_for_input 0.
  endif.
endform.                               " SWITCH_EDIT_MODE

VL10C Add Extra Field


1- Add ZZ.field to SHP_VL10_ITEM structure
2- Look at Include V50R_USEREXITS
3-Change or add fields in LV50R_VIEWG02 include
4-For Layout : LV50R_VIEWG05

Search String In Abap Source Code


SE38 : RPR_ABAP_SOURCE_SCAN
(You have to write anything in program name , like Z* ,*,..etc.)

OR

Transaction : EWK1

Bsp Browser Error


IE 5.50 et sup., Netscape 7.00 et sup. et Mozilla 1.75 et sup. "Design2003"

SE24 : CL_BSP_ELEMENT_RT_ATTR_VALID
Method : BROWSER_CHECK

You should change browser version..

  if browser_type ihttp_user_agent_ie     or
     browser_type ihttp_user_agent_mozilla.
     browser_version ie.
   endif.

Get Delivery Print Information And Process It

Teslimata ait çıktı türlerini tetiklemek..

data :
        rg_nacha TYPE TABLE OF msg3 WITH HEADER LINE ,
        rg_kschl TYPE TABLE OF msg2 WITH HEADER LINE ,
        rg_objky TYPE TABLE OF msg1 WITH HEADER LINE .

      appl 'V2' .
      pm_vermo '2' .


      rg_kschl-sign   'I'.
      rg_kschl-option 'EQ'.
      rg_kschl-low    'ZAAA'.
      APPEND rg_kschl .

      rg_objky-sign   'I'  .
      rg_objky-option 'EQ' .
      rg_objky-low    = TESLIMAT .
      APPEND rg_objky.


DO TIMES .
        l_cnt l_cnt + .
        pm_vermo l_cnt .
        CALL FUNCTION 'WFMC_MESSAGES_SELECT'
          EXPORTING
            pi_application appl
            pi_processing  pm_vermo
          TABLES
            ri_medium      rg_nacha[]
            ri_type        rg_kschl[]
            ri_object      rg_objky[]
            tx_messages    msgs[].
        IF NOT msgs[] IS INITIAL .
          EXIT.
        ENDIF.

      ENDDO .


      CALL FUNCTION 'WFMC_MESSAGES_EXTEND'
        TABLES
          tx_messages msgs.
      CHECK NOT msgs[] IS INITIAL .
      READ TABLE msgs WITH KEY objky+(10= TESLIMAT.
      msgs-ldest l_tddest .
      MODIFY msgs INDEX sy-tabix TRANSPORTING ldest .
      CALL FUNCTION 'WFMC_MESSAGES_PROCESS'
        EXPORTING
          pi_display_id 'NALIV2'
          pi_no_dialog  'X'
          pi_vermo      pm_vermo
          pi_be_quiet   'X'
        TABLES
          tx_messages   msgs
          tx_display    disp.

SAP Spool To PDF


SE38 : RSTXPDFT4
Run Programme with spool number..

Standart Ekranlara Ek Alan & Add Customer Fields

Adding Customer Fields In Vendor Master

              http://scn.sap.com/docs/DOC-33664
 

Adding Customer Fields In Purchasing