How to Edit a single field in Report

Hi Experts,
                    I am new in ABAP and need your help while creating a report.
My query is, am creating a ALV report and in that report i want only a single field is editable. For example, suppose in sales order report, there is 20 fields  but i want to edit only Quantity fields and anyone can change the quantity based on their requirements. I tried but not succeed in this terms.
Waiting your reply.... thanks
Moderator Message: Baisc question. Please search for available information before turning to the forums for help.
Edited by: kishan P on Sep 3, 2010 5:42 PM

Hi Kumar,
data: ft_cat type lvc_s_fcat. Create field catalog.
If ft_cat-fieldname = 'Quantity fields'.
ft_cat-edit = 'X'
I hope this may helpfull.
Thank You,
Thanks,
AMS

Similar Messages

  • How to update a single field in Word macro

    Hello,
    I am trying to create an AutoOpen() macro that will update the file name and path when user opens in a Word document, but I can't seem to find anything explaining how to update a single field, specifically the {FILENAME \p} field.  There
    are other fields in the document, so I do not want to update all the fields.  Most of the links I found only explain how to update ALL fields. Can somebody please tell me how I can update only the filename and path field using an autoopen macro?
    Thank you

    Stefan's response is correct.
    Here is a macro that should update only filename fields.
    Sub FileNameFieldUpdateAllStory()
    ' Written by Charles Kyle Kenyon 15 November 2001 - modified for filename 10 Sept 2014
    ' repaired by Jezebel
    ' All Story Field Updater - Filename fields
    Dim oField As Field
    Dim oStory As Range
    ' On Error Resume Next
    For Each oStory In ActiveDocument.StoryRanges
    ' This goes into headers and footers as well as the regular document
    Do
    For Each oField In oStory.Fields
    If oField.Type = wdFieldFileName Then
    oField.Update
    End If
    Next oField
    Set oStory = oStory.NextStoryRange
    Loop Until oStory Is Nothing
    Next oStory
    End Sub
    See Installing Macros for help in using this.
    Charles Kenyon Madison, WI

  • How to create a single view like report ?

    Hello,
    basic task is to present a user with 2 versions of the record from the DB. User then will decide either to "approve" the newer version or disregard the changes.
    I'm thinking of presenting these rows in a 2 single view report forms.
    how do i create this type of report ?
    Thank you
    Andrew

    Andrew:
    You can create the report query as
    select apex_item.radigroup(1,record_id) Approve , rpt_column1,rpt_column2....
    from table tab where record_id=<record id of old record>
    UNION
    select apex_item.radigroup(1,record_id) Approve , rpt_column1,rpt_column2....
    from table tab where record_id=<record id of new record>You then add a 'Submit' button and a post-submit process to update the database based on the user's selection. The user's selection will be available in the 'f01' array.
    Varad

  • How do you call dynamic fields in Report Builder

    I have some fields that they were filled in a dynamic way,
    and I want to make some calculations using the information that was
    populated in this field. When I put the name of the field in my
    calculation control, it did not see find the field control.
    Does anyone know how can I call the field control? The
    information is not part of any particular column of the
    query.

    check out the Oracle Portal Tutorial White Paper (http://technet.oracle.com/docs/products/iportal/listing.htm#tutcase), there is a section where they build a report with repeating fields

  • How to edit View based field in forms

    Hi All,
    I developed a Query-Find Form for Customer details.In main form(after querying) I have some fields where the data is coming from a View.All are non -editable fields,But I need to make one Particular field as editable.How can I make that field as editable?
    could anyone please give me any solution.
    Thank you in Advance.

    Hi;
    Please check Re: Field is not editable and see its helpful
    Regards
    Helios

  • How i can take a field of report for use it in query?

    i hve a table where bills of customer are ready i simply take it on report by select statement.all bills are ready for print.now problem is that i need history of bills for every customer at it's own bill.when i give self join for history, it also add other customer history .there is any possible way that take customer id(report field) from report and search it's records . plzzzzzzzzzzzzzz

    i hve a table where bills of customer are ready i
    simply take it on report by select statement.all
    bills are ready for print.now problem is that i need
    history of bills for every customer at it's own
    bill.when i give self join for history, it also add
    other customer history .there is any possible way
    that take customer id(report field) from report and
    search it's records . plzzzzzzzzzzzzzzmay be you can use a child query and create a data link between
    the original query and child query on customer id column.
    I mean write a child query for searching records on customer id and then link
    this customer id with your already existing query. I think this will solve your problem

  • How to edit o/p fields in hierarchical list?

    how to make output fields as input enabled, displayed in the hierarchical list?
    i.e. to make them as editable?Is it possible in list display?

    Please refer this....
    *& Report ZFIR_WRITE_OFF
    REPORT zfir_write_off
    NO STANDARD PAGE HEADING
    MESSAGE-ID zles.
    TYPE-POOLS
    TYPE-POOLS:slis.
    TABLES
    TABLES: kna1, t001, zdunning_data, bsid, t052.
    INTERNAL TABLES
    To check for bukrs in selection screen
    DATA: BEGIN OF t_t001 OCCURS 0,
    bukrs TYPE t001-bukrs,
    END OF t_t001.
    To check for the customer in selection screen
    DATA: BEGIN OF t_kna1 OCCURS 0,
    kunnr TYPE kna1-kunnr,
    name1 TYPE kna1-name1,
    END OF t_kna1.
    *Data from BSID table
    DATA: BEGIN OF t_bsid OCCURS 0,
    bukrs LIKE bsid-bukrs,
    budat LIKE bsid-budat,
    kunnr LIKE bsid-kunnr,
    belnr LIKE bsid-belnr,
    zfbdt LIKE bsid-zfbdt,
    zterm LIKE bsid-zterm,
    dmbtr LIKE bsid-dmbtr,
    waers LIKE bsid-waers,
    vbeln LIKE bsid-vbeln,
    END OF t_bsid.
    *Data from ZDunning_data
    DATA: BEGIN OF t_zdunning OCCURS 0,
    belnr LIKE zdunning_data-belnr,
    kunnr LIKE zdunning_data-kunnr,
    zdef_notice_flg LIKE zdunning_data-zdef_notice_flg,
    zterm_notice_flg LIKE zdunning_data-zterm_notice_flg,
    END OF t_zdunning.
    *Data from t052 for base line days
    DATA: BEGIN OF t_t052 OCCURS 0,
    zterm LIKE t052-zterm,
    ztag1 LIKE t052-ztag1,
    END OF t_t052.
    *with duedate and date for write off calculation
    DATA: BEGIN OF t_data OCCURS 0,
    belnr LIKE bsid-belnr,
    kunnr LIKE bsid-kunnr,
    zterm LIKE bsid-zterm,
    zfbdt LIKE bsid-zfbdt,
    ztag1 LIKE t052-ztag1,
    duedate LIKE bsid-zfbdt,
    wdate LIKE bsid-zfbdt,
    vbeln LIKE bsid-vbeln,
    dmbtr LIKE bsid-dmbtr,
    waers LIKE bsid-waers,
    budat LIKE bsid-budat,
    vbelv like vbfa-vbelv,
    Name1 like kna1-name1,
    END OF t_data.
    *Output display in ALV report
    DATA: BEGIN OF t_output OCCURS 0,
    Flag type C,
    bukrs LIKE bsid-bukrs,
    kunnr LIKE bsid-kunnr,
    vbeln LIKE bsid-vbeln, "Invoice
    posnv like vbfa-posnv,
    wdate LIKE bsid-zfbdt,
    belnr LIKE bsid-belnr,
    dmbtr LIKE bsid-dmbtr,
    waers LIKE bsid-waers,
    budat LIKE bsid-budat,
    vbelv like vbfa-vbelv, "Contract
    name1 like kna1-name1,
    duedate like bsid-zfbdt,
    END OF t_output.
    To get contract number for the billing document number
    DATA: BEGIN OF t_vbfa OCCURS 0,
    vbelv LIKE vbfa-vbelv,
    vbeln LIKE vbfa-vbeln,
    POSNV like vbfa-POSNV,
    END OF t_vbfa.
    data: begin of t_cust occurs 0,
    KUNNR like kna1-kunnr,
    name1 like kna1-name1,
    end of t_cust.
    data: begin of t_head occurs 0,
    VBELv like vbfa-vbelv,
    posnv like vbfa-posnv,
    VKUEGRU type ZLIST_WO_RCANCEL,
    end of t_head.
    data: begin of it_veda occurs 0,
    VBELn LIKE Veda-VBELN,
    POSNR LIKE Veda-VPOSN,
    VKUEGRU LIKE Veda-VKUEGRU,
    end of it_veda.
    VARIABLE DECLARATION
    DATA: l_duedate LIKE bsid-zfbdt,
    l_wdate LIKE bsid-zfbdt.
    VARIABLE FOR ALV DISPLAY
    DATA: t_fieldcat TYPE slis_t_fieldcat_alv,
    wa_fieldcat TYPE slis_fieldcat_alv.
    DATA: t_fieldcat1 TYPE slis_t_fieldcat_alv WITH HEADER LINE,
    wa_fieldcat1 TYPE slis_fieldcat_alv.
    DATA: t_layout TYPE slis_layout_alv.
    DATA: g_repid LIKE sy-repid.
    SELECTION-SCREEN
    *Selection Screen Parameters for user input
    SELECTION-SCREEN BEGIN OF BLOCK b1 WITH FRAME TITLE text-001.
    PARAMETERS:
    *Company Code
    p_bukrs LIKE t001-bukrs OBLIGATORY.
    SELECT-OPTIONS:
    *Customer Number
    s_kunnr FOR kna1-kunnr OBLIGATORY DEFAULT '0' TO 'ZZZZZZZZZZ'.
    PARAMETERS:
    *Write Off Date
    p_wodate TYPE sy-datum OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK b1 .
    AT SELECTION-SCREEN
    *Selection Screen validation for Company code
    AT SELECTION-SCREEN ON p_bukrs.
    SELECT SINGLE bukrs FROM t001 "#EC *
    INTO t_t001
    WHERE bukrs = p_bukrs.
    IF sy-subrc NE 0.
    *Error message for Invalid Company Code
    MESSAGE e000 WITH text-002.
    ENDIF.
    *Selection Screen Validation for Customer
    AT SELECTION-SCREEN ON s_kunnr.
    IF NOT s_kunnr IS INITIAL.
    SELECT SINGLE kunnr name1
    FROM kna1 "#EC *
    INTO t_kna1
    WHERE kunnr IN s_kunnr.
    IF sy-subrc NE 0.
    *Error message for Invalid Customer Number
    MESSAGE e000 WITH text-003.
    ENDIF.
    ENDIF.
    AT SELECTION-SCREEN ON p_wodate.
    IF p_wodate IS INITIAL.
    p_wodate = sy-datum.
    ENDIF.
    INITIALIZATION
    INITIALIZATION.
    PERFORM clear_data.
    START-OF-SELECTION
    START-OF-SELECTION.
    *Get the Accounting Document Number and base line date from BSID
    SELECT bukrs kunnr belnr budat zfbdt zterm dmbtr waers vbeln
    FROM bsid
    INTO corresponding fields of TABLE t_bsid
    WHERE kunnr IN s_kunnr AND
    bukrs = p_bukrs.
    IF NOT t_bsid[] IS INITIAL.
    *Get the Dunning data based on the Accounting Document Number from BSID
    SELECT belnr kunnr zdef_notice_flg zterm_notice_flg
    FROM zdunning_data
    INTO TABLE t_zdunning
    FOR ALL ENTRIES IN t_bsid
    WHERE kunnr = t_bsid-kunnr AND
    belnr = t_bsid-belnr AND
    zdef_notice_flg = 'Y' AND
    zterm_notice_flg = 'Y'.
    *Get the base line days from t052 table based on BSID data
    SELECT zterm ztag1
    FROM t052
    INTO TABLE t_t052
    FOR ALL ENTRIES IN t_bsid
    WHERE zterm = t_bsid-zterm.
    *Calculate the due date(bse line date BSID-ZFBDT + base line days
    *T052-ZTAG )
    IF NOT t_zdunning[] IS INITIAL.
    Get the customer name
    Select KUNNR NAME1 from KNA1
    INTO table t_cust
    for all entries in t_zdunning
    where kunnr = t_zdunning-kunnr.
    LOOP AT t_zdunning.
    LOOP AT t_bsid.
    CLEAR t_zdunning.
    READ TABLE t_zdunning WITH KEY belnr = t_bsid-belnr
    kunnr = t_bsid-kunnr.
    CHECK sy-subrc = 0.
    CLEAR t_t052.
    READ TABLE t_t052 WITH KEY zterm = t_bsid-zterm.
    IF sy-subrc = 0 .
    t_data-belnr = t_zdunning-belnr.
    t_data-kunnr = t_zdunning-kunnr.
    Clear t_cust.
    read table t_cust with key kunnr = t_zdunning-kunnr.
    if sy-subrc = 0.
    t_data-name1 = t_cust-name1.
    endif.
    t_data-zterm = t_bsid-zterm.
    t_data-zfbdt = t_bsid-zfbdt.
    t_data-ztag1 = t_t052-ztag1.
    t_data-vbeln = t_bsid-vbeln.
    t_data-dmbtr = t_bsid-dmbtr.
    t_data-waers = t_bsid-waers.
    t_data-budat = t_bsid-budat.
    *calculate duedate
    CLEAR l_duedate.
    l_duedate = t_bsid-zfbdt + t_t052-ztag1.
    t_data-duedate = l_duedate.
    *calculate date for write off
    CLEAR l_wdate.
    l_wdate = l_duedate + 180.
    t_data-wdate = l_wdate.
    APPEND t_data.
    CLEAR l_wdate.
    CLEAR l_duedate.
    ENDIF.
    ENDLOOP.
    ELSE.
    MESSAGE s000 WITH text-005.
    ENDIF.
    *Check the wdate with write off date in the selection screen value.
    *If this calculated date is Greater than value enetred in selection
    *screen, display the corresponding data in ALV report.
    IF NOT t_data[] IS INITIAL.
    SELECT vbelv vbeln
    POSNV
    FROM vbfa
    INTO TABLE t_vbfa
    FOR ALL ENTRIES IN t_data
    WHERE vbeln = t_data-vbeln.
    and
    VBTYP_V = 'G'.
    *If reason for cancelation is there, no writeoff.
    Select VBELn VPOSN VKUEGRU from Veda
    into table it_veda
    for all entries in t_vbfa
    where vbeln = t_vbfa-vbelv.
    SELECT vbelv
    POSNV
    FROM vbfa
    INTO TABLE t_Head
    FOR ALL ENTRIES IN t_data
    WHERE vbeln = t_data-vbeln
    and
    VBTYP_V = 'G'.
    loop at t_head.
    clear it_veda.
    Read table it_veda with key vbeln = t_head-vbelv
    posnr = t_head-posnv.
    if not it_veda-VKUEGRU is initial.
    Delete t_head where vbelv = it_veda-vbeln and
    posnv = it_veda-posnr.
    endif.
    endloop.
    LOOP AT t_data.
    IF t_data-wdate LE p_wodate.
    t_output-bukrs = p_bukrs.
    t_output-kunnr = t_data-kunnr.
    CLEAR t_vbfa.
    READ TABLE t_vbfa WITH KEY vbeln = t_data-vbeln.
    read table t_head with key vbelv = t_vbfa-vbelv
    posnv = t_vbfa-posnv.
    if sy-subrc = 0.
    t_output-vbelv = t_vbfa-vbelv.
    t_output-posnv = t_vbfa-posnv.
    t_output-name1 = t_data-name1.
    t_output-wdate = t_data-wdate.
    t_output-belnr = t_data-belnr.
    t_output-dmbtr = t_data-dmbtr.
    t_output-waers = t_data-waers.
    t_output-budat = t_data-budat.
    t_output-vbeln = t_data-vbeln.
    t_output-duedate = t_data-duedate .
    APPEND t_output.
    ENDIF.
    clear t_output.
    ENDIF.
    ENDLOOP.
    ELSE.
    MESSAGE s000 WITH text-006.
    ENDIF.
    *ALV display for the output records
    IF NOT t_output[] IS INITIAL.
    PERFORM alv_display.
    ELSE.
    MESSAGE s000 WITH text-006.
    ENDIF.
    ELSE.
    MESSAGE s000 WITH text-004.
    ENDIF.
    *& Form clear_data
    text
    --> p1 text
    <-- p2 text
    FORM clear_data .
    CLEAR:t_t001,
    t_kna1,
    t_bsid,
    t_zdunning,
    t_t052,
    t_data,
    t_output,
    wa_fieldcat,
    t_layout,
    t_fieldcat,
    t_vbfa.
    REFRESH:t_t001,
    t_kna1,
    t_bsid,
    t_zdunning,
    t_t052,
    t_data,
    t_output,
    t_fieldcat,
    t_vbfa.
    clear:t_head,
    it_veda.
    Refresh:t_head,
    it_veda.
    Clear T_cust.
    Refresh t_data.
    ENDFORM. " clear_data
    *& Form alv_display
    text
    --> p1 text
    <-- p2 text
    FORM alv_display .
    *To build the field catalogue
    PERFORM build_fieldcatalog1.
    PERFORM build_fieldcatalog.
    *To build the ALV layout
    PERFORM build_layout.
    *To displayt the data in ALV report
    PERFORM display_alv_report.
    ENDFORM. " alv_display
    *& Form build_fieldcatalog
    text
    --> p1 text
    <-- p2 text
    FORM build_fieldcatalog1 .
    REFRESH t_fieldcat1.
    CLEAR wa_fieldcat.
    wa_fieldcat-col_pos = '1'.
    wa_fieldcat-fieldname = 'VBELV'.
    wa_fieldcat-tabname = 'T_HEAD'.
    wa_fieldcat-seltext_l = 'Contract Number'.
    wa_fieldcat-Checkbox = 'X'.
    wa_fieldcat-edit = 'X'.
    wa_fieldcat-no_out = 'X'.
    wa_fieldcat-outputlen = '15'.
    APPEND wa_fieldcat TO t_fieldcat.
    CLEAR wa_fieldcat.
    wa_fieldcat-col_pos = '2'.
    wa_fieldcat-fieldname = 'POSNV'.
    wa_fieldcat-tabname = 'T_HEAD'.
    wa_fieldcat-seltext_l = 'Item Number'.
    wa_fieldcat-outputlen = '15'.
    APPEND wa_fieldcat TO t_fieldcat.
    CLEAR wa_fieldcat.
    wa_fieldcat-col_pos = '3'.
    wa_fieldcat-fieldname = 'VKUEGRU'.
    wa_fieldcat-edit = 'X'.
    wa_fieldcat-input = 'X'.
    wa_fieldcat-tabname = 'T_HEAD'.
    wa_fieldcat-drdn_hndl = '1'.
    wa_fieldcat-seltext_l = 'Reason for Cancel'.
    wa_fieldcat-outputlen = '25'.
    APPEND wa_fieldcat TO t_fieldcat.
    CLEAR wa_fieldcat.
    endform.
    FORM build_fieldcatalog .
    REFRESH t_fieldcat.
    CLEAR wa_fieldcat.
    wa_fieldcat-col_pos = '4'.
    wa_fieldcat-fieldname = 'KUNNR'.
    wa_fieldcat-tabname = 'T_OUTPUT'.
    wa_fieldcat-seltext_l = 'Customer Number'.
    wa_fieldcat-outputlen = '15'.
    APPEND wa_fieldcat TO t_fieldcat.
    CLEAR wa_fieldcat.
    wa_fieldcat-col_pos = '5'.
    wa_fieldcat-fieldname = 'NAME1'.
    wa_fieldcat-tabname = 'T_OUTPUT'.
    wa_fieldcat-seltext_l = 'Customer Name'.
    wa_fieldcat-outputlen = '30'.
    APPEND wa_fieldcat TO t_fieldcat.
    CLEAR wa_fieldcat.
    wa_fieldcat-col_pos = '6'.
    wa_fieldcat-fieldname = 'VBELV'.
    wa_fieldcat-tabname = 'T_OUTPUT'.
    wa_fieldcat-seltext_l = 'Contract Number'.
    wa_fieldcat-outputlen = '20'.
    APPEND wa_fieldcat TO t_fieldcat.
    CLEAR wa_fieldcat.
    wa_fieldcat-col_pos = '7'.
    wa_fieldcat-fieldname = 'VBELN'.
    wa_fieldcat-tabname = 'T_OUTPUT'.
    wa_fieldcat-seltext_l = 'Invoice No.'.
    wa_fieldcat-outputlen = '10'.
    APPEND wa_fieldcat TO t_fieldcat.
    CLEAR wa_fieldcat.
    wa_fieldcat-col_pos = '8'.
    wa_fieldcat-fieldname = 'BELNR'.
    wa_fieldcat-tabname = 'T_OUTPUT'.
    wa_fieldcat-seltext_l = 'Acc doc Number'.
    wa_fieldcat-outputlen = '20'.
    APPEND wa_fieldcat TO t_fieldcat.
    CLEAR wa_fieldcat.
    wa_fieldcat-col_pos = '9'.
    wa_fieldcat-fieldname = 'WAERS'.
    wa_fieldcat-tabname = 'T_OUTPUT'.
    wa_fieldcat-seltext_l = 'Currency'.
    wa_fieldcat-outputlen = '15'.
    APPEND wa_fieldcat TO t_fieldcat.
    CLEAR wa_fieldcat.
    wa_fieldcat-col_pos = '10'.
    wa_fieldcat-fieldname = 'DMBTR'.
    wa_fieldcat-tabname = 'T_OUTPUT'.
    wa_fieldcat-do_sum = 'X'. "SUM UPON DISPLAY
    wa_fieldcat-datatype = 'CURR'.
    wa_fieldcat-seltext_l = 'Amount'.
    wa_fieldcat-outputlen = '15'.
    APPEND wa_fieldcat TO t_fieldcat.
    CLEAR wa_fieldcat.
    wa_fieldcat-col_pos = '11'.
    wa_fieldcat-fieldname = 'DUEDATE'.
    wa_fieldcat-tabname = 'T_OUTPUT'.
    wa_fieldcat-seltext_l = 'Due Date'.
    wa_fieldcat-outputlen = '20'.
    APPEND wa_fieldcat TO t_fieldcat.
    data: lt_dropdown type lvc_t_drop,
    ls_dropdown type lvc_s_drop.
    First listbox (handle '1').
    ls_dropdown-handle = '1'.
    ls_dropdown-value = 'KG'.
    append ls_dropdown to lt_dropdown.
    ls_dropdown-handle = '1'.
    ls_dropdown-value = 'G'.
    append ls_dropdown to lt_dropdown.
    call method g_grid->set_drop_down_table
    exporting it_drop_down = lt_dropdown.
    ENDFORM. " build_fieldcatalog
    *& Form build_layout
    text
    --> p1 text
    <-- p2 text
    FORM build_layout .
    t_layout-no_input = 'X'.
    t_layout-colwidth_optimize = 'X'.
    ENDFORM. " build_layout
    *& Form display_alv_report
    text
    --> p1 text
    <-- p2 text
    FORM display_alv_report .
    g_repid = sy-repid.
    data g_keyinfo type SLIS_KEYINFO_ALV.
    g_keyinfo-HEADER01 = 'VBELV'.
    g_keyinfo-ITEM01 = 'VBELV'.
    g_keyinfo-HEADER02 = 'POSNV'.
    g_keyinfo-ITEM02 = 'POSNV'.
    CALL FUNCTION 'REUSE_ALV_HIERSEQ_LIST_DISPLAY'
    EXPORTING
    i_interface_check = 'I'
    i_callback_program = g_repid
    i_callback_pf_status_set = 'SET_STATUS'
    i_callback_user_command = 'USER_COMMAND'
    is_layout = gs_layout
    it_fieldcat = t_fieldcat[]
    i_default = ' '
    i_save = 'A'
    i_tabname_header = 'T_HEAD'
    i_tabname_item = 'T_OUTPUT'
    i_structure_name_header = v_headers_table
    i_structure_name_item = v_items_table
    is_keyinfo = g_keyinfo
    i_bypassing_buffer = 'X'
    TABLES
    t_outtab_header = t_head[]
    t_outtab_item = i_result
    t_outtab_item = t_output[]
    EXCEPTIONS
    program_error = 1
    OTHERS = 2.
    REFRESH: t_fieldcat[].
    refresh t_fieldcat1[].
    ENDFORM. " display_alv_report
    form SET_STATUS using extab TYPE slis_t_extab.
    SET PF-STATUS 'ZEO_S1' .
    endform.
    *& Form Top_Of_Page
    Top_Of_Page event in ALV
    FORM top_of_page .
    DATA: t_header TYPE slis_t_listheader,
    wa_header TYPE slis_listheader.
    Title
    wa_header-typ = 'H'.
    wa_header-info = ' Write Off Worklist'.
    APPEND wa_header TO t_header.
    CLEAR wa_header.
    CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
    EXPORTING
    it_list_commentary = t_header.
    ENDFORM. "Top_Of_Page
    *User Command for the button
    form user_command using r_ucomm type syucomm
    ls_selfield type SLIS_SELFIELD.
    Break-point.
    case r_ucomm.
    when 'EXEC'.
    data: begin of lt_cancel occurs 0.
    include structure ZCANCEL.
    data end of lt_cancel.
    Clear lt_cancel.
    Refresh lt_cancel.
    Data: ref1 type ref to cl_gui_alv_grid.
    CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
    IMPORTING
    E_GRID = ref1.
    call method ref1->check_changed_data.
    loop at t_Head where VKUEGRU is not initial.
    if ( t_HEAD-VKUEGRU NE '1' ) or
    ( t_Head-VKUEGRU NE '2' ) or
    ( t_head-VKUEGRU NE '3' ).
    Clear t_head-vkuegru.
    message e000 with text-110.
    endif.
    lt_cancel-vbeln = t_head-vbelv.
    lt_cancel-posnr = t_head-posnv.
    lt_cancel-VKUEGRU = t_head-VKUEGRU.
    Append lt_cancel.
    Clear lt_cancel.
    Endloop.
    CALL FUNCTION 'ZSD_CNTR_CANCEL'
    TABLES
    zcancel = lt_cancel.
    message s000 .
    endcase.
    endform.
    Regards
    vasu

  • How to handle varchar(4000) field in reporting?

    Hello,
    I am having a Oracle database, the data in tables of which is being stored from a web application. One of the fields of a table is having varchar(4000) datatype.
    The data in this field is text which may contain carriage returns also.
    I have to create report of this table. How to display this data properly in a report?
    I tried few things:
    Accessed the table using SQL Developer and pasted the query output in Excel.
    As the text contains carriage returns, it is being spread into one or more rows.
    How to handle this? What is the proper way to create report for such data?
    Please help.
    -Sameer

    You the following to remove the carriage returns
    SQL> select 'a'||chr(10)||'line2
    2
    SQL> select 'line 1'||chr(10)||'line 2' from dual ;
    'LINE1'||CHR(
    line 1
    line 2
    SQL> select replace('line 1'||chr(10)||'line 2',chr(10),'') from dual ;
    REPLACE('LIN
    line 1line 2
    If this is not the soln , can you paste some sample data

  • How to remove Built-in-Fields from Report builder report

    I have create SSRS report which is sending email to recipient but at the bottom of report email I am also getting
     report accessible address. I don’t want to send that address to recipient. How should I remove from report builder?
    The report is accessible at the following address
    <<Report address>>
    Rahul

    You have to change the report subscription, and untick the checkbox that says to also send it as a link.

  • How to edit/change data type on report that was selected by mistake

    Hello there
    I created a report in APEX and one column is giving error because the data type of one column supposed to be a varchar2 but somehow the report was created with a Date data type. I want to change the data type without recreating the whote report. Can someone help? I tried to edit the report but couldn't be able to figure out.
    HELP....

    I found a solution for this, thank you.

  • How to display two database field in report

    hi,
    i have made a report and in that report i am displaying two fields with same data and these fields are database.In the FORM f_display_report i have given the same  name in both fields.But when i going to SUM it gave me only one field SUM and other fields gives null.
    give me some guidance as i have to display both fields with same data and same amount of SUM. 
    Thanks

    if i am using the database field i-e wt_qbshb then it gave me the data but when im going to sum both field it gave me sum of only one field.This the code:
    ITAB:
    BEGIN OF gi_main OCCURS 1,
       belnr      LIKE  bseg-belnr,          " Document No.
       buzei      LIKE  bseg-buzei,          " Item
       blart      LIKE  bkpf-blart,          " Document Type
       lifnr      LIKE  bseg-lifnr,          " Vendor No.
        lifntn     LIKE  lfa1-stcd2,          " NTN
        lifnic     LIKE  lfa1-stcd1,          " CNIC
        name1      LIKE  lfa1-name1,          " Vendor Name
        stras      LIKE  lfa1-stras,          " Address
        ort01      LIKE  lfa1-ort01,          " City
        qekar      LIKE  v_t059e-qekar,       " Source of income Description
        qscod      LIKE  v_t059z-qscod,       " Section Code
        budat      LIKE  bkpf-budat,          " Date of Payment(DD/MM/YYYY).
        dmbtr      LIKE  bseg-dmbtr,          " WHT Base Amount
        qsatz      LIKE  v_t059z-qsatz,         " Rate of WHT
       dmbtr      LIKE  bseg-dmbtr,          " WHT Base Amount
        wt_qbshb   LIKE  with_item-wt_qbshb,  " Amt of tax collected & deducted
       AMT_TAX    TYPE  with_item-wt_qbshb,   "Amt tax Deposited.
        p_tax type sy-datum,                  " Date of Tax Deposited
       witht      LIKE  t059z-witht,         " WHT Type
       wt_withcd  LIKE  t059z-wt_withcd,     " WHT Code
       hkont      LIKE  with_item-hkont,     " Gl Code
        text40     LIKE  t059ot-text40,       " Section Description
        eatxt      LIKE  v_t059e-eatxt,       " Source of Income Code
      END OF gi_main,
    and this is the  BEGIN OF gi_main OCCURS 1,
       belnr      LIKE  bseg-belnr,          " Document No.
       buzei      LIKE  bseg-buzei,          " Item
       blart      LIKE  bkpf-blart,          " Document Type
       lifnr      LIKE  bseg-lifnr,          " Vendor No.
        lifntn     LIKE  lfa1-stcd2,          " NTN
        lifnic     LIKE  lfa1-stcd1,          " CNIC
        name1      LIKE  lfa1-name1,          " Vendor Name
        stras      LIKE  lfa1-stras,          " Address
        ort01      LIKE  lfa1-ort01,          " City
        qekar      LIKE  v_t059e-qekar,       " Source of income Description
        qscod      LIKE  v_t059z-qscod,       " Section Code
        budat      LIKE  bkpf-budat,          " Date of Payment(DD/MM/YYYY).
        dmbtr      LIKE  bseg-dmbtr,          " WHT Base Amount
        qsatz      LIKE  v_t059z-qsatz,         " Rate of WHT
       dmbtr      LIKE  bseg-dmbtr,          " WHT Base Amount
        wt_qbshb   LIKE  with_item-wt_qbshb,  " Amt of tax collected & deducted
       AMT_TAX    TYPE  with_item-wt_qbshb,   "Amt tax Deposited.
        p_tax type sy-datum,                  " Date of Tax Deposited
       witht      LIKE  t059z-witht,         " WHT Type
       wt_withcd  LIKE  t059z-wt_withcd,     " WHT Code
       hkont      LIKE  with_item-hkont,     " Gl Code
        text40     LIKE  t059ot-text40,       " Section Description
        eatxt      LIKE  v_t059e-eatxt,       " Source of Income Code
      END OF gi_main,
    and this is the  BEGIN OF gi_main OCCURS 1,
       belnr      LIKE  bseg-belnr,          " Document No.
       buzei      LIKE  bseg-buzei,          " Item
       blart      LIKE  bkpf-blart,          " Document Type
       lifnr      LIKE  bseg-lifnr,          " Vendor No.
        lifntn     LIKE  lfa1-stcd2,          " NTN
        lifnic     LIKE  lfa1-stcd1,          " CNIC
        name1      LIKE  lfa1-name1,          " Vendor Name
        stras      LIKE  lfa1-stras,          " Address
        ort01      LIKE  lfa1-ort01,          " City
        qekar      LIKE  v_t059e-qekar,       " Source of income Description
        qscod      LIKE  v_t059z-qscod,       " Section Code
        budat      LIKE  bkpf-budat,          " Date of Payment(DD/MM/YYYY).
        dmbtr      LIKE  bseg-dmbtr,          " WHT Base Amount
        qsatz      LIKE  v_t059z-qsatz,         " Rate of WHT
       dmbtr      LIKE  bseg-dmbtr,          " WHT Base Amount
        wt_qbshb   LIKE  with_item-wt_qbshb,  " Amt of tax collected & deducted
       AMT_TAX    TYPE  with_item-wt_qbshb,   "Amt tax Deposited.
        p_tax type sy-datum,                  " Date of Tax Deposited
       witht      LIKE  t059z-witht,         " WHT Type
       wt_withcd  LIKE  t059z-wt_withcd,     " WHT Code
       hkont      LIKE  with_item-hkont,     " Gl Code
        text40     LIKE  t059ot-text40,       " Section Description
        eatxt      LIKE  v_t059e-eatxt,       " Source of Income Code
      END OF gi_main,
    and this is the PERFROM DISPLAY REPORT:
      PERFORM fill_fieldcat USING 'LIFNTN' 11   'NTN' 'GI_MAIN'.
      PERFORM fill_fieldcat USING 'LIFNIC' 16   'NIC' 'GI_MAIN'.
    PERFORM fill_fieldcat USING 'LIFNR'  10  'Vendor' 'GI_MAIN'.
      PERFORM fill_fieldcat USING 'NAME1'  35  'Name' 'GI_MAIN'.
      PERFORM fill_fieldcat USING 'STRAS'  35  'Address' 'GI_MAIN'.
      PERFORM fill_fieldcat USING 'ORT01'  35  'City' 'GI_MAIN'.
      PERFORM fill_fieldcat USING 'QEKAR' 40    'Nature of Payment etc' 'GI_MAIN'.
      PERFORM fill_fieldcat USING 'QSCOD' 10 'Payment Section Code' 'GI_MAIN'.
      PERFORM fill_fieldcat USING 'BUDAT'  10   'Date of Payment(dd/mm/yyyy)' 'GI_MAIN'.
      PERFORM fill_fieldcat USING 'DMBTR'  20   'Value/Amount on which Tax Collected or Deducted' 'GI_MAIN'.
      PERFORM fill_fieldcat USING 'QSATZ'  10     'Rate of tax (%)' 'GI_MAIN'.
      PERFORM fill_fieldcat USING 'WT_QBSHB'  16   'Tax Amount Collected/Deducted' 'GI_MAIN'.
      PERFORM fill_fieldcat USING 'WT_QBSHB'  16   'Amount of Deposited' 'GI_MAIN'.
      PERFORM fill_fieldcat USING 'P_TAX'(001)  15   'Date of Tax Deposited(DD/MM/YYYY)' 'GI_MAIN'.
    Thanks.

  • WebDynpro -  How to pass a single field value to BAPI table?

    Hello,
    I have just come from WebDynpro ABAP training and being a novice hit my first issue right away.
    I need to use BAPI - BAPI_CONTRACT_CREATEFROMDATA to create SD contract (I have used this BAPI to create a service call inside Webdynpro). I have two required fields: contract start and end dates. These fields passed in a table called CONTRACT_DATA_IN.
    When I use the fields from the structures or individual fields, all I need to do is just put them on the view, and when I hit my submit button they will be passed to the BAPI. They are a part of COMPONENTCONTROLLER context (I have also mapped them in View context), but tables are obviously different.
    Is there any way to pass data to tables as seamlessly without any code as for structures? Or do I need to write code to get the values from the input fields and then populate the table manually?
    Thanks,
    Alex

    Hi,
    Single customer contract creation use the struture-
    If you want to pass only one record then using the input fields for those 2 fields we can pass them to BAPI and then create the Customer Contract. This will work for only one record of customer contract.
    then we can directly read these input fields and pass to BAPI.
    Creating many customer contracts -
    For example, If you want to provide the group of records at a time and then you want to create the cusotmer contracts for so many records then you fill these fields and pass them to table then pass this table to the tables parameters of that BAPI.
    Here we need not create the Table UI element separate input fields would serve the purpose.
    Now we can create the batch of contracts for N customers.
    these input fields of a customer will be passed to table, then next set of input fields etc.
    For this create the Table UI element and fill all the records and then pass it to the Tables of the BAPI.
    Regards
    Lekha

  • How to Edit Webi or Crystal report in New BO 4.0 LaunchPad

    Hi,
    Can someone guide me how to edit a webi or crystal report in new BO4.0 LaunchPad
    Thanks,
    VB

    Hi all,
    I can not display report as modify mood. When I do right click on report, it displays like as below :
    I only updated java with the latest version 8 update 45.
    Can anybody help me ? Because I can't get modify mode, so I can't edit my reports.
    Thanks.

  • How to edit signature fields in Adobe EchoSign

    In this tutorial, learn how to use digital signatures, including how to edit electronic signature fields and other input fields in Adobe EchoSign.

    It will depend on the image. If it was one that was saved as a psd file and has layers (window>layers) {Look in the layers panel and see if you see a layer with a thumbnail that looks like a large T} In this instance, you can double click on that thumbnail to highlight the text then type in its replacement.
    If the image is a jpg which does not support layers, transparency or live text, then that would mean that you need to use the selection tools to select that text and fill it with the same color as the background. You can then use the text tool to type in the text you want.
    Remember to save a copy as a psd file so you can edit the text at a later date.

  • How to declare the single filed in globally...........

    Hi Guru's,
    i have a field name required date (VDATU)...
    please guide me in systax how to declare the single field as globally...
    thanks in advance
    Srinivas...

    Hi all thanks for your inputs and your valube time..and finally i resoleved the issuee you can see the global declaratio in my program logic...
    *& Report  ZAREPAS30
    REPORT  zarepas30.
    DATA : gs_vbeln                   TYPE  vbak-vbeln,
           gs_order_header_in         TYPE  bapisdhd1,
           gs_order_header_inx        TYPE  bapisdhd1x,
           gt_order_items_in          TYPE  STANDARD TABLE OF bapisditm,
           gwa_itab1                  TYPE  bapisditm,
           gt_order_items_inx         TYPE  STANDARD TABLE OF bapisditmx,
           gwa_itab2                  TYPE  bapisditmx,
           gt_order_partners          TYPE  STANDARD TABLE OF bapiparnr,
           gwa_itab3                  TYPE  bapiparnr,
           gt_return                  TYPE  STANDARD TABLE OF bapiret2,
           gwa_itab4                  TYPE  bapiret2.
    Sales document type
      PARAMETERS: p_auart TYPE auart OBLIGATORY.
    Sales organization
      PARAMETERS: p_vkorg TYPE vkorg OBLIGATORY.
    Distribution channel
      PARAMETERS: p_vtweg TYPE vtweg OBLIGATORY.
    Division.
      PARAMETERS: p_spart TYPE spart OBLIGATORY.
    Requested Delivery Date
      PARAMETERS: p_edatu  TYPE edatu OBLIGATORY.
    Sold-to
      PARAMETERS: p_sold  TYPE kunnr OBLIGATORY.
    Ship-to
      PARAMETERS: p_ship  TYPE kunnr OBLIGATORY.
    Material
      PARAMETERS: p_matnr TYPE matnr   OBLIGATORY.
    Quantity.
      PARAMETERS: p_menge TYPE kwmeng  OBLIGATORY.
    Plant
      PARAMETERS: p_plant TYPE werks_d OBLIGATORY.
    Start-of-selection.
      START-OF-SELECTION.
    Header data
    Sales document type
      gs_order_header_in-doc_type = p_auart.
      gs_order_header_inx-doc_type = 'X'.
    Sales organization
      gs_order_header_in-sales_org = p_vkorg.
      gs_order_header_inx-sales_org = 'X'.
    Distribution channel
      gs_order_header_in-distr_chan  = p_vtweg.
      gs_order_header_inx-distr_chan = 'X'.
    Division
      gs_order_header_in-division = p_spart.
      gs_order_header_inx-division = 'X'.
    Reguested Delivery Date
      gs_order_header_in-req_date_h = p_edatu.
      gs_order_header_inx-req_date_h = 'X'.
      gs_order_header_inx-updateflag = 'I'.
    Partner data
    Sold to
      gwa_itab3-partn_role = 'AG'.
      gwa_itab3-partn_numb = p_sold.
      APPEND gwa_itab3 TO  gt_order_partners .
    ship to
      gwa_itab3-partn_role = 'WE'.
      gwa_itab3-partn_numb = p_ship.
      APPEND gwa_itab3 TO  gt_order_partners .
    ITEM DATA
      gwa_itab2-updateflag = 'I'.
    Line item number.
      gwa_itab1-itm_number = '000010'.
      gwa_itab2-itm_number = 'X'.
    Material
      gwa_itab1-material = p_matnr.
      gwa_itab2-material = 'X'.
    Plant
      gwa_itab1-plant    = p_plant.
      gwa_itab2-plant   = 'X'.
    Quantity
      gwa_itab1-target_qty = p_menge.
      gwa_itab2-target_qty = 'X'.
      APPEND gwa_itab1 TO gt_order_items_in.
      APPEND gwa_itab2 TO gt_order_items_inx.
    Line item number.
      gwa_itab1-itm_number = '000020'.
      gwa_itab2-itm_number = 'X'.
    Material
      gwa_itab1-material = p_matnr.
      gwa_itab2-material = 'X'.
    Plant
      gwa_itab1-plant    = p_plant.
      gwa_itab2-plant   = 'X'.
    Quantity
      gwa_itab1-target_qty = p_menge.
      gwa_itab2-target_qty = 'X'.
      APPEND gwa_itab1 TO gt_order_items_in.
      APPEND gwa_itab2 TO gt_order_items_inx.
    CALL FUNCTION 'BAPI_SALESORDER_CREATEFROMDAT2'
      EXPORTING
        order_header_in               = gs_order_header_in
        ORDER_HEADER_INX              = gs_order_header_inx
      IMPORTING
        SALESDOCUMENT                 = gs_vbeln
      tables
        RETURN                        = gt_return
        ORDER_ITEMS_IN                = gt_order_items_in
        ORDER_ITEMS_INX               = gt_order_items_inx
        order_partners                = gt_order_partners.
    Check the return table.
      LOOP AT gt_return into gwa_itab4 WHERE type = 'E' OR type = 'A'.
        EXIT.
      ENDLOOP.
      IF sy-subrc = 0.
        WRITE: / 'Error occured while creating sales order '.
      ELSE.
    Commit the work.
      CALL FUNCTION 'BAPI_TRANSACTION_ROLLBACK'.
        CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
        WRITE: / 'Document ', gs_vbeln, ' created'.
      ENDIF.

Maybe you are looking for