BDC help req for MM02??

hi
I made a BDC pgm for MM02,to update the Purchasing Group filed for a matnr,based on Plant.
But i am facing an prob that,when in a Matnr views,my curcur is coming to  Purchsaing View ,it update the EKGRP filed,but  when it directly comes to MRP 1,its given an error,that MARC-EKGRP not exits.
Moreover I had done only recording for Purchaing View,not for MRP 1 view,but not able to understand why its going there in MRP 1 view,some time for some materials.
Can any one tell me,how to rectify this prob?
Regds.

Hi,
This problem occurs because,
Different materials have different types,
so this view will not be same for all,
so if you have done recording for 4th tab ,than for next material at 4th tab some other thing will be there,
to rectify this problem,
do the recording for basic data 1 (it will be present for very material ) and then goto the required tab,
i hope  it fits to your requirement,
Regards,
Talwinder

Similar Messages

  • BDC help req??

    Hi
    Can any one tell me to use 2 BDC simultaneously at a time in 1 single report.
    I had an req like to make a BDC for  MIGO & same time after its done the BDC for Tcode J1IEX has to be called,so can any one tell me some info for it.
    As its a reprot programing,I need to disply the  final data like GRN No. after MIGO had been done & Exc Invoice No after J1IEX had been done on a single page in an ALV form .
    Please help me in this,I had made a reprot for it,but I am  not able to make 2 BDC working at the same time.
    So plz tell me how to do ??
    Regds

    Hi,
      I had done in my previous project, that was production order creation, conformation and one more. You can check is there any BAPI's exist for you to update the data.
    Rgds,
    Bujji

  • Help req for screen exit in migo

    Hi guys,
                 I am using badi MB_MIGO_BADi to design an header screen i am facing following issues
    1) It should be active for a particular plant. Now which badi/exit shld be use to export the value of plant
    to badi to make it visible or invisible. IF its invisible does it also make it inactive??
    2) to save the data from the screen into an z table. i put a break point in exit MB_CF001 but its not executing when
    clicked on save while creating GRN against a PO.

    Hi,
    rearding the capturing of transit loss, I guess you can use the field 'Qty in Delivery note" to capture the Qty claimed to be delivered and capture the actual qty in the qty in Unit of entry field.
    The difference would the transit lodd.
    You can build reports on these.
    Hope this helps.

  • Help req for loop

    Hi All,
    I am retriving values from database and then writing it to a file...The code for this is
    String query = "SELECT Project_Master.proj_name,Project_Master.proj_desc,Project_Master.proj_location,folder_navigation.nav_name, content_document.cont_name,content_document.cont_type FROM Project_Master INNER JOIN folder_navigation ON Project_master.proj_id=folder_navigation.proj_id INNER JOIN content_document ON content_document.nav_id = folder_navigation.nav_id ";
    ResultSet rs = stmt.executeQuery(query);
    int maxcols = rs.getMetaData().getColumnCount();
    while(rs.next())
    System.out.println("proj_name::"+rs.getString("proj_name"));
    System.out.println("proj_desc::"+rs.getString("proj_desc"));
    System.out.println("proj_location::"+rs.getString("proj_location"));
    System.out.println("nav_name::"+rs.getString("nav_name"));
    System.out.println("cont_name::"+rs.getString("cont_name"));
    for(int i =1;i <=maxcols;i++)
    myData.add(new Tags_Define(rs.getString("proj_name"),rs.getString("proj_desc"),rs.getString("proj_location")));
    I get output of this as
    <name>data1</name>
    <desc>data2</desc>
    <path>data3</path>
    this data is repeated 6 times as there are 6 colomns in my table
    If i comment out for loop i get the above data 2 times
    But I want data to be retained row wise
    What should i do?
    Please help
    Thanks in advance

    First of all, when posting code, click the code button.
    Is the for loop meant to be nested in the while or is it supposed to come after it? It is impossible to tell as you did not include the closing brace.
    Also this code:
    String query = "SELECT Project_Master.proj_name,Project_Master.proj_desc,Project_Master.proj_location,folder_navigation.nav_name, content_document.cont_name,content_document.cont_type FROM Project_Master INNER JOIN folder_navigation ON Project_master.proj_id=folder_navigation.proj_id INNER JOIN content_document ON content_document.nav_id = folder_navigation.nav_id ";is much longer than it needs to be. Are you sure it executes without errors? Why don't you use a table alias instead?
    String query = "SELECT PM.proj_name,PM.proj_desc,PM.proj_location,folder_navigation.nav_name, content_document.cont_name,content_document.cont_type
    FROM Project_Master PM INNER JOIN folder_navigation ON PM.proj_id=folder_navigation.proj_id INNER JOIN content_document ON content_document.nav_id = folder_navigation.nav_id ";also, you have not specified folder_navigation or content_document in the from clause, I presume these are also tables? Also, what is myData? We do not see it declared anywhere.

  • Help req for check customer table maintenance with XD02 if not throw error

    hello ABAP GURUS,
    check customer of the table maintenance with XD02 if not throw error i have given the codition for passing the values in the table but before that it has to check whether the customer i am passing in to the table is a customer from xd02.Here whatever no i am passing it is accepting it should not happen, but when i give the customer which is not a customer it should not accept but it has to throw the message as 'customer does not exist.Its urgent please help me
    TYPES: BEGIN OF TY_KNVI,
    KUNNR TYPE KUNNR,
    TATYP TYPE TATYP,
    TAXKD TYPE TAKLD,
    END OF TY_KNVI.
    DATA : VALIDFROM TYPE GUEBG,
    VALIDTO TYPE GUEEN.
    DATA : IT_KNVI TYPE STANDARD TABLE OF TY_KNVI,
    WA_KNVI TYPE TY_KNVI OCCURS 0 WITH HEADER LINE.
    DATA : V_NAME TYPE SYUNAME.
    SELECT KUNNR
    TATYP
    TAXKD
    FROM KNVI
    INTO TABLE WA_KNVI
    WHERE KUNNR = YYV_CFORM-KUNNR
    AND TATYP = 'ZCST'
    AND TAXKD = '1'.
    V_NAME = SY-UNAME.
    YYV_CFORM-ENTEREDBY = V_NAME.
    IF SY-SUBRC NE 0.
    MESSAGE E000(E4) WITH 'Please change the tax classification of ZCST as' '1' ', in Sales Area Data'.
    ENDIF.
    I have used the following code to enter the data into the table maintenance it is working fine and throwing the error when the tax type is not the one which i have given in the select statements but the problem is when i have given the customer no which is not there in the XD02 tcode, it is accepting and showing the error message as MESSAGE E000(E4) WITH 'Please change the tax classification of ZCST as' '1' ', in Sales Area Data'. now i have to check the customer no from XD02 and if it is existing in that tcode it should allow to save in the table maintenance otherwise throw a message as the 'Customer no does not exist, this I am unable to write so how can i check please help me .
    thankx in advance.
    Edited by: soni khadary on Apr 22, 2008 7:55 AM

    Hi Kelly,
    I guess <wa_tab>-handle_style is of type lvc_t_styl therefore you can do the following:
    ls_edit-style = cl_gui_alv_grid=>mc_style_enabled.
    "I assume you know your non-key fields' names so you can use subrotuine to perform update on each of them
    ls_edit-fieldname =  'First field name' .
    PERFORM update ls_edit.
    ls_edit-fieldname =  'Second field name'.
    PERFORM update ls_edit.
    ls_edit-fieldname = 'Third field name'.
    PERFORM update ls_edit
    FORM update USING fs_edit type lvc_s_styl.
    field-symbols: <style_tab> type lvc_t_styl,
                         <style_wa> type lvc_s_styl.
    LOOP AT <tab> ASSIGNING <wa_tab>.
       if e_row = sy-tabix .
         "get you style table
         assign component 'HANDLE_STYLE' of structure <wa_tab> to <style_tab>.
         "as <style_tab> is typed fully you can read the row you are interested in
         read table <style_tab> assigning <style_wa> with key fieldname = fs_edit-fieldname
         if sy-subrc = 0.
           "update this entry
            <style_wa> = fs_edit.
    *        modify table <style_tab> from <style_wa>. 
         endif.
       endif.
    endloop.
    endform.
    Note!
    Though, this should work, the use of RTTI as Uwe suggested would be best practise approach as far as dynamic programming is concerned. Anyhow it is still up to you which one you pick.
    Regards
    Marcin
    I noticed now that this line is not necessary
    modify table <style_tab> from <style_wa>. 
    as we simply are working with field symbols, so changes made to <style_wa> are already visible in that table <style_tab>.
    Edited by: Marcin Pciak on Mar 15, 2009 12:44 PM

  • Help Req for creating tool tip for value

    Hi ABAPers,
    I have created the search help for material.
    In search help output screen ,
                           I have the column contain a long text with the output lenght as 40 char that is displayed and once i put the mouse on it the entire  long text  should apears.
    Kindly help.
    Thanks & Regards
    Sachin Yadav

    If it is a input text field... i think not possible.
    This is only possible for buttons on toolbar (as far as i know)

  • Help Req for fresher

    I am new in this area. Pls send me some documents and reading material at [email protected] Points awarded.
    Thanks
    Murali

    Hi Murali,
    Maybe the SAP Online Documentation can help you on this.
    http://help.sap.com
    There you will find all the necessary informations on PLM issues for your used release.
    Best regards,
    Chrisoph

  • Help req. for IS-T

    Hi all,
             My new assignment is come under IS-T (Telecommunication).  I am working as a MM consultant. Can any body give me some idea about IS-T customization path or Tcode or useful link. This there any special setting required for IS-T.
          Thanks in advance ( if you have any useful document then send me on sk_deo at the rate lycos dot com )
    regards
    Sanjay

    http://help.sap.com/saphelp_telecom472/helpdata/en/5F/B82C368CAE9167E10000009B38F839/frameset.htm
    Master Data Details:       
    Business Partner  :: BP
    Contract Account  ::  CAA1,2,3.
    Regards,
    Shiva

  • Help Req for Rounding Rule,

    Hi All,
    Can some one tell me what r the steps to be created in rounding rule of Absence Quota.
    Regards,
    Vinod.

    Define Rules for Rounding Counted Absences
    In this step, you set rounding rules for absence and attendance counting.
    If you specify an hours or day multiplier for counting attendances and absences, the values determined can have several places behind the decimal point. It is difficult to use these values for quota deduction and payroll. In this step, therefore, you set rules for rounding the values.
    You use concrete numbers for the rounding rules and can specify whether you want:
    Only values within the specified interval to be rounded or the interval to be rolled
    The specified upper and lower limits to be included in the calculation
    You can specify several subrules for a rounding rule and number them sequentially. The system runs through the subrules in sequential order until it finds one that applies.
    Example
    For absences, you use a counting rule that is counted using an hours multiplier of 80%. You want whole numbers (full hours) to be determined in counting.
    Define a rounding rule
    With a lower limit of 0.5 (inclusive)
    With an upper limit of 1.5 (not inclusive)
    With a target value of 1
    You want the rule to be rolled, that is, to apply also to the following intervals:
    1.5 - 2.4 (rounded to 2)
    2.5 - 3.4 (rounded to 3)
    and so on.
    Standard settings
    The standard system contains sample rounding rules.
    Activities
    1. Define a rounding rule.
    2. If you want to specify several subrules, number them sequentially.
    3. Enter the upper and lower limit of the rounding interval.
    If you select the Incl. field, the value of the specified upper or lower limit is included in the rounding (greater than/equal to or less than/equal to).
    4. Enter the target value to which you want the value to be rounded.
    5. If you want the rounding rule to be rolled, select the Roll. field.
    Further notes
    You can also use the rounding rules you define here for other purposes, for example, to round quota entitlements that have been generated automatically.

  • BDC FOR MM02

    Hi Friends,
    i want to write a BDC FOR MM02 T.CODE AT PLANT LEVEL AND METERIAL LEVEL.
    I WANT UPLOAD THE BELOW FEILDS DATA :
    THE FIELDS THAT I WANT UPLOAD IS EISBE(SAFETY STOCK) , MAABC(ABC INDICATOR)
    AND WZEIT(LEAD TIME).....AT PLANT LEVEL AND METERIAL LEVEL.
    PLS HELP ME.... IT IS AN URGENT.
    REGARDS,

    because with LSMW , you can standard program RMDATIND (direct input ==> faster than batch input.
    In step 1 : you select standard program (OBject 0020 method 0000)
    In step 2 you define source structure ZSRC_MARA
    In step 3 you list the fields : MATNR, WERKS, MAABC, MINBE
    In step 4 you make the link of your source struture to BGR00, BMM00, BMMH1
    In step 5 you map your fields + BMM00-XEID1 ( you have to flag the views you consider).
    Finished from developpement side
    DAvid

  • BDC for MM02 - Quality management

    Hi Friends,
    I need to create BDC program for MM02 with Quality Management View.
    My problem is with the sequence of the QM view in MM02 for different material types as per with recording.
    Kindly suggest me to resolve the issue.
    Thanks & Regards,
    S.Suresh
    Edited by: The Rock on Nov 7, 2011 1:43 PM

    Hi S.Suresh,
    I would simply read table QMAT to check if material/plant has Inspection Type '01'.
    Then, in case Inspection Type needs to be created, just call the BAPI_MATINSPCTRL_SAVEREPLICA FM with structure INSPECTIONCTRL properly filled-in.
    If successful, then remember to call BAPI_TRANSACTION_COMMIT.
    Hope this could help.
    Bye,
    Flavio

  • BDC or LSMW for open PO

    Dear Friends,
    We are suppose to go likve soon, but we have @ 500 open Purchase orders and we would like to ipload same in sap as retail can any 1 guide me how to do it?
    Regrads,
    Vishal
    [email protected]

    Hi Vishal,
    Please make a note that,
    LSMW is used to transfer Master Data.
    BDC is used for transactional Data.
    LSMW can import data from legacy systems (e.g. in the form of Excel sheets or CSV files). For this, I guess, LSMW converts your data into batch input files automatically. If you use BDC, on the other hand, you have to write your batch input file yourself, line per line.
    So, Open Purchase Order are the Transactional Data for you can use BDC for this Purpose
    Please take your ABAPER's help to will write a Code to Migrate the Data.
    Hope this Solve your Purpose and Please Reward If Really Helpful,
    Thanks and Regards,
    Sateesh.Kandula

  • Error In BDC when uploading for tcode FS00

    Hi Experts,
      problem in uploading BDC session method for tcode FS00. when i run my program it is giving apopup error message that (BDC_INSERT screen invalid)
    but my screen number is correct. i have checked this in recording program also.
    THere are subscreens in this iam not using any subscreen numbers  in my program.
    Points will rewarded.
    Thanks in advance.
    Francis.

    Hi Francis,
    Check your T-code which u mentioned in that FM bdc_insert. Mostly the problem with that FM  only. Check the coding for rrecording, if u miss the coding for any record then you may get problem.
    Hope this helps you.
    Regards,
    Kumar

  • Help req : alv grid with multiple row selection

    Hi all sap gurus,
    i have a alv list display program , in which i can select the o/p rows(multiple rows)
    and perform some actiom based on some icons .
    now i have to convert this in to grid display
    this is initial code i.e for list
    DATA :  BEGIN OF itab OCCURS 0.
            INCLUDE STRUCTURE ztest.
    DATA :  checkbox type c.
    DATA : END OF itab.
    s_layout-box_fieldname = 'CHECKBOX'.
      ty_events-name = slis_ev_top_of_page.
      ty_events-form =  'TOP_OF_PAGE'.
      APPEND ty_events TO it_events.
    ALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
           EXPORTING
                i_program_name     = v_repid
                i_internal_tabname = 'ITAB'
                i_inclname         = v_repid
           CHANGING
                ct_fieldcat        = build_fieldcatalog.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
         EXPORTING
       I_INTERFACE_CHECK              = ' '
       I_BUFFER_ACTIVE                = ' '
         i_callback_program             = v_repid
         i_callback_pf_status_set       = 'SET_PF_STATUS'
         i_callback_user_command        = 'USER_COMMAND'
         i_structure_name               = 'ITAB'
         is_layout                      = s_layout
         it_fieldcat                    = build_fieldcatalog[]
       IT_EXCLUDING                   =
       IT_SPECIAL_GROUPS              =
       IT_SORT                        =
       IT_FILTER                      =
       IS_SEL_HIDE                    =
       I_DEFAULT                      = 'X'
       I_SAVE                         = ' '
       IS_VARIANT                     =
         it_events                      = it_events
       IT_EVENT_EXIT                  =
       IS_PRINT                       =
       IS_REPREP_ID                   =
       I_SCREEN_START_COLUMN          = 0
       I_SCREEN_START_LINE            = 0
       I_SCREEN_END_COLUMN            = 0
       I_SCREEN_END_LINE              = 0
    IMPORTING
       E_EXIT_CAUSED_BY_CALLER        =
       ES_EXIT_CAUSED_BY_USER         =
          TABLES
            t_outtab                    = itab
         EXCEPTIONS
           program_error                = 1
           OTHERS                       = 2
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
    FORM user_command USING ucomm LIKE sy-ucomm
    selfield TYPE slis_selfield.
      IF ucomm = 'DELE'.
        LOOP AT iTAB WHERE CHECKbox = 'X' .
        ENDLOOP.
        MODIFY  ztEST FROM TABLE itAB.
      ENDIF.
      selfield-refresh = 'X'.
    ENDFORM.
    NOW I HAVE A LIST O/P WHERE I CAN SELECT THE BOX AND CLICK DELETE ICON.
    NOW I WANT TO CHANGE TO GRID, SO I KEPT EVERYTHING SAMRE AND I CHANGED  " LIST" TO "GRID"
    NOW TWO THINGS HAPPEND
    1) I SEE A EMPTY COLUMN IN THE O/P , I GUESS THATS BECAUSE CHECKBOSX IN INTERNAL TABLE , SO I REMOVED IT
    SO THIS MADE ME TO REMOVE
    IF ucomm = 'DELE'.
        LOOP AT iTAB." WHERE CHECKbox = 'X' .------PROBLEM
        ENDLOOP.
        MODIFY  ztEST FROM TABLE itAB.
      ENDIF.
      selfield-refresh = 'X'.
    NOW I DON'T SEE THE EMPTY COLUMN , BUT NOW PROBLEM  IS I CANNNOT DISTINGUISH AS TO WHICH IS SELECTED AND AT ANY POINT OF TIME I CANSELECT ONLY ROW.
    ALL I WANT IS
    1) I WANT TO SELECT MULTIPLE ROWS AND SHOULD BE ABLE TO KNOW WHICH ROWS WERE SELECTED IN THE O/P SCREEN.
    IN THE LIST DISPLAY I HAD CHECKBOX = 'X' FOR ALL THE ROWS THAT WERE SELECTED , I WANT THE SIMILAR THING in grid display
    LET ME KNOW whether this can be done without USING 00 LANG.
    thanks

    Hi Swati,
    Below code might help full for you. Description: is It selects multiple rows from ALV and display it on the next ALV.
    *************************Reward Point If help full********************************************
    *& Report   z7cc_alv_oops_show_next_alv                                *
    *&          DEVELOPERS NAME : CHIDANAND CHAUHAN
    *&          DATE: SATURDAY 08-07-2006
    *&          DESCRIPTION: TO CREATE AN OBJECT ORIENTED ALV
    REPORT      z7cc_alv_oops_show_next_alv MESSAGE-ID  z5hs .
    DATA : BEGIN OF it_mara OCCURS 0,
      mark  TYPE flag,
      matnr TYPE matnr,
      mtart TYPE mtart,
      meins TYPE meins,
    END OF it_mara.
    DATA : BEGIN OF it_mara1 OCCURS 0,
    *  mark  type flag,
      matnr TYPE matnr,
      mtart TYPE mtart,
      meins TYPE meins,
    END OF it_mara1.
    DATA : BEGIN OF it_mara2 OCCURS 0,
    *  mark  type flag,
      matnr TYPE matnr,
      mtart TYPE mtart,
      meins TYPE meins,
    END OF it_mara2.
    DATA : t_fieldcat TYPE lvc_t_fcat,
             t_fieldcat1 TYPE lvc_t_fcat,
          s_fieldcat LIKE LINE OF t_fieldcat.
    DATA : s_layout TYPE lvc_s_layo.
    DATA : control TYPE REF TO cl_gui_custom_container,
           grid  TYPE REF TO cl_gui_alv_grid.
    DATA: BEGIN OF wa ,
      mark  TYPE flag,
      matnr TYPE matnr,
      mtart TYPE mtart,
      meins TYPE meins,
    END OF wa.
    *       CLASS lcl_events_box DEFINITION
    CLASS lcl_events_box DEFINITION.
      PUBLIC SECTION.
        METHODS :
    *Handler_Data_Changed for event Data_Changed of cl_gui_alv_grid
    *imporTing er_data_changed,
        handler_user_command FOR EVENT user_command OF cl_gui_alv_grid
        IMPORTING e_ucomm,
        handler_toolbar FOR EVENT toolbar OF cl_gui_alv_grid
        IMPORTING e_object e_interactive.
    ENDCLASS.                    "lcl_events_box DEFINITION
    *       CLASS lcl_events_box IMPLEMENTATION
    CLASS lcl_events_box IMPLEMENTATION.
    * method to handle the user command.
      METHOD handler_user_command.
        PERFORM form_usercommand CHANGING e_ucomm.
      ENDMETHOD.                    "Handler_user_command
    *& Mehod to handle the toolbar.
      METHOD handler_toolbar.
        PERFORM form_toolbar CHANGING e_object e_interactive
        e_object->mt_toolbar.
      ENDMETHOD.                    "Handler_ToolBar
    ENDCLASS.                    "lcl_events_box IMPLEMENTATION
    START-OF-SELECTION.
      DATA : w_events TYPE REF TO lcl_events_box.
      SELECT matnr mtart meins FROM mara INTO CORRESPONDING FIELDS OF TABLE
      it_mara.
      CALL SCREEN 100.
    *&      Module  pbo_module  OUTPUT
    *       text
    MODULE pbo_module OUTPUT.
      IF grid IS INITIAL.
        CREATE OBJECT control
          EXPORTING
            container_name     = 'CUST_CTRL'.
        CREATE OBJECT grid
          EXPORTING
            i_parent          = control.
        PERFORM build_catalog.
        PERFORM build_catalog1.
        PERFORM build_layout.
        CALL METHOD grid->set_table_for_first_display
          EXPORTING
            is_layout       = s_layout
          CHANGING
            it_outtab       = it_mara[]
            it_fieldcatalog = t_fieldcat.
        CREATE OBJECT w_events.
        SET HANDLER : w_events->handler_toolbar FOR grid,
                      w_events->handler_user_command FOR grid.
        CALL METHOD grid->set_toolbar_interactive.
      ELSE.
        CALL METHOD grid->refresh_table_display.
      ENDIF.
    ENDMODULE.                 " pbo_module  OUTPUT
    *&      Form  BUILD_CATALOG
    FORM build_catalog .
      s_fieldcat-col_pos = '1'.
      s_fieldcat-fieldname = 'MARK'.
      s_fieldcat-checkbox = 'X'.
      s_fieldcat-edit = 'X'.
      APPEND s_fieldcat TO t_fieldcat.
      CLEAR s_fieldcat.
      s_fieldcat-col_pos = '2'.
      s_fieldcat-fieldname = 'MATNR'.
      s_fieldcat-scrtext_m = 'MATERIAL'.
      APPEND s_fieldcat TO t_fieldcat.
      s_fieldcat-col_pos = '3'.
      s_fieldcat-fieldname = 'MTART'.
      s_fieldcat-scrtext_m = 'MATERL TYPE'.
      APPEND s_fieldcat TO t_fieldcat.
      s_fieldcat-col_pos = '4'.
      s_fieldcat-fieldname = 'MEINS'.
      s_fieldcat-scrtext_m = 'UOM'.
      APPEND s_fieldcat TO t_fieldcat.
    ENDFORM.                    " BUILD_CATALOG
    *&      Form  BUILD_LAYOUT
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM build_layout .
      s_layout-zebra = 'X'.
    * S_LAYOUT-CWIDTH_OPT = 'X'.
      s_layout-grid_title = 'Material Details'.
    ENDFORM.                    "BUILD_LAYOUT
    " BUILD_LAYOUT////////////////////////////////////
    " USER_COMMAND_0100  INPUT
    *&      Form  FORM_USERCOMMAND
    *       text
    *      <--P_E_UCOMM  text
    FORM form_usercommand  CHANGING p_e_ucomm.
      CASE p_e_ucomm.
        WHEN 'INT1'.
          DO.
            READ TABLE it_mara INDEX sy-index TRANSPORTING mark matnr.
            IF sy-subrc <> 0.
              EXIT.
            ENDIF.
            IF it_mara-mark = 'X'.
              READ TABLE it_mara INTO wa TRANSPORTING matnr mtart meins .
              MOVE-CORRESPONDING wa TO it_mara1.
              READ TABLE it_mara1 TRANSPORTING matnr mtart meins .
              MOVE-CORRESPONDING it_mara1  TO it_mara2.
              APPEND it_mara2.
              CALL METHOD grid->set_table_for_first_display
                EXPORTING
                  is_layout       = s_layout
                CHANGING
                  it_outtab       = it_mara2[]
                  it_fieldcatalog = t_fieldcat1.
    *       SET PARAMETER ID 'MAT' FIELD IT_MARA-MATNR.
    *       CALL TRANSACTION 'MM02'.
            ENDIF.
    *      ENDIF.
          ENDDO.
      ENDCASE.
    ENDFORM.                    " FORM_USERCOMMAND
    *&      Form  FORM_TOOLBAR
    *       text
    *      <--P_E_OBJECT  text
    *      <--P_E_INTERACTIVE  text
    *      <--P_E_OBJECT_>MT_TOOLBAR  text
    FORM form_toolbar  CHANGING p_e_object TYPE REF TO
    cl_alv_event_toolbar_set
    p_e_interactive
    mt_toolbar TYPE ttb_button.
      DATA wal_button TYPE stb_button.
    *WAL_BUTTON-ICON = ICON_status_reverse.
      wal_button-text = 'GO'.
      wal_button-quickinfo = 'PROCEED'.
      wal_button-function = 'INT1'.
      wal_button-butn_type = 0.
      wal_button-disabled = space.
      INSERT wal_button  INTO p_e_object->mt_toolbar INDEX 1.
    ENDFORM.                    " FORM_TOOLBAR
    *&      Module  PF-STATUS  OUTPUT
    *       text
    MODULE pf-status OUTPUT.
      SET PF-STATUS 'Z7CCSTAT'.
    ENDMODULE.                 " PF-STATUS  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    MODULE user_command_0100 INPUT.
      CASE sy-ucomm.
        WHEN 'BACK'.
          LEAVE PROGRAM.
        WHEN 'CANCEL'.
          LEAVE PROGRAM.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT
    *&      Form  BUILD_CATALOG1
    *       text
    *  -->  p1        text
    *  <--  p2        text
    FORM build_catalog1 .
      s_fieldcat-col_pos = '1'.
      s_fieldcat-fieldname = 'MATNR'.
      s_fieldcat-scrtext_m = 'MATERIAL'.
      APPEND s_fieldcat TO t_fieldcat1.
      s_fieldcat-col_pos = '2'.
      s_fieldcat-fieldname = 'MTART'.
      s_fieldcat-scrtext_m = 'MATERL TYPE'.
      APPEND s_fieldcat TO t_fieldcat1.
      s_fieldcat-col_pos = '3'.
      s_fieldcat-fieldname = 'MEINS'.
      s_fieldcat-scrtext_m = 'UOM'.
      APPEND s_fieldcat TO t_fieldcat1.
    ENDFORM.                    " BUILD_CATALOG1

  • Enhancement Spot for MM02 to validate a field

    Hi,
    I want to find a enhancement spot for MM02 to validate a field 'SerialNoProfile' in 'sales: General/Plant view'. can any one help me to find a enhnacement spot.
    Thanks in advance.
    Krishna

    hi
       Check these Exits
               MGA00001            Article Master (Industry): Checks and Enhancements
               MGA00002            Article Master (Industry): Number Assignment
               MGA00003            Article Master (Industry and Retail): Number Display
    thanks,
    nagaraj

Maybe you are looking for

  • Document type

    Dear Friend, we can use one document type for multiple posting purpose same ... How can we find out that one document type is assingned for how many areas..??? Thanks in advance .... BITTU

  • Update available for Lion only app - how to get rid of it?

    Hi, The App Store indicates that I have an app (linesmART) which is available for update, but when clicking the update button, a dialog box shows up saying it can't be updated because it requires OS X 10.7. I can imagine this will happen for other ap

  • External Display 1440x900 supported?

    Hi folks... Perhaps someone here has direct experience with this, or can do a test with your setup. There's a nice widescreen Samsung LCD monitor with 1440x900 resolution (model number 941BW). Does the external VGA output of a 400/500 MHz TiBook (the

  • File size in MB

    Hi Friends,     My requirement is to download the internal table value into a notepad. For eg. Internal table my contain 1000 records. So initially before downloading i need to determine the size of the file which i am going to download.Means by calc

  • Have lost close tab in the file tool bar options

    Hi, during a download of the latest version of firefox, I seemed to lose the close tab option in the file section of the tool bar,I have done a system restore and downloaded the lastest version again but has not resolved and tried using ctrl and w bu