ALV custom controller out put format

hi all,
i want to show out put with headline ex:
sales quatation
1 check box quatation id description
Sales Order
2 check box sales order id description
Sales Invoivces
3 check box sales invoice id description.
but i am getting out put
1 check box quatation id description
2 check box sales order id description
3 check box sales invoice id description.
how can i show the out put based on my requirement.
we are using custom cntroller is there any other way to show ouput based on Headline.please provide some example

Hi,
Try to Use these Classes  CL_GUI_ALV_TREE (ALV Tree Control)
CL_GUI_ALV_TREE_SIMPLE (Simple ALV Tree) .
And  also use this Class CL_GUI_TREE_MODEL, and when creating the object set the selection mode to cl_list_tree_model=>node_sel_mode_multiple.
Regards ,
S.Saravana

Similar Messages

  • PO Out put format queries

    What is the control data for SRM PO out put format ( Vendor, or GL account)
    how the SRM PO output format (XML to Printer) got changed for some PO's? is related to vendor? is there any field available when we can assign the vendor BP?
    Please reply at the earliest. Thanks in advance...

    The vendor data controls it, it can be maintained via front-end via a user assigned with the Administrator role.
    Kind regards,
    Tim

  • OUT PUT FORMAT MIS MATCHING

    Hi Gurus,
    One of our user is facing an issue while giving a print out, when he is giving a print the out put of the print out size is very small.
    Details : ECC5.0
    Printer : HP laserjet 2600
    Network printer
    Any suggestions how to go ahead with this issue.
    For the above details which drivers will be suitable.
    Waiting for your response.
    Thanks
    VJ

    Hi,
    For HP Laserjet, there are lot of suitable device type of similar type. Choose any HP related device type and also while firing the printout ask user to select the correct format type. Is it a smartform or standard ALV print. Ask user to choose the correct format type.
    Regards,
    Sharath

  • MRP Schedule line out put format

    Hi Friends,
    I am working on SAP4.7 Version.
    I have maintained all the relavent MRP datas in material master.
    Like MRP type - PD,
    Lot Size- MB ( Monthly Lot size).
    I have created planned independent requirement in MD61 monthly wise for that material.
    I have given Schedule agreement number in Source in List with MRP indicator - 2.
    I am running MRP for a material with MD02 with MRP parameter Delivery schedules -3 (Schedule lines) .
    The MRP running succesfully and creating delivery Lines with delivery dates.
    But the requirement by the client is..
    The delivery lines should be generated in month wise.
    How to convert the schedule lines generated in day format to Month format in MRP run out put?
    While creating schedule lines with ME38. we have option to select the day format / month format/ week wise?
    But the MRP out put always generated in date wise?
    Any one knows what changes i should make?
    Guide me ..
    Thanks & Best Regards
    Giri

    Hi there,
    idealy its not possible in standard sap.
    but you can do one thing that...
    copy original programme of MD04 and create ZMD04 transaction  or you can search a usefull function mdule. Here you can convert date in months by using some abap code of function module if available.
    i know this is a very rough idea about solution bu it will help definitely help you
    Regards
    Hemant

  • 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

  • Regarding Input and Out put format

    Hello Experts,
    While uploading my notepad file, how the system will identify individual fields,I can make it using delimeters like with commas( , ) or pipe symbols ( | ) or Space. So how it is able to understand each individual fields. For this where we do configuration in our scenario.
    Thank  you

    Hi,
    You have to use file content conversion(FCC) for this.Using this you can make your file adapter to understand your FIle.
    Converting File Content in a Sender Adapter
    http://help.sap.com/saphelp_nw04/helpdata/en/2c/181077dd7d6b4ea6a8029b20bf7e55/content.htm
    Converting File Content in the Receiver Adapter
    http://help.sap.com/saphelp_nw04/helpdata/en/d2/bab440c97f3716e10000000a155106/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/29/5bd93f130f9215e10000000a155106/frameset.htm
    There are many blogs with many cases- You can find in SDN very easily-
    /people/venkat.donela/blog/2005/03/02/introduction-to-simplefile-xi-filescenario-and-complete-walk-through-for-starterspart1
    /people/venkat.donela/blog/2005/03/03/introduction-to-simple-file-xi-filescenario-and-complete-walk-through-for-starterspart2
    /people/venkat.donela/blog/2005/06/08/how-to-send-a-flat-file-with-various-field-lengths-and-variable-substructures-to-xi-30
    /people/anish.abraham2/blog/2005/06/08/content-conversion-patternrandom-content-in-input-file
    /people/arpit.seth/blog/2005/06/02/file-receiver-with-content-conversion
    /people/shabarish.vijayakumar/blog/2005/08/17/nab-the-tab-file-adapter
    /people/jeyakumar.muthu2/blog/2005/11/29/file-content-conversion-for-unequal-number-of-columns
    /people/shabarish.vijayakumar/blog/2006/02/27/content-conversion-the-key-field-problem
    /people/sap.user72/blog/2005/01/06/how-to-process-csv-data-with-xi-file-adapter
    /people/michal.krawczyk2/blog/2004/12/15/how-to-send-a-flat-file-with-fixed-lengths-to-xi-30-using-a-central-file-adapter
    Thanks,
    Vijaya.

  • S_ALR_87012085 out Put modification

    Hai ,
         There is a standard report S_ALR_87012085  which is used to generate the vendor Aging Analysis , I need to change the out put format without using an enchacement   I am not aware exactly about imlicit and explicit enchancement if any body know about it please let  me know  the steps how we can achive this .
    Regards,
    K.Vinay Kumar

    Hi,
    I have  solved this issue my self, there is a accesibility mode in the GUI settings  then the output has been changed to alv ,
    Regards
    K. Vinay Kumar

  • When I run a BAPI ,  then What is the out put?

    When I run a BAPI ,  then What is the out put format ?
    Is there anyone in Chennai regarding this ?

    the BAPI i am creating will fetch the sales order header data (along with partner details) and item data  and put it in the JMS que (JAVA MESSAGE SERVICE)  ....
    Can we use more than one internal table  where i will put the data
    i.e
    1.  for header data
    2. for partner (because the partners will be repeated
    3. for  item data
    and the BAPI will fetch the data from SAP tables and put it in these tables....and we can fetch the data by an integrator software and finally put it in the JMS queue.....

  • Alv out put was truncated while giving print

    hi,
    I have developed one alv report.
    while giving out put for print last columns are truncating.
    How to handle this?
    Thanks in advance,

    Hi,
    There can be many reasons. What is the width of your output list? Many printers takes 255 characters width. Check the printer settings in T-code SPAD to see howmuch width you can print.
    Other option could be, print in landscape format.
    Thanks,
    Vinod.

  • Creation of pf-status functionality in ALV out put

    Hi experts,
    i created pf-status and made one button to save the ccontents displayed in ALV grid out put.
    But i could not find that button in out put.  Is it possible to create custom functionality in ALV output.
    thank you
    regards
    vijay

    Hi Viajay,
    find the below steps to create the PF-STATUS..
    PF-Status
    1. How to set pf-status
    2. How to set pf-status excluding/including single menu items
    3. How to set pf-status excluding/including several menu items
    4. Setting PF status to the (SAP) system default
    5. How to check for pf-status
    6. Use of SY-PFKEY
    1. How to set pf-status
    set pf-status 'ZZBILSTA'.
    2. How to set pf-status excluding/including single menu items
    You can exclude menus by using exclude :
    set pf-status 'ZZBILSTA' excluding 'PST'.
    Note: Can also be used with include instead of exclude
    3. How to set pf-status excluding/including several menu items
    You have to use an internal table to store the status you wan't to ex- or include:
    DATA:     BEGIN OF I_PF_STATUS_TAB OCCURS 10,
              FCODE(4),
         END OF I_PF_STATUS_TAB.
    FORM SET_PF_STATUS_POSTER.
      REFRESH I_PF_STATUS_TAB.
      MOVE 'PST' TO I_PF_STATUS_TAB.
      APPEND I_PF_STATUS_TAB.
      MOVE 'ART' TO I_PF_STATUS_TAB.
      APPEND I_PF_STATUS_TAB.
      SET PF-STATUS 'ZZBILSTA' EXCLUDING I_PF_STATUS_TAB.
    ENDFORM.
    4. Setting PF status to the (SAP) system default
    set pf-status 'BASIC'.
    5. How to check for pf-status
    AT USER-COMMAND.
      CASE SY-UCOMM.
        WHEN 'ART'.
          PERFORM STYR_ARTSKONTI.
        WHEN 'PST'.
          PERFORM STYR_POSTER.
        WHEN 'BIL'.
          PERFORM VIS_BILAG.
    ENDCASE.
    6. Use of SY-PFKEY
    You can use the system variable sy-pfkey to retrieve the name of the current pf status
    Regards,
    Prabhudas

  • Field Length in Alv Grid out put

    hi,
    How to increase the length of the filed in the output of alv grid,
    Actually i am getting one blank field in the alv grid out put, my requirement is to increase the length through out the column how to do that
    can anyone guide me plz
    SIRI

    in your fieldcat of the field
    wfieldcat-fieldname = '<your fieldname in caps>'
    wfieldcat-outputlen = 10 (or the length you want for the field)
    <you can define any other property also for that field>
    append wfieldcat to ifieldcat.
    now pass it in fm.
    regards
    shiba dutta

  • MRP Out Put  Schedule lines date format to month

    Hi Friends,
    I am working on SAP4.7 Version.
    I have maintained all the relavent MRP datas in material master.
    Like MRP type - PD,
    Lot Size- MB ( Monthly Lot size).
    I have created planned independent requirement in MD61 monthly wise for that material.
    I have given Schedule agreement number in Source in List with MRP indicator - 2.
    I am running MRP for a material with MD02 with MRP parameter Delivery schedules -3 (Schedule lines) .
    The MRP running succesfully and creating delivery Lines with delivery dates.
    But the requirement by the client is..
    The delivery lines should be generated in month wise.
    How to convert the schedule lines generated in day format to Month format in MRP run out put?
    While creating schedule lines with ME38. we have option to select the day format / month format/ week wise?
    But the MRP out put always generated in date wise?
    Any one knows what changes i should make?
    Guide me ..
    Thanks & Best Regards
    Giri

    Hai Boss
              Can you throw some light , how you set default mrp indicator month wise with the help of ABAPER.
    My client requirement also same like you. Yours is month, mine is week. Pl help me out.
    regards
    ssp

  • How to get default lay out set in my ALV out put.

    I need to have default layout in my ALV output.
    My functional consultant idea was to make sure they have an ALV variant selected. 
    When he first run the program, how will need to  get a "/DEFAULT" variant created.
    How can I do that ?
    Initialization - For ALV variant
    INITIALIZATION.
      ws_repid = sy-repid.
      g_save  = 'A'.
      CLEAR g_variant.
      g_variant-report = ws_repid.
    Get default variant.
      gx_variant  = g_variant.
      gx_variant = g_variant.
      CALL FUNCTION 'REUSE_ALV_VARIANT_DEFAULT_GET'
        EXPORTING
          i_save     = g_save
        CHANGING
          cs_variant = gx_variant
        EXCEPTIONS
          not_found  = 2.
      IF sy-subrc = 0.
        p_vari = gx_variant-variant.
      ENDIF.
    &--F4 HELP - FOR ALV VARIANT GET--
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_vari.
      CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
          EXPORTING
            is_variant = g_variant
            i_save     = g_save
          IMPORTING
            e_exit     = g_exit
            es_variant = gx_variant
          EXCEPTIONS
            not_found  = 2.
        IF sy-subrc = 2.
          MESSAGE ID sy-msgid TYPE 'S'      NUMBER sy-msgno
                  WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
        ELSE.
          IF g_exit = space.
            p_vari = gx_variant-variant.
          ENDIF.
       ENDIF.
    &--AT SELECTION-SCREEN.- For ALV Variant--
    AT SELECTION-SCREEN.
    *Getting variant Existence
      PERFORM get_exist_variant.
    *&      Form  GET_EXIST_VARIANT                                        *
          text                                                           *
    FORM get_exist_variant .
      IF NOT p_vari IS INITIAL.
        MOVE g_variant TO gx_variant.
        MOVE p_vari TO gx_variant-variant.
        CALL FUNCTION 'REUSE_ALV_VARIANT_EXISTENCE'
          EXPORTING
            i_save     = g_save
          CHANGING
            cs_variant = gx_variant.
        g_variant = gx_variant.
      ELSE.
        CLEAR g_variant.
        g_variant-report = ws_repid.
      ENDIF.
    ENDFORM.                    " GET_EXIST_VARIANT
    *&      Form  alv_display                                              *
    This subroutine is to display the out put in ALV.                    *
    FORM alv_display .
    Local data
      DATA: y_x          LIKE boole  VALUE 'X'.
      DATA: lh_index     LIKE lf_fieldcat-col_pos.
    For variant
    DATA: ws_repid LIKE sy-repid,
          g_save TYPE c VALUE 'A',
          g_exit TYPE c,
          g_variant LIKE disvariant,
          gx_variant LIKE disvariant.
      For 1st field.( RPT_LOC )
        CLEAR lf_fieldcat.
        lf_fieldcat-fieldname = 'RPT_LOC'.
        lf_fieldcat-tabname = 'GT_ZGXMIT_L'.
        lf_fieldcat-ref_tabname = 'ZGXMIT'.
        lf_fieldcat-ref_fieldname = 'RPT_LOC'.
        lh_index = lh_index + 1.
        lf_fieldcat-col_pos = lh_index.
        lf_fieldcat-key = y_x.
        lf_fieldcat-no_sum = y_x.
        APPEND lf_fieldcat TO lt_fieldcat.
    For 2nd field.( BAL_XMIT )
        CLEAR lf_fieldcat.
        lf_fieldcat-fieldname = 'BAL_XMIT'.
        lf_fieldcat-tabname = 'GT_ZGXMIT_L'.
        lf_fieldcat-ref_tabname = 'ZGXMIT'.
        lf_fieldcat-ref_fieldname = 'BAL_XMIT'.
        lh_index = lh_index + 1.
        lf_fieldcat-col_pos = lh_index.
        lf_fieldcat-key = y_x.
        lf_fieldcat-no_sum = y_x.
        APPEND lf_fieldcat TO lt_fieldcat.
    4,5,....fields appening
        CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
          EXPORTING
            i_callback_program                = ws_repid
          I_CALLBACK_PF_STATUS_SET          = ' '
           i_callback_user_command           = 'USER_COMMAND'
          I_CALLBACK_TOP_OF_PAGE            = ' '
          I_STRUCTURE_NAME                  =
          I_BACKGROUND_ID                   = ' '
          I_GRID_TITLE                      =
          I_GRID_SETTINGS                   =
          IS_LAYOUT                         = v_alv_layout
           it_fieldcat                       = lt_fieldcat
          IT_SORT                           =
          IT_FILTER                         =
          IS_SEL_HIDE                       =
          I_DEFAULT                         = 'X'
           i_save                            = 'A'
          IS_VARIANT                        =
           it_events                         = events[]
          IT_EVENT_EXIT                     =
          IS_PRINT                          =
          IS_REPREP_ID                      =
           TABLES
                t_outtab                 = gt_zgxmit_l
           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.                    " alv_display

    Hello SAm,
    U have to set like   DATA: IT_VARIANT LIKE DISVARIANT,
            G_S_SORT  LIKE LINE OF IT_SORT.
      DATA : G_R_DISP_VARIANT TYPE DISVARIANT.
      SORT G_T_OUTTAB BY PSPID POSID.
      CLEAR: G_R_DISP_VARIANT.
    For storing the variant layout
      IT_VARIANT-REPORT  = SY-REPID.
      IF NOT P_VARIAN IS INITIAL.
        G_R_DISP_VARIANT-VARIANT = P_VARIAN.
      ELSE.
        IT_VARIANT-VARIANT = '/Z48M'.
      ENDIF.
      CLEAR G_T_OUTTAB.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
           EXPORTING
                I_CALLBACK_PROGRAM = IT_VARIANT-REPORT
                I_CALLBACK_USER_COMMAND = 'USER_COMMAND'
                IT_FIELDCAT        = IT_FIELDCAT
                I_SAVE             = 'A'
                IS_VARIANT         = IT_VARIANT
               IS_LAYOUT          = IT_LAYOUT
                IT_SORT            = IT_SORT[]
           TABLES
                T_OUTTAB           = G_T_OUTTAB
           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.
    If u want F4 help in the selection screen then do like this.
    SELECTION-SCREEN BEGIN OF BLOCK VARIANT WITH FRAME TITLE TEXT-013.
    PARAMETERS:  P_VARIAN LIKE DISVARIANT-VARIANT DEFAULT '/STANDARD'.
    SELECTION-SCREEN END OF BLOCK VARIANT.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_VARIAN.
      PERFORM SHOW_EXISTING_DISPLAY_VARIANTS.
    FORM SHOW_EXISTING_DISPLAY_VARIANTS.
      DATA: G_R_DISP_VARIANT TYPE DISVARIANT.
      G_R_DISP_VARIANT-REPORT = SY-REPID.
      CALL FUNCTION 'REUSE_ALV_VARIANT_F4'
           EXPORTING
                IS_VARIANT    = G_R_DISP_VARIANT
                I_SAVE        = 'A'
           IMPORTING
                ES_VARIANT    = G_R_DISP_VARIANT
           EXCEPTIONS
                NOT_FOUND     = 1
                PROGRAM_ERROR = 2
                OTHERS        = 3.
      IF SY-SUBRC = 0.
        P_VARIAN = G_R_DISP_VARIANT-VARIANT.
      ENDIF.
    ENDFORM.                               " SHOW_EXISTING_DISPLAY_VARIANTS
    If useful reward.
    Vasanth

  • ALV Report In Background.. Generating same out put using ABAP Extracts

    Hi
        We are running ALV reports and generating out put in background using Extracts. We are having a discussion that SAP doesn’t recommend to execute ALV reports using batch and generate report output , as it heavily load for spool ... we are coming across some problem when I analyze Sm37 ... I found an error " ABAP framework unable to initialize " .
    I want an input/suggestion what you guys think about it?
    Thanks in Advanced...
    Bye

    Nope... We’re using some batch id which use to run background job, as I am also in SAP Security, I just verify it has all the security to run the report . As this report is running fine if we ran it other then batch id ... as before it was running fine .
    Thanks
    Message was edited by: Saquib Khan

  • Alv and excel sheet out put.

    hi friends,
    now i am working on sales and purchase order report. For this i have created three radio button on selection screen one for sales 2nd for purchase and 3rd for both. when i click sales radio button it is going to display only sales data in ALV out put list as well as in EXCEL sheet.
    problem:-
    Some layout fileds (out put fields) i am storing in VARIENT and when i have passed this VARIANT in a SELECTION-SCREEN so here the output is ok for me, and i am unable to display these same fields in EXCEL sheet for this Please could u tell that how we do this. please send the logic for this.
    thands and regards.
    sagi.

    Hi Amol,
    you are not getting me ...
    see your itab will have all the fields irrespective of variant used. so you can directly use itab to download.
    i guess you are using alv tool bar option to download.
    but i am telling to use your own button to download the report using your own button with GUI_DOWNLOAD Fm.
    for this you pass your ITAB and and then give the file name then this will save all the fields to excel file.
    Regards
    vijay

Maybe you are looking for

  • Set status on a new record

    Hello Experts, -- I am loading data from ODS1 to ODS2. -- ODS1 sales order number is one of the key. -- ODS2 has only one key : sales order number. -- requirement: when a new sales order number is populated in ODS2 it has to be checked if this a new

  • Credit card voucher number

    Add AR invoice > Click on money bag (payment means) > Credit card (treating paypal as a credit card) What should I enter here for voucher number? What is voucher number used for and can it be automatically generated?

  • Unable to save OS 4.0.1 software update in iTunes

    I am unable to successfully save the 4.0.1 software update via iTunes. The update starts downloading OK, and even gets to 378MB which should be 100% complete, but then it waits a few seconds and throws up an error, zero KB of 378.0 MB - stopped (err

  • No PhotoStream option in iPhoto 9.4.3

    I have iPhoto 9.4.3 on my Macbook Pro and am trying to link my devices using iCloud.  The set up instructions say to "click the Photo Stream icon in the left column" but it isn't there. Would someone please tell me where to find it?

  • Performance Problems by select VBFA

    Hi, i try to select some value of table VBFA:     SELECT VBELV FROM VBFA INTO WA_VBFA-VBELV                 WHERE VBELN   = VBRK-VBELN                   AND VBTYP_V IN ('C', 'K', 'L').       COLLECT WA_VBFA INTO IT_VBFA.     ENDSELECT. it take a long