cancel
Showing results for 
Search instead for 
Did you mean: 

Urgent forms

Former Member
0 Kudos

hi,

As per my requirement i have to add a field on selectionscreen.it is catagory field.

based on this value it has to fetch the data.

ex: IF i insert L it has to fetch data related to L.

IF i insert N it has to fetch data records RELATED to N. can any one please sen me the logic for above requirement.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

i m sending sample code with matnr hope it will help.

Add one more field to u r internal table.

REPORT y_test67 no standard page heading line-size 255.

data : begin of itab occurs 0,

matnr type matnr,

tag type c,

end of itab.

parameters: l type c.

select * from mara into corresponding fields of table itab.

loop at itab.

if itab-matnr+0(1) = l.

itab-tag = 'A'.

else.

itab-tag = ' '.

endif.

modify itab.

endloop.

delete itab where tag = ' ' .

loop at itab.

write : itab-matnr.

endloop.

with regards,

Kiran.G

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Which Selection Screen You are speaking abt is that a Standard Tcode Selection Screen or Zporgram Selection Screen.

If that is Zprg then what are the tables You are selecting data and wht fields are in Selection Screen.

Provide Fields of Yur Selection Sceen and field name of which You need to add with table.

Otherwise if that is a Standard Tcode Screen then need to go for Screen Exist.

Regards,

SG