Back ordrer report with checking on available stock

Hi ALL,
I need a back order report that will check on open sales order item (not confirm due to insufficient stock) and then lookup whether the open item had arrived and then recommend to User which Sales order to confirm the line item.
Current back order report, v.15 is not good enough.
Thanks

Hi
Try Tcode CO09 to view the ATP quantities. The ATP quantities are the Available To Promise - which are not assigned to any sales orders or customers and are free for sale.
Thanks,
Ravi

Similar Messages

  • Material wise reciept and Issue report with Opening and Closing Stock

    Hi
    I need a report,Material wise Receipt and issue with Opening and Closing stock.Is there any standard report available in SAP ?
    Or we have to go for Customised Report.
    Please reply

    Hi,
    MB5B gives total receipts - if i click on the receipts i can view the multiple material documents - BUT is there any way to drill down the reciepts or view the breakup of the receipts on the same screen OR is there any other report for this.
    Regards,
    Laxmi

  • CHECK ON AVAILABLE STOCK INTO STOR. LOC. PROJECT BUSINESS

    Hi All,
    When adding a material on a material network (material master has indicator: individual / collective 1 into MRP4 view), immediately a Purchase req. is created for Q stock. Stock is received via PO into project stock. This is the normal process.
    But if when there is still unrestricted stock available for this material into a stock loc. (within the same plant we creating the material network), how to check first automatically the unrestricted stock before the PR for Q stock is created for material requirements.
    Your inputs will be rewarded...
    Thanks & regards,
    Krishna

    Any inputs on this issue....
    BR,
    Krishna

  • Logic for a report with check boxes

    Hi All ,
    I m writting a report , I need to put FOUR check box in this report ,
    For example you  can say Check1 ( material1)
                                           Check2 ( material2)
                                           Check3 ( material3)
                                           Others
    In selection critriea I defined one select option ( eg materail )
    Now I have to diplay data accordingly checkboxes
    If Check box '<b>check1'</b> is selected -list must contains only material1
    If Check box '<b>check2'</b> is selected -list must contains only material2
    If Check box '<b>check3</b>' is selected -list must contains only material3
    If Check box '<b>check1</b>' or any other one is  selected -list must contains  material1 and other materail as per other selected check box .
    If Check box<b> others</b> is selected then all other fields ( except the selected check box ) are the out put of this report .
    IF you need more explaination of my query , plz let me know .
    Regards ,
    Narender

    REPORT ZTEST3 line-size 400.
    tables : mara.
    data i_mara like mara occurs 0 with header line.
    data i_marc like marc occurs 0 with header line.
    data i_mcha like mcha occurs 0 with header line.
    data i_mkol like mkol occurs 0 with header line.
    select-options: s_matnr for mara-matnr.
    parameters : p_check1 as checkbox.
    parameters : p_check2 as checkbox.
    parameters : p_check3 as checkbox.
    parameters : p_check4 as checkbox.
    start-of-selection.
    if p_check1 = 'X'.
    select * from mara into table i_mara where matnr in s_matnr.
    loop at i_mara.
    endloop.
    endif.
    if p_check2 = 'X'.
    select * from marc into table i_marc where matnr in s_matnr.
    loop at i_marc.
    endloop.
    endif.
    if p_check3 = 'X'.
    select * from mcha into table i_mcha where matnr in s_matnr.
    loop at i_mcha.
    endloop.
    endif.
    if p_check4 = 'X'.
    select * from mkol into table i_mkol where matnr in s_matnr.
    loop at i_mkol.
    endloop.
    endif.

  • Regarding alv report with check boxes

    Hai,
    i have four check boxes as input named new,rejected,accepted and all.these four four check boxes information is nothing but the information that displayed under one field in my internal table.if i click the new check box means that corresponding
    data has to be display similarly for accepted and rejected .if i click the all check box means all records has to be displayed.now i am facing one problem if i suppose to click all check box with either new or rejected orelse accepted orelse with all the three with all check box means then it wont goes to output instead of that it remains in the same window i.e input screen. pls tell me the solution as soon as possible.
    with regards,
    R.Dhineshraj.

    hi dhinesh,
    one thing...wen ur writing a code for checkboxes ...checck for the following..
    1> for individual check box code...one check box should b selected at a time..
    2> for combination of checkboxes...after end-of-selection event...where u put this condition...give the if-clause with and condition...for all possible conditions of all 4 checkboxes...
    den accordingly...select the form-perform corresponding to the checkbox selection...
    example code..im writing here...for individual assignment...
    PARAMETERS: invoiced AS CHECKBOX.
    PARAMETERS: good_iss AS CHECKBOX.
    END-OF-SELECTION.
      IF invoiced = 'X'.
        PERFORM create_fieldcatalog.
        PERFORM display_data.
      ELSE.
        IFgood_iss = 'X'.
    let me knw if it helps u..
    regards
    kanika

  • Interactive report with check boxes

    i want to create a report in which there should be check boxes for every record & when i'll check those check boxes it should show me the sublist of the checked records.

    hi,
    try like this
    DATA : BEGIN OF wi_cust OCCURS 0 ,
            kunnr LIKE kna1-kunnr,
            name1 LIKE kna1-name1,
            adrnr LIKE kna1-adrnr,
           END OF wi_cust.
    DATA : BEGIN OF wi_adrc OCCURS 0 ,
            kunnr LIKE kna1-kunnr,
            name1 LIKE adrc-name1,
            city1 LIKE adrc-city1,
           END OF wi_adrc.
    DATA : chk1 TYPE c,
                lines TYPE i,
                 lines1 TYPE i..
    DATA: c TYPE c, ind TYPE c.
    DATA : v_line TYPE sy-index.
    SELECT kunnr name1 adrnr UP TO 10 ROWS FROM kna1 INTO TABLE wi_cust.
    LOOP AT wi_cust .
      WRITE : / chk1 AS CHECKBOX ,sy-vline, wi_cust-kunnr,wi_cust-name1,wi_cust-adrnr.
      HIDE : wi_cust-kunnr, chk1.
    ENDLOOP.
    END-OF-SELECTION.
      lines = sy-linno - 1.
    AT LINE-SELECTION.
      CHECK sy-lsind = 1.
      WINDOW STARTING AT 5 4
      ENDING AT 85 20.
      DO lines TIMES.
        CLEAR chk1.
        READ LINE sy-index FIELD VALUE chk1.
        IF chk1 = 'X'.
          ind = sy-index - 2.
          READ TABLE wi_cust INDEX ind.
          SELECT name1 city1 FROM adrc INTO CORRESPONDING FIELDS OF TABLE wi_adrc
          WHERE addrnumber = wi_cust-adrnr.
          READ TABLE wi_adrc INDEX 1.
          WRITE : / wi_adrc-name1, wi_adrc-city1.
        ENDIF.
      ENDDO.

  • Report with project name and stock

    Please suggest a report to get project (WBS) and stock

    Hi,
    Please refer transaction CN52 /52N, for material components of projects.
    You can also refer transaction MBBS for the list of materials of the projects.
    Hope this will solve your problem.
    Regards,
    Rakesh Pradhan

  • How to validate values in alv report with check table

    Hi All,
    I have created one editable ALV in which user can enter material(matnr). Now I want to validate the value entered by the user before saving it to my custom table. I am using 'SLIS_T_FIELDCAT_ALV' as field catalog. Is there any field in this which I need to pass to validate material. I don't want to go for coding for this. I tried to search for this but did not get anything. Please help.
    Regards,
    Manish Sethia

    Hi Andreas,
    I tried but that is not working. Do I need to handle some event or command to get it validated. My code is as follows.
    FORM f_build_field_catalouge USING  p_fieldname   TYPE any
                              p_tabname     TYPE any
                              p_inputlen   TYPE any
                              p_fieldtext   TYPE any
                              p_edit         TYPE any
                              CHANGING p_col_pos TYPE any.
      CLEAR wa_fcat.
      p_col_pos = p_col_pos + 1.
      wa_fcat-fieldname       = p_fieldname .
      wa_fcat-tabname         = p_tabname.
      IF p_fieldname = 'MATNR'.
        wa_fcat-ref_tabname = 'MARA'.
        wa_fcat-ref_fieldname = 'MATNR'.
      ELSEIF p_fieldname = 'MATPGRP'.
        wa_fcat-ref_tabname = 'ZOTC_FLEX_MAT'.
        wa_fcat-ref_fieldname = 'MATPGRP'.
      ENDIF.
      wa_fcat-intlen          =  p_inputlen . "colume width
      wa_fcat-seltext_m       = p_fieldtext.
      wa_fcat-edit            = p_edit ."'X'.
      wa_fcat-col_pos         = p_col_pos.
      APPEND wa_fcat TO t_fcat.
    ENDFORM. 
    But this one is not working.
    Regards

  • FM to check available stock

    Hi experts,
    You Know some FM that checks the available stock of some material in somer Storage Location ?
    Thanks in advance.
    Alexandre Nogueira

    Have you checked into this BAPI yet?
    report zrich_0003.
    data:  iwmdvsx type table of bapiwmdvs with header line,
           iwmdvex type table of bapiwmdve with header line.
    parameters: p_matnr type mara-matnr,
                p_werks type marc-werks,
                p_meins type mara-meins.
    call function 'BAPI_MATERIAL_AVAILABILITY'
      exporting
        plant            = p_werks
        material         = p_matnr
        unit             = p_meins
    *   CHECK_RULE       =
    *   STGE_LOC         =
    *   BATCH            =
    *   CUSTOMER         =
    *   DOC_NUMBER       =
    *   ITM_NUMBER       =
    *   WBS_ELEM         =
    *   STOCK_IND        =
    * IMPORTING
    *   ENDLEADTME       =
    *   AV_QTY_PLT       =
    *   DIALOGFLAG       =
    *   RETURN           =
      tables
        wmdvsx           = iwmdvsx
        wmdvex           = iwmdvex.
    check sy-subrc = 0.
    Oops, looks like I'm a tad late.    Oh well.
    Regards,
    RIch Heilman

  • Available stock in SalesOrder

    Hi,
    We use this query to check the available stock in an Salesorder for BOM items with FMS.
    I want to extend the query now with a WHERE clause to see only the items that are not enough in stock based on Quantity in Salesorder multiplied with the needed quantity in the BOM.
    Is this possible to achieve in this QUERY.
    SELECT CASE WHEN ISNULL (T3.ItemCode,T1.ItemCode) = T1.ItemCode THEN T1.ItemCode ELSE T3.ItemCode END 'Artikelnummer' ,
    CASE WHEN ISNULL(T3.ItemName,T1.ItemName)=T1.ItemName THEN T1.ItemName ELSE T3.ItemName END 'Artikelomschrijving',
    IsNUll(T3.Onhand, T1.Onhand) 'In Magazijn'
    FROM ITT1 T0
    INNER JOIN OITM T1 ON T1.ItemCode=T0.Code
    LEFT JOIN ITT1 T2 ON T2.Father=T0.Code
    LEFT JOIN OITM T3 ON T3.ItemCode=T2.Code
    WHERE T0.Father=  $[$38.1.0]
    Thanks
    Mark

    Hi Mark,
    Try:
    SELECT Distinct ISNULL (T3.ItemCode,T1.ItemCode)  'Artikelnummer',
    ISNULL(T3.ItemName,T1.ItemName) 'Artikelomschrijving',
    IsNUll(T3.Onhand, T1.Onhand) 'In Magazijn'
    FROM ITT1 T0
    INNER JOIN OITM T1 ON T1.ItemCode=T0.Code AND T1.Onhand< $[$38.11.number]*T0.Quantity
    LEFT JOIN ITT1 T2 ON T2.Father=T0.Code
    LEFT JOIN OITM T3 ON T3.ItemCode=T2.Code AND T3.Onhand< $[$38.11.number]*T0.Quantity*T2.Quantity
    WHERE T0.Father  $[$38.1.0]
    Thanks,
    Gordon

  • Creating TREE REPORT with CHECKBOX against each row

    Hi Friends,
    I need to create a <b>TREE REPORT with  CHECK BOX</b> against each row. when the user selects a row and clicks on a custom button then those should get populated into an internal table. <b>This is HIGH priority</b> one and I have tried my best but couldnt find any solution. Please advise me some sol.
    thanks in advance for your valuable time and help.
    Regards
    srithan
    Message edited by me for easyness
            Reddy

    Hi
    Following code is to add checkboxes in ALV tree:
    FORM add_root_request USING pls_data_ TYPE csg_gs_outtab_p_key__l_is_sub_node_ TYPE c
    CHANGING pl_carrid_key._node = nodes->add_node( related_node = p_key
    relationship = cl_gui_column_tree=>relat_last_child ).
    ... §0.2 if information should be displayed at
    the hierarchy column set the carrid as text for this node
    text = p_ls_data-object.
    node->set_text( text ).
    ... §0.3 set the data for the nes node
    node->set_data_row( p_ls_data ).
    item = node->get_hierarchy_item( ).
    item = node->get_item( 'FCHECKBOX' ). "FCHECKBOX is my radio button field in internal table which I am using to populate the ALV
    item->set_type( if_salv_c_item_type=>checkbox ).
    pl_carrid_key = node->get_key( )._
    CATCH cx_salv_msg.
    ENDFORM_._Following code is for handling checbox_change event
    PERFORM application_action_events.
    FORM application_action_events .
    data: lr_events type ref to cl_salv_events_tree.
    *data gr_events type ref to lcl_handle_events.
    lr_events = gr_tree->get_event( ).
    create object gr_events.
    set handler gr_events->check for lr_events.
    set handler gr_events->on_link_click for lr_events.
    set handler gr_events->on_before_user_command for lr_events.
    set handler gr_events->on_after_user_command for lr_events.
    set handler gr_events->on_keypress for lr_events.
    endform. " application_action_events----
    CLASS lcl_handle_events DEFINITION.
    PUBLIC SECTION.
    METHODS:
    check FOR EVENT checkbox_change OF cl_salv_events_tree IMPORTING node_key columnname checked. "Here node_key is the row number
    ENDCLASS. "lcl_handle_events DEFINITION
    CLASS lcl_handle_events IMPLEMENTATION
    §4.2 implement the events for handling the events of cl_salv_table
    CLASS lcl_handle_events IMPLEMENTATION_._
    METHOD check_._
    WRITE 'hello'_._
    DATA lwa_modify_check_ TYPE REF TO csg_gs_outtab.
    node_key = node_key - 1_._
    READ TABLE csg_gt_list INDEX node_key REFERENCE INTO lwa_modify_check._
    if columnname = 'FCHECKBOX'_._
    IF checked = 'X'_._
    If the value in internal table is set to X, then it is deselct
    lwa_modify_check->fcheckbox =_ ' '_._
    ELSE_._
    lwa_modify_check->fcheckbox =_ 'X'_._
    ENDIF_._
    ENDIF_._
    if columnname = 'CHECKBOX_READ'_._
    IF checked = 'X'_._
    If the value in internal table is set to X, then it is deselct
    lwa_modify_check->checkbox_read =_ ' '_._
    ELSE_._
    lwa_modify_check->checkbox_read =_ 'X'_._
    ENDIF_._
    ENDIF_._
    *MODIFY TABLE csg_gt_list from l_wa_modify_check.
    flag_test = flag_test + 1_._
    ENDMETHOD_._ "check
    ENDCLASS_._ "lcl_handle_events IMPLEMENTATION
    Please give me reward points

  • Interactive reports with alv

    Hi,
    i just wanted to know how to create interactive reports with check box and whether we can use av with interactive reports.

    hi,
    this the code for interactiv ALV
    *& Report  ZINT_ALV
    REPORT  zint_alv.
    TYPE-POOLS:slis.
    TABLES:mara,
           makt,
           mseg.
    DATA:BEGIN OF itab OCCURS 0,
          matnr LIKE mara-matnr,
          maktx LIKE makt-maktx,
         END OF itab.
    DATA:BEGIN OF itab1 OCCURS 0,
          mblnr LIKE mseg-mblnr,
          menge LIKE mseg-menge,
          meins LIKE mseg-meins,
          werks LIKE mseg-werks,
         END OF itab1.
    DATA:BEGIN OF itab2 OCCURS 0,
          mblnr LIKE mseg-mblnr,
          budat LIKE mkpf-budat,
         END OF itab2.
    DATA:fcat TYPE slis_t_fieldcat_alv,
         fcat1 TYPE slis_t_fieldcat_alv,
         fcat2 TYPE slis_t_fieldcat_alv,
         eve TYPE slis_t_event,
         eve1 TYPE slis_t_event.
    DATA:t_mat LIKE mara-matnr,
         t_doc LIKE mseg-mblnr,
         s_mat LIKE mara-matnr,
         g_repid LIKE sy-repid,
         subtot TYPE slis_t_sortinfo_alv,
         g_subtot LIKE LINE OF subtot.
    SELECTION-SCREEN:BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.
    SELECT-OPTIONS:mat FOR mara-matnr OBLIGATORY.
    SELECTION-SCREEN:END OF BLOCK blk1.
    INITIALIZATION.
      PERFORM build_fcat USING fcat.
      PERFORM build_eve.
    START-OF-SELECTION.
      PERFORM get_data.
      PERFORM dis_data.
    *&      Form  build_fcat
          text
         -->T_FCAT     text
    FORM build_fcat USING t_fcat TYPE slis_t_fieldcat_alv.
      DATA:wa_fcat TYPE slis_fieldcat_alv.
      wa_fcat-tabname = 'ITAB'.
      wa_fcat-fieldname = 'MATNR'.
      wa_fcat-ref_fieldname = 'MATNR'.
      wa_fcat-ref_tabname = 'MARA'.
      wa_fcat-seltext_m = 'Material'.
    wa_fcat-input = ' '.
    wa_fcat-edit = 'X'.
      wa_fcat-input = 'X'.
    wa_fcat-key = 'X'.
      APPEND wa_fcat TO t_fcat.
      CLEAR wa_fcat.
      wa_fcat-tabname = 'ITAB'.
      wa_fcat-fieldname = 'MAKTX'.
      wa_fcat-seltext_m = 'Description'.
      APPEND wa_fcat TO t_fcat.
      CLEAR wa_fcat.
    ENDFORM.                    "build_fcat
    *&      Form  build_eve
          text
    FORM build_eve.
      DATA:t_eve TYPE slis_alv_event.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
       EXPORTING
         i_list_type           = 0
       IMPORTING
         et_events             = eve
    EXCEPTIONS
      LIST_TYPE_WRONG       = 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.
    ENDFORM.                    "build_eve
    *&      Form  get_data
          text
    FORM get_data.
      SELECT maramatnr maktmaktx INTO CORRESPONDING FIELDS OF TABLE itab
      FROM mara INNER JOIN makt
      ON maramatnr = maktmatnr
      WHERE mara~matnr IN mat.
    ENDFORM.                    "get_data
    *&      Form  dis_data
          text
    FORM dis_data.
      g_repid = sy-repid.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
         i_callback_program                = g_repid         "'ZINT_ALV'
         i_callback_user_command           = 'USER_COMMAND'
         i_grid_title                      = 'Interactive ALV'
         it_fieldcat                       = fcat
         it_events                         = eve
        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.
    ENDFORM.                    "dis_data
    *&      Form  user_command
          text
         -->U_COM      text
    FORM user_command USING u_com LIKE sy-ucomm sel_field TYPE slis_selfield.
      CLEAR fcat1.
      CASE u_com.
        WHEN '&IC1'.
          READ TABLE itab INDEX sel_field-tabindex.
          IF sel_field-fieldname = 'MATNR'.
            IF sy-subrc = 0.
              t_mat = itab-matnr.
              PERFORM build_cat1 USING fcat1.
              PERFORM build_eve1.
              PERFORM get_data1.
              PERFORM dis_data1.
            ENDIF.
          ENDIF.
         SET PARAMETER ID 'MAT' FIELD t_mat.
         CALL TRANSACTION 'MM03' AND SKIP FIRST SCREEN.
      ENDCASE.
    ENDFORM.                    "user_command
    *&      Form  build_fcat1
          text
         -->T_FCAT1    text
    FORM build_cat1 USING t_fcat1 TYPE slis_t_fieldcat_alv.
      DATA:wa_fcat1 TYPE slis_fieldcat_alv.
      wa_fcat1-tabname = 'ITAB1'.
      wa_fcat1-fieldname = 'MBLNR'.
      wa_fcat1-seltext_m = 'Material Doc.'.
      APPEND wa_fcat1 TO t_fcat1.
      CLEAR wa_fcat1.
      wa_fcat1-tabname = 'ITAB1'.
      wa_fcat1-fieldname = 'MENGE'.
      wa_fcat1-seltext_m = 'Quantity'.
      wa_fcat1-do_sum    = 'X'.
      APPEND wa_fcat1 TO t_fcat1.
      CLEAR wa_fcat1.
      wa_fcat1-tabname = 'ITAB1'.
      wa_fcat1-fieldname = 'MEINS'.
      wa_fcat1-seltext_m = 'UOM'.
      APPEND wa_fcat1 TO t_fcat1.
      CLEAR wa_fcat1.
      wa_fcat1-tabname = 'ITAB1'.
      wa_fcat1-fieldname = 'WERKS'.
      wa_fcat1-seltext_m = 'Plant'.
      APPEND wa_fcat1 TO t_fcat1.
      CLEAR wa_fcat1.
    g_subtot-spos = 1.
    g_subtot-fieldname = 'MBLNR'.
    g_subtot-tabname = 'ITAB1'.
    g_subtot-up = 'X'.
    g_subtot-group = 'X'.
    g_subtot-subtot = 'X'.
    g_subtot-expa = 'X'.
    APPEND g_subtot TO subtot.
    g_subtot-spos = 2.
    g_subtot-fieldname = 'MENGE'.
    g_subtot-tabname = 'ITAB1'.
    g_subtot-up = 'X'.
    g_subtot-group = 'X'.
    g_subtot-subtot = 'X'.
    g_subtot-expa = 'X'.
    APPEND g_subtot TO subtot.
    ENDFORM.                    "build_fcat1
    *&      Form  build_eve1
          text
    FORM build_eve1.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
        EXPORTING
          i_list_type     = 0
        IMPORTING
          et_events       = eve1
        EXCEPTIONS
          list_type_wrong = 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.
    ENDFORM.                                                    "build_eve1
    *&      Form  get_data1
          text
    FORM get_data1.
      SELECT mblnr menge meins werks FROM mseg
      INTO CORRESPONDING FIELDS OF TABLE itab1
      WHERE matnr = t_mat.
    ENDFORM.                                                    "get_data1
    *&      Form  dis_data1
          text
    FORM dis_data1.
      g_repid = sy-repid.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
         i_callback_program                = g_repid              "'ZINT_ALV'
         i_callback_user_command           = 'USER_COMMAND1'
         it_fieldcat                       = fcat1
         it_events                         = eve1
         i_save                            = 'A'
         it_sort                            = subtot
        TABLES
          t_outtab                          = itab1
    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.
    ENDFORM.                                                    "dis_data1
    *&      Form  user_command1
          text
         -->U_COM1     text
         -->SEL_FIELD  text
    FORM user_command1 USING u_com1 LIKE sy-ucomm sel_field TYPE slis_selfield.
      CASE u_com1.
        WHEN '&IC1'.
          READ TABLE itab1 INDEX sel_field-tabindex.
          IF sy-subrc = 0.
            t_doc = itab1-mblnr.
            PERFORM build_cat2 USING fcat2.
            PERFORM get_data2.
            PERFORM dis_data2.
          ENDIF.
      ENDCASE.
    ENDFORM.                    "user_command
    *&      Form  build_cat2
          text
         -->P_FCAT1  text
    FORM build_cat2  USING    t_fcat2 TYPE slis_t_fieldcat_alv.
      DATA:wa_fcat2 TYPE slis_fieldcat_alv.
      wa_fcat2-tabname = 'ITAB2'.
      wa_fcat2-fieldname = 'MBLNR'.
      wa_fcat2-seltext_m = 'Material Doc.'.
      APPEND  wa_fcat2 TO t_fcat2.
      CLEAR  wa_fcat2.
      wa_fcat2-tabname = 'ITAB2'.
      wa_fcat2-fieldname = 'BUDAT'.
      wa_fcat2-seltext_m = 'Material Date'.
      APPEND  wa_fcat2 TO t_fcat2.
      CLEAR  wa_fcat2.
    ENDFORM.                    " build_cat2
    *&      Form  get_data2
          text
    -->  p1        text
    <--  p2        text
    FORM get_data2 .
      SELECT mblnr budat  FROM mkpf
        INTO CORRESPONDING FIELDS OF TABLE itab2
        WHERE mblnr = t_doc.
    ENDFORM.                                                    " get_data2
    *&      Form  dis_data2
          text
    -->  p1        text
    <--  p2        text
    FORM dis_data2 .
      g_repid = sy-repid.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
         i_callback_program                = g_repid              "'ZINT_ALV'
         it_fieldcat                       = fcat2
         i_save                            = 'A'
        TABLES
          t_outtab                          = itab2
    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.
    ENDFORM.                                                    " dis_data2
    reward if useful...

  • Create a dashboard with moving display like stocks prices

    hi all!
    I was thinking if we can create a dashboard/ report with moving displays like stock prices, just like in TV we see the data moving showing the prices.
    I highly appreciate for any reply.
    Thanks,
    Ravi

    Hi,
    where is my points... Mark helpful or correct for answers... so the user know whats right and i will get points...
    Regards
    Naresh
    Edited by: Naresh Meda on Dec 30, 2008 10:50 PM

  • Available stock report with confirm order quantity

    Dear,
    Is there any report which gives -
    Available Stock - Sales order confirmed = Free stock.
    Regards,
    Syed Hussain.

    Hi,
    Yes, you have to develop a mass-MD04 like transaction. But please consider that several factors influence the available qty (planning startegy, procurement proposals, etc).
    The available changes with time as well - I mean you may get different available stock levels if you check MD04 for this day and for next Wednesday because there might be e.g. requirements between the two.
    remark:
    Stock - SO quantity = Available qty > As I mentioned this may be not true since this rule doesn't consider the whole planning situation.
    Regards,
    Csaba

  • Consingment stock report with values and periods..

    hello guys,
    i have an issue here.. consignmet stock are "managed" within SD. Is there a standard report which cointains info about consigment stock, its amounts (values) and periods ?
    Main point here - consingment stock is processed within SD, so for example t.code MB54 is not useful here .
    Thanks guys !
    Best regards,
    Laimonas

    Hi......MB54 wont help since that shows the Vendor consignment stocks.
    Use MB52 creatively like this.
    Goto MB52
    Put your plant name.
    In the section 'Selection : Special stock', Mark the check box and put 'W' in Special Stock indicator.
    Choose the other settings as per your choice.
    Execute.
    Now you will see a whole lot of stocks along wioth the Consignment stocks. If you only want to see the consignment stocks, do like this
    In the list, put you cursor on the column 'S' which is special stock (i think the 4th colm in the list). Now choose the filter icon and put the filter criteria a 'W' i.e. customer consignment stock.
    You can save this is a variant with a name, say /ZCONS.
    Now come back to the initial MB52 screen. In the bottom section for display options, put this variant name in the field Layout.
    So now when you next run the report with this variant, you will only get the customer consignment stocks with their values.
    Hope this helps.

Maybe you are looking for