Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Popup

Former Member
0 Likes
368

Hi,

I am working on a report where i am calling a Popup for a set of values in the Internal table.

I am calling the following the following FM for that : POPUP_WITH_TABLE

This is working fine.I need a option where i can edit the values in the popup.

When I change them they must get changed in the corresponding internal table.

Can someone tell how to do that?

Thanks,

Supriya Manik.

2 REPLIES 2
Read only

Former Member
0 Likes
339

Hi,

Create a custom table.

Create a maintenance view for it.

Make your code fill the F4 from the custom table.

John

Read only

former_member194669
Active Contributor
0 Likes
339

Hi,

Try to do this way


*&---------------------------------------------------------------------*
* Form f_upload_regions_popup                                          *
*&---------------------------------------------------------------------*
* This form will give popup for input of region code                   *
*----------------------------------------------------------------------*
form f_upload_regions_popup.
  data : p_grptitle(30) type c.
  data : p_grpreturn(1) type c.
  data : p_grpsval like sval occurs 0 with header line.
*
  p_grpsval-tabname    = text-266.
  p_grpsval-fieldname  = text-267.
  p_grpsval-field_obl  = c_x.
  p_grpsval-fieldtext  = text-268.
  append p_grpsval. clear : p_grpsval.
*
  p_grpsval-tabname    = text-266.
  p_grpsval-fieldname  = text-269.
  p_grpsval-field_obl  = c_x.
  append p_grpsval. clear : p_grpsval.
*
  p_grptitle = text-270.
*
  call function 'POPUP_GET_VALUES_USER_CHECKED'
    exporting
      popup_title = p_grptitle
      programname = sy-repid
      formname    = text-271
    importing
      returncode  = p_grpreturn
    tables
      fields      = p_grpsval.

  read table p_grpsval index 1.
  if sy-subrc eq 0.
    move p_grpsval-value to v_plgrp.
    read table p_grpsval index 2.
    if sy-subrc eq 0.
      move p_grpsval-value to v_affind.
    endif.
  endif.
  if not v_plgrp is initial and not v_affind is initial.
    perform f_f4_help_region using v_plgrp.
  endif.
*
endform.                                 " F_upload_regions_popup
*
*&---------------------------------------------------------------------*
* Form f_check_regions                                                 *
*&---------------------------------------------------------------------*
* This form for check the user entered values with table YATTGRP       *
*----------------------------------------------------------------------*
form f_check_regions  tables   fields structure sval
                      changing error  structure svale.
  tables : yattgrp.
  data : p_plgrp like yattgrp-plgrp.

* Read entered values from FM
  read table fields index 1.
  p_plgrp = fields-value.
  select single * from yattgrp into yattgrp
      where plgrp eq p_plgrp.
  if sy-subrc <> 0.
    clear error.
    error-msgty      = 'E'.
    error-msgid      = c_yatt.
    error-msgno      = '366'.
    error-msgv1      = p_plgrp.
  endif.
endform.                                 " F_check_regions
*

aRs