Hi guru I want add extrea field in query

Hi Guru,
My requirment is like that . I created a Quey in accourding but guru now
I want add one zfield in my query for that i have to do some calculation.
Please tell  me where we can add extra field for  out put and where we can
add code in Query please tell me process where we can write code.
Please give me reply as soon as possible.
Thanks
Durgeh

Hi,
select the zfield from the table .
for coding go to sq02 on the application tool bar click on selections and selct the code tab and u do the required coding there.
Sail

Similar Messages

  • Add additional field on query

    Dear ,
    I have created a quick viewer.
    I need to add an additional field on a SAP query.
    This new field must be calculated as a multiplication of two fields displayed in the query.
    How can I do that ?
    Thanks

    Hello,
    In Quick Viewer, you cannot define local fields. You may convert (In SQ01->Query->Convert Quickview) SQVI Query into an SQ01 Query and then define local field.
    Thanks,
    Venu

  • Add new field in Web UI

    Hi
    I want add new field in view GS_CM/AddDoc.
    I have studied a documentation http://www.sdn.sap.com/irj/scn/elearn?rid=/library/uuid/509a21a9-24be-2b10-d39b-de4c6b3fc222
    but for a component GS_CM the button "Create New Field" is inactive.
    Can I add the my field in views GS_CM/AddDoc ?

    Hi,
    open component GS_CM in tx BSP_WD_CMPWB.
    Here open your view AddDoc.
    Before you will be able to add new fields you have to enhance this view (right mouseclick on view).
    Now navigate to the context nodes. This view has 3 context nodes. Decide where to add your and add it using the assistant by right click on "Attributes". Before you do this check in the UI configuration the available fields. Maybee there is already the field available you require.
    I hope this helps.
    Regards
    Manfred

  • How to add new fields in sap copied standard form using itcsy structure

    hi guys,
      i want add some fields in sap script copied standard form using itcsy structure.
    let me know the procedure with any example.
    thanks,
    anitha.

    Hii anitha
    plz c code below
    Syntax goes like this
    /: PERFORM <form> IN PROGRAM <prog>
    /: USING &INVAR1&
    /: USING &INVAR2&
    /: CHANGING &OUTVAR1&
    /: CHANGING &OUTVAR2&
    /: ENDPERFORM
    INVAR1 and INVAR2 are variable symbols and may be of any of the four SAPscript symbol types.
    OUTVAR1 and OUTVAR2 are local text symbols and must therefore be character strings.
    Example:
    In script form
    /: PERFORM READ_TEXTS IN PROGRAM 'Z08M1_FORM_EKFORM1'
    /: USING &EKKO-EKORG&
    /: USING &EKPO-WERKS&
    /: USING &EKKO-EKGRP&
    /: USING &EKKO-BSTYP&
    /: CHANGING &COMPNAME&
    /: CHANGING &SENDADR&
    /: CHANGING &INVCADR&
    /: CHANGING &COMPADR&
    /: CHANGING &COVERLTR&
    /: CHANGING &SHIPADR&
    /: CHANGING &REMINDER&
    /: CHANGING &REJECTION&
    /: CHANGING &POSTADR&
    /: CHANGING &LOGO&
    /: ENDPERFORM
    In program
    FORM Read_texts - To extract the standard texts from the table *
    FORM READ_TEXTS TABLES IN_PAR STRUCTURE ITCSY
    OUT_PAR STRUCTURE ITCSY.
    DATA : L_EKORG TYPE EKORG,
    L_WERKS TYPE WERKS_D,
    L_BSTYP TYPE BSTYP,
    L_EKGRP TYPE BKGRP.
    READ TABLE IN_PAR WITH KEY 'EKKO-EKORG' .
    CHECK SY-SUBRC = 0.
    L_EKORG = IN_PAR-VALUE.
    READ TABLE IN_PAR WITH KEY 'EKPO-WERKS' .
    CHECK SY-SUBRC = 0.
    L_WERKS = IN_PAR-VALUE.
    READ TABLE IN_PAR WITH KEY 'EKKO-EKGRP' .
    CHECK SY-SUBRC = 0.
    L_EKGRP = IN_PAR-VALUE.
    READ TABLE IN_PAR WITH KEY 'EKKO-BSTYP' .
    CHECK SY-SUBRC = 0.
    L_BSTYP = IN_PAR-VALUE.
    CLEAR Z08M1_ORG_TEXTS.
    SELECT SINGLE * FROM Z08M1_ORG_TEXTS WHERE EKORG = L_EKORG
    AND WERKS = L_WERKS
    AND EKGRP = L_EKGRP
    AND BSTYP = L_BSTYP.
    IF SY-SUBRC NE 0.
    SELECT SINGLE * FROM Z08M1_ORG_TEXTS WHERE EKORG = L_EKORG
    AND WERKS = L_WERKS
    AND EKGRP = L_EKGRP
    AND BSTYP = SPACE.
    ENDIF.
    READ TABLE OUT_PAR WITH KEY 'COMPNAME'.
    OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_COMP.
    MODIFY OUT_PAR INDEX SY-TABIX.
    READ TABLE OUT_PAR WITH KEY 'SENDADR'.
    OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_ADRS.
    MODIFY OUT_PAR INDEX SY-TABIX.
    READ TABLE OUT_PAR WITH KEY 'INVCADR'.
    OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_INVC.
    MODIFY OUT_PAR INDEX SY-TABIX.
    READ TABLE OUT_PAR WITH KEY 'COMPADR'.
    OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_CPAD.
    MODIFY OUT_PAR INDEX SY-TABIX.
    READ TABLE OUT_PAR WITH KEY 'COVERLTR'.
    OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_COVR.
    MODIFY OUT_PAR INDEX SY-TABIX.
    READ TABLE OUT_PAR WITH KEY 'SHIPADR'.
    OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_SHIP.
    MODIFY OUT_PAR INDEX SY-TABIX.
    READ TABLE OUT_PAR WITH KEY 'REMINDER'.
    OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_RMDR.
    MODIFY OUT_PAR INDEX SY-TABIX.
    READ TABLE OUT_PAR WITH KEY 'REJECTION'.
    OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_RJCT.
    MODIFY OUT_PAR INDEX SY-TABIX.
    READ TABLE OUT_PAR WITH KEY 'POSTADR'.
    OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_POST.
    MODIFY OUT_PAR INDEX SY-TABIX.
    READ TABLE OUT_PAR WITH KEY 'LOGO'.
    OUT_PAR-VALUE = Z08M1_ORG_TEXTS-TXT_LOGO.
    MODIFY OUT_PAR INDEX SY-TABIX.
    ENDFORM.
    reward points if useful
    regards
    Jaipal

  • Adding data field in query print layout designer (PLD)

    Dear Experts/Gurus,
    I would like to add data field in query PLD in repetitive area1 but it can't. The query I made excluding sequence no., so I think I must use datafield for that. I  use textfield in the repetitive area header1. is it correct what I have thought, I mean is it really datafield can't be add in the print layout designer if it is from query ? I appreciate your answer. TIA
    Rgds,

    No you can't, you will have to recreate the query with the missing field and recreate a new print layout for this.  Is still a flaw in SAP B1. 
    If you go to the service market place under education you can get the flashbook for the print layout design and the query manager and wizard, study them, they are of great help to understand the technology behind the PLD and the queries in SAP B1.
    Regards,
    WB

  • Want to add OBTYP field in existing filtergroup in BD64

    Hi Guru's,
    I want to add OBTYP field in existing filtergroup in BD64 can any one help me in this regard.

    Hi......
    Check these links :
    http://help.sap.com/saphelp_nw70/helpdata/EN/ae/d4712d2cad43ffb56f82733a560c3d/content.htm
    http://help.sap.com/saphelp_nw04s/helpdata/en/01/3b15301edf48169f91ec2b5b0cbe2c/frameset.htm
    It may help you.......
    Regards,
    Debjani.....

  • I want to add new field to this list

    hi all,
    i want to add new field to this list.
    kostenstelle from table zfmkstel
    *& Report  ZFM_MOBLIST                                                 *
    REPORT  ZFM_MOBLIST.
    TABLES: zfm_handy , pa0002.
    TYPE-POOLS : slis.
    DATA: g_repid LIKE sy-repid,
          gs_print            TYPE slis_print_alv,
          gt_list_top_of_page TYPE slis_t_listheader,
          gt_list_end_of_page TYPE slis_t_listheader,
          gt_events           TYPE slis_t_event,
          gt_sort             TYPE slis_t_sortinfo_alv,
          gs_layout           TYPE slis_layout_alv,
          gt_fieldcat         TYPE slis_t_fieldcat_alv,
          fieldcat_ln LIKE LINE OF gt_fieldcat,
          col_pos TYPE i.
    *DATA : BEGIN OF it_moblist OCCURS 0.
           INCLUDE STRUCTURE zfm_handy.
    *DATA :  nachn  TYPE  pa0002-nachn,     
           vorna TYPE  pa0002-vorna,
         END OF it_moblist.
    DATA : BEGIN OF IT_MOBLIST OCCURS 0,
           TELNUM TYPE ZFM_HANDY-TELNUM,
           KARTNR TYPE ZFM_HANDY-KARTNR,
           ZUTART TYPE ZFM_HANDY-ZUTART,
           PERNR TYPE ZFM_HANDY-PERNR,
           nachn  TYPE pa0002-nachn,
           VORNA TYPE pa0002-vorna,
           ZDATE TYPE ZFM_HANDY-ZDATE,
           PINNR TYPE ZFM_HANDY-PINNR,
           PUKNR TYPE ZFM_HANDY-PUKNR,
           TARIF1 TYPE ZFM_HANDY-TARIF1,
           TARIF2 TYPE ZFM_HANDY-TARIF2,
           TARIF3 TYPE ZFM_HANDY-TARIF3,
           GTYPE TYPE ZFM_HANDY-GTYPE,
           IMEI TYPE ZFM_HANDY-TARIF1,
            twincard type zfm_handy-twincard,
            twinbill type zfm_handy-twinbill,
            einbau type zfm_handy-einbau,
            beschr type zfm_handy-beschr,
            text1 type zfm_handy-text1,
             text2 type zfm_handy-text2,
              text3 type zfm_handy-text3,
              end of it_moblist.
    DATA : BEGIN OF IT_zfm_handy OCCURS 0,
         TELNUM TYPE ZFM_HANDY-TELNUM,
         KARTNR TYPE ZFM_HANDY-KARTNR,
         ZUTART TYPE ZFM_HANDY-ZUTART,
         PERNR TYPE ZFM_HANDY-PERNR,
         ZDATE TYPE ZFM_HANDY-ZDATE,
         PINNR TYPE ZFM_HANDY-PINNR,
         PUKNR TYPE ZFM_HANDY-PUKNR,
         TARIF1 TYPE ZFM_HANDY-TARIF1,
         TARIF2 TYPE ZFM_HANDY-TARIF2,
         TARIF3 TYPE ZFM_HANDY-TARIF3,
         GTYPE TYPE ZFM_HANDY-GTYPE,
         IMEI TYPE ZFM_HANDY-TARIF1,
          twincard type zfm_handy-twincard,
          twinbill type zfm_handy-twinbill,
          einbau type zfm_handy-einbau,
          beschr type zfm_handy-beschr,
          text1 type zfm_handy-text1,
           text2 type zfm_handy-text2,
            text3 type zfm_handy-text3,
            end of it_zfm_handy.
    *DATA : BEGIN OF it_zfm_handy OCCURS 0.
           INCLUDE STRUCTURE zfm_handy.
    *DATA END OF it_zfm_handy.
    DATA : BEGIN OF it_pa0002 OCCURS 0,
            pernr TYPE pa0002-pernr,
            nachn   TYPE pa0002-nachn,     
           vorna     TYPE pa0002-vorna,
           pernr TYPE pa0002-pernr,
           END OF it_pa0002.
    INITIALIZATION.
      g_repid = sy-repid.
      PERFORM print_build USING gs_print.      "Print PARAMETERS
    START-OF-SELECTION.
      PERFORM data_selection.
      PERFORM build_fieldcat.
      PERFORM eventtab_build CHANGING gt_events.
      PERFORM comment_build  CHANGING gt_list_top_of_page.
      PERFORM call_alv.
    *&      Form  TOP_OF_PAGE
    FORM top_of_page.
      CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          it_list_commentary = gt_list_top_of_page.
      WRITE: sy-datum, 'Page No', sy-pagno RIGHT-JUSTIFIED.
    ENDFORM.                    "TOP_OF_PAGE
    *&      Form  END_OF_PAGE
    FORM end_of_page.
      WRITE: /.
      WRITE AT (sy-linsz) sy-pagno CENTERED.
    ENDFORM.                    "END_OF_PAGE
    ### PRINT SETTINGS
    FORM print_build USING ls_print TYPE slis_print_alv.
      ls_print-print              = ' '. "PRINT IMMEDIATE
      ls_print-no_print_selinfos  = 'X'. "NO SELECTION INFO
      ls_print-no_coverpage       = ' '. "NO COVER PAGE
      ls_print-no_new_page        = ' '. "NO NEW PAGE
      ls_print-no_print_listinfos = 'X'. "NO PRINT LIST INFO
      ls_print-reserve_lines      = 2.   " FOOTERLINE
    ENDFORM.                    "PRINT_BUILD
    *&      Form  data_selection
          text
    -->  p1        text
    <--  p2        text
    FORM  data_selection .
      data : n(8) type n.
      SELECT * FROM
                 zfm_handy
           INTO CORRESPONDING FIELDS OF TABLE it_zfm_handy where pernr ne space.
      IF NOT it_zfm_handy[] IS INITIAL.
        loop at it_zfm_handy.
          n = it_zfm_handy-pernr.
          it_zfm_handy-pernr = n.
          modify it_zfm_handy.
        endloop.
        SELECT  pernr  nachn        
               vorna     
         FROM  pa0002
         INTO TABLE it_pa0002
         FOR ALL ENTRIES IN it_zfm_handy
         WHERE pernr = it_zfm_handy-pernr and endda = '99991231'.
       SELECT  pernr  nachn        
              vorna     
        FROM  pa0002
        INTO TABLE it_pa0002
        FOR ALL ENTRIES IN it_zfm_handy
        WHERE pernr = it_zfm_handy-pernr and begda le sy-datum and endda ge sy-datum.
      ENDIF.                              " not it_zfm_handy
      LOOP AT it_zfm_handy.
        MOVE-CORRESPONDING  it_zfm_handy TO it_moblist.
        clear it_pa0002.
        READ TABLE it_pa0002  WITH KEY pernr = it_zfm_handy-pernr.
        if sy-subrc = 0.
          move it_pa0002-nachn to it_moblist-nachn.
          move it_pa0002-vorna to it_moblist-vorna.
          move it_pa0002-pernr to it_moblist-pernr.
        ENDIF.
        APPEND  it_moblist.
        CLEAR   it_moblist.
    *endif.
      ENDLOOP.
    ENDFORM.                    " data_selection
    *&      Form  BUILD
          text
    -->  p1        text
    <--  p2        text
    FORM build_fieldcat .
    Explain Field Description to ALV
      DATA: fieldcat_in TYPE slis_fieldcat_alv.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname = 'TELNUM'.
      fieldcat_ln-tabname   = 'IT_MOBLIST'.
      fieldcat_ln-no_out    = ' '.
      fieldcat_ln-seltext_l = 'TELNUM'.
      APPEND fieldcat_ln TO gt_fieldcat.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname = 'KARTNR'.
      fieldcat_ln-tabname   = 'IT_MOBLIST'.
      fieldcat_ln-no_out    = ' '.
      fieldcat_ln-seltext_l = 'KARTNR'.
      APPEND fieldcat_ln TO gt_fieldcat.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname = 'ZUTART'.
      fieldcat_ln-tabname   = 'IT_MOBLIST'.
      fieldcat_ln-no_out    = ' '.
      fieldcat_ln-seltext_l = 'ZUTART'.
      APPEND fieldcat_ln TO gt_fieldcat.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname     = 'PERNR'.
      fieldcat_ln-tabname       = 'IT_MOBLIST'.
      fieldcat_ln-no_out        = ' '.
      fieldcat_ln-seltext_l = 'PERNR'.
      APPEND fieldcat_ln TO gt_fieldcat.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname     = 'NACHN'.
      fieldcat_ln-tabname       = 'IT_MOBLIST'.
      fieldcat_ln-no_out        = ' '.
      fieldcat_ln-seltext_l =  'NACHN'.
      APPEND fieldcat_ln TO gt_fieldcat.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname     = 'VORNA'.
      fieldcat_ln-tabname       = 'IT_MOBLIST'.
      fieldcat_ln-no_out        = ' '.
      fieldcat_ln-seltext_l = 'VORNA'.
      APPEND fieldcat_ln TO gt_fieldcat.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname     = 'ZDATE'.
      fieldcat_ln-tabname       = 'IT_MOBLIST'.
      fieldcat_ln-no_out        = ' '.
      fieldcat_ln-seltext_l = 'ZDATE'.
      APPEND fieldcat_ln TO gt_fieldcat.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname     = 'PINNR'.
      fieldcat_ln-tabname       = 'IT_MOBLIST'.
      fieldcat_ln-no_out        = ' '.
      fieldcat_ln-seltext_l = 'PINNR'.
      APPEND fieldcat_ln TO gt_fieldcat.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname     = 'PUKNR'.
      fieldcat_ln-tabname       = 'IT_MOBLIST'.
      fieldcat_ln-no_out        = ' '.
      fieldcat_ln-seltext_l = 'PUKNR'.
      APPEND fieldcat_ln TO gt_fieldcat.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname     = 'TARIF1'.
      fieldcat_ln-tabname       = 'IT_MOBLIST'.
      fieldcat_ln-no_out        = ' '.
      fieldcat_ln-seltext_l = 'TARIF1'.
      APPEND fieldcat_ln TO gt_fieldcat.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname     = 'TARIF2'.
      fieldcat_ln-tabname       = 'IT_MOBLIST'.
      fieldcat_ln-no_out        = ' '.
      fieldcat_ln-seltext_l = 'TARIF2'.
      APPEND fieldcat_ln TO gt_fieldcat.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname     = 'TARIF3'.
      fieldcat_ln-tabname       = 'IT_MOBLIST'.
      fieldcat_ln-no_out        = ' '.
      fieldcat_ln-seltext_l = 'TARIF3'.
      APPEND fieldcat_ln TO gt_fieldcat.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname     = 'GTYPE'.
      fieldcat_ln-tabname       = 'IT_MOBLIST'.
      fieldcat_ln-no_out        = ' '.
      fieldcat_ln-seltext_l = 'GTYPE'.
      APPEND fieldcat_ln TO gt_fieldcat.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname     = 'IMEI'.
      fieldcat_ln-tabname       = 'IT_MOBLIST'.
      fieldcat_ln-no_out        = ' '.
      fieldcat_ln-seltext_l = 'IMEI'.
      APPEND fieldcat_ln TO gt_fieldcat.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname     = 'TWINCARD'.
      fieldcat_ln-tabname       = 'IT_MOBLIST'.
      fieldcat_ln-no_out        = ' '.
      fieldcat_ln-seltext_l = 'TWINCARD'.
      APPEND fieldcat_ln TO gt_fieldcat.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname     = 'TWINBILL'.
      fieldcat_ln-tabname       = 'IT_MOBLIST'.
      fieldcat_ln-no_out        = ' '.
      fieldcat_ln-seltext_l = 'TWINBILL'.
      APPEND fieldcat_ln TO gt_fieldcat.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname     = 'EINBAU'.
      fieldcat_ln-tabname       = 'IT_MOBLIST'.
      fieldcat_ln-no_out        = ' '.
      fieldcat_ln-seltext_l = 'EINBAU'.
      APPEND fieldcat_ln TO gt_fieldcat.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname     = 'BESCHR'.
      fieldcat_ln-tabname       = 'IT_MOBLIST'.
      fieldcat_ln-no_out        = ' '.
      fieldcat_ln-seltext_l = 'BESCHR'.
      APPEND fieldcat_ln TO gt_fieldcat.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname     = 'TEXT1'.
      fieldcat_ln-tabname       = 'IT_MOBLIST'.
      fieldcat_ln-no_out        = ' '.
      fieldcat_ln-seltext_l = 'TEXT1'.
      APPEND fieldcat_ln TO gt_fieldcat.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname     = 'TEXT2'.
      fieldcat_ln-tabname       = 'IT_MOBLIST'.
      fieldcat_ln-no_out        = ' '.
      fieldcat_ln-seltext_l = 'TEXT2'.
      APPEND fieldcat_ln TO gt_fieldcat.
      CLEAR fieldcat_in.
      fieldcat_ln-fieldname     = 'TEXT3'.
      fieldcat_ln-tabname       = 'IT_MOBLIST'.
      fieldcat_ln-no_out        = ' '.
      fieldcat_ln-seltext_l = 'TEXT3'.
      APPEND fieldcat_ln TO gt_fieldcat.
    DATA SORTING
      DATA: gs_sort TYPE slis_sortinfo_alv.
      CLEAR gs_sort.
      gs_sort-fieldname = 'TELNUM'.
      gs_sort-spos      = 1.
      gs_sort-up        = 'X'.
    GS_SORT-SUBTOT    = 'X'.
      APPEND gs_sort TO gt_sort.
    CLEAR GS_SORT.
    GS_SORT-FIELDNAME = 'KARTNR'.
    GS_SORT-SPOS      = 2.
    GS_SORT-UP        = 'X'.
    *GS_SORT-SUBTOT    = 'X'.
      APPEND gs_sort TO gt_sort.
    ENDFORM.                    " BUILD
    *&      Form  EVENTTAB_BUILD
          text
         <--P_GT_EVENTS  text
    FORM eventtab_build  CHANGING lt_events TYPE slis_t_event.
      CONSTANTS:
    gc_formname_top_of_page TYPE slis_formname VALUE 'TOP_OF_PAGE',
    gc_formname_end_of_page TYPE slis_formname VALUE 'END_OF_PAGE'.
      DATA: ls_event TYPE slis_alv_event.
      CALL FUNCTION 'REUSE_ALV_EVENTS_GET'
        EXPORTING
          i_list_type = 0
        IMPORTING
          et_events   = lt_events.
      READ TABLE lt_events WITH KEY name =  slis_ev_top_of_page
                               INTO ls_event.
      IF sy-subrc = 0.
        MOVE gc_formname_top_of_page TO ls_event-form.
        APPEND ls_event TO lt_events.
      ENDIF.
    define END_OF_PAGE event
      READ TABLE lt_events WITH KEY name =  slis_ev_end_of_page
                               INTO ls_event.
      IF sy-subrc = 0.
        MOVE gc_formname_end_of_page TO ls_event-form.
        APPEND ls_event TO lt_events.
      ENDIF.
    ENDFORM.                    " EVENTTAB_BUILD
    *&      Form  COMMENT_BUILD
          text
         <--P_GT_LIST_TOP_OF_PAGE  text
    FORM comment_build  CHANGING gt_top_of_page TYPE slis_t_listheader.
      DATA: gs_line TYPE slis_listheader.
      DATA: today_date(10) TYPE c.
      CONCATENATE
      sy-datum+6(2) '.'
      sy-datum+4(2) '.'
      sy-datum(4) INTO today_date.
      CLEAR gs_line.
      gs_line-typ  = 'H'.
      gs_line-info = 'MOBLIST DETAILS'.
      APPEND gs_line TO gt_top_of_page.
      CLEAR gs_line.
      gs_line-typ  = 'S'.
      gs_line-key  = 'Date:'.
      gs_line-info = today_date.
      APPEND gs_line TO gt_top_of_page.
    GS_LINE-KEY  = 'User:'.
    GS_LINE-INFO = sy-uname.
      APPEND gs_line TO gt_top_of_page.
      CLEAR gs_line.
      gs_line-typ  = 'A'.
      gs_line-info = 'ACTION'.
      APPEND gs_line TO  gt_top_of_page.
    ENDFORM.                    " COMMENT_BUILD
    *&      Form  CALL_ALV
          text
    -->  p1        text
    <--  p2        text
    FORM call_alv .
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
       i_callback_program = g_repid
    I_CALLBACK_PF_STATUS_SET = ' '
    I_CALLBACK_USER_COMMAND = ' '
       is_layout =  gs_layout
       it_fieldcat = gt_fieldcat
         it_sort = gt_sort
         it_events = gt_events
         is_print = gs_print
       TABLES
         t_outtab = IT_MOBLIST
       EXCEPTIONS
         program_error = 1
       OTHERS = 2.
    ENDFORM.                    "CALL_ALV.

    Hi,
    add:
    1) to IT_MOBLIST
    text3 type zfm_handy-text3,
    kostl type csks-kostl,
    end of it_moblist.
    2)...
    CLEAR fieldcat_in.
    fieldcat_ln-fieldname = 'KOSTL'.
    fieldcat_ln-tabname = 'IT_MOBLIST'.
    fieldcat_ln-no_out = ' '.
    fieldcat_ln-seltext_l = 'KOSTL'.
    APPEND fieldcat_ln TO gt_fieldcat.

  • Regarding rental object-I want to add some fields in output list?

    Hi,
    I am creating Ze program of transaction REISROOC.I want to add some fields in the output list .
    here logical database is used & for adding some fields i need to write Select query.
    how n where should i add this query?
    can anyone help me????
    Thanks,
    vaishali

    Solved
    Edited by: vaishali patil on Mar 2, 2009 1:32 PM

  • Want to add 2 fields in report ARXAGMW.rdf

    Hi,
    I want to add to fields in the report ARXAGMW.rdf.
    The fields are:
    - ps.trx_date transactiedatum, --transactiondate
    - ps.amount_due_original factuurbedrag, --transactionamount
    I changed the function below. I pasted not the whole code.
    But when i run the report i get the error:
    MSG-01001: after build_invoice_select
    ORA-01789: query block has incorrect number of result columns
    ==> select rpad ( 'a' , 50 , '-' ) cust_name_inv , rpad ( 'a' , 30 , '-' ) cust_no_inv , rpad ( 'a' , 4000 , '-' ) sort_field1_inv , rpad ( 'a' , 4000 , '-' ) sort_field2_inv , 0 inv_tid_inv , 0 contact_site_id_inv , rpad ( 'a' , 60 , '-' ) cust_state_i
    FUNCTION BUILD_INVOICE_SELECT
    RETURN LONG IS
    l_inv_sel LONG;
    l_inv_sel1 LONG;
    l_inv_sel2 LONG;
    l_inv_sel3 LONG;
    l_inv_sel4 LONG;
    l_inv_sel5 LONG;
    new_line VARCHAR2(10) := '
    BEGIN
    -- BUILD FIRST SELECT STATEMENT
    srw.message('1000','inside build_invoice_select');
    srw.message('1001','*** BUILDING SELECT #1 All outstanding transactions ***');
    l_inv_sel1 :=
    'select substrb(party.party_name,1,50) cust_name_inv,
    cust_acct.account_number cust_no_inv,';
    l_inv_sel1 := l_inv_sel1 || new_line;
    if (:p_rep_type = 'ARXAGS') then
    l_inv_sel1 := l_inv_sel1 || 'decode(upper(:p_in_sortoption),''CUSTOMER'',NULL,
    arpt_sql_func_util.get_org_trx_type_details(ps.cust_trx_type_id,ps.org_id))';
    elsif (:p_rep_type = 'ARXAGL') then
    l_inv_sel1 := l_inv_sel1 || 'col.name';
    elsif(:p_rep_type = 'ARXAGR') then
    l_inv_sel1 := l_inv_sel1 || 'sales.name';
    elsif(:p_rep_type = 'ARXAGF') then
    l_inv_sel1 := l_inv_sel1 || :lp_accounting_flexfield;
    end if;
    l_inv_sel1 := l_inv_sel1 ||
    ' sort_field1_inv,' || new_line;
    l_inv_sel1 := l_inv_sel1 ||
    'arpt_sql_func_util.get_org_trx_type_details(ps.cust_trx_type_id,ps.org_id) sort_field2_inv,' || new_line;
    if (:p_rep_type = 'ARXAGS') then
    l_inv_sel1 := l_inv_sel1 ||
    'decode(upper(:p_in_sortoption),''CUSTOMER'',-999,ps.cust_trx_type_id)';
    elsif (:p_rep_type = 'ARXAGL') then
    l_inv_sel1 := l_inv_sel1 || 'col.collector_id';
    elsif(:p_rep_type = 'ARXAGR') then
    l_inv_sel1 := l_inv_sel1 || 'nvl(sales.salesrep_id, -3)';
    elsif(:p_rep_type = 'ARXAGF') then
    l_inv_sel1 := l_inv_sel1 || 'c.code_combination_id';
    end if;
    l_inv_sel1 := l_inv_sel1 || ' inv_tid_inv, ';
    l_inv_sel1 := l_inv_sel1 ||
    ' site.site_use_id contact_site_id_inv,
    loc.state cust_state_inv,
    loc.city cust_city_inv,
    decode(:format_detailed,NULL,-1,acct_site.cust_acct_site_id) addr_id_inv,
    nvl(cust_acct.cust_account_id,-999) cust_id_inv,
    ps.payment_schedule_id payment_sched_id_inv,
    ps.class class_inv,
    ps.due_date due_date_inv,
    amt_due_remaining_inv,
    ps.trx_number invnum,
    ceil(to_date(:as_of_date) - ps.due_date) days_past_due,
    ps.amount_adjusted amount_adjusted_inv,
    ps.amount_applied amount_applied_inv,
    ps.amount_credited amount_credited_inv,
    ps.gl_date gl_date_inv,
         ps.trx_date transactiedatum,
         ps.amount_due_original factuurbedrag,
    decode(ps.invoice_currency_code, :functional_currency, NULL,
    decode(ps.exchange_rate, NULL, ''*'', NULL)) data_converted_inv,
    nvl(ps.exchange_rate, 1) ps_exchange_rate_inv, '
    l_inv_sel1 := l_inv_sel1 ||
    ' arpt_sql_func_util.bucket_function(:bucket_line_type_0,
    dh.amount_in_dispute,ps.amount_adjusted_pending,
    :bucket_days_from_0,:bucket_days_to_0,
    ps.due_date,:bucket_category,to_date(:as_of_date)) b0_inv,
    arpt_sql_func_util.bucket_function(:bucket_line_type_1,
    dh.amount_in_dispute,ps.amount_adjusted_pending,
    :bucket_days_from_1,:bucket_days_to_1,
    ps.due_date,:bucket_category,to_date(:as_of_date)) b1_inv,
    arpt_sql_func_util.bucket_function(:bucket_line_type_2,
    dh.amount_in_dispute,ps.amount_adjusted_pending,
    :bucket_days_from_2,:bucket_days_to_2,
    ps.due_date,:bucket_category,to_date(:as_of_date)) b2_inv,
    arpt_sql_func_util.bucket_function(:bucket_line_type_3,
    dh.amount_in_dispute,ps.amount_adjusted_pending,
    :bucket_days_from_3,:bucket_days_to_3,
    ps.due_date,:bucket_category,to_date(:as_of_date)) b3_inv,
    arpt_sql_func_util.bucket_function(:bucket_line_type_4,
    dh.amount_in_dispute,ps.amount_adjusted_pending,
    :bucket_days_from_4,:bucket_days_to_4,
    ps.due_date,:bucket_category,to_date(:as_of_date)) b4_inv,
    arpt_sql_func_util.bucket_function(:bucket_line_type_5,
    dh.amount_in_dispute,ps.amount_adjusted_pending,
    :bucket_days_from_5,:bucket_days_to_5,
    ps.due_date,:bucket_category,to_date(:as_of_date)) b5_inv,
    arpt_sql_func_util.bucket_function(:bucket_line_type_6,
    dh.amount_in_dispute,ps.amount_adjusted_pending,
    :bucket_days_from_6,:bucket_days_to_6,
    ps.due_date,:bucket_category,to_Date(:as_of_date)) b6_inv,';
    l_inv_sel1 := l_inv_sel1 || :lp_acct_flex_bal_seg || ' company_inv,';
    l_inv_sel1 := l_inv_sel1 || :lp_query_show_bill || ' cons_billing_number, ';
    l_inv_sel1 := l_inv_sel1 || ' arpt_sql_func_util.get_org_trx_type_details(ps.cust_trx_type_id,ps.org_id)'
    || ' invoice_type_inv ';
    IF upper(:p_mrcsobtype) = 'R' then
    l_inv_sel1 := l_inv_sel1 ||
    ' from hz_cust_accounts cust_acct,
    hz_parties party, ';
    /*Bug 3487101 : Incorporated the logic of COMP_AMT_DUE_REM_INVFORMULA() in the main query itself */
    l_inv_sel1 := l_inv_sel1 ||
    '(select a.customer_id,
    a.customer_site_use_id ,
    a.customer_trx_id,
    a.payment_schedule_id,
    a.class ,
    sum(a.primary_salesrep_id) primary_salesrep_id,
    a.due_date ,
    sum(a.amount_due_remaining) amt_due_remaining_inv,
    a.trx_number,
    a.amount_adjusted,
    a.amount_applied ,
    a.amount_credited ,
    a.amount_adjusted_pending,
    a.gl_date ,
              a.trx_date ,
    Where do i have to add to two fields?
    Regards,
    thijs

    This code is not formatted and therefore very hard to read. Please use the <pre></pre> tags to format code.
    Error: ORA-01789: query block has incorrect number of result columns
    Cause: You tried to execute a SELECT statement (probably a UNION or a UNION ALL), and all of the queries did not contain the same number of result columns.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Want to add new field in QA32/QA11 transaction under inspection lot stock

    Dear Experts,
    I want to add new field in QA32 transaction under inspection lot stock tab or under characteristic tab.
    The reason behind is: Depends upon UD decision i want to assing customer name. So already we are having one Z Report for all the lots against this lot we have to display customer name.
    So in order to fetch customer name in the Z report we want to assing customer through F4 selection in the usage decision  screen.
    I know this is possibe for Make to order scenario, but our senario is make to stock.
    Please advice your valuable inputs.
    Regards.

    Hi Sujit,
    Can you please elaborate it,coz i'm using the same but if i place the break-point in PBO of sub screen,the break-point won't be triggered.and is there any additional step to get the data from function group? if yes, please explain me indetail.
    If possible please provide the sample code for this.
    Thanks Inadvance.
    Madan
    Edited by: Madan.ngt on Mar 3, 2011 7:16 AM
    Edited by: Madan.ngt on Mar 3, 2011 7:17 AM

  • ABAP Help: Want to add existing field in Output of report KOB1

    I want to add  an existing field in report KOB1.  In SM34  in view V_TKALV there is structure KAEP_COAC  which has a field PERNR. I want to add this field on the output of the report. Can somebody give the steps in SM34 only to display it on the report.
    Thanks,

    how did you do it?

  • How do you add additional fields in infotypes?i want to leave blank space

    how do you add additional fields in infotypes?i want to leave blank space in front of the field?

    Hi,
    To add new fields go to PM01 and select Enhance Infotype option and then follow the steps in sequence.
    I am not getting blank space in front of the field. please elaborate it.
    Regards,
    Raja.D

  • I want to add some fields in the report of FBL5N, Can anybody tell me how ?

    I want to add some fields in the report of FBL5N, Can anybody tell me how to do it?
    The fields are sales order, delivery, order quantity, net value and others.
    I can only find the shipment number in FI document.
    Thank you very much.

    Dear Jie,
    Billing document number can be displayed in customer line item display
    (FBL5N) and not in G/L line item display (FBL3N).
    The value of VBELN is saved in table BSEG. So, this means, you
    have to define the field BSEG-VBELN as a special field in table
    T021S. Then you can use it in FBL3N, because then the report looks
    directly in BSEG-VBELN.
    For further information,please read the SAP note 207436. You don't have to
    implement the coding corrections, if they are already in your system
    with the hotpackage. But it explains very detailed the system
    behaviour. The example in the note with field EBELN could be
    replicated on your field VBELN.
    About the MEINS field, please refer to 1-U_MEINS (bseg-meins field).
    The SAP note 215798 may also be helpful.
    Mauri

  • Is it possible to add text field in condition type in PO?

    Dear Guru,
    Please kindly advice. Is it possible to add text field in condition type?
    I mean I have seen condition type "FRB1" Freight value in the condition detail we can input vendor code.
    So I would like to know is it possible to add text field in condition detail and how to set it up.
    Thank you very much.

    We would like to maintain some text in condition because of we would like to get that text to PO print out and we don't want to do enhancement.
    Ex: Condition Type: ZZZZ  Insurance  
    PO Print out show
    Item No.          Desc                                                  Qty  Unit Price  Amount
    10                 Item description                                  10000   10         100000
    20                 Item description                                  10000   10         100000
    30                 Item description                                  10000   10         100000
                         Insurance <<Description about insurance>>                  9,999
    Edited by: Saiyaman on Oct 1, 2009 1:35 PM
    Edited by: Saiyaman on Oct 1, 2009 1:36 PM

  • How to Add new fields to Shopping cart?.

    Hi SRM GURU'S,
    I am using SRM 5.5 and ECC 6.0 and Extended Classic scenario.
    As per business, I want to add New fields to Shopping cart. How can I add?. Please any one give me clear details about this
    I am planning to add 2 fields 1. Commitment Item and 2. Fund center. in Cost Assignment tab. Is it possible?. This data has pass to  follow on documents. Backend documents has this provision. Is this option available in Shopping cart?. If yes please give me the details.
    Kindly respond quickly. Thanks in Advance.
    Regards,
    John.
    Edited by: johnmiller465 on Sep 22, 2009 1:13 PM
    Edited by: johnmiller465 on Sep 22, 2009 1:18 PM

    Hi Deepti/Shital,
    Thank you so much for your reply. I have awarded points. One more question. While creating creating PO from Process Bid Invitation, PO is not replicating into ECC. Do you have any idea?. Please help me to findout.  Respond quicklly
    If it will not replicate, how to create backend PO refering with SRM PO.
    Regards,
    John.
    Edited by: johnmiller465 on Sep 23, 2009 11:53 AM
    Edited by: johnmiller465 on Sep 23, 2009 11:55 AM

Maybe you are looking for