Skip to Content
author's profile photo Former Member
Former Member

report

Hi,

MY requirement is like this.

A report is required to be developed to check the current values in specific fields of Material Master, and change these values if required.

When the report is executed, it will show the existing values for the materials, and will have a check box on the left of each record.

If the values are required to be changed for some records, then the check box on the left of these records will be flagged, and on clicking the change button, it will take us to the update screen, where the new values can be entered. These new values should be updated in the material master on clicking on the execute button.

Now how can I write the code for this?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2008 at 01:42 PM

    1.. add one more field checkbox of length 1 to ur final internal tabel

    2. in ur fieldcatalg add this line

    wa_fcat-fieldname = 'CHECKBOx'.

    wa_fcat-checkbox = 'X'.

    wa_fcat-outputlen = '1'.

    wa_fcat-col_pos = '1'.

    append wa_fcat to it_fcat.

    3.in ur layout , add this line

    wa_layout-box_fieldname = 'CHECKBOX'.

    4.In th USER_COMMAND subroutine of ur REUSE_ALV_GRID_DISpLAy FM

    FORM USER_COMMAND USING P_UCOMM TYPE SY-UCOMM

    P_SELFLD TYPE SLIS_SELFIELD.

    case p_ucomm.

    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

    when 'SAVE'.

    write ur code here

    other wise

    u can check this prg : BCALV_EDIT_05

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 29, 2008 at 01:46 PM

    Hi Hema,

    Use FM 'SWO_DIALOG_OBJECT_KEY_EDIT' to display material master screen in update mode.

    The user van update the material and save it.

    Example.

    call function 'SWO_DIALOG_OBJECT_KEY_EDIT'

    exporting

    display = 'X'

    objtype = object-_objecttypename

    title = 'Objekt'(001)

    objkey = Material number

    Regards,

    Gaurav.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.