Drill down to all screens of XK03 in ALV report from CALL TRANSACTION

HI!
I have created a vendor master report which calls the XK03 transaction when the vendor is clicked on on the ALV output. It takes me to the XK03 address screen and when I try clicking to go to the next screen it says the last screen is reached , 'Do you wnat to cancell processing'. I want to enable the program to goto the next screens as well like the controll screen and the accounting screen ect in my drill down on call transaction.
following si my code section which does it.
CASE rs_selfield-fieldname.
        WHEN 'LIFNR'.
*       Set parameter ID for transaction screen field
          CHECK NOT wa_vend-lifnr IS INITIAL.
          SET PARAMETER ID 'LIF' FIELD wa_vend-lifnr.
          SET PARAMETER ID 'BUK' FIELD wa_vend-bukrs.
          SET PARAMETER ID 'EKO' FIELD wa_vend-ekorg.
          SET PARAMETER ID 'KDY' FIELD kdy_val.
          CALL TRANSACTION 'XK03' AND SKIP FIRST SCREEN. "EC needed
ENDCASE.
  ENDCASE.
Thanks and regards,
Aarav

Hi,
Your code seems to be right.
Try writing the code as the below format.
CASE SY-UCOMM.
* CHECK FUNCTION CODE
WHEN '&IC1'.
* CHECK FIELD CLICKED ON WITHIN ALVGRID REPORT
IF SELFIELD-FIELDNAME = 'LIFNR'.
* READ DATA TABLE, USING INDEX ROW USER CLICKED ON
READ TABLE IT_FINAL INTO WA_FINAL INDEX SELFIELD-TABINDEX.
* SET PARAMETER ID FOR TRANSACTION SCREEN FIELD
SET PARAMETER ID 'BES' FIELD WA_FINAL-LIFNR.
* EXECUTE TRANSACTION 'XK03',AND SKIP INITIAL DATA ENTRY SCREEN.
CALL TRANSACTION 'XK03' AND SKIP FIRST SCREEN.
ENDIF.
ENDCASE.
Thanks
Arbind

Similar Messages

  • Passing selection screen values to the next report using CALL TRANSACTION

    Hi experts,
    I have 2 reports. In the first report i have the 3 input fields in the first report, how do i pass the values to the next report which is transaction: ZKKBC_PKO_2.
    I want to display in the next report the selections that the user previously selected.
    First report:
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS: COMP     LIKE AFRU-WERKS OBLIGATORY MODIF ID s1.
    PARAMETERS: PERIOD   LIKE COEP-PERIO OBLIGATORY MODIF ID s1.
    PARAMETERS: YEAR     LIKE COEP-GJAHR OBLIGATORY MODIF ID s1.
    SELECTION-SCREEN END OF BLOCK b1.
    CALL TRANSACTION 'ZKKBC_PKO_2'.
    Anyone can help me?
    Thanks,
    Lawrence

    Hi experts,
    What i did is this:
    Using SET PARAMETER
    in the first report
    SET PARAMETER ID 'WRK' FIELD COMP.
    SET PARAMETER ID 'VPE' FIELD PERIOD.
    SET PARAMETER ID 'GJR' FIELD YEAR.
    CALL TRANSACTION 'ZKKBC_PKO_2'.
    Second Report
    SELECTION-SCREEN BEGIN OF BLOCK blk1 WITH FRAME TITLE text-001.
    PARAMETERS: WRK     LIKE AFRU-WERKS.
    PARAMETERS: VPE     LIKE COEP-PERIO.
    PARAMETERS: GJR     LIKE COEP-GJAHR.
    SELECTION-SCREEN END OF BLOCK blk1.
    Using SUBMIT
    First Report
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS: COMP     LIKE AFRU-WERKS OBLIGATORY MODIF ID s1.
    PARAMETERS: PERIOD   LIKE COEP-PERIO OBLIGATORY MODIF ID s1.
    PARAMETERS: YEAR     LIKE COEP-GJAHR OBLIGATORY MODIF ID s1.
    SELECTION-SCREEN END OF BLOCK b1.
    SUBMIT ZCO_PRDCOST_ACTUAL_2 VIA SELECTION-SCREEN USING SELECTION-SETS OF PROGRAM 'ZCO_PRDCOST_ACTUAL_1' AND RETURN.
    Second Report:
    GET PARAMETER ID 'WRK' FIELD comp.
    GET PARAMETER ID 'VPE' FIELD COEP-PERIO.
    GET PARAMETER ID 'GJR' FIELD YEAR.
    Either this 2 ways i still cannot get the first report selection values on the 2nd report. Can someone help me see if my codes is correcT?

  • Blank screen when Back on ALV report

    Hello All,
    I have written an ALV report and when I click BACK on the output list, instead of taking me back to selection screen it is giving a blank screen, and again clicking BACK is giving me selection screen.
    ALV output -->> BACK --> Blank screen --> BACK --> Selection screen
    I am unable to trace out why this is happenning. I want behavour as it dies for other alv report.
    ALV output --> BACK --> Selection Screen.
    Any suggestions are highly appreciated.
    Thanks-

    I am using a FM, its a straight forward ALV report,
    Getting data from different tables in to final output internal table, calling a function module to display ALV.
      h_repid                                = sy-repid.
      h_variant-report     = h_repid.
      t_slis_layout_alv-zebra = 'X'.
      t_slis_layout_alv-colwidth_optimize = 'X'.
      PERFORM get_fieldcat_summary.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                i_callback_program = h_repid
                is_layout          = t_slis_layout_alv
                it_fieldcat        = t_fieldcat1[]
                i_save             = 'A'
                is_variant         = h_variant
           TABLES
                t_outtab           = it_main[]
           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.
    Thanks-

  • [svn:bz-trunk] 17029: Update all samples to remove target player version from calls to the mxmlc target .

    Revision: 17029
    Revision: 17029
    Author:   [email protected]
    Date:     2010-07-22 19:08:20 -0700 (Thu, 22 Jul 2010)
    Log Message:
    Update all samples to remove target player version from calls to the mxmlc target. Now we will just use the target player version from the flex-config.xml file. As this is used to locate playerglobal.swc, it's unlikely we would need this to be different than what is in flex-config.xml.
    Turn the ocx target for installing the player back on again and update it to use the new silent uninstall and install switches for the 10.1 player.
    checkintests: passed
    Modified Paths:
        blazeds/trunk/apps/samples/WEB-INF/flex-src/dashboard/build.xml
        blazeds/trunk/apps/samples/WEB-INF/flex-src/inventory/build.xml
        blazeds/trunk/apps/samples/WEB-INF/flex-src/runtimeconfig-messaging/build.xml
        blazeds/trunk/apps/samples/WEB-INF/flex-src/runtimeconfig-remoting/build.xml
        blazeds/trunk/apps/samples/WEB-INF/flex-src/testdrive-101/build.xml
        blazeds/trunk/apps/samples/WEB-INF/flex-src/testdrive-chat/build.xml
        blazeds/trunk/apps/samples/WEB-INF/flex-src/testdrive-datapush/build.xml
        blazeds/trunk/apps/samples/WEB-INF/flex-src/testdrive-httpservice/build.xml
        blazeds/trunk/apps/samples/WEB-INF/flex-src/testdrive-remoteobject/build.xml
        blazeds/trunk/apps/samples/WEB-INF/flex-src/testdrive-update/build.xml
        blazeds/trunk/apps/samples/WEB-INF/flex-src/testdrive-webservice/build.xml
        blazeds/trunk/apps/samples/WEB-INF/flex-src/traderdesktop/build.xml
        blazeds/trunk/apps/samples-spring/WEB-INF/flex-src/chat/build.xml
        blazeds/trunk/apps/samples-spring/WEB-INF/flex-src/collaboration/build.xml
        blazeds/trunk/apps/samples-spring/WEB-INF/flex-src/companymgr/build.xml
        blazeds/trunk/apps/samples-spring/WEB-INF/flex-src/feedstarter/build.xml
        blazeds/trunk/apps/samples-spring/WEB-INF/flex-src/insync01/build.xml
        blazeds/trunk/apps/samples-spring/WEB-INF/flex-src/insync02/build.xml
        blazeds/trunk/apps/samples-spring/WEB-INF/flex-src/insync03/build.xml
        blazeds/trunk/apps/samples-spring/WEB-INF/flex-src/insync04/build.xml
        blazeds/trunk/apps/samples-spring/WEB-INF/flex-src/insync05/build.xml
        blazeds/trunk/apps/samples-spring/WEB-INF/flex-src/insync06/build.xml
        blazeds/trunk/apps/samples-spring/WEB-INF/flex-src/simplepush/build.xml
        blazeds/trunk/apps/samples-spring/WEB-INF/flex-src/spring-blazeds-101/build.xml
        blazeds/trunk/apps/samples-spring/WEB-INF/flex-src/spring-blazeds-security-101/build.xml
        blazeds/trunk/apps/samples-spring/WEB-INF/flex-src/traderdesktop/build.xml
        blazeds/trunk/build.properties
        blazeds/trunk/build.xml
        blazeds/trunk/sampledb/flexdemodb/flexdemodb.properties
        blazeds/trunk/servers/apache-tomcat-6.0.14/conf/tomcat-users.xml

    Hi Chris,
    I tried removing and adding back the dialpeer 101 and adding .T to 501 but still the same result. Please help.
    Please see the following:
    SEC-HO-VGATEWAY01#show dial-peer voice summ        
    dial-peer hunt 1
                 AD                                    PRE PASS                OUT
    TAG    TYPE  MIN  OPER PREFIX    DEST-PATTERN      FER THRU SESS-TARGET    STAT PORT    KEEPALIVE
    501    voip  up   up                                0  syst                    
    1001   voip  up   up             5...               1  syst ipv4:10.13.14.21   
    1002   voip  up   up             1...$              1  syst ipv4:10.13.14.21   
    103    voip  up   up             911$               1  syst dns:toronto2.voip.ms
    102    voip  up   up             1[2-9]..[2-9]...-  1  syst dns:toronto2.voip.ms
                                     ...$
    101    voip  up   up             [2-9]..[2-9]....-  1  syst dns:toronto2.voip.ms
                                     ..$
    SEC-HO-VGATEWAY01#show run | sec dial-peer voice 501
    dial-peer voice 501 voip
    incoming called-number .T
    voice-class sip bind control source-interface Loopback0
    voice-class sip bind media source-interface Loopback0
    dtmf-relay rtp-nte
    codec g711ulaw
    no vad

  • Drill down on all values of a row from bex universe

    Hi
    We had developed BO universe on bex query, and as in web i the whole row will come as a single object.
    so when we drill  on the row the drill is not performing on the whole row rather its happenig on a single value of the row
    Ex:- if we have rows named as US, china, America, Japan, Gross sales, invoice etc
    when wen i drill on any row for lets say US, and i drilled on currecy type the drill is happening only us from the row.
    But we need this drill on whole values of the row,
    if aware of bex analyser, we need the same drill down future as in bex.
    Any help in this regards is appreciable.
    Thanks in Advance,

    Hi,
    Your code seems to be right.
    Try writing the code as the below format.
    CASE SY-UCOMM.
    * CHECK FUNCTION CODE
    WHEN '&IC1'.
    * CHECK FIELD CLICKED ON WITHIN ALVGRID REPORT
    IF SELFIELD-FIELDNAME = 'LIFNR'.
    * READ DATA TABLE, USING INDEX ROW USER CLICKED ON
    READ TABLE IT_FINAL INTO WA_FINAL INDEX SELFIELD-TABINDEX.
    * SET PARAMETER ID FOR TRANSACTION SCREEN FIELD
    SET PARAMETER ID 'BES' FIELD WA_FINAL-LIFNR.
    * EXECUTE TRANSACTION 'XK03',AND SKIP INITIAL DATA ENTRY SCREEN.
    CALL TRANSACTION 'XK03' AND SKIP FIRST SCREEN.
    ENDIF.
    ENDCASE.
    Thanks
    Arbind

  • Unable to utilize Drill-Down for all Filtered Dates in Xcelsius Engage 2008

    Iu2019m very new to the Xcelsius Engage 2008 product and donu2019t understand what is needed to correct the drill-down problem encountered in a newly created dashboard. 
    The issue is with Drill-Down from a filtered chart.  For some reason, I am unable to correctly pick any data item from the chart located top of workspace to drill-down to the lower chart when selecting a month beyond Jan u201911.  
    Iu2019ve unhidden the Label Based Menu, List Box 1 and List Box 2 during attempt to find out why I am unable to drill-down when I select a month other than Jan u201911.  As youu2019ll see, when you u2018manuallyu2019 click in the unhidden List Box 2, the bottom chart is displaying the correct data.
    Also - new to post for this forum - is there a way to attached the XLF to help with visual support to the problem?
    Thank you,
    Deborah

    Hi there and welcome.
    First troubleshooting step is to add a spreadsheet component to your canvas so you can watch what's happening. Second, have a look at this step-by-step to make sure you're not missing any steps. http://blog.davidg.com.au/2011/04/xcelsius-interactivity-chart-drill-down.html
    Can you select only Jan '11? Or only up to Jan '11? Are you selecting whole months or days?
    Assuming that your second chart is filtering for this date, I would check that the formatting is correct. Try, for example, removing all formatting so that you're seeing 40668 instead of a date. Does that work?
    Also, it can be helpful to post your version number. This can be found under Help > About Xcelsius and will something like 5.3.5.0

  • Drill down  with all other records

    Hi, All
    how can I see all other records after drilling down but not only record wich i drilled into?
    i mean drilling like it works in Discoverer or in other words i'd like some records to be expanded and all other collapsed. Does anybody know whether it is possible?
    Thanks in advance
    Message was edited by:
    altimer

    NO, it's not, but anything requiring a major UI overhaul would require some parsing-wrapping with some server-side scripting (like you could wrap it around a php-script - but again - this is a long shot plus you'd have problems with support in case something goes awry). I've seen at someone's blog that such functionality might be released later. For now, the best thing to do would be designing your Dashboards around it. Also, have you looked at Siebel CRM? Because last time I checked - there was something like that there - and you can integrate BI to CRM (at least you could a few years ago).

  • Drill down expand and collapse feature not available  Crystal Reports Desig

    Hi,
    Am I right in my understanding that drill down feature opens in a new tab and it cannot be made expand and collapse even using JRC.
    Please advise & thank you
    Selvi

    Hi Slevi,
    You are right with the understanding of the Drill down function. To have a drill down function available the minimum requirement is have at least a single group in the report.
    When we have a group with some underlying data and then when we would like to see data for a particular group, we can see a u201Cmagnifying glassu201D symbol which indicates that there is data for this group and we can use the Drill down function.
    When you drill on a particular group, the data for that group is shown in a new tab.
    I hope this provides some information about the Drill down function used in Crystal Reports.
    Regards,
    Prashant Saduwale.

  • For all classes used in the alv reports.

    we need the list of required classes used in alv reports this urgent .
    please help me.

    Hi Navid,
    Check <b>SLIS Package/Dev.Class for node Classes</b>,
    here u will find all required <b>classes for ALV including ALV Hierarchical,AVL Tree, ALV HTML.</b>
    Classes.
    CL_ALVHT_HTMLINPUT-> ALV: HTML Input (Control Proxy)
    CL_ALVHT_HTML_PAGE-> ALV HTML Page
    CL_ALVHT_HTML_TEMPLATE-> ALV: HTML Templates
    CL_ALVHT_TAGSTREAM-> ALV
    CL_ALVHT_UI_ELEMENT-> ALV: HTML User Input Element
    CL_ALV_BDS-> BDS Access and Data Retention
    CL_ALV_CHANGED_DATA_PROTOCOL-> Message Log for Data Entry
    CL_ALV_DD_DOUBLE_LISTBOX-> Management Class for two D&D List Boxes
    CL_ALV_DD_LISTBOX-> D&D List Box
    CL_ALV_EVENT_DATA-> Changing Data Container for Events
    CL_ALV_EVENT_TOOLBAR_SET-> ALV Context Menu
    CL_ALV_GRAPHICS-> ALV Graphic (Integration with GFW)
    CL_ALV_GRAPHICS_CU-> Customizing of ALV Graphics
    CL_ALV_LISTBOX_DRAGOBJ->
    CL_ALV_OI BDS-> Access and Data Retention
    CL_ALV_TABLE_CREATE-> Dynamic Creation of ALV Data Table
    CL_ALV_TREE_BASE-> Basis Class ALV Tree Control
    CL_ALV_VARIANT-> ALV Variant Management
    CL_GUI_ALV_GRID-> ALV List Viewer
    CL_GUI_ALV_GRID_BASE-> Basis Class for ALV Grid
    CL_GUI_ALV_TREE-> ALV Tree Control
    Regards,
    Raghav
    Message was edited by:
            Raghavendra  L

  • Logon Screen when opening a Crystal Report from Add-on

    Hello everyone,
    I have a problem that I've been trying to solve. I have an addon that opens a Crystal Report with the information that the user wants. I tried it in SBO using a SQL db and it worked without problems, but now I've test it in SBO using IBM DB2 db (the client has that db implemented) and the report doesn't open, instead of the report it appears a log in screen asking for the server name, database, user and password.
    I've tried every possibility without success, it returns a message saying that my login is not correct, the thing is that all I've written in that login screen is the correct info, even tried many possibilities... and I can't access to the report!
    I've searched lots of forums for an answer, but none of them helped me. Can anybody help me with this issue?
    Thank you very much,
    Regards,
    Mariana Mazzero

    in case you do sure that is just lose some dll file,I think maybe you can create a install package by using Visual Studio.
    you can create a form and put a crysyal object on the form. and use the wizard.
    Visual Studio will auto collect all dll you needed.
    than you can compare the file list,
    or, you can just install the package on the standalone PC.
    It's a stupid solution.
    but, I think it is effective. :P

  • S.screen and abap oo--alv report

    i see all the example here but there is not s.screen before whyyy???
    there is an example with s.screen

    Hi,
    this is example for S.Screen. in OO alv.
    below is the Code.
    and I am specifying variants on s.screen
    Material ............     100-100   to 100-200
    Plant................      1000    to 2000
    BOM Usage............  1  to 1
    BOM status...........    01  to   01
    BOM category........   D    to     P
    *                           T Y P E S                                 *
    TYPES:
    * Material Data
      BEGIN OF type_mast,
        matnr LIKE mast-matnr,             " Material Number
        werks LIKE mast-werks,             " Plant
        stlan LIKE mast-stlan,             " BOM Usage
        stlnr LIKE mast-stlnr,             " Bill of material
        stlal LIKE mast-stlal,             " Alternative BOM
      END OF type_mast,
    * Material Description Data
      BEGIN OF type_makt,
        matnr LIKE makt-matnr,             " Material Number
        maktx LIKE makt-maktx,             " Material Description
      END OF type_makt,
    * BOM Header Data
      BEGIN OF type_stko,
        stlty LIKE stko-stlty,             " BOM category
        stlnr LIKE stko-stlnr,             " Bill of material
        stlal LIKE stko-stlal,             " Alternative BOM
        datuv LIKE stko-datuv,             " Valid-From Date
        bmeng LIKE stko-bmeng,             " Base Quantity
        stktx LIKE stko-stktx,             " Alternative BOM Text
        stlst LIKE stko-stlst,             " BOM status
      END OF type_stko,
    * BOM Text Data
      BEGIN OF type_stzu,
        stlty LIKE stzu-stlty,             " BOM category
        stlnr LIKE stzu-stlnr,             " Bill of material
        ztext LIKE stzu-ztext,             " BOM text
       END OF type_stzu,
    * BOM Item Data
      BEGIN OF type_stpo,
        stlty LIKE stpo-stlty,             " BOM category
        stlnr LIKE stpo-stlnr,             " Bill of material
        idnrk LIKE stpo-idnrk,             " BOM component
        postp LIKE stpo-postp,             " Item Category(BOM)
        posnr LIKE stpo-posnr,             " BOM Item Number
        menge LIKE stpo-menge,             " Component quantity
       END OF type_stpo,
    * Output Data
       BEGIN OF type_output,
        werks LIKE mast-werks,             " Plant
        matnr LIKE mast-matnr,             " Material Number
        maktx LIKE makt-maktx,             " Material Description
        stlnr LIKE mast-stlnr,             " Bill of material
        stlan LIKE mast-stlan,             " BOM Usage
        stlal LIKE mast-stlal,             " Alternative BOM
        stlty LIKE stko-stlty,             " BOM category
        datuv LIKE stko-datuv,             " Valid-From Date
        bmeng LIKE stko-bmeng,             " Base Quantity
        stktx LIKE stko-stktx,             " Alternative BOM Text
        stlst LIKE stko-stlst,             " BOM status
        idnrk LIKE stpo-idnrk,             " BOM component
        postp LIKE stpo-postp,             " Item Category(BOM)
        posnr LIKE stpo-posnr,             " BOM Item Number
        menge LIKE stpo-menge,             " Component quantity
        ztext LIKE stzu-ztext,             " BOM text
       END OF type_output.
    *                            D A T A                                   *
    DATA:
      w_matnr TYPE mara-matnr,             " Material Number
      w_werks TYPE mast-werks,             " Plant
      w_stlan TYPE mast-stlan,             " BOM Usage
      w_stlst TYPE stko-stlst,             " BOM status
      w_stlty TYPE stko-stlty,             " BOM category
      w_container TYPE REF TO cl_gui_custom_container,
      w_alv_grid  TYPE REF TO cl_gui_alv_grid,
      ok_code     LIKE sy-ucomm.
    *                  I N T E R N A L   T A B L E S                      *
    DATA:
    * Material Data
      i_mast          TYPE STANDARD TABLE OF type_mast,
      wa_mast         TYPE type_mast,
    * Material Description Data
      i_makt          TYPE STANDARD TABLE OF type_makt,
      wa_makt         TYPE type_makt,
    * BOM Header Data
      i_stko          TYPE STANDARD TABLE OF type_stko,
      wa_stko         TYPE type_stko,
    * BOM Text Data
      i_stzu          TYPE STANDARD TABLE OF type_stzu,
      wa_stzu         TYPE type_stzu,
    * BOM Item Data
      i_stpo          TYPE STANDARD TABLE OF type_stpo,
      wa_stpo         TYPE type_stpo,
    * Output table
      i_output        TYPE STANDARD TABLE OF type_output,
      wa_output       TYPE type_output,
    * Field Catalog table
    it_fcat      TYPE lvc_t_fcat,         " Internal table for field catal
    wa_fcat      TYPE lvc_s_fcat.         " Work area for field catalog
    *                 S E L E C T I O N     S C R E E N                   *
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-ss1.
    SELECT-OPTIONS:
      s_matnr FOR w_matnr,           " Material Number
      s_werks FOR w_werks OBLIGATORY," Plant
      s_stlan FOR w_stlan,           " BOM Usage
      s_stlst FOR w_stlst,           " BOM status
      s_stlty FOR w_stlty.           " BOM category
    SELECTION-SCREEN END OF BLOCK b1.
    *               A T   S E L E C T I O N   S C R E E N                  *
    AT SELECTION-SCREEN.
      PERFORM f010_validate_material.
      PERFORM f020_validate_plant.
      PERFORM f030_validate_bom_usage.
      PERFORM f040_validate_bom_status.
      PERFORM f050_validate_bom_category.
    *                S T A R T   O F   S E L E C T I O N                  *
    START-OF-SELECTION .
      PERFORM f210_fetch_bom_link_data.
      PERFORM f220_fetch_material_des_data.
      PERFORM f230_fetch_bom_header_data.
      PERFORM f240_fetch_bom_text.
      PERFORM f250_fetch_bom_item_data.
    *                  E N D   O F   S E L E C T I O N                    *
    END-OF-SELECTION.
      PERFORM f600_populate_data.
      PERFORM f650_field_catlog.
      CALL SCREEN 100.
    *&      Form  f010_validate_material                                  *
    *       --Validate Material                                           *
    FORM f010_validate_material .
    * Validate Material
      IF s_matnr IS NOT INITIAL.
        SELECT matnr
          INTO w_matnr
          FROM mara
         UP TO 1 ROWS
         WHERE matnr IN s_matnr.
        ENDSELECT.
        CHECK sy-subrc NE 0.
        SET CURSOR FIELD 'S_MATNR'.
        MESSAGE e210.                      " Invalid Material
      ENDIF.                               " IF s_matnr IS NOT INITIAL.
    ENDFORM.                               " f010_validate_material
    *&      Form  f020_validate_plant                                     *
    *       - Validate Plant                                              *
    FORM f020_validate_plant .
    * Validate Plant
      SELECT  werks
        INTO w_werks
        FROM t001w
        UP TO 1 ROWS
        WHERE werks IN s_werks.
      ENDSELECT.
      CHECK sy-subrc NE 0.
      SET CURSOR FIELD 'S_WERKS'.
      MESSAGE e220.                        " Invalid Plant
    ENDFORM.                               " f020_validate_plant
    *&      Form  f030_validate_BOM_usage                                 *
    *       -Validate BOM Usage                                           *
    FORM f030_validate_bom_usage .
    * Validate BOM Usage
      IF s_stlan IS NOT INITIAL.
        SELECT stlan
          INTO w_stlan
          FROM t416
          UP TO 1 ROWS
          WHERE stlan IN s_stlan.
        ENDSELECT.
        CHECK sy-subrc NE 0.
        SET CURSOR FIELD 'S_STLAN'.
        MESSAGE e230.                      " Invalid BOM Usage
      ENDIF.                               " IF s_stlan IS NOT INITIAL.
    ENDFORM.                               " f030_validate_BOM_usage
    *&      Form  f040_validate_BOM_status
    *       - Validate BOM Status
    FORM f040_validate_bom_status .
    * Validate BOM Status
      IF s_stlst IS NOT INITIAL.
        SELECT  stlst
          INTO w_stlst
          FROM t415s
          UP TO 1 ROWS
          WHERE stlst IN s_stlst.
        ENDSELECT.
        CHECK sy-subrc NE 0.
        SET CURSOR FIELD 'S_STLST'.
        MESSAGE e240.                      " Invalid BOM Status
      ENDIF.                               " IF s_stlst IS NOT INITIAL
    ENDFORM.                               " f040_validate_BOM_status
    *&      Form  f050_validate_BOM_category                              *
    *       -Validate BOM Category                                        *
    FORM f050_validate_bom_category .
    * Validate BOM Category
      IF s_stlty IS NOT INITIAL.
        SELECT  stlty
          INTO w_stlty
          FROM stko
          UP TO 1 ROWS
          WHERE stlty IN s_stlty.
        ENDSELECT.
        CHECK sy-subrc NE 0.
        SET CURSOR FIELD 'S_STLTY'.
        MESSAGE e250.                      " Invalid BOM Category
      ENDIF.                               " IF s_stlty IS NOT INITIAL.
    ENDFORM.                               " f050_validate_BOM_category
    *&      Form  f210_fetch_bom_link_data                                *
    *       - Fetch Material BOM Link data                                *
    FORM f210_fetch_bom_link_data .
    * Fetch Material BOM Link data
      SELECT matnr                         " Material Number
             werks                         " Plant
             stlan                         " BOM Usage
             stlnr                         " Bill of material
             stlal                         " Alternative BOM
        INTO TABLE i_mast
        FROM mast
       WHERE matnr IN s_matnr
         AND werks IN s_werks.
      IF sy-subrc NE 0.
        MESSAGE s200.                      " No Data Found
      ENDIF.                               " IF sy-subrc NE 0.
      SORT i_mast BY matnr werks.
    ENDFORM.                               " f200_fetch_bom_link_data
    *&      Form  f220_fetch_material_des_data                            *
    *       -Fetch Material Description data                              *
    FORM f220_fetch_material_des_data .
      SELECT matnr
             maktx
        INTO TABLE i_makt
        FROM makt
         FOR ALL ENTRIES IN i_mast
       WHERE matnr EQ i_mast-matnr.
      IF sy-subrc NE 0.
        MESSAGE s200.                      " No Data Found
      ENDIF.                               " IF sy-subrc NE 0.
      SORT i_makt BY matnr.
    ENDFORM.                               " f200_fetch_material_des_data
    *&      Form  f230_fetch_bom_header_data                              *
    *       - Fetch BOM Header data                                       *
    FORM f230_fetch_bom_header_data .
    * Fetch BOM Header data
      SELECT stlty                         " BOM category
             stlnr                         " Bill of material
             stlal                         " Alternative BOM
             datuv                         " Valid-From Date
             bmeng                         " Base Quantity
             stktx                         " Alternative BOM Text
             stlst                         " BOM status
        INTO TABLE i_stko
        FROM stko
        FOR ALL ENTRIES IN i_mast
      WHERE stlnr EQ i_mast-stlnr
      AND   stlty IN s_stlty
      AND   stlst IN s_stlst.
      IF sy-subrc NE 0.
        MESSAGE s200.                      " No Data Found
      ENDIF.                               " IF sy-subrc NE 0.
      SORT i_stko BY stlty stlst.
    ENDFORM.                               " f200_fetch_bom_header_data
    *&      Form  f240_fetch_bom_text                                     *
    *      - Fetch BOM text Data                                          *
    FORM f240_fetch_bom_text .
    *  DATA:
    *    i_stko_temp LIKE TABLE OF wa_stko.
    *  i_stko_temp = i_stko.
    *  SORT i_stko_temp BY stlty stlnr.
    *  DELETE ADJACENT DUPLICATES FROM i_stko_temp
    *    COMPARING stlty stlnr.
    *  SELECT stlty                         " BOM category
    *         stlnr                         " Bill of material
    *         ztext                         " BOM text
    *    INTO TABLE i_stzu
    *    FROM stzu
    *     FOR ALL ENTRIES IN i_stko_temp
    *   WHERE stlty EQ i_stko_temp-stlty
    *     AND stlnr EQ i_stko_temp-stlnr.
    *  DATA:
    *    i_stzu_temp    LIKE TABLE OF wa_stzu.
      SELECT stlty                         " BOM category
             stlnr                         " Bill of material
             ztext                         " BOM text
        INTO TABLE i_stzu
        FROM stzu
         FOR ALL ENTRIES IN i_stko
       WHERE stlty EQ i_stko-stlty
         AND stlnr EQ i_stko-stlnr.
      IF sy-subrc NE 0.
        MESSAGE s200.                      " No Data Found
      ENDIF.                               " IF sy-subrc NE 0.
    ENDFORM.                               " f200_fetch_bom_text
    *&      Form  f250_fetch_bom_item_data                                *
    *       - Fetch BOM Item data                                         *
    FORM f250_fetch_bom_item_data .
    * Fetch BOM Header data
      SELECT stlty                         " BOM category
             stlnr                         " Bill of material
             idnrk                         " BOM component
             postp                         " Item Category(BOM)
             posnr                         " BOM Item Number
             menge                         " Component quantity
        INTO TABLE i_stpo
        FROM stpo
         FOR ALL ENTRIES IN i_stko
       WHERE stlty EQ i_stko-stlty
         AND stlnr EQ i_stko-stlnr.
      IF sy-subrc NE 0.
        MESSAGE s200.                      " No Data Found
      ENDIF.                               " IF sy-subrc NE 0.
    ENDFORM.                               " f200_fetch_bom_item_data
    *&      Form  f600_populate_data                                       *
    *       - Displaying the data                                         *
    FORM f600_populate_data .
    *  SORT i_stko.
    *  SORT i_mast.
    *  DELETE ADJACENT DUPLICATES FROM i_mast.
      LOOP AT i_stpo INTO wa_stpo.
        CLEAR wa_output.
        READ TABLE i_stko INTO wa_stko WITH KEY stlnr = wa_stpo-stlnr
                                                stlty = wa_stpo-stlty
                                                BINARY SEARCH.
    *    CHECK sy-subrc eq 0.
        READ TABLE i_stzu INTO wa_stzu WITH KEY stlnr = wa_stko-stlnr
                                                stlty = wa_stko-stlty
                                                BINARY SEARCH.
    *    CHECK sy-subrc Eq 0.
        READ TABLE i_mast INTO wa_mast WITH KEY stlnr = wa_stko-stlnr
                                                BINARY SEARCH.
    *    CHECK sy-subrc Eq 0.
        READ TABLE i_makt INTO wa_makt WITH KEY matnr = wa_mast-matnr
                                                BINARY SEARCH.
    *    CHECK sy-subrc Eq 0.
        MOVE:
          wa_stpo-idnrk TO wa_output-idnrk,
          wa_stpo-postp TO wa_output-postp,
          wa_stpo-posnr TO wa_output-posnr,
          wa_stpo-menge TO wa_output-menge,
          wa_stko-stlty TO wa_output-stlty,
          wa_stko-datuv TO wa_output-datuv,
          wa_stko-bmeng TO wa_output-bmeng,
          wa_stko-stktx TO wa_output-stktx,
          wa_stko-stlst TO wa_output-stlst,
          wa_stzu-ztext TO wa_output-ztext,
          wa_mast-werks TO wa_output-werks,
          wa_mast-matnr TO wa_output-matnr,
          wa_makt-maktx TO wa_output-maktx,
          wa_mast-stlnr TO wa_output-stlnr,
          wa_mast-stlan TO wa_output-stlan,
          wa_mast-stlal TO wa_output-stlal.
        APPEND wa_output TO i_output.
      ENDLOOP.                             " LOOP AT i_stpo
    ENDFORM.                               " f600_display_data
    *&      Form  f650_field_catlog                                       *
    *       -Fill Field Catalog                                           *
    FORM f650_field_catlog .
      wa_fcat-fieldname = 'WERKS'.
      wa_fcat-ref_table = 'MAST'.
      wa_fcat-ref_field = 'WERKS'.
      wa_fcat-col_pos   = 1.
      APPEND wa_fcat TO it_fcat.
      wa_fcat-fieldname = 'MATNR'.
      wa_fcat-ref_table = 'MAST'.
      wa_fcat-ref_field = 'MATNR'.
      wa_fcat-col_pos   = 2.
      APPEND wa_fcat TO it_fcat.
      wa_fcat-fieldname = 'MAKTX'.
      wa_fcat-ref_table = 'MAKT'.
      wa_fcat-ref_field = 'MAKTX'.
      wa_fcat-col_pos   = 3.
      APPEND wa_fcat TO it_fcat.
      wa_fcat-fieldname = 'STLTY'.
      wa_fcat-ref_table = 'STKO'.
      wa_fcat-ref_field = 'STLTY'.
      wa_fcat-col_pos   = 4.
      APPEND wa_fcat TO it_fcat.
      wa_fcat-fieldname = 'STLAN'.
      wa_fcat-ref_table = 'MAST'.
      wa_fcat-ref_field = 'STLAN'.
      wa_fcat-col_pos   = 5.
      APPEND wa_fcat TO it_fcat.
      wa_fcat-fieldname = 'STLNR'.
      wa_fcat-ref_table = 'MAST'.
      wa_fcat-ref_field = 'STLNR'.
      wa_fcat-col_pos   = 6.
      APPEND wa_fcat TO it_fcat.
      wa_fcat-fieldname = 'STLAL'.
      wa_fcat-ref_table = 'MAST'.
      wa_fcat-ref_field = 'STLAL'.
      wa_fcat-col_pos   = 7.
      APPEND wa_fcat TO it_fcat.
      wa_fcat-fieldname = 'STKTX'.
      wa_fcat-ref_table = 'STKO'.
      wa_fcat-ref_field = 'STKTX'.
      wa_fcat-col_pos   = 8.
      APPEND wa_fcat TO it_fcat.
      wa_fcat-fieldname = 'DATUV'.
      wa_fcat-ref_table = 'STKO'.
      wa_fcat-ref_field = 'DATUV'.
      wa_fcat-col_pos   = 9.
      APPEND wa_fcat TO it_fcat.
      wa_fcat-fieldname = 'BMENG'.
      wa_fcat-ref_table = 'STKO'.
      wa_fcat-ref_field = 'BMENG'.
      wa_fcat-col_pos   = 10.
      APPEND wa_fcat TO it_fcat.
      wa_fcat-fieldname = 'STLST'.
      wa_fcat-ref_table = 'STKO'.
      wa_fcat-ref_field = 'STLST'.
      wa_fcat-col_pos   = 11.
      APPEND wa_fcat TO it_fcat.
      wa_fcat-fieldname = 'IDNRK'.
      wa_fcat-ref_table = 'STPO'.
      wa_fcat-ref_field = 'IDNRK'.
      wa_fcat-col_pos   = 12.
      APPEND wa_fcat TO it_fcat.
      wa_fcat-fieldname = 'POSTP'.
      wa_fcat-ref_table = 'STPO'.
      wa_fcat-ref_field = 'POSTP'.
      wa_fcat-col_pos   = 13.
      APPEND wa_fcat TO it_fcat.
      wa_fcat-fieldname = 'POSNR'.
      wa_fcat-ref_table = 'STPO'.
      wa_fcat-ref_field = 'POSNR'.
      wa_fcat-col_pos   = 14.
      APPEND wa_fcat TO it_fcat.
      wa_fcat-fieldname = 'MENGE'.
      wa_fcat-ref_table = 'STPO'.
      wa_fcat-ref_field = 'MENGE'.
      wa_fcat-col_pos   = 15.
      APPEND wa_fcat TO it_fcat.
      wa_fcat-fieldname = 'ZTEXT'.
      wa_fcat-ref_table = 'STZU'.
      wa_fcat-ref_field = 'ZTEXT'.
      wa_fcat-col_pos   = 16.
      APPEND wa_fcat TO it_fcat.
    ENDFORM.                               " f650_field_catlog
    *&      Module  STATUS_0100  OUTPUT                                   *
    *       -Calling Function Module                                      *
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'BACK'.
    *  SET TITLEBAR 'xxx'.
      IF w_container IS INITIAL.
    *    IF cl_gui_alv_grid=>offline( ) IS INITIAL.
        CREATE OBJECT w_container
          EXPORTING
    *      PARENT                      =
            container_name              = 'CUSTOM'
    *      STYLE                       =
    *      LIFETIME                    = lifetime_default
    *      REPID                       =
    *      DYNNR                       =
    *      NO_AUTODEF_PROGID_DYNNR     =
        EXCEPTIONS
          cntl_error                  = 1
          cntl_system_error           = 2
          create_error                = 3
          lifetime_error              = 4
          lifetime_dynpro_dynpro_link = 5
          OTHERS                      = 6
        IF sy-subrc <> 0.
          MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                     WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ENDIF.                               " IF sy-subrc <> 0.
      ENDIF.
      CREATE OBJECT w_alv_grid
        EXPORTING
    *      I_SHELLSTYLE      = 0
    *      I_LIFETIME        =
          i_parent          = w_container
    *      I_APPL_EVENTS     = space
    *      I_PARENTDBG       =
    *      I_APPLOGPARENT    =
    *      I_GRAPHICSPARENT  =
    *      I_NAME            =
        EXCEPTIONS
          error_cntl_create = 1
          error_cntl_init   = 2
          error_cntl_link   = 3
          error_dp_create   = 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.                             " IF sy-subrc <> 0.
    *  ENDIF.
      CALL METHOD w_alv_grid->set_table_for_first_display
    *   EXPORTING
    *    I_BUFFER_ACTIVE               =
    *    I_BYPASSING_BUFFER            =
    *    I_CONSISTENCY_CHECK           =
    *     i_structure_name              = 'WA_OUTPUT'
    *    IS_VARIANT                    =
    *    I_SAVE                        =
    *    I_DEFAULT                     = 'X'
    *    IS_LAYOUT                     =
    *    IS_PRINT                      =
    *    IT_SPECIAL_GROUPS             =
    *    IT_TOOLBAR_EXCLUDING          =
    *    IT_HYPERLINK                  =
    *    IT_ALV_GRAPHICS               =
    *    IT_EXCEPT_QINFO               =
        CHANGING
          it_outtab                     = i_output
          it_fieldcatalog               = it_fcat
    *    IT_SORT                       =
    *    IT_FILTER                     =
        EXCEPTIONS
          invalid_parameter_combination = 1
          program_error                 = 2
          too_many_lines                = 3
          OTHERS                        = 4
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.                               " IF sy-subrc <> 0.
    ENDMODULE.                             " STATUS_0100 OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT                              *
    *       - Leave Program                                               *
    MODULE user_command_0100 INPUT.
      CASE ok_code.
        WHEN 'BACK'.
          LEAVE TO SCREEN 0.
      ENDCASE.                             " CASE ok_code
      CLEAR ok_code.
    ENDMODULE.                             " USER_COMMAND_0100  INPUT
    thanks,
    Reward if helpful,
    Brijesh

  • Crystal report reverts back to saved data after drill down

    Hi,
        I've created a crystal report and published it to BOE. Whenever I open the report and refresh it, it fetches recent data without any problem. But when I drill down in the report, it shows the saved data instead of showing the recent data in the drill down. If I come back to original report from that drill down again it reverts back to saved data. Again I've to refresh the report to view the recent data.
    Any idea how can I fix this?
    Regards,
    Sanjay

    Hi Sanjay,
    Please do post this question in the BusinessObjects Enterprise thread BI Platform
    The peoplt there would be the best people to answer your query.
    Hope this helps.
    Regards,
    Jay.

  • WAD Button control to Drill down all the Free Char

    Hello experts,
    Would like to know if there is a setting in WAD to include a Button where by clicking on that button would give an option to drill down on all the free char available in that particular query, please let me know if any of you have done it.
    Thanks.

    Thanks Arun for a quick reply.
    Yes i understand that i can create a button group for alternating the views. But wanted to know from the existing set of free char in the report, by including a button to drill down on all and come back to the first screen again. please help me out with the setting that can be done for this. even if i have to include all char in one of the views.
    thanks.
    Suhas

  • S_ALR_87013326 report not coming up with Output to drill down.

    All,
    I have user who can run the report in the PRD and was able to see the out put
    with drill down option.
    However, when running the same report  with same selection option
    in QA, before Ouput screen comes up, it prompts to send the output to the work flow.
    Security Access is the same in QA and PRD.
    Please advise,
    From,
    Pranav Thaker.
    8457

    Hi,
    Can you check if Workflow has been activated using this report or maybe some user exit.
    Seems like an interesting problem
    Post the actual solution.
    Regards
    Sajimon Chandran

  • [1.1.0.23.64] Drill down reports - right click actions

    The release notes of SQL Developer version 1.1 includes a line concerning 'increased right click actions' for the reports category. One of the new actions is 'Go to <object>', if you select this action it will show you the properties of the object. For instance, when performing a right click and selecting 'Go to EMP' on the EMP row in
    the result set of the 'All objects' report, SQL Developer shows you the properties of the EMP table. This feature is also known as drill down capability (for screen shots see http://jornica.blogspot.com/2006/12/changing-preferences-by-executing.html).
    In the previous version 1.0, the 'Go to' object name was implemented by double-clicking a row in the result set. In version 1.1, if you double-click a row SQL Developer shows a button (this button appears in the cell you double-click). If you click this button SQL Developer shows the Edit Value window for Line terminator value.You can change this value by clicking the change button and SQL Developer shows the Preferences window.
    Because the line terminator value is a global setting (this value is used for every report) I'm wondering why you can change the line terminator value in version 1.1 from every result set cell? You can also use the main menu Alt-Tools Preferences. I find the version 1.0 drill down capability much more intuitive and easier to use than the version 1.1 implementation.
    With kind regards,
    Jornica

    This is exactly the same problem I have.
    Not able to start remote debug listener

Maybe you are looking for

  • Photoshop CS 5 crashes when printing, Mac OS 10.9

    If I want to print from Photoshop SC5 verse. 12.0, the program crashes. Since I have the operating system updated to 9.10 this is so. Updates can not be installed, it will display error Nr.16822 to. How do I solve this problem?

  • Is there a way to set up folders in FormsCentral?

    I know that this question has been asked before, and I would submit my support for this feature via the link posted in one of the previous responses...if it worked. Really folks, I need a way to be able to group forms into folders. I have 300 student

  • How do I get to the sub directories in my imac

    I have documents that the Open Office application marked as /.Trash/ They are not in the trash and the trash has not been emptied and I cannot find them in "Finder" or by search. Someone told me they are probably in a subfolder but I can't get to the

  • Applescript Mail duplicate removal

    Hi all, I have a problem with duplicate email messages and thought I'd take a stab at an applescript solution.  Tried using a few sorting/searching type strategies but the size of the mailboxes just made it too slow and unwieldy.  But I noticed that

  • Provide second level logon / password authentication in Portal.

    I would like to customize our portal using second level logon/password authentication for few of the pages/iviews. We have Single Sign on provided to portal so, user is not going to get logon page initially, once he gets into ESS Module where he has