02-20-2009 1:56 PM
Dear all,
My requirement is
There is standard program called RV16ACHD. This is a report to view Change documents for conditions.
Here I need to add another input field for Material. For this reason, I have taken a Z copy of this std report and added a Select-option for the Material field in the Z report.
Now i would like to know where should i validate for materials in the Z copy of RV16ACHD report, to filter the materials before printing an output.
02-20-2009 1:59 PM
02-20-2009 1:59 PM
02-20-2009 2:22 PM
Hi.. I debugged and searched for the place.. but this program is not using internal tables to output the data.. so i cant filter out from the internal table..
the other option i searched was the possibility to add where clause in the select statement,, since the material is concatenated with sales organization in a field VAKEY, so option was also ruled out..
Is there any other option to try?
02-20-2009 2:34 PM
Hi,
internal tables i_level1, i_level2, i_level3 are being used in FM SD_CONDITION_CHANGE_DOCS_DISPL
where data is being displayed.you can make a copy of this FM also and can make neccessary changes in that. Also, even material is being clubbed with sales org or any other field you can still make filteration by using simple string operation.
rgds
sudhanshu
02-20-2009 2:43 PM
Hi sudhanshu,
The problem in using string operation is that the offset and length for a material is not same for all the records..
So it is also not possible..
02-20-2009 2:54 PM
i_level1-VAKEY is respecting spaces.. to say MATNR starts from 4 position to 22 ..
delete i_level1 where i_level1-VAKEY+4(18) NE <your matnr>.
09-12-2011 12:16 PM
Hi all,
Addition to material no: , got a requirement to restrict with respect to Sales Organisation and Profit Centre also.
Need Pointers...