How to enable the check box using cl_salv_table?

Hi Experts,
             what code will change for to enable the check box in the following Report program?
REPORT  ZMA_ALV_OOPS2.
TABLES:MARA.
TYPES:BEGIN OF T_MARA,
      SEL   TYPE C,
      MATNR TYPE MARA-MATNR,
      WERKS TYPE MARC-WERKS,
      LGORT TYPE MARD-LGORT,
      LABST TYPE MARD-LABST,
     END OF T_MARA.
DATA:TB_MARA TYPE STANDARD TABLE OF T_MARA,
     WA_MARA TYPE T_MARA.
DATA: GR_TABLE TYPE REF     TO CL_SALV_TABLE.
  DATA: GR_FUNCTIONS TYPE REF TO CL_SALV_FUNCTIONS.
  DATA: GR_DISPLAY TYPE REF   TO CL_SALV_DISPLAY_SETTINGS.
  DATA: GR_COLUMNS TYPE REF   TO CL_SALV_COLUMNS_TABLE.
  DATA: GR_COLUMN TYPE REF    TO CL_SALV_COLUMN_TABLE.
  DATA: GR_SORTS TYPE REF     TO CL_SALV_SORTS.
  DATA: GR_AGG TYPE REF       TO CL_SALV_AGGREGATIONS.
  DATA: GR_FILTER TYPE REF    TO CL_SALV_FILTERS.
  DATA: GR_LAYOUT TYPE REF    TO CL_SALV_LAYOUT.
  DATA: GR_PRINT TYPE REF     TO CL_SALV_PRINT.
  DATA: GR_SELE TYPE REF      TO CL_SALV_SELECTIONS.
  DATA: GC_TRUE TYPE SAP_BOOL VALUE 'X'.
  DATA: GR_ITEM TYPE REF      TO  CL_SALV_ITEM.
  DATA: COLUMNNAME TYPE REF TO LVC_FNAME.
top of list for CCL
  DATA: GR_CONTENT_CCL TYPE REF TO CL_SALV_FORM_ELEMENT.
  DATA: GR_COL TYPE REF TO CL_SALV_COLUMN.
  DATA: LT_SORT TYPE SALV_T_SORT_REF,
        LS_SORT TYPE SALV_S_SORT_REF,
        L_SEQUENCE TYPE SALV_DE_SORT_SEQUENCE,
        T_SORT TYPE REF TO SALV_T_SORT_REF.
  DATA: KEY TYPE SALV_S_LAYOUT_KEY.
  DATA: COLOR TYPE LVC_S_COLO.
  DATA: GR_EVENTS TYPE REF TO CL_SALV_EVENTS_TABLE.
  DATA: GR_SELECTIONS TYPE REF TO CL_SALV_SELECTIONS.
**--Selection screen
SELECT-OPTIONS:S_MATNR FOR MARA-MATNR.
SELECT MATNR WERKS LGORT LABST
         FROM MARD
         INTO CORRESPONDING FIELDS OF TABLE TB_MARA
         WHERE MATNR IN S_MATNR.
TRY.
      CALL METHOD CL_SALV_TABLE=>FACTORY
        IMPORTING
          R_SALV_TABLE = GR_TABLE
        CHANGING
          T_TABLE      = TB_MARA.
    CATCH CX_SALV_MSG.
  ENDTRY.
  GR_TABLE->SET_SCREEN_STATUS(
              PFSTATUS = 'SALV_TABLE_STANDARD'
              REPORT = SY-REPID
              SET_FUNCTIONS = GR_TABLE->C_FUNCTIONS_ALL ).
GR_FUNCTIONS = GR_TABLE->GET_FUNCTIONS( ).
  GR_FUNCTIONS->SET_ALL( ABAP_TRUE ).
  GR_DISPLAY = GR_TABLE->GET_DISPLAY_SETTINGS( ).
  GR_SELE = GR_TABLE->GET_SELECTIONS( ).
  GR_SELE->SET_SELECTION_MODE(  ).
  GR_TABLE->SET_TOP_OF_LIST( GR_CONTENT_CCL ).
