CNS0
CNS0
Many times user required a find option to choose material to create delivery from project.
Standard program is not providing any F4 help for selecting material, So need to do some
Figure 1.1.
Step 1. Change screen 2010 in SAP standard program “SAPLCNSH” or copied program from SAP and add
screen control fields
Figure 1.3
Step 2.
Figure 1.4
In screen 2010.
tctrl_name+6(4) = sy-dynnr.
ASSIGN (tctrl_name) TO <tctrl>.
lt_fields-fieldname = 'VALFIND'.
append lt_fields.
call function 'DYNP_VALUES_READ'
exporting
dyname = sy-repid
dynumb = sy-dynnr
translate_to_upper = 'X'
tables
dynpfields = lt_fields
exceptions
invalid_abapworkarea = 01
invalid_dynprofield = 02
invalid_dynproname = 03
invalid_dynpronummer = 04
invalid_request = 05
no_fielddescription = 06
undefind_error = 07.
read table lt_fields index 1.
endif.
Step 3.
List.