Runtime error alv list report out put

Runtime Errors         GETWA_NOT_ASSIGNED
Date and Time          03.03.2014 13:11:56
Short text
     Field symbol has not yet been assigned.
What happened?
     Error in the ABAP Application Program
     The current ABAP program "SAPLKKBL" had to be terminated because it has
     come across a statement that unfortunately cannot be executed.
What can you do?
     Note down which actions and inputs caused the error.
     To process the problem further, contact you SAP system
     administrator.
     Using Transaction ST22 for ABAP Dump Analysis, you can look
     at and manage termination messages, and you can also
     keep them for a long time.
Error analysis
     You attempted to access an unassigned field symbol
(data segment 93).
This error may occur if
- You address a typed field symbol before it has been set with
  ASSIGN
- You address a field symbol that pointed to the line of an
  internal table that was deleted
- You address a field symbol that was previously reset using
  UNASSIGN or that pointed to a local field that no
  longer exists
- You address a global function interface, although the
  respective function module is not active - that is, is
  not in the list of active calls. The list of active calls
  can be taken from this short dump.
to correct the error
If the error occures in a non-modified SAP program, you may be able to
find an interim solution in an SAP Note.
If you have access to SAP Notes, carry out a search with the following
keywords:
"GETWA_NOT_ASSIGNED" " "
"SAPLKKBL" or "LKKBLF99"
"GEN_FIELD_OUT2"
If you cannot solve the problem yourself and want to send an error
(data segment 93).
This error may occur if
- You address a typed field symbol before it has been set with
  ASSIGN
- You address a field symbol that pointed to the line of an
  internal table that was deleted
- You address a field symbol that was previously reset using
  UNASSIGN or that pointed to a local field that no
  longer exists
- You address a global function interface, although the
  respective function module is not active - that is, is
  not in the list of active calls. The list of active calls
  can be taken from this short dump.
to correct the error
If the error occures in a non-modified SAP program, you may be able to
find an interim solution in an SAP Note.
If you have access to SAP Notes, carry out a search with the following
keywords:
"GETWA_NOT_ASSIGNED" " "
"SAPLKKBL" or "LKKBLF99"
"GEN_FIELD_OUT2"
If you cannot solve the problem yourself and want to send an error
Operating system..... "HP-UX"
Release.............. "B.11.23"
Hardware type........ "ia64"
Character length.... 16 Bits
Pointer length....... 64 Bits
Work process number.. 1
Shortdump setting.... "full"
Database server... "CFLDEV01"
Database type..... "ORACLE"
Database name..... "CD1"
Database user ID.. "SAPSR3"
Terminal.......... "CFINWL0115"
Char.set.... "C"
SAP kernel....... 701
created (date)... "Apr 2 2011 01:40:22"
create on........ "HP-UX B.11.23 U ia64"
Database version. "OCI_102 (10.2.0.4.0) "
Patch level. 137
Patch text.. " "
Database............. "ORACLE 10.1.0.*.*, ORACLE 10.2.0.*.*, ORACLE 11.2.*.*.*"
SAP database version. 701
Operating system..... "HP-UX B.11"
Memory consumption
    Roll.... 16192
    EM...... 20949200
    Heap.... 0
    Page.... 122880
    MM Used. 3677872
    MM Free. 509344
User and Transaction
    Client.............. 200
    User................ "GUEST"
    Language key........ "E"
    Transaction......... "SE38 "
    Transactions ID..... "5311AF68E99111BDE1000000C009C834"
    Program............. "SAPLKKBL"
    Screen.............. "SAPLKKBL 0500"
    Screen line......... 3
Information on where terminated
    Termination occurred in the ABAP program "SAPLKKBL" - in "GEN_FIELD_OUT2".
    The main program was "ZTEST_11 ".
    In the source code you have the termination point in line 2844
    of the (Include) program "LKKBLF99".