*--- To change the column headings
  GR_COLUMNS = GR_TABLE->GET_COLUMNS( ).
  GR_COLUMNS->SET_OPTIMIZE( GC_TRUE ).
  GR_SORTS = GR_TABLE->GET_SORTS(  ).
  TRY.
      GR_COLUMN ?= GR_COLUMNS->GET_COLUMN( 'SEL' )  .
      GR_COLUMN->SET_CELL_TYPE( IF_SALV_C_CELL_TYPE=>CHECKBOX ).
      GR_COLUMN->SET_LONG_TEXT( 'CHECKBOX' ).
    CATCH CX_SALV_NOT_FOUND.
  ENDTRY.
  GR_COLUMN->SET_CELL_TYPE( 6 ).
  GR_COLUMN->SET_SHORT_TEXT( 'Check Box' ).
  GR_COLUMN->SET_LONG_TEXT( 'Check Box' ).
******Check box edit
  TRY.
      GR_SORTS->ADD_SORT( COLUMNNAME = 'MATNR' SEQUENCE =
      IF_SALV_C_SORT=>SORT_UP ).
    CATCH CX_SALV_DATA_ERROR
          CX_SALV_NOT_FOUND
          CX_SALV_EXISTING.
  ENDTRY.
  GR_LAYOUT = GR_TABLE->GET_LAYOUT( ).
  KEY-REPORT = SY-REPID.
  GR_LAYOUT->SET_KEY( KEY ).
  GR_LAYOUT->SET_SAVE_RESTRICTION( CL_SALV_LAYOUT=>RESTRICT_NONE ).
  TRY.
      GR_COLUMN ?= GR_COLUMNS->GET_COLUMN( 'MATNR' ).
    CATCH CX_SALV_NOT_FOUND.
  ENDTRY.
  COLOR-COL = '8'.
  COLOR-INT = '0'.
  COLOR-INV = '1'.
  GR_COLUMN->SET_COLOR( COLOR ).
  GR_TABLE->DISPLAY( ).
Thanks,
Mahesh.

Hi,
You can use the method set_selection_mode to automatically show the checkbox for each row..and use the method get_selected_rows to get the rows selected..
Check this sample report..
TYPES: BEGIN OF type_output,
         matnr TYPE matnr,
       END OF type_output.
DATA:lt_output   TYPE STANDARD TABLE OF type_output,
     lwa_rows    TYPE int4,
     lwa_output  TYPE type_output,
     lt_rows     TYPE salv_t_row.
* Local declarations.
DATA: lr_table      TYPE REF TO cl_salv_table,
      lr_selections TYPE REF TO cl_salv_selections.
DATA: lr_columns    TYPE REF TO cl_salv_columns_table.
START-OF-SELECTION.
* Prepare data.
  lwa_output-matnr = 'TEST1'.APPEND lwa_output TO lt_output.
  lwa_output-matnr = 'TEST2'.APPEND lwa_output TO lt_output.
  lwa_output-matnr = 'TEST3'.APPEND lwa_output TO lt_output.
* Call the factory method
  TRY.
      cl_salv_table=>factory(
        EXPORTING
          list_display = 'X'
        IMPORTING
          r_salv_table = lr_table
        CHANGING
          t_table      = lt_output ).
    CATCH cx_salv_msg.                                  "#EC NO_HANDLER
  ENDTRY.
* Column selection
  lr_selections = lr_table->get_selections( ).
  lr_selections->set_selection_mode( if_salv_c_selection_mode=>row_column ).
  lr_columns = lr_table->get_columns( ).
  lr_columns->set_optimize( abap_true ).
* Display
  lr_table->display( ).
* Get the selected rows.
  lt_rows = lr_selections->get_selected_rows( ).
* Display the selected rows.
  LOOP AT lt_rows INTO lwa_rows.
    READ TABLE lt_output INTO lwa_output INDEX lwa_rows.
    WRITE: / lwa_output-matnr.
  ENDLOOP.
Thanks
Naren

