Application Development 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: 

Z copy of RV16ACHD report

Former Member
0 Kudos

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.

7 REPLIES 7

LucianoBentiveg
Active Contributor
0 Kudos

Debug your Z copy, and look for a place. Thats your work.

former_member156446
Active Contributor
0 Kudos

Debug!!!

Former Member
0 Kudos

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?

0 Kudos

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

0 Kudos

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..

0 Kudos

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>.

0 Kudos

Hi all,

Addition to material no: , got a requirement to restrict with respect to Sales Organisation and Profit Centre also.

Need Pointers...