Source Code Extract
Line  SourceCde
2814       gs_sfc97 = gs_out_fieldcat.
2815     when 98.
2816       assign component gs_out_fieldcat-fieldname
2817              of structure t_outtab_slave to <fs98>.
2818       gs_sfc98 = gs_out_fieldcat.
2819     when 99.
2820       assign component gs_out_fieldcat-fieldname
2821              of structure t_outtab_slave to <fs99>.
2822       gs_sfc99 = gs_out_fieldcat.
2823   endcase.
2824 endform.                    "field_assign_hier_slave
2825 *---------------------------------------------------------------------*
2826 *       FORM GEN_FIELD_OUT2                                           *
2827 *---------------------------------------------------------------------*
2828 *       ........                                                      *
2829 *---------------------------------------------------------------------*
2830 form gen_field_out2.
2831   field-symbols <l_initial>.
2832
2833   case gs_out-field_colcount.
2834     when 001.
2835       if gs_out_flags-slave ne 'X'.
2836         assign <fm01> to <field>.
2837         gs_fc = gs_mfc01.
2838       else.
2839         assign <fs01> to <field>.
2840         gs_fc = gs_sfc01.
2841       endif.
2842     when 002.
2843       if gs_out_flags-slave ne 'X'.
>>>>>         assign <fm02> to <field>.
2845         gs_fc = gs_mfc02.
2846       else.
2847         assign <fs02> to <field>.
2848         gs_fc = gs_sfc02.
2849       endif.
2850     when 003.
2851       if gs_out_flags-slave ne 'X'.
2852         assign <fm03> to <field>.
2853         gs_fc = gs_mfc03.
2854       else.
2855         assign <fs03> to <field>.
2856         gs_fc = gs_sfc03.
2857       endif.
2858     when 004.
2859       if gs_out_flags-slave ne 'X'.
2860         assign <fm04> to <field>.
2861         gs_fc = gs_mfc04.
2862       else.
2863         assign <fs04> to <field>.
Contents of system fields
Name     Val.
Name     Val.
SY-SUBRC 4
SY-INDEX 2
SY-TABIX 0
SY-DBCNT 1
SY-FDPOS 80
SY-LSIND 0
SY-PAGNO 1
SY-LINNO 4
SY-COLNO 13
SY-PFKEY STANDARD
SY-UCOMM
SY-TITLE Sales nformation
SY-MSGTY I
SY-MSGID SF
SY-MSGNO 616
SY-MSGV1 ZTEST_11
SY-MSGV2 RE
SY-MSGV3 EN
SY-MSGV4
SY-MODNO 0
SY-DATUM 20140303
SY-UZEIT 131156
SY-XPROG SAPCNVE
SY-XFORM CONVERSION_EXIT
Active Calls/Events
No.   Ty.          Program                             Include                             Line
      Name
   10 FORM         SAPLKKBL                            LKKBLF99                             2844
      GEN_FIELD_OUT2
    9 FORM         SAPLKKBL                            LKKBLF99                              797
      GEN_LINE_OUT
    8 FORM         SAPLKKBL                            LKKBLF98                             1359
      DATA_OUT_SIMPLE
    7 FORM         SAPLKKBL                            LKKBLF01                              457
      LIST_OUTPUT_NEW
    6 FORM         SAPLKKBL                            LKKBLF01                             6205
      FIRST_LIST_DISPLAY
    5 MODULE (PBO) SAPLKKBL                            LKKBLO01                               11
      LIST_DISPLAY
    4 FUNCTION     SAPLKKBL                            LKKBLU01                              441
      K_KKB_LIST_DISPLAY
    3 FUNCTION     SAPLSALV                            LSALVU07                              504
      REUSE_ALV_LIST_DISPLAY
    2 FORM         ZTEST_11                            ZTEST_11                              181
      DISPLAY
    1 EVENT        ZTEST_11                            ZTEST_11                              103
      START-OF-SELECTION
Chosen variables
Name
Val.
      10 Ty.          FORM
e  GEN_FIELD_OUT2
SFC22
0000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000
0000222222222222222222222222222222222222222222222222222
0000000000000000000000000000000000000000000000000000000
OUT-FIELD_COLCOUNT
2
0000
0002
UMMY$$
0000
0000
2222
0000
REPID
SAPLKKBL
0000000000000000000000000000000000000000
0000000000000000000000000000000000000000
5454444422222222222222222222222222222222
310CBB2C00000000000000000000000000000000
OUT_FLAGS-SLAVE
0
   0
   2
   0
PACE
   0
   0
   2
   0
FM01>
   0000
   0000
   2222
   0000
FIELD>
   0000
   0000
   2222
   0000
S_FC
   ####BSARK                         1
   0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
   0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
   0000454542222222222222222222222222322222222222222222222222222222222222222222222222222222222222
   01012312B0000000000000000000000000100000000000000000000000000000000000000000000000000000000000
S_MFC01
   ####BSARK                         1
   0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000

this is a report n im getiing runtime error Runtime Errors         GETWA_NOT_ASSIGNED   give the solution
TABLES : VBAK , VBAP , KNA1.
TYPE-POOLS : SLIS.
TYPES : BEGIN OF TY_VBAP,
         matnr   type    matnr,
         vbeln   type    vbeln,      " order no
         ARKTX   type    ARKTX,      "item name
         KWMENG  type    KWMENG,     " order qua.
         audat   type    audat,      " SD document item date (incoming or outgoing date)
         posnr   type    posnr,
         END OF TY_VBAP.
TYPES : BEGIN OF TY_KNA1,
         NAME1 TYPE NAME1,
*        KUNNR TYPE KUNNR,
         END OF TY_KNA1.
TYPES : BEGIN OF TY_VBAK,
         VTWEG   type   VTWEG,   " Distribution Channel
         BSARK   type   BSARK,   "Customer purchase order type
         END OF TY_VBAK.
TYPES : BEGIN OF TY_FINAL,
         matnr   type    VBAP-matnr,
         vbeln   type    VBAP-vbeln,      " order no
         ARKTX   type    VBAP-ARKTX,      "item name
         KWMENG  type    VBAP-KWMENG,     " order qua.
         audat   type    VBAP-audat,      " SD document item date (incoming or outgoing date)
         posnr   type    VBAP-posnr,
         VTWEG   type    VBAK-VTWEG,   " Distribution Channel
         BSARK   type    VBAK-BSARK,   "Customer purchase order type
         NAME1   TYPE    KNA1-NAME1,
*        KUNNR   TYPE    KNA1-KUNNR,
         END OF TY_FINAL.
DATA : IT_VBAP TYPE TABLE OF TY_VBAP,
        IT_VBAK TYPE TABLE OF TY_VBAK,
        IT_KNA1 TYPE TABLE OF TY_KNA1,
        IT_FINAL1 TYPE TABLE OF TY_FINAL,
        IT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV.
DATA : WA_VBAP LIKE LINE OF IT_VBAP,
        WA_VBAK LIKE LINE OF IT_VBAK,
        WA_KNA1 LIKE LINE OF IT_KNA1,
        WA_FINAL LIKE LINE OF IT_FINAL1,
        WA_FIELDCAT TYPE          SLIS_FIELDCAT_ALV.
INITIALIZATION.
SELECTION-SCREEN BEGIN OF BLOCK BL WITH FRAME TITLE TEXT-001.
     SELECT-OPTIONS :
                     SO_NO     FOR VBAP-VBELN,
                     M_NO      FOR VBAP-MATNR,
                     SO_DATE   FOR VBAP-AUDAT OBLIGATORY.
SELECTION-SCREEN END OF BLOCK BL.
     START-OF-SELECTION.
     SELECT VBELN MATNR AUDAT ARKTX KWMENG POSNR
        FROM VBAP INTO CORRESPONDING FIELDS OF TABLE IT_FINAL1 WHERE VBELN IN SO_NO
                                                                 AND MATNR IN M_NO
                                                                 AND AUDAT IN SO_DATE.
       SELECT NAME1  FROM KNA1 INTO CORRESPONDING FIELDS OF TABLE IT_FINAL1 .
       LOOP AT IT_FINAL1 INTO WA_FINAL.
         SELECT SINGLE name1 FROM kna1 INTO WA_FINAL-name1 WHERE KUNNR = WA_FINAL-name1.
           MODIFY IT_FINAL1 FROM WA_FINAL TRANSPORTING NAME1.
       ENDLOOP.
SELECT VTWEG BSARK FROM VBAK INTO CORRESPONDING FIELDS OF TABLE IT_FINAL1.
*      SELECT VTWEG BSARK FROM VBAK INTO CORRESPONDING FIELDS OF TABLE IT_VBAK
*                         FOR ALL ENTRIES IN IT_FINAL1
*                         WHERE VTWEG = IT_FINAL1-VTWEG
*                         AND   BSARK = IT_FINAL1-BSARK.
       LOOP AT IT_FINAL1 INTO WA_FINAL.
         READ TABLE IT_VBAK INTO WA_VBAK WITH KEY VTWEG = WA_FINAL-VTWEG.
         READ TABLE IT_VBAK INTO WA_VBAK WITH KEY BSARK = WA_FINAL-BSARK.
         IF SY-SUBRC EQ 0.
           WA_FINAL-VTWEG = WA_VBAK-VTWEG.
           WA_FINAL-BSARK = WA_VBAK-BSARK.
         ENDIF.
               MODIFY IT_FINAL1 FROM WA_FINAL TRANSPORTING VTWEG BSARK.
         ENDLOOP.
         PERFORM BUILD.
         PERFORM DISPLAY.
*&      Form  BUILD
*       text
*  -->  p1        text
*  <--  p2        text
form BUILD .
*CLEAR WA_FIELDCAT.
WA_FIELDCAT-COL_POS = '1'.
WA_FIELDCAT-FIELDNAME = 'BSARK'.
WA_FIELDCAT-SELTEXT_L = 'Order type'.
APPEND WA_FIELDCAT TO IT_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-COL_POS = '2'.
WA_FIELDCAT-FIELDNAME = 'AUFNR'.
WA_FIELDCAT-SELTEXT_L = 'Order number'.
APPEND WA_FIELDCAT TO IT_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-COL_POS = '3'.
WA_FIELDCAT-FIELDNAME = 'POSNR'.
WA_FIELDCAT-SELTEXT_L = 'Line No.'.
APPEND WA_FIELDCAT TO IT_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-COL_POS = '4'.
WA_FIELDCAT-FIELDNAME = 'VTWEG'.
WA_FIELDCAT-SELTEXT_L = 'Dis Channel'.
APPEND WA_FIELDCAT TO IT_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-COL_POS = '5'.
WA_FIELDCAT-FIELDNAME = 'audat'.
WA_FIELDCAT-SELTEXT_L = 'Order Date'.
APPEND WA_FIELDCAT TO IT_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-COL_POS = '6'.
WA_FIELDCAT-FIELDNAME = 'audat'.
WA_FIELDCAT-SELTEXT_L = 'delivey date'.
APPEND WA_FIELDCAT TO IT_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-COL_POS = '7'.
WA_FIELDCAT-FIELDNAME = 'name1'.
WA_FIELDCAT-SELTEXT_L = 'Name'.
APPEND WA_FIELDCAT TO IT_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-COL_POS = '8'.
WA_FIELDCAT-FIELDNAME = 'ARKTX'.
WA_FIELDCAT-SELTEXT_L = 'Iem Name'.
APPEND WA_FIELDCAT TO IT_FIELDCAT.
CLEAR WA_FIELDCAT.
WA_FIELDCAT-COL_POS = '9'.
WA_FIELDCAT-FIELDNAME = 'KWMENG'.
WA_FIELDCAT-SELTEXT_L = 'Order quantitye'.
APPEND WA_FIELDCAT TO IT_FIELDCAT.
endform.                    " BUILD
*&      Form  DISPLAY
*       text
*  -->  p1        text
*  <--  p2        text
form DISPLAY .
   CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
    EXPORTING
*     I_INTERFACE_CHECK              = ' '
*     I_BYPASSING_BUFFER             =
*     I_BUFFER_ACTIVE                = ' '
      I_CALLBACK_PROGRAM             = sy-repid
*     I_CALLBACK_PF_STATUS_SET       = ' '
*     I_CALLBACK_USER_COMMAND        = ' '
*     I_STRUCTURE_NAME               =
*     IS_LAYOUT                      =
      IT_FIELDCAT                    = IT_FIELDCAT[]
*     IT_EXCLUDING                   =
*     IT_SPECIAL_GROUPS              =
*     IT_SORT                        =
*     IT_FILTER                      =
*     IS_SEL_HIDE                    =
*     I_DEFAULT                      = 'X'
*     I_SAVE                         = ' '
*     IS_VARIANT                     =
*     IT_EVENTS                      =
*     IT_EVENT_EXIT                  =
*     IS_PRINT                       =
*     IS_REPREP_ID                   =
*     I_SCREEN_START_COLUMN          = 0
*     I_SCREEN_START_LINE            = 0
*     I_SCREEN_END_COLUMN            = 0
*     I_SCREEN_END_LINE              = 0
*     IR_SALV_LIST_ADAPTER           =
*     IT_EXCEPT_QINFO                =
*     I_SUPPRESS_EMPTY_DATA          = ABAP_FALSE
*   IMPORTING
*     E_EXIT_CAUSED_BY_CALLER        =
*     ES_EXIT_CAUSED_BY_USER         =
     TABLES
       t_outtab                       = IT_FINAL1.
*   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.                    " DISPLAY

Similar Messages

  • Check bix in the list (report out put)

    I have a field GW_FINAL-DECISION  of char1 in an internal table.
    After executing the selection screen the data from internal table is displayed on the list.
    WRITE : GW_FINAL-DECISION AS CHECKBOX.
    when I select the check box from the list, the value of the internal table is to be saved as 'X'.
    please help me in this regard ASAP.

    Hi,
    I think its better if you use ALV to display the report output and you can handle the check box issue with user_command subroutine of Reuse_alv_grid_display function module. Its simplest approach to solve such problems.
    Cheers
    Phani.

  • Getting error While attaching Report out put Pdf file to POAPPRV workflow

    I am getting below error in workflow
    Item Type = POAPPRV
    Item Key = 60383-243513
    User Key =40515
    Error Name = WF_ERROR
    Error Message = [WF_ERROR] ERROR_MESSAGE=3835: Error '-20002 - ORA-20002: [WFMLR_DOCUMENT_ERROR]' encountered during execution of Generate function 'WF_XML.Generate' for event 'oracle.apps.wf.notification.send'. ERROR_STACK=
    GNE_PO_CREATE_FILE_ATTACHMENT.Gne_Create_File_Attachment(60383-243513 OAPPRV, text/html)
    Wf_Notification.GetAttrblob(207046, PO_REPORT, text/html)
    WF_XML.GetAttachment(207046, text/html)
    WF_XML.GetAttachments(207046, http://gnedxbebsdev.gerab.ae:8003/pls/DEV, 850
    WF_XML.GenerateDoc(oracle.apps.wf.notification.send, 207046)
    WF_XML.Generate(oracle.apps.wf.notification.send, 207046)
    WF_XML.Generate(oracle.apps.wf.notification.send, 207046)
    Wf_Event.setMessage(oracle.apps.wf.notification.send, 207046, WF_XML.Generate)
    Wf_Event.dispatch_internal()
    Error Stack =
    Activity Id = 124108
    Activity Label = NOTIFY_APPROVER_SUBPROCESS:GNE_PO_NOTI_TO_CEO
    Result Code = #MAIL
    Notification Id = 207046
    The Code used in procedure is given below
    procedure Gne_Create_File_Attachment (document_id in varchar2,
    display_type in varchar2,
    document in out blob,
    document_type in out varchar2)
    is
    l_itemtype varchar2(100);
    l_itemkey varchar2(100);
    l_output_directory varchar2(30);
    l_filename varchar2(255);
    src_loc bfile;
    bdoc blob;
    src_offset number := 1;
    dst_offset number := 1;
    amount number;
    l_request_id varchar2(100);
    begin
    l_itemtype := substr(document_id, 1, instr(document_id, ':') - 1);
    l_itemkey := substr(document_id, instr(document_id, ':') + 1, length(document_id) - 2);
    select attribute4
    into l_request_id
    from po_headers_all
    where to_char(PO_HEADER_ID)=l_itemtype;
    l_output_directory := 'APPLCSF/APPLOUT';
    l_filename := 'o'||l_request_id;
    src_loc := bfilename(l_output_directory,l_filename);
    dbms_lob.createTemporary(bdoc, FALSE, dbms_lob.call);
    dbms_lob.fileopen(src_loc, dbms_lob.file_readonly);
    dbms_lob.loadblobfromfile(bdoc,src_loc,dbms_lob.lobmaxsize,src_offset,dst_offset);
    dbms_lob.fileclose(src_loc);
    amount := dbms_lob.getLength(bdoc);
    dbms_lob.copy(document,bdoc,amount,1,1);
    document_type := 'application/pdf; name=attach.pdf';
    EXCEPTION
    WHEN OTHERS THEN
    wf_core.CONTEXT('GNE_PO_CREATE_FILE_ATTACHMENT'
    ,'Gne_Create_File_Attachment'
    ,document_id
    ,display_type);
    RAISE;
    end GNE_Create_File_Attachment;
    PROCEDURE Gne_Assign_wf_Attribute(
    itemtype IN VARCHAR2,
    itemkey IN VARCHAR2,
    actid IN NUMBER,
    funcmode IN VARCHAR2,
    resultout OUT NOCOPY VARCHAR2)
    IS
    v_user_name varchar2(100);
    BEGIN
    IF FUNCMODE = 'RUN' THEN
    wf_engine.setitemattrdocument
    (itemtype => itemtype
    , itemkey => itemkey
    , aname => 'PO_REPORT'
    , documentid =>'PLSQLBLOB:GNE_PO_CREATE_FILE_ATTACHMENT.GNE_Create_File_Attachment/'
    || itemkey
    || ':'
    || itemtype);
    end if;
    EXCEPTION
    WHEN OTHERS THEN
    wf_core.CONTEXT('GNE_PO_CREATE_FILE_ATTACHMENT'
    ,'Gne_Assign_wf_Attribute'
    ,itemtype
    ,itemkey);
    RAISE;
    END Gne_Assign_wf_Attribute;
    Can Any Body Please help me....
    It is very urgent..
    Thanks In Advance
    Anil Kumar

    There are two ways to look at what error the PLSQLBLOB API is throwing.
    1) Call your PLSQLBLOB API GNE_PO_CREATE_FILE_ATTACHMENT.Gne_Create_File_Attachment directly from a PLSQL block and verify that it returns the BLOB data successfully.
    You could also call another WF API that in turn executes the PLSQLBLOB API internally. For example,
    <pre>
    declare
    l_document blob;
    l_doctype varchar2(240);
    l_aname varchar2(90);
    begin
    dbms_lob.CreateTemporary(l_document, true, dbms_lob.Session);
    -- 207046 - This is the notification id of your failed workflow
    -- PO_REPORT - Document type attribute
    -- 'text/html' - Content Type being generated for
    Wf_Notification.GetAttrBLOB(207046, 'PO_REPORT', 'text/html', l_document, l_doctype, l_aname);
    -- Print the size of the document here to verify it was fetched correctly
    end;
    </pre>
    2) Turn on log for SYSADMIN user with following attributes.
    Log Enabled = TRUE
    Log Level = ERROR
    Log Module = wf.plsql%
    Restart the Workflow Deferred Agent Listener and Workflow Notification Deferred Agent Listener and run your workflow process. Search for log messages written for above context and you can identify the error at wf.plsql.WF_XML.GetAttachment module with message starting as "Error when getting BLOB attachment ->"
    Hope this helps.
    Vijay

  • Issue Regarding ALV List Report

    Hi,
    I have prepared a ALV List report.
    I have made use of <b>REUSE_ALV_LIST_DISPLAY</b>.
    I have put a <b>check box</b> in the output at the begining of every Record.
    Now what i want is to put a <b>SELECT ALL</b> & <b>DESELECT ALL Buttons</b> on Application Tool Bar & If i hit on them i should be able to <b>SELECT & DE-SELECT</b> all the <b>Records/Check Boxes</b> in the output.
    Can anybody tell me the logic for both <b><b>SELECT & DE-SELECT</b></b> functionalities.
    Thanks in advance.
    Thanks & Regards,
    Prasad.
    <b></b>

    Hi,
    <b>Call to F.M is as below:</b>
    FORM f_display_alv_report .
      DATA: l_valid,
            l_params LIKE pri_params.
      SET PF-STATUS c_alv.
      CALL FUNCTION 'GET_PRINT_PARAMETERS'
        EXPORTING
          mode           = 'BATCH'
          report         = v_repid
          no_dialog      = c_x
        IMPORTING
          out_parameters = l_params
          valid          = l_valid.
      IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      ENDIF.
      CALL FUNCTION 'REUSE_ALV_LIST_DISPLAY'
        EXPORTING
          i_callback_program       = v_repid
          i_callback_user_command  = c_command
          i_callback_pf_status_set = c_alv
          is_layout                = i_gd_layout
          it_fieldcat              = i_fieldcatalog[]
          it_events                = i_events
          is_print                 = i_params
          i_save                   = c_x
        TABLES
          t_outtab                 = i_display_data
        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.                    " f_display_alv_report
    <b>Then User Command Call is as below:</b>
    FORM f_user_command USING p_ucomm    LIKE sy-ucomm
                              p_selfield TYPE slis_selfield.
      CLEAR:  v_field, v_index, v_line, v_value.
      IF p_ucomm EQ c_select.
        LOOP AT i_display_data.
          i_display_data-selected = c_x.
          MODIFY i_display_data TRANSPORTING selected.
          CLEAR i_display_data.
        ENDLOOP.
      ELSEIF p_ucomm EQ c_deselect.
        LOOP AT i_display_data.
          i_display_data-selected = space.
          MODIFY i_display_data TRANSPORTING selected.
          CLEAR i_display_data.
        ENDLOOP.
      ENDIF.
    Get cursor field, value and Line
      GET CURSOR FIELD  v_field
                 VALUE  v_value
                 LINE   v_line.
      v_line = v_line - 3.
      CLEAR: i_display_data,
             i_mem,
             v_mem_kschl,
             v_mem_printer,
             v_ucomm,
             v_mem_print.
      REFRESH: i_mem.
      LOOP AT i_display_data
              WHERE selected EQ c_x.
        i_mem-v_mem_vbeln   = i_display_data-vbeln.
        i_mem-v_mem_posnr   = i_display_data-posnr.
        APPEND i_mem.
        CLEAR i_mem.
      ENDLOOP.
    READ TABLE i_display_data INDEX v_line.
      IF sy-subrc EQ 0.
        v_mem_kschl   = p_kschl.
        v_mem_printer = p_print.
        v_ucomm       = sy-ucomm.
        EXPORT i_mem         TO MEMORY ID 'MEM'.
        EXPORT v_mem_kschl   TO MEMORY ID 'KSCHL'.
        EXPORT v_mem_printer TO MEMORY ID 'PRINTE'.
        EXPORT v_ucomm       TO MEMORY ID 'UCOM'.
      ENDIF.
      CASE p_ucomm.
    To Print SAP Script Output
        WHEN c_print.
          v_mem_print = c_x.
          EXPORT v_mem_print TO MEMORY ID 'PRINT'.
          v_return_code = c_999.
          v_screen      = c_x.
          IF ( v_field EQ c_mark     OR
               v_field EQ c_selected OR
               v_field EQ c_vbeln    OR
               v_field EQ c_posnr    OR
               v_field EQ c_kschl )  AND
               NOT v_value IS INITIAL.
            PERFORM f_entry IN PROGRAM zasdf0012_sales_order
                    USING v_return_code v_screen.
          ENDIF.
    Display SAP Script Output
        WHEN c_pripreview.
          v_return_code = c_999.
          v_screen      = c_x.
          IF ( v_field EQ c_mark     OR
               v_field EQ c_selected OR
               v_field EQ c_vbeln    OR
               v_field EQ c_posnr    OR
               v_field EQ c_kschl )  AND
               NOT v_value IS INITIAL.
            PERFORM f_entry IN PROGRAM zasdf0012_sales_order
                    USING v_return_code v_screen.
          ENDIF.
        WHEN c_back.
          BACK.
        WHEN c_exit.
          CALL METHOD cl_gui_cfw=>flush.
          LEAVE TO SCREEN 0.
        WHEN c_cancel.
          CALL METHOD cl_gui_cfw=>flush.
          LEAVE TO SCREEN 0.
        WHEN c_others.
      ENDCASE.
    ENDFORM.                               " F_USER_COMMAND
    <b>The Field Catalog Build up is :</b>
      i_fieldcatalog-fieldname   = 'KSCHL'.
      i_fieldcatalog-tabname     = 'I_DISPLAY_DATA'.
      i_fieldcatalog-seltext_m   = 'Output Type'.
      i_fieldcatalog-col_pos     = 1.
      i_fieldcatalog-outputlen   = 11.
      APPEND i_fieldcatalog.
      CLEAR i_fieldcatalog.
      i_fieldcatalog-fieldname   = 'VBELN'.
      i_fieldcatalog-tabname     = 'I_DISPLAY_DATA'.
      i_fieldcatalog-seltext_m   = 'Sales Document No'.
      i_fieldcatalog-col_pos     = 2.
      i_fieldcatalog-outputlen   = 17.
      APPEND i_fieldcatalog.
      CLEAR i_fieldcatalog.
      i_fieldcatalog-fieldname   = 'POSNR'.
      i_fieldcatalog-tabname     = 'I_DISPLAY_DATA'.
      i_fieldcatalog-seltext_m   = 'Sales Item No'.
      i_fieldcatalog-col_pos     = 3.
      i_fieldcatalog-outputlen   = 14.
      APPEND i_fieldcatalog.
      CLEAR i_fieldcatalog.
    <b>Events Build Up:</b>
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
        EXPORTING
          i_list_type = 0
        IMPORTING
          et_events   = i_events.
      READ TABLE i_events
           INTO wa_events
           WITH KEY name = slis_ev_top_of_page.
      IF sy-subrc = 0.
        MOVE c_top_of_page TO wa_events-form.
        MODIFY i_events FROM wa_events INDEX sy-tabix.
      ENDIF.
      READ TABLE i_events WITH KEY name = c_user_command
                          INTO wa_events.
      IF sy-subrc = 0.
        MOVE c_command    TO wa_events-form.
        MODIFY i_events FROM  wa_events INDEX sy-tabix.
      ENDIF.
    <b>Layout Buil up is as:</b>
      i_gd_layout-no_input          = space.
      i_gd_layout-colwidth_optimize = c_x.
      i_gd_layout-totals_text       = 'Totals'(201).            "#EC *
      i_gd_layout-box_fieldname     = 'SELECTED'.
      i_gd_layout-box_tabname       = 'I_DISPLAY_DATA'.
      i_gd_layout-edit              = c_x.
    Here one thing we need to take care id i am combining Check Box with & another field Output Type [KSCHL] like in Std. TCode VL71.
    Can anybody solve this issue!
    Thanks for reply.
    Thanks & Regards,
    Prasad.

  • Keeping alv list  report layout

    when i run my alv list report using the saved layout and then change the layout of the report and then go into one of the items, i want the report to keep the changed layout when i save and go back to the report. at the moment its reverting back to the standard layout when go out of the transaction

    Make the Default Layout as your Changed Layout it'll work. It Can be done in the properties i guess.
    Regards,
    Sai

  • Alv list report-problems while printing

    hai,
    i get following dump error when tryign to print a alv list report.
    'Illegal interruption of the event LOAD-OF-PROGRAM.
    What happened?
        Error in the ABAP Application Program
        The current ABAP program "SAPLSZA12" had to be terminated because it has
        come across a statement that unfortunately cannot be executed.
    Error analysis
        During the flow of the event LOAD-OF-PROGRAM (event for the
        initialization of an ABAP program), a condition occurred under which
        the event was to be left early. This is not permitted as it would
        result in an inconsistent status in the ABAP program.'
    the problem resolves for a particular output(when i restrict the list to lesser rows) by changing FORMAT from
    X_65_255 to X_90_120 in the print dialog properties option..
    however this restricts the coloumn width..
    anycase i will have to print the output for all conditions.
    the problem seems to be centred around number of rows in the list output..

    is somethign wrong with the values in this internal table gt_comtypes_tab...
    this is where the dump is pointing..at LAOD OF PROGRAM EVENT
    1     FUNCTION addr_get_conversion_table.
    2     *"----
    3     ""Lokale Schnittstelle:
    4     *"  EXPORTING
    5     *"     VALUE(COMTYPES_TAB) TYPE  ADCOMTYPES_TAB
    6     *"  EXCEPTIONS
    7     *"      INTERNAL_ERROR
    8     *"----
    9
    10       comtypes_tab = gt_comtypes_tab.
    11
    12     ENDFUNCTION.
    values of gt_comtypes_tab.
    2     TEL     ADTEL
    3     FAX     ADFAX
    4     TTX     ADTTX
    5     TLX     ADTLX
    6     INT     ADSMTP
    7     RML     ADRML
    8     X40     ADX400
    9     RFC     ADRFC
    10     PRT     ADPRT
    11     SSF     ADSSF
    12     URI     ADURI
    13     PAG     ADPAG

  • Downloading the report out put for wchich split conatiner is used

    hi friends i used split container for my report out put .here iam displaying two alvs in the two parts of the conainer.
    i put some heading on the container in one box, is it possible to download all the out put into one excel file.

    Hi sudheer ,
    There is no standart functionality for this. You need to code for your custom excel output.

  • SAVE Layout Option in ALV list Report

    Hi Experts,
    Is it possible to SAVE the layout option for Block ALV list Reports?
    Thanks in Advance,
    Sivak.

    Hi,
    It is not possible to save layout in BLock ALV display but possible to change layout. There is no parameter to save. It is not possible to store the layout as it has several structure.
    Thanks & Regards
    Rocky

  • How To Create Header in ALV List Report

    Hi All,
    I want to create a Header for <b>MY ALV List Report</b>!
    How can i achieve the same. It should come above <b>ALV</b>.
    ALV report i had already written and it is coming correctly.
    Heading should look like this:
    <i>1st Line</i>
    <b>PROGRAM NAME: XXXXXX      CLIENT: XXXXXXXXXX   PAGE:XX</b>
    <i>2nd Line</i>
    <b>RUN DATE/TIME: XXXXX - XXXX     REPORT NAME/HEADER</b>
    How can i acheive the same in <b>ALV List Report</b>!
    I am amking use of <b>REUSE_ALV_LIST_DISPLAY</b> Function module.
    Thanks in advance.
    Thanks & Regards,
    Prasad.

    Hi Prasad,
    Use the sample code specified below as the guideline. For more info. refer to the documentation of the FM 'REUSE_ALV_COMMENTARY_WRITE'.
    DATA: first(01) type c,
    events type slis_t_event,
    gt_list_top_of_page type slis_t_listheader,
    ls_event type slis_alv_event.
    initialization.
    call function 'REUSE_ALV_EVENTS_GET'
    EXPORTING
    I_LIST_TYPE = 0
    IMPORTING
    ET_EVENTS = events
    EXCEPTIONS
    LIST_TYPE_WRONG = 1
    OTHERS = 2.
    read table events with key name = 'TOP_OF_PAGE'
    into ls_event.
    if sy-subrc = 0.
    move: 'TOP_OF_PAGE' to ls_event-form.
    append ls_event to events.
    clear ls_event.
    endif.
    End of additions
    Start-of-selection
    START-OF-SELECTION.
    Top-of-page
    TOP-OF-PAGE.
    PERFORM TOP_OF_PAGE.
    FORM TOP_OF_PAGE .
    data: ls_line type slis_listheader.
    if first is initial.
    ls_line-typ = 'S'.
    ls_line-key = 'Run Date :'.
    write: sy-datum to ls_line-key+10 mm/dd/yyyy.
    ls_line-info = 'Billing Date:'.
    write: s_fkdat-low to ls_line-info+15 mm/dd/yyyy.
    ls_line-info+28 = 'To'.
    write s_fkdat-high to ls_line-info+32 mm/dd/yyyy.
    append ls_line to gt_list_top_of_page.
    call function 'REUSE_ALV_COMMENTARY_WRITE'
    exporting
    it_list_commentary = gt_list_top_of_page.
    first = 'N'.
    else.
    call function 'REUSE_ALV_COMMENTARY_WRITE'
    exporting
    it_list_commentary = gt_list_top_of_page.
    endif.
    ENDFORM. " top_of_page
    <b>Please mark helpful answer.</b>
    Regards,
    Amit Mishra

  • Getting report out put in another language (other than english).

    Hi all,
    can any one help me out in getting report out put in proper language (english).
    actually i am running my layout through wizard.it show in english at report level but when i publish with oracle application it showing the out in another fassion.
    please kindly help me out in this issue.

    In the language preference panel of the system preferences?
    LN

  • Font is small while printing alv list report

    Hi,
    while printing ALV list report font is too small, can you tell me where i can increase the font size. I tried in GUI font ,In which i can increase the font for GUI, not for ALV priniting . Can any body help me to solve this problem?
    Regards,
    siva kumar

    HI Kushboo,
    I think You are talking about header text in ALV , while printing ALV list i need to increase all the font size.. In fieldcatlog there is no option called Style...for increasing ALV font line item details. Can you tell me which style you are talking about?
    Regards,
    siva kumar

  • Create Change Layout in ALV list report

    Hi,
    i have create my own change layout button at my alv list report, my problem is i don't know what coding can be used to activate the change layout function in my own button. Who have sample programming for this function please share it....
    tq.

    Hi,
    By default if you're using the ALV List Display function module, there's no need for you to code the 'Change Layout' function, the standard function will be there, unless there's something you want and the standard 'Change Layout' function could not provide.
    Go to Abap Editor and look for program with 'BALV*'. You'll get a whole list of DEMO program on ALV.

  • Editable column in ALV list report

    Hi,
    I  developed a ALV list block report. I want to make some of column editable in my alv list report.I set WA_FIELDCAT-EDIT     = 'X' in fieldcatalog but it's not working.
    Could you please sugest.
    Regards,
    Mohit

    Hi Mohit ,
    please  check WA_FIELDCAT-EDIT = 'X'    fieldcat which you are passing to ALV grid function module is same  or different  .
    or use in this way
    perform get_fieldcat using  'QUANTITY'     'Enter.Qty'               12 'R' 'N' '000' 'N' 'N' 'N' 'N'  'N' 'N' .
    get_fieldcat  using   p_fieldname
                                p_txtname
                                p_length
                                p_justfy
                                p_keyfld
                                p_color
                                p_hotspt
                                p_total
                                p_sort
                                p_subtot
                                p_para1
                                p_zero .
      clear ms_fieldcat .
      ms_fieldcat-fieldname = p_fieldname .
      ms_fieldcat-seltext_l = p_txtname   .
      ms_fieldcat-ddictxt   = 'L'         .
      ms_fieldcat-outputlen = p_length    .
      ms_fieldcat-just      = p_justfy    .
      ms_fieldcat-lzero     = 'X'         .
      ms_fieldcat-checkbox = 'X'          .
      ms_fieldcat-edit     = 'X'          .
      if p_fieldname = 'CHK' .
        ms_fieldcat-checkbox = 'X'.
        ms_fieldcat-edit = 'X'.
      else.
        ms_fieldcat-checkbox = ' '.
        ms_fieldcat-edit = ' '.
      endif.
      if p_fieldname = 'QUANTITY' .
        ms_fieldcat-edit = 'X'.
      endif.
    regards
    Deepak.

  • How to Save Background job report out put in local / Network Drive?

    Hello Techies,
    How to Save Background job report out put in local / Network Drive.
    Actually we have option to send mail aftr complete but  i need to save in local drive or network drive .

    Hi ,
    Background job runs in application server , and your local /network drive is basically presentation server. So you cant save it in local /network drive from the job itself. But to download files, you can write the files to the application server using DATASET, in the background and then use the transaction CG3Y in the foreground to download the file.

  • Printing all error messages in the out put report

    Hi all,
    I have MATNR and WERKS data in final internal table now my requirement is ineed to print all the error messages for all the materials (where sy-subrc ne 0) in the out put report. how can i do it for multiple error records will anybody tell me with coding
    The Requirement is like bellow:
    Take material number(s) (MARC-MATNR) from selection screen then check to see if any plants have that material setup as QM active (MARC-QMATV).  If no, then issue message on report.
    Thanks,

    Hi Mythili,
    Hope the attached code helps you...
    TABLES marc.
    TYPE-POOLS: slis.
    TYPES : BEGIN OF g_ty_msg,
            type LIKE sy-msgty,
            msg(120),
           END OF g_ty_msg.
    TYPES: BEGIN OF g_ty_marc,
            matnr TYPE matnr,
            werks TYPE werks_d,
            qmatv TYPE qmatv,
          END OF g_ty_marc.
    DATA: g_t_msg TYPE TABLE OF g_ty_msg,
          g_r_msg TYPE g_ty_msg.
    DATA: g_t_marc TYPE TABLE OF g_ty_marc.
    FIELD-SYMBOLS <fs_marc> TYPE g_ty_marc.
    SELECT-OPTIONS: s_matnr FOR marc-matnr,
                    s_werks FOR marc-werks.
    START-OF-SELECTION.
      SELECT matnr werks qmatv FROM marc
        INTO TABLE g_t_marc
        WHERE matnr IN s_matnr AND
              werks IN s_werks.
      IF g_t_marc IS NOT INITIAL.
        LOOP AT g_t_marc ASSIGNING <fs_marc>.
          IF <fs_marc>-qmatv IS INITIAL.
            g_r_msg-type = 'E'.
            CONCATENATE <fs_marc>-matnr <fs_marc>-werks
              INTO g_r_msg-msg SEPARATED BY space.
            APPEND g_r_msg TO g_t_msg.
            CLEAR g_r_msg.
          ENDIF.
        ENDLOOP.
      ENDIF.
    END-OF-SELECTION.
      PERFORM display_log.
    *&      Form  display_log
          To display error log as an ALV Popup
    FORM display_log .
      CONSTANTS: l_c_type(4)    TYPE c VALUE 'TYPE',
                 l_c_msg(3)     TYPE c VALUE 'MSG'.
      DATA :  l_t_fieldcat TYPE TABLE OF slis_fieldcat_alv,
              l_r_fieldcat TYPE slis_fieldcat_alv.
      DATA :  l_f_line TYPE i.
      CLEAR l_r_fieldcat.
      l_f_line = l_f_line + 1.
      l_r_fieldcat-col_pos    = l_f_line.
      l_r_fieldcat-fieldname  = l_c_type.
      l_r_fieldcat-seltext_m  = 'Type'.
      APPEND l_r_fieldcat TO l_t_fieldcat.
      CLEAR l_r_fieldcat.
      l_f_line = l_f_line + 1.
      l_r_fieldcat-col_pos = l_f_line.
      l_r_fieldcat-fieldname = l_c_msg.
      l_r_fieldcat-seltext_m = 'Message'.
      l_r_fieldcat-outputlen = 120.
      APPEND l_r_fieldcat TO l_t_fieldcat.
    To display the message log as a Popup in the form of ALV List
      CALL FUNCTION 'REUSE_ALV_POPUP_TO_SELECT'
        EXPORTING
          i_title       = 'Message Log'
          i_tabname     = 'G_TY_MSG'
          it_fieldcat   = l_t_fieldcat[]
        TABLES
          t_outtab      = g_t_msg
        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.                    " display_log
    Best Regards,
    Suresh

Maybe you are looking for

  • Get a List of Invoice Name Field

    Due that our one time sales process not being done the standard way, our invoices allow to change the name of the sold to party. Now we need a list of sold to party name with Invoice number. Is there some report where I could get it? Thank you and Ha

  • Visual C++ 6.0 usage with TestStand

    Greetings!  I would like to have a jump start in using Visual C++ 6.0 with Test Stand.  Any example of Visual C++ DLL and sequency file which demonstrates the most basic function as below : Example 1: a.  Test stand sequence calls a Visual C++ 6.0 DL

  • Contributor mode for external users (SSXA)

    Hi All On our environment we have UCM 11g and SSXA (with deployed application) and ActiveDIrectory provider configured on WLS. I created WCMContributor group in AD and WCMContributor role in UCM The goal is that external users in WCMContributor group

  • HT201270 Has anyone done this update? Is this update worth it? what are the main features of this updates?

    Has anyone done this update? Is this update worth it? what are the main features of this updates?

  • Portal Favorites iView is not appearing !!!!!!

    Hi the Portal favorite iview is not appearing. We have transported all KM content from dev to test server. The Portal favourite iView itself is not coming.i have checked in Contemt Administration> KM content> root> entry point> favorites. the favouri