Similar Messages

  • How to enable a check box using the table LVC_S_FCAT

    hi,
    I am working on reports. I have to have a check box and i am using the table LVC_S_FCAT to get the check box, i am getting the check box. how to enable it.

    Hi Preethi,
    try to set default the check-box with the
    value '0', '1', '-', ' ' and 'X' (0/1 -> only display,
    '-' field is not shown, ' ' and 'X' is normal)
    and see the differences.
    Hope it helps.
    Regards, Dieter
    Sorry, i thought you meen enable not editable.
    Message was edited by: Dieter Gröhn

  • How to name the Check Box as "Want Free Gift" using PARAMETERS statements

    Hi all,
    I am new to check boxes. I have a existing report where I have to add a check box to the selection screen.
    So i said
    PARAMETERS: p_cncldc AS CHECKBOX.
    everythibng is fine and I get the check box on the selection screen. when i execute the report i get the name of check box as p_cncldc. but i want the name of the check box as "Want Free Gift".
    How to name the check box as "Want Free Gift".
    if i am saying
    PARAMTERS: Want Free Gift AS CHECKBOX. it says a syntax error saying it canot be more that 8 chars.
    Some one please help. I am new to Check boxes
    Regards,
    Jessica Sam
    Edited by: jessica sam on Mar 31, 2009 10:37 PM

    Text on the Right hand side of check box.
    selection-screen begin of block b1.
    selection-screen begin of line.
    parameters: w_check as checkbox.
    selection-screen: comment  4(30) TEST .
      selection-screen end of line.
    selection-screen end of block b1.
    INITIALIZATION.
    test = 'Want Free Gift AS CHECKBOX'.
    Text on the Left hand side of check box.
    selection-screen begin of block b1.
    selection-screen begin of line.
    selection-screen: comment  2(30) TEST .
    parameters: w_check as checkbox.
      selection-screen end of line.
    selection-screen end of block b1.
    INITIALIZATION.
    test = 'Want Free Gift AS CHECKBOX'.
    OR:
    GOTO(Menubar)>Text Elements>Selection Texts
    Regards,
    Gurpreet

  • Enable the check box in change layout in a report

    Hi all,
    I have a requirement ie after i run a repot we get a change layout icon in that icon there r tab's in it like coloums, sort order....,display.
    In the dispaly tab i have a check box named printout with date,title and page number .so i would like to enable the check box .
    can anybody tell me how can i do it using ALV's
    Thanks,
    Sri

    check FM Reuse_alv_grid_display.
    i_SAVE = 'A/U/'.
    FU REUSE_ALV_LIST_DISPLAY        I_SAVE
    Text
    Variants can be saved
    Description
    Controls the storage mode
    Prerequisite:
    The IS_VARIANT parameter has the appropriate value.
    See also the documentation of the IMPORTING parameter IS_VARIANT.
    Value range
    ' ' = display variants cannot be saved
    Defined display variants (e.g. delivered display variants) can be selected for presentation independently of this flag.
    Changes can not be saved.
    'X' = standard save
    Display variants can be saved as standard display variants.
    User-specific saving is not possible.
    'U' = only user-specific saving
    The user can only save display variants user-specifically
    'A' = standard and user-specific saving
    The user can save a display variant user-specifically and
    as standard display variant. The user chooses in the display variant
    save popup.
    Default
    SPACE
    Function Module
    REUSE_ALV_LIST_DISPLAY
    Regards
    Prabhu

  • How to activate the Check box in Purchase Order after Goods Receipt

    Hi All,
    How to activate the check box after Goods receipt of Purchase order in Item view (Goods Receipt is completed).
    Where t make the settings in SPRO.
    Regards,
    Shailendra Hadkar

    Hi
    SPRO - SAP IMG- Material management - Inventory management and physical inventory - Goods receipt - create purchase order automatically - activate auto Po creation for movement type.
    Then activate the auto PO creation in Vendor master - Purchasing view
    Check it out.
    Regards,
    raman

  • ALV GRID-how to select all the check boxes using push button

    Hai All,
    I displayed ALV grid & every record contains one check box as first column.
    If user clicks on one push button all the check boxes needs to selected.
    Could any one tell me how to do this?
    Regards,
    Bhaskar

    Hi Bhaskar,
       Try this code :
    *" Table declarations...................................................
    TABLES :
      spfli.                              " Flight Schedule
    *" Data declarations...................................................
    Work variables                                                      *
    DATA :
      w_checkbox  TYPE c,                  " Check Box
      w_checkbox1 TYPE c,                  " Check Box
      w_lineno    LIKE sy-lilli,           " Current Line No
      w_lines     TYPE i.                  " No. Of Records in Int.Table
    Internal table to hold Flight Schedule data                         *
    DATA :
       t_spfli LIKE
      STANDARD TABLE
            OF spfli.
    Structure to hold Function Codes                                    *
    DATA :
      fs_fcode LIKE LINE OF t_fcode.
                          TOP-OF-PAGE EVENT                             *
    TOP-OF-PAGE.
      PERFORM top_of_page.
                       START-OF-SELECTION EVENT                         *
    START-OF-SELECTION.
      PERFORM fetch_spfli_data.
      SET PF-STATUS 'YMENU1'.
      DESCRIBE TABLE t_spfli LINES w_lines.
      fs_fcode = 'EXIT'.
      APPEND fs_fcode TO t_fcode.
      fs_fcode = 'SELECT'.
      APPEND fs_fcode TO t_fcode.
      fs_fcode = 'DESELECT'.
      APPEND fs_fcode TO t_fcode.
      fs_fcode = 'RETRIEVE'.
      APPEND fs_fcode TO t_fcode.
                        AT USER-COMMAND EVENT                           *
    AT USER-COMMAND.
      PERFORM user_command.
    FORM top_of_page .
      WRITE :/50 'Flight Schedule Information'(008).
      ULINE.
      FORMAT COLOR 1.
      WRITE :/10 'Carrier ID'(001),
              25 'Connection ID'(002) ,
              43 'Airport From'(003),
              59 'Airport To'(004),
              74 'Departure Time'(007),
              93 'Arrival Time'(011),
             106 space.
    ENDFORM.                               " FORM TOP_OF_PAGE
    FORM fetch_spfli_data .
      SELECT carrid                        " Carrier ID
             connid                        " Connection ID
             airpfrom                      " Airport From
             airpto                        " Airport To
             deptime                       " Departure Time
             arrtime                       " Arrival Time
        FROM spfli
        INTO CORRESPONDING FIELDS OF
       TABLE t_spfli.
      IF sy-subrc EQ 0.
        PERFORM display_spfli_data.
      ENDIF.                               " IF SY-SUBRC EQ 0
    ENDFORM.                               " FORM FETCH_SPFLI_DATA
    FORM display_spfli_data .
      SORT t_spfli BY carrid ASCENDING.
      LOOP AT t_spfli INTO spfli.
        FORMAT COLOR 2.
        WRITE :/2 w_checkbox AS CHECKBOX,
                  spfli-carrid   UNDER text-001,
                  spfli-connid   UNDER text-002,
                  spfli-airpfrom UNDER text-003,
                  spfli-airpto   UNDER text-004,
                  spfli-deptime  UNDER text-007,
                  spfli-arrtime  UNDER text-011.
      ENDLOOP.                             " LOOP AT T_SPFLI...
    ENDFORM.                               " FORM DISPLAY_SPFLI_DATA
    FORM user_command .
      CASE sy-ucomm.
        WHEN 'SELECT'.
          w_checkbox1 = 'X'.
          DO w_lines TIMES.
            w_lineno = sy-index + 3.
            READ LINE w_lineno FIELD VALUE w_checkbox.
            IF w_checkbox = '*'.
              CONTINUE.
            ELSE.
              MODIFY LINE w_lineno FIELD VALUE w_checkbox FROM w_checkbox1.
            ENDIF.                         " IF W_CHECKBOX = '*'
          ENDDO.                           " DO W_LINES TIMES.
        WHEN 'DESELECT'.
          w_checkbox1 = ' '.
          DO w_lines TIMES.
            w_lineno = sy-index + 3.
            READ LINE w_lineno.
            IF w_checkbox = '*'.
              CONTINUE.
            ELSE.
              MODIFY LINE w_lineno FIELD VALUE w_checkbox FROM w_checkbox1.
            ENDIF.                         " IF W_CHECKBOX = '*'
          ENDDO.                           " DO W_LINES TIMES.
        WHEN 'RETRIEVE'.
          w_checkbox = ' '.
          DO w_lines TIMES.
            w_lineno = sy-index + 3.
            READ LINE w_lineno FIELD VALUE w_checkbox INTO w_checkbox.
            IF w_checkbox = 'X'.
              PERFORM fetch_sflight_data.
              PERFORM display_sflight_data.
            ENDIF.                         " IF W_CHECKBOX = 'X'
          ENDDO.                           " DO W_LINES TIMES.
      ENDCASE.                             " CASE SY-UCOMM
    ENDFORM.                               " FORM USER_COMMAND
    This report gives you the SPFLI Data and places a check box in front of each record. When u click on select all button it will select all the records. And if you click on deselect all it will deselect all the records. When you are trying this maintain the pf-status 'YMENU1' and give the function codes as in the code.
    Regards,
    Swapna.

  • How to read the check box value in alv report

    hi experts,
    i m working on one alv report where i m using the check box for field selection in alv display.
    but i don't know how to read the only selected fields.
    wa_fieldcat-fieldname = 'BOX'.
      wa_fieldcat-tabname = 'IT_HEADER'.
      wa_fieldcat-seltext_m = 'Box'.
      wa_fieldcat-checkbox = 'X'.
      wa_fieldcat-input = 'X'.
      wa_fieldcat-edit = 'X'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
      wa_fieldcat-fieldname = 'AUFNR'.
      wa_fieldcat-tabname = 'IT_HEADER'.
      wa_fieldcat-seltext_m = 'Sales Doc'.
      wa_fieldcat-hotspot = 'X'.
      APPEND wa_fieldcat TO i_fieldcat.
      CLEAR wa_fieldcat.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
       EXPORTING
         i_callback_program                = v_repid
         I_CALLBACK_PF_STATUS_SET          = 'SET_PF_STATUS'
         i_callback_user_command           = 'USER_COMMAND'
         i_callback_top_of_page            = 'TOP_OF_PAGE'
         it_fieldcat                       = i_fieldcat[]
         i_save                            = 'A'
         it_events                         = v_events
        TABLES
          t_outtab                          = it_header
    EXCEPTIONS
      PROGRAM_ERROR                     = 1
      OTHERS                            = 2
    *&      Form  USER_COMMAND
          text
         -->R_UCOMM    text
         -->,          text
         -->RS_SLEFIELDtext
    FORM user_command USING r_ucomm LIKE sy-ucomm
    rs_selfield TYPE slis_selfield.
      CASE r_ucomm.
    when '&RELEAS'.
    endcase
    endform.
    i gone through some already posted que for same problem i tried options like
    loop at it_header.
    endloop.
    but i m getting box field empty.
    is there i missed something? plz sugeest.. if u have any other solution plz post...

    Have this code in your user command fm:
    * For capturing changed data
      CALL FUNCTION 'GET_GLOBALS_FROM_SLVC_FULLSCR'
        IMPORTING
          e_grid = w_grid.
      CALL METHOD w_grid->check_changed_data
        IMPORTING
          e_valid = w_valid.
      IF w_valid = 'X'.
    loop at itab where mark = 'X'.
    endloop.
    ENDIF.
    Regards,
    Ravi

  • How to handle the check box in the alv tree display

    Hello,
    in my ALV Tree Report i have a check box in the output.
    I have one check box in the selection screen as select all .
    if this is selected then all the check boxes in the output must be selected that is (X).
    am using CL_GUI_ALV_TREE  for this.
    Please give me some input how to make that check boxes 'X' in the above mentioned case.
    With Regards,
    Sumodh.P

    Sumodh,
    check this
    Re: Select all checkbox in ALV tree
    please search before posting
    Thanks
    Bala Duvvuri

  • Help requested: How to pass the (check box) selected rows data to other scr

    Hi friends, Here is a situation where I have to pick only those records data which i select by checking the check boxes and carry on to next screen where I have to display them and do some processing on such selected rows of data. Can any one suggest me how to code this. Thanks in advance.

    Hi Subbarao,
    One way is to check if the field is selected by checking if the field value = 'X'.
    If it is a table control we will have to loop and find out which all records are selected..it is notable that the check box field will mostly be of single character and contain 'X' if it is checked and space if not checked
    Based on the structure where the check box is held we may have to implement various logic to retrieve whether the field is checked or not....for instance we can move data to another internal table for which the checkbox is checked and can retrieve it from the next screen
    Pls check,revert and reward if helpful
    Regards
    Byju

  • How to get the  Checked box which are clicked

    for(int k=0;.....
    jsp code
    <input type=checkbox name=checkbox value='<%=k%>' >
    how to get the particular Checkbox which are checked???

    String[] checkedValues = request.getParameterValues("checkbox");You'll get an array filled with the values only for the checked boxes. In other words, if no boxes are checked, checkedValues will be null or checkedValues.length == 0, not sure, going from memory.
    Hope this helps!
    Patrick

  • How to enable/disable check boxes in a table.

    hi Gurus,
    i am new to webdynpro for abap.
    the problem i have is.
    i have a table with two columns. first one is a check box column and the second one is a value field. the table is populated with data(second field only) upon pressing some button.
    while populating data i want to make check box field/row ticked and disabled when second field row value is 'X' . if not leave the check box row/field enabled and unticked ( if i want i can tick the check box later). hope you guys me. this is sort of urgent. please reply with some code.
    thanks in advance.
    Sree

    Hi
    Issue what i am facing is,i want to display column of CHECKBOXes in my ALV.
    for that i declare atrribute of type CHECKBOX.
    And i write the following code.
    lr_column_settings ?= l_value.
    lt_columns = lr_column_settings->get_columns( ).
    loop over table - in each loop another column can be modified
    LOOP AT lt_columns INTO ls_column.
    IF ls_column-id = 'CHK_BOX'.
    CREATE OBJECT lr_chk_box
    EXPORTING
    checked_fieldname = ls_column-id.
    lr_chk_box->set_read_only( ABAP_FALSE ).
    lr_chk_box->set_read_only_fieldname( 'ALV_FINAL_STATUS' ).
    ls_column-r_column->set_cell_editor( lr_chk_box ).
    even i cant able to get checkbox in my ALV.
    IT is displaying as general field.
    Regards,
    Ravi

  • Check the check-box using script

    Hi
    I have a requirement where from script i need to check the  check box.
    Based on if a condition is true , when i execute the script , the check box field needs to be auto-checked .
    Appreciate the help

    Hi,
    Access the field and set it to true. If it is a standard field it should have its getter and setter, you should use that. In case of an extension field do this :
    doc.getExtensionField("FIELD_NAME").set(true);
    Thanks
    Devesh

  • How to color the check boxes?

    Hello
    I have couple of check boxes on my form, like....... my_check_box_monthly....... my_check_box_yearly.
    I have 2 scenarios, so based on scenario, i hv to select either of the check box, as below
    if scenario_1
    make/display my_check_box_monthly with BLUE
    else if scenario_2
    make/display my_check_box_yearly. with RED
    endif.
    For text fields..... I know how to get i, its as below,
    this.ui.oneOfChild.border.fill.color.value = "224,224,224";
    Pls. let me know How to write the code for COLORING the check boxes in Java Script?
    Thank you

    Kindly check this code for changing border color of check box
    If scenario1
    this.ui.checkButton.border.edge.color.value = "0,0,255";
    else if scenario2
    this.ui.checkButton.border.edge.color.value = "255,0,0";
    Thanks,
    Anitha

  • How to pass the check box values from one view to another view

    Hi Experts,
    I have a selection screen view which consists of check boxes.
    WBS System status.
    Release                      Completed                  Closed as 3 check boxes.
    Note : The above ones are check boxes.
    Based on the selection made by the user, those values needs to be passed to second view which retrieves the data and
    displays the data accordingly.
    At the same time if the user does not make any selection, then WBS System status should contain Released, Completed and Closed values and that needs to be sent to Second view.
    Kindly advise.
    Regards,
    Chitrasen

    hi ,
    make a attribute of type WDY_BOOLEAN to achieve this functionality
    u need to follow these steps :
    1 in side ur component controller , under the ATTRIBUTES tab , make 3 attributes say attr1 , attr2 and attr3 of type WDY_BOOLEAN
    2 create a context node , cn_check and 3 context attribute ca_check1 , ca_check2 and ca_check3 in ur first view for
    release , complete and close check boxes
    3 inside the DOINIT of ur 1st view , set the attributes attr1 , attr2 and attr3 to blank
    wd_comp_controller->attr1 = ' '
    wd_comp_controller->attr2 = ' '
    wd_comp_controller->attr3 = ' '
    4 inside the method , where u r validating , if the check boxes are checked or not , read the attributes ca_check1 , ca_check2 and
    ca_check3
      DATA lo_nd_cn_check TYPE REF TO if_wd_context_node.
        DATA lo_el_cn_check TYPE REF TO if_wd_context_element.
        DATA ls_cn_check TYPE wd_this->element_cn_check.
        DATA lv_ca_check1 LIKE ls_cn_check-ca_check1.
    *   navigate from <CONTEXT> to <CN_CHECK> via lead selection
        lo_nd_cn_check = wd_context->get_child_node( name = wd_this->wdctx_cn_check ).
    *   get element via lead selection
        lo_el_cn_check = lo_nd_cn_check->get_element(  ).
    *   get single attribute
        lo_el_cn_check->get_attribute(
          EXPORTING
            name =  `CA_CHECK`
          IMPORTING
            value = lv_ca_check1 ).
    IF lv_ca_check1 EQ 'X' .
    wd_comp_controller->attr1 = ' X'
    wd_comp_controller->attr2 = 'X '
    wd_comp_controller->attr3 = ' X'

  • How to with the check box in Suppliers - Contact Directory

    EBS R 12.
    I am in need of finding a solution for the following:
    Payables Manager -> Suppliers -> Inquiry -> Select a supplier -> Go to "Contact Directory" -> Select a contact
    Under User Account section there is a check box.
    When I check the check box, the following action should happen:
    1. The "Username" field must contain the value of the "Email".
    2. Under "Responsibilities" "Sourcing Supplier" must be checked.
    I don't know where to put my hands to solve this problem.
    All helps will be appreciated. Thanks.

    Hi
    SPRO - SAP IMG- Material management - Inventory management and physical inventory - Goods receipt - create purchase order automatically - activate auto Po creation for movement type.
    Then activate the auto PO creation in Vendor master - Purchasing view
    Check it out.
    Regards,
    raman

Maybe you are looking for

  • Create blocked purchase order with BAPI_PO_CREATE1

    Hi, I´m creating stock transport orders with BAPI_PO_CREATE1. At first, I need to set them to the release status 'S' for blocked. After some checks, I want be able to relase it and create the delivery. I have found some fields like rel_status inside

  • Slow synch from lightroom mobile

    Hi I am trying out a trial month of lightroom mobile. On my new iPad Air all is going well but syncing back to computer takes far too long.......about 1/2 hour for 20 jpegs.  I have a new iMac so everything should be up to date and working pretty fas

  • Artwork Loss in iTunes

    The artwork for my 1000 iTunes songs just disappeared. However, no matter how many times I update my iPod, the artwork DOES appear on my iPod photo. Any way of getting the artwork to appear again in iTunes? All of my songs have the screen that says "

  • Counter on iweb reset itself and is now not working anymore

    My counter on iweb reset itself to 0 somehow, and now it's stuck on 0 on the bunch of the pages. What happened and how can I fix this? I tried removing the counter and putting it back, but that didn't work. Thanks!

  • MacBook Pro 2011 Yosemite, very slow

    Hello everyone, My question and doubt is simple. My macbook presents with problems very slowly, after starting the system is being used a lot of memory, with few open applications. Often without open anything. My macbook has 4GB Ram, and start using