‎2007 Aug 22 4:56 PM
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.
‎2007 Aug 22 4:59 PM
Hi,
Create a custom table.
Create a maintenance view for it.
Make your code fill the F4 from the custom table.
John
‎2007 Aug 22 5:01 PM
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