Regarding line count in normal list

Hi all,
In normal list am giving line count as 32. Its showing output correctly in my system. But when am seeing my output in other system the second page header is coming in the first page. I think according to configuration line count may change. Plese tell what i need to do to get ouput correct irrespective of system(Is there any system variable is there to do this).

This actuly configuration problem
configuration of sap in that system not done properly'
I am sying this becouse i also faced same problem
so configer it again ....
Waiting for reward points........................

Similar Messages

  • Need help regarding Cycle counting

    Hi All,
    I need your help regarding cycle counting process in SAP PI. The scenario is as follows,
    At present in the legacy system business practice is to count certain number of materials say 100 materials every day. Out of these 100 materials; we keep fixed percentage for the materials to be counted i.e. out of 100 certain percentage will of A material, certain percentage will of B materials like wise.
    Also every day we want to generate a list of these 100 materials to be counted (this list can be handed over to inventory person to physically count the material) and  generation of PI documents to subsequently post the count results.
    Please note that we will be manually assigning cycle count indicator (A or B or C etc) in the material master.
    Thanks,
    Attarde

    from OSS Note 518418 - FAQ: Cycle Counting
    3. Question:
    I do not understand the determination of the date of physical inventory in the cycle counting physical inventory. How is the planned date or the date of physical inventory determined in the SAP system?
    Answer:
    In principle, the program calculates the planned date of physical inventory according to the following formula:
       planned date = base date + Interval (Trans.OMCO/Tab.XT159C-ININV)
    Usually, the base date is the 'date of the last physical inventory'. Depending on the type of the stock or the batch management requirement, this date is read from one of the following table fields:
      MARD-DLINL (Normal materials)
       MCHB-CHDLL (Batch materials, separately valuated materials)
    If no physical inventory has been carried out yet and if this date field is therefore empty, the system uses the creation date of the material as basis date. The basis date then comes from one of the following table fields:
      MSTA-ERSDA (Normal materials)
       MCHB-ERSDA (Batch materials, separately valuated materials)
    Since the cycle counting physical inventory always runs for the current fiscal year, the earliest possible physical inventory date is the 01.01. and the latest possible physical inventory date is the 31.12 of the current year.
    If the date of the physical inventory is a non-working day, the program automatically proposes the next possible workday.

  • Link between Delivery schedule line counter from PO and the material docume

    Dear Gurus,
    I have one PO with single line item having delivery schedule -
    Material 1 -
    delivery schedule 01.01.2009     2000
                                                         01.03.2009    5000
    I have received quantity against this Po
    I want to know where I can find the link between Delivery schedule line counter from PO and the material document
    Best regards
    Sar

    There is no link from the MAterial document line item (Table Mseg) to the PO Schedule Line (EKET).
    If this is for Evaluating an on time delivery or GR, you may consider the following approach.
    PO details Po Date  QTY
    Sch1   01Jun2009   200   
    SCH2  08Jun2009   100
    GR Details
    GR1   01Jun2009   180
    GR2   07Jun2009   110
    GR3  09Jun2009      10
    Calculate a *** total qty for the PO Line.
    PO details Po Date  CUMUL QTY
    Sch1   01Jun2009   200   
    SCH2  08Jun2009   300
    Calculate a *** total qty for the ontime GR.
    PO details Po Date  CUMUL PO QTY  CUMUL GR on time
    Sch1   01Jun2009   200                180
    SCH2  08Jun2009   300                 290 (180+110)  the 3rd GR was too late
    Evaluate the PO SChedule Lines as follows:
    Po SCL qty + CUMUL GR QTY - CUMUL PO QTY = ADJ GR ON Time Qty
    SCH1 01Jun2009
    200 + 180 - 200 = 180 on time for 01Jun2009 date ( 90% fill rate)
    SCH2 08Jun2009
    100 + 290 - 300 = 90 on time for 08Jun2009 date (90 % fill rate) the first 20 of the GR on 07Jun2009 went to fill the late, early date.
    Best of luck !
    SCH2 100 +290 - 300 = 90 on time for 07Jun2009 date

  • How to display the count of a list item in Sharepoint Designer?

    How to display the count of a list item in Sharepoint Designer? please reply with the proper code line to add for this.

    Hello,
    What version of sharepoint you are using? Try below approach:
    http://sharepointlogics.com/2010/03/total-count-of-items-in-list-in.html
    Hope it could help
    Hemendra: "Yesterday is just a memory,Tomorrow we may never see"
    Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever
    you see a reply being an answer to the question of the thread, click "Mark As Answer
    Please feel free to unmark answer if does not resolves your problem.

  • Report:Setting the line-count in the output automatically

    i want to set the line-count in the report automatically irrespective of screen resolution.could you please explain.

    hi,
    try this,
    report zrich_0001  line-count 25(4).
    reward points if useful,
    regards,
    Raj,

  • How to select valid lines in a secondary list in a interactive report

    hi
    how to select valid lines in a secondary list in a interactive report

    hi,
    do this one
    at line-selection.
    if sy-lsind = some list no.
    GET CURSOR FIELD FIELDNAME VALUE FIELDVALUE.
            IF FIELDNAME = 'TVBAK-VBELN'.
    do some thing
    Regards
    ASHOK KUMAR

  • How to Increase Font Size in Normal List Display

    Hi All,
    I needs to increase the font size in List (Normal List not ALV). How can i achieve this one. I have used Print-control option but its not working fine for me .
    Please help me in this. Thanks in Advance.
    Regards,
    Sreedhar.T

    >
    Gautham Vangaveti wrote:
    > You can use classes for the same.
    >
    > check sample program DD_STYLE_TABLE.
    Are you sure that we can enlarge the font size in classical reports?
    I think we can utmost use  intensified/emphasize options as an work around.
    Cheers

  • Regarding line item dimension

    Hi all,
    what are the necessary prerequisities will u take regarding line item dimension.
    for eg., for sd cubes we r using sales doc no., i.obj as a line item dimension? why can't the other i.obj?
    plz explain me clearly?
    Thanks & Regards,
    V.Vijay.

    HI,
    Line Item and High Cardinality
    When compared to a fact table, dimensions ideally have a small cardinality. However, there is an exception to this rule. For example, there are InfoCubes in which a characteristic document is used, in which case almost every entry in the fact table is assigned to a different document. This means that the dimension (or the associated dimension table) has almost as many entries as the fact table itself. We refer here to a degenerated dimension. In BW 2.0, this was also known as a line item dimension, in which case the characteristic responsible for the high cardinality was seen as a line item. Generally, relational and multi-dimensional database systems have problems to efficiently process such dimensions. You can use the indicators line item and high cardinality to execute the following optimizations:
    Line Item Dimensions
    Line item: This means the dimension contains precisely one characteristic. This means that the system does not create a dimension table. Instead, the SID table of the characteristic takes on the role of dimension table. Removing the dimension table has the following advantages:
    ¡        When loading transaction data, no IDs are generated for the entries in the dimension table. This number range operation can compromise performance precisely in the case where a degenerated dimension is involved.
    ¡        A table- having a very large cardinality- is removed from the star schema. As a result, the SQL-based queries are simpler. In many cases, the database optimizer can choose better execution plans.
    Nevertheless, it also has a disadvantage: A dimension marked as a line item cannot subsequently include additional characteristics. This is only possible with normal dimensions.
    High Cardinality
    If your dim table size exceeds the 20% of your fact table then you can say it as high cardinality, for ex: your fact table contains 100 records and your customer dimension contains 25 records means this dim is with high cardinality. you can check with your client for the expected records for those dimensions or for the info objects which you define in one dimension. to know the sizes of the dimension tables and fact tables you can runa a program in SE37 SAP_INFOCUBE_DESIGNS, it displays all your info cubes fact and dimension tables with sizes, if any dimension exceeds the more than 10% to 20% it will be in RED.
    It means that the dimension is to have a large number of instances (that is, a high cardinality). This information is used to carry out optimizations on a physical level in depending on the database platform. Different index types are used than is normally the case. A general rule is that a dimension has a high cardinality when the number of dimension entries is at least 20% of the fact table entries. If you are unsure, do not select a dimension having high cardinality.
    http://help.sap.com/saphelp_nw04/helpdata/en/b2/fbb859c64611d295dd00a0c929b3c3/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/a7/d50f395fc8cb7fe10000000a11402f/frameset.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/5c/d14d3c306f090ae10000000a11405a/frameset.htm
    Note: In SAP BW 3.0, the term line item dimension from SAP BW 2.0 must a) have precisely one characteristic and b) this characteristic must have a high cardinality. Before, the term line item dimension was often only associated with a). Hence the inclusion of this property in the above. Be aware that a line item dimension has a different meaning now than in SAP BW2.0.
    SAP recommends that you use ODS objects, where possible, instead of InfoCubes for line items.
    Tarak

  • Get particular item count in sharepoint list using designer Workflow

    How to get specific item count in sharepoint list using designer Workflow 2013.
    For Example 
    Title  Count
    x        1
    y        1
    x        2
    x        3

    HI Thiru,
    Can you please elaborate your problem. Is that Title and count are your list columns you want to fetch the value of count column based on title?
    If my interpretation in not wrong, then it's not possible in SPD with the case you have mentioned in your question as Title='x' is having 3 different entries and SPD activity will always return first matching item and ignore the rest with warning message.
    Regards,
    Brij K

  • Line size and line count

    Hi all,
    May i know about line size and line count impact on reports ?
    i mean depending on line sizes values i.e 200 etc hw it will effect report either in output display  or length ?
    and also ablout line count too.
    Thanks in advance.

    This information may help you
    *... LINE-SIZE width *
    Effect
    This addition specifies the line width of the basic list and details list of the program to width characters, and sets the system field sy-linsz to this value. The line width determines the number of characters in the line buffer as well as the number of columns in the list displayed. The value width must be a positive numeric literal. The maximum line width is 1,023 characters.
    When the LINE-SIZE is not specified, the line width of the basic list is set to a standard width based on the window width of the current Dynpro, but is at least as wide as a standard size SAP window. For the standard width, the contents of sy-linsz is 0. The LINE-SIZE overwrites the value of the like-named LINE-SIZE addition to the statement SUBMIT and can be overwritten during list creation with the like-named LINE-SIZE addition to the statement NEW-PAGE.
    Note
    The current maximum line width is stored in the constants slist_max_linesize of the type group SLIST. Also defined there is a type slist_max_listline of type c with length slist_max_linesize.
    *... LINE-COUNT page_lines[(footer_lines)] *
    Effect
    This addition specifies the page length for the basic list of the program to page_lines lines and fills the system field sy-linct with this value. If the LINE-COUNT is not specifed, and if page_lines are less than or equal to 0 or greater than 60,000, then the page length is set internally to 60,000. This setting overwrites the passed value of the like-named LINE-SIZE addition to the statement SUBMIT and can be overwritten during list creation with the like-named LINE-COUNT addition to the statement NEW-PAGE.
    If you optionally specify a number for footer_lines, a corresponding number of lines are reserved for the page footer, which can be described in the event block END-OF-PAGE.
    You must specify page_lines and footer_lines as numeric literals.
    Notes
    For screen lists, you should use the standard value since, as a rule, page breaks defaulted through LINE-COUNT are not adjusted to the window size.
    You should also use the standard value for print lists, so that you can still select the page size on a printer-specific basis. A print list should be created in such a way so that it can handle every page size.
    Specifying a fixed line count is only useful for form-type lists with a fixed page layout. Here, however, you should always check whether such forms can be created by other means, such as SAPScript forms.

  • Director 11 line.count problem?

    Hi all. My name is Natassa and this is my first time here!
    I am not new with Director, but can't figure out the
    following!
    There seems to be something wrong when working with text
    members regarding the line.count property. In our project, i parse
    through XML files and store data in text members which are placed
    on stage and run a mouseOver script using pointToLine(the mouseLoc)
    in order to change the color of the "active" line of the text
    member.
    The XML files are all utf-8 encoded, since we have english,
    greek and french text.
    I use a repeat loop so as to fill a text member with some
    titles.
    I have tried everything i could think of and could not solve
    my problem. So, i thought i should try something very basic and
    figure out what is going on.
    Nothing seems to be working!
    I have run the following basic scripts with the following
    output:
    Example A
    script:
    --I use numToChar(940) which is a greek character, since in
    our project we have english, greek, french all utf-8 encoded
    member("myText").text=""
    repeat with i=1 to 300
    myString = " line " & numToChar(940) &
    numToChar(940) & numToChar(940) & numToChar(940) & i
    member("myText").line[ i ] =myString
    put i,member("myText").line[ i ],
    member("myText").line.count
    end repeat
    Message window output:
    -- 1 " line άάάά1" 1
    -- 2 " line άάάά2" 2
    . (everything ok so far)
    -- 232 " line άάάά232" 232
    -- 233 " line άάάά233" 233
    -- 234 " line άάάά234" 208
    -- 235 "" 235 HERE IS THE PROBLEM - NO STING STORED IN THE
    TEXT MEMBER AFTER THIS LINE
    -- 236 "" 236
    -- 237 "" 237
    -- 299 "" 299
    -- 300 "" 300
    put member("myText").line.count
    -- 300
    put member("myText").line[300]
    Example B
    script:
    --I use numToChar(940) which is a greek character, since in
    our project we have english, greek, french all utf-8 encoded
    member("myText").text=""
    repeat with i=1 to 300
    myString = " line " & numToChar(940) &
    numToChar(940) & numToChar(940) & numToChar(940) & i
    member("myText").setContentsAfter(RETURN & myString)
    put i,member("myText").line[ i ],
    member("myText").line.count
    end repeat
    Message window output:
    -- 1 " line άάάά1" 2
    -- 2 " line άάάά2" 3
    . (everything ok so far)
    -- 232 " line άάάά232" 233
    -- 233 " line άάάά233" 234
    -- 234 " line άάάά234" 209 HERE IS THE
    PROBLEM - line.count DOES NOT WORK CORRECTLY
    -- 235 " line άάάά235" 210
    -- 299 " line άάάά299" 274
    -- 300 " line άάάά300" 275
    put member("clippings").line.count
    -- 275
    -- But if i copy the text of the member and paste it into a
    text editor, there are 300 lines!!!
    put member("clippings").line[300]
    -- " line άάάά300"
    As a result, the pointToLine(the mouse Loc) is not working
    well! The mouse is over a line and a different line has the
    "active" color...
    As you can see, the problem occurs after line 234!! :-|
    Does anyone else have the same problem? I have a deadline and
    can't figure out what to do!!
    p.s. I updated a director MX file to a director 11 file. A
    text member (contains greek and latin characters) opened in MX has
    a line.count of 384 (correct) and the same member opened in 11 gave
    a line.count of 275!!!!! Again the same problem with
    pointToLine()...

    >
    Example A
    >
    > -- 233 " line ????233" 233
    > -- 234 " line ????234" 208
    > -- 235 "" 235 HERE IS THE PROBLEM - NO STING STORED IN
    THE TEXT MEMBER
    > AFTER THIS LINE
    FWIW: I can replicate this problem, and it doesn't occur in
    DMX2004, so
    it's a new bug. It seems that line 234 gets the line number
    wrong (208)
    and it all turns to custard after that
    >
    Example B
    >
    > -- 232 " line ????232" 233
    > -- 233 " line ????233" 234
    > -- 234 " line ????234" 209 HERE IS THE PROBLEM -
    line.count DOES NOT WORK
    > CORRECTLY
    > -- 235 " line ????235" 210
    And I can replicate this too.
    However, I can "fix" your second example by referencing
    member.text.line
    instead of member.line. See the following alteration to your
    original
    handler:
    on test2
    member("myText").text=""
    c = numToChar(940)
    s = "line " & c & c & c & c
    repeat with i=1 to 300
    member("myText").setContentsAfter(RETURN & s & i)
    put i, member("myText").text.line
    , member("myText").text.line.count
    end repeat
    end
    I can't find a fix for your first example in a similar
    fashion. It's not
    permitted to execute member("myText").text.line =
    "string"
    > As a result, the pointToLine(the mouse Loc) is not
    working well! The mouse is
    > over a line and a different line has the "active"
    color...
    > p.s. I updated a director MX file to a director 11 file.
    A text member
    > (contains greek and latin characters) opened in MX has a
    line.count of 384
    > (correct) and the same member opened in 11 gave a
    line.count of 275!!!!! Again
    > the same problem with pointToLine()...
    Try instead measuring member.text.line.count instead of
    member.line.count
    I will try to replicate the pointToLine() issue and see if I
    can find a
    workaround.

  • Change in Normal list when i execute Report in Background.

    Hi all ,
    When we execute the Report in background a normal list will be displayed in the spool. In that Normal
    list is it possible to shift the columns that are displayed at the last to be displayed at the beginning.
    Regards ,
    Murthy

    Hi,
    Yes you can do that.
    You can determine the program is runing in background mode by using system variable SY-BATCH = 'X'.
    If SY-BATCH = 'X'.
    Then you can shift the column of internal table.
    Endif.

  • Add line count

    Hi,
    I'm trying to get the kerning character's report from our document. I have done the script without the line count, can you please guide to me "how to add the line count with in this script".
    //~ Define variables
    var myDoc = app.activeDocument;
    var myDocPath = myDoc.filePath;
    var myDocName = myDoc.name;
    Fnd = new Array();
    FoundContents = new Array();
    totalArray = new Array();
    try
        var myColor = app.activeDocument.colors.item("KER").name;
    catch(myError)
        var myColor = app.activeDocument.colors.add();
        myColor.name = "URL";
        myColor. model = ColorModel.process;
        myColor.colorValue = [15, 100, 100, 0];
    //~ End define variables
    //Array start for find urls and apply color
    var doc = app.activeDocument,
        _stories = doc.stories;
    for(var i=0;i<_stories.length;i++)
            var characters = _stories[i].characters;
            for(var j=0;j<characters.length;j++)
                    if(characters[j].insertionPoints[-1].kerningMethod != "Metrics" && characters[j].insertionPoints[-1].kerningMethod != "Optical")
                            if(characters[j].insertionPoints[-1].kerningValue <= -51)
                                    characters[j+1].fillColor = myColor;
                                    characters[j].fillColor = myColor;
    reportPage = new Array();
    reportContents = new Array();
    app.findTextPreferences = app.changeTextPreferences = null;
    app.findTextPreferences.fillColor = myColor;
    var myFoundColor = app.activeDocument.findText();
    for(f=0; f<myFoundColor.length; f++)
        var myFoundPage =  myFoundColor[f].parentTextFrames[0].parentPage.name;
         Fnd.push(myFoundPage)
        var myFoundContents = myFoundColor[f].contents;
        FoundContents.push(myFoundPage + "\t" + myFoundContents + "\r")

    Try this,
    //~ Define variables
    var myDoc = app.activeDocument;
    var myDocPath = myDoc.filePath;
    var myDocName = myDoc.name;
    var result = [];
    try
        var myColor = app.activeDocument.colors.item("KER").name;
    catch(myError)
        var myColor = app.activeDocument.colors.add();
        myColor.name = "URL";
        myColor. model = ColorModel.process;
        myColor.colorValue = [15, 100, 100, 0];
    //~ End define variables
    //Array start for find urls and apply color
    var doc = app.activeDocument,
        _stories = doc.stories;
    for(var i=0;i<_stories.length;i++)
            var characters = _stories[i].characters;
            for(var j=0;j<characters.length;j++)
                    if(characters[j].insertionPoints[-1].kerningMethod != "Metrics" && characters[j].insertionPoints[-1].kerningMethod != "Optical")
                            if(characters[j].insertionPoints[-1].kerningValue <= -51)
                                    characters[j+1].fillColor = myColor;
                                    characters[j].fillColor = myColor;
                                    result.push(characters[j].parentTextFrames[0].parentPage.name + "\t" + characters[j].parentStory.characters.itemByRange(characters[j].parentTextFrames[0].lines[0].index,  characters[j].index).lines.length + "\t"+ characters[j].contents + "\r")
    alert(result)
    Regards,
    Chinna

  • ALV interactive + normal list

    Hi All,
    I need some help regarding to  my requirement.
    I do have ALV developed using classes.
    When  i click a button on the alv, a normal list (using write statements) has to be displayed.
    When i do this, still alv is displayed and when i click the back button then the normal list is appearing.
    i used leave screen and leave list-processing. still its not working
    Regards
    Rajesh

    I think you are doing inside the ALV events. Instead of that you can use this  approach, Have a Application toolbar button. when you click on that button handle that button in PAI.
    check the sample. For this example create a screen and Create the status , with application toolbar button, Fcode as BUTTON. no need to create the Custom control on screen.
    REPORT  ztest_oo_a.
    DATA: it_vbak TYPE vbak_t.
    DATA: dock TYPE REF TO cl_gui_docking_container,
          it_fcat TYPE lvc_t_fcat,
          wa_fcat TYPE lvc_s_fcat,
          grid TYPE REF TO cl_gui_alv_grid.
    *       CLASS lcl_handler DEFINITION
    CLASS lcl_handler DEFINITION.
      PUBLIC SECTION.
        METHODS:  hotspot_click FOR EVENT hotspot_click OF cl_gui_alv_grid
        IMPORTING e_row_id e_column_id es_row_no.
    ENDCLASS.                    "lcl_handler DEFINITION
    *       CLASS lcl_handler IMPLEMENTATION
    CLASS lcl_handler IMPLEMENTATION.
      METHOD hotspot_click.
        DATA:    row TYPE lvc_s_roid,
            wa_vbak TYPE vbak.
        row = es_row_no.
        READ TABLE it_vbak INTO wa_vbak INDEX row-row_id.
        SET PARAMETER ID 'AUN' FIELD wa_vbak-vbeln.
        CALL TRANSACTION 'VA03' AND SKIP FIRST SCREEN.
      ENDMETHOD.                    "HOTSPOT_CLICK
    ENDCLASS.                    "lcl_handler IMPLEMENTATION
    START-OF-SELECTION.
      DATA: obj TYPE REF TO  lcl_handler.
      CREATE OBJECT obj.
      SELECT *
        FROM vbak
        INTO TABLE it_vbak
        UP TO 20 ROWS.
      CALL SCREEN 100.
    *&      Module  STATUS_0100  OUTPUT
    *       text
    MODULE status_0100 OUTPUT.
      SET PF-STATUS 'SATR'.
      CREATE OBJECT dock
        EXPORTING
          repid     = sy-repid
          dynnr     = '100'
          extension = '1500'
        EXCEPTIONS
          cntl_error                  = 1
          cntl_system_error           = 2
          create_error                = 3
          lifetime_error              = 4
          lifetime_dynpro_dynpro_link = 5
          OTHERS                      = 6
      IF sy-subrc NE 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      CREATE OBJECT grid EXPORTING i_parent = dock.
      CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
        EXPORTING
          i_structure_name       = 'VBAK'
        CHANGING
          ct_fieldcat            = it_fcat
        EXCEPTIONS
          inconsistent_interface = 1
          program_error          = 2
          OTHERS                 = 3.
      IF sy-subrc NE 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
      wa_fcat-hotspot = 'X'.
      MODIFY it_fcat FROM wa_fcat INDEX 2 TRANSPORTING hotspot .
      SET HANDLER obj->hotspot_click FOR grid.
      CALL METHOD grid->set_table_for_first_display
    *    EXPORTING
    *      i_structure_name              = 'VBAK'
        CHANGING
          it_outtab                     = it_vbak
          it_fieldcatalog               = it_fcat
        EXCEPTIONS
          invalid_parameter_combination = 1
          program_error                 = 2
          too_many_lines                = 3
          OTHERS                        = 4.
      IF sy-subrc NE 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    ENDMODULE.                 " STATUS_0100  OUTPUT
    *&      Module  USER_COMMAND_0100  INPUT
    *       text
    MODULE user_command_0100 INPUT.
      CASE sy-ucomm.
        WHEN 'BACK'.
          LEAVE TO SCREEN 0.
        when 'BUTTON'.
            LEAVE TO LIST-PROCESSING AND RETURN TO SCREEN sy-dynnr.
        WRITE 'I am in Normal ALV Report'.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_0100  INPUT

  • Interactive List : ALV + Normal List

    Hi,
    Please help me on this.
    I haveto write an interactive report where the first screen would be an ALV list, on clicking the line item I need to display the detailed report in normal list. Also, the data displayed in the normal list is almost same as that displayed on ALV.I have created both types of output but dont know how to link them as interactive. any suggestions or help?

    hi,
    this is an ALV interactive report .in this you can find logic for interactive report.make use of it.
    instead of alv make use of normal report for secondary list.
    REPORT  ZSR_ALV_INTERACTIVE.
    TABLES : LFA1,EKKO,EKPO.
    SELECT-OPTIONS : VENDOR FOR LFA1-LIFNR.
    DATA : BEGIN OF ITAB OCCURS 0,
           LIFNR LIKE LFA1-LIFNR,
           NAME1 LIKE LFA1-NAME1,
           END OF ITAB.
    DATA : BEGIN OF JTAB OCCURS 0,
           EBELN LIKE EKKO-EBELN,
           AEDAT LIKE EKKO-AEDAT,
           END OF JTAB.
    DATA : BEGIN OF KTAB OCCURS 0,
           EBELP LIKE EKPO-EBELP,
           MATNR LIKE EKPO-MATNR,
           END OF KTAB.
    TYPE-POOLS : SLIS.
    DATA : REPID LIKE SY-REPID.
    DATA :LFA1_B TYPE SLIS_T_FIELDCAT_ALV,
          LFA1_W TYPE SLIS_FIELDCAT_ALV,
          EKKO_B TYPE SLIS_T_FIELDCAT_ALV,
          EKKO_W TYPE SLIS_FIELDCAT_ALV,
          EKPO_B TYPE SLIS_T_FIELDCAT_ALV,
          EKPO_W TYPE SLIS_FIELDCAT_ALV,
          EVENTS_B TYPE SLIS_T_EVENT,
          EVENTS_W TYPE SLIS_ALV_EVENT.
    PERFORM GET_VAL.
    REPID = SY-REPID.
    SELECT LIFNR NAME1 FROM LFA1 INTO TABLE ITAB WHERE LIFNR IN VENDOR.
    *perform val USING USER_COMMAND sel.
    CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
      EXPORTING
        I_CALLBACK_PROGRAM = REPID
        IT_FIELDCAT        = LFA1_B
        IT_EVENTS          = EVENTS_B
      TABLES
        T_OUTTAB           = ITAB.
    *&      Form  GET_VAL
          text  this is to put column headings
    FORM GET_VAL.
      LFA1_W-FIELDNAME = 'LIFNR'.
      LFA1_W-REF_TABNAME = 'LFA1'.
      LFA1_W-REF_FIELDNAME = 'LIFNR'.
      APPEND LFA1_W TO LFA1_B.
      LFA1_W-FIELDNAME = 'NAME1'.
      LFA1_W-REF_TABNAME = 'LFA1'.
      LFA1_W-REF_FIELDNAME = 'NAME1'.
      APPEND LFA1_W TO LFA1_B.
      EKKO_W-FIELDNAME = 'EBELN'.
      EKKO_W-REF_TABNAME = 'EKKO'.
      EKKO_W-REF_FIELDNAME = 'EBELN'.
      APPEND EKKO_W TO EKKO_B.
      EKKO_W-FIELDNAME = 'AEDAT'.
      EKKO_W-REF_TABNAME = 'EKKO'.
      EKKO_W-REF_FIELDNAME = 'AEDAT'.
      APPEND EKKO_W TO EKKO_B.
      EKPO_W-FIELDNAME = 'EBELP'.
      EKPO_W-REF_TABNAME = 'EKPO'.
      EKPO_W-REF_FIELDNAME = 'EBELP'.
      APPEND EKPO_W TO EKPO_B.
      EKPO_W-FIELDNAME = 'MATNR'.
      EKPO_W-REF_TABNAME = 'EKPO'.
      EKPO_W-REF_FIELDNAME = 'MATNR'.
      APPEND EKPO_W TO EKPO_B.
      EVENTS_W-NAME = 'USER_COMMAND'.
      EVENTS_W-FORM = 'VAL'.
      APPEND EVENTS_W TO EVENTS_B.
    ENDFORM.                    "GET_VAL
    *&      Form  VAL
          text
         -->USER_COMMANtext
         -->SEL        text     for retrieving data
    FORM VAL USING USER_COMMAND LIKE SY-UCOMM SEL TYPE SLIS_SELFIELD.
      DATA : VEN(10) TYPE N,
             PO(10) TYPE N.
      DATA : MAT(10) TYPE C.
      IF SEL-FIELDNAME = 'LIFNR'.
        VEN = SEL-VALUE.
        SELECT EBELN AEDAT FROM EKKO INTO TABLE JTAB WHERE LIFNR = VEN.
       CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          I_CALLBACK_PROGRAM             = REPID
         I_STRUCTURE_NAME               = EKKO_B
          IT_FIELDCAT                    = EKKO_B
          IT_EVENTS                      = EVENTS_B
         TABLES
           T_OUTTAB                       = JTAB.
      ENDIF.
      IF SEL-FIELDNAME = 'EBELN'.
        PO = SEL-VALUE.
        SELECT EBELP MATNR FROM EKPO INTO TABLE KTAB WHERE EBELN = PO.
        CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
          EXPORTING
            I_TITLE            = 'ITEM DETAILS'
            I_TABNAME          = 'EKPO'
            IT_FIELDCAT        = EKPO_B
            I_CALLBACK_PROGRAM = REPID
          IMPORTING
            ES_SELFIELD        = SEL
          TABLES
            T_OUTTAB           = KTAB.
      ENDIF.
    logic to select a record
      IF SEL-FIELDNAME = 'MATNR'.
        MAT = SEL-VALUE.
        SET PARAMETER ID 'MAT' FIELD MAT.
        CALL TRANSACTION 'MM02' AND SKIP FIRST SCREEN.
      ENDIF.
    ENDFORM.                    "VAL

Maybe you are looking for

  • Need to add Ignore Blank Cells In Values in Flex Component - How?

    Can anyone help in providing any code that will add into the properties the capability to Ignore Blank Cells in Values?

  • This is getting annoying (display/startup)

    well last week i sent my macbook off to have the casing replaced. that turned out great and i'm happy with THOSE results. well since i got it back yesterday, i have to reset the PRAM EVERYTIME I STARTUP. i thought great. so i read threads stating the

  • Audio Problem t430s

    our entire org has t430s machines running win 8. recently we have started having issues with sound. out of 500 odd machines only 8 or 9 has shown this problem. i have updated the sound driver on those machines to ver 6.0.17... but the problem still p

  • Finding codes on screen before booting up.

    Hi guys, first time posting here because I seem to be running into an issue. Whenever I turn on my PC, I find that my pc shows a black screen with the codes 9c, 99, and a2. These codes happen to stay for a couple of seconds but I have never seen thes

  • Error message when opening current project/sequence error?

    Hi! So I'm working with a project, a very simple timeline with vids transcoded to cineform codec. Everything is working beautiful. But every time I open the project to continue working on it, it shows me a strange error message that won't allow me to