cancel
Showing results for 
Search instead for 
Did you mean: 

Z custom report is not working because of patch upgradation

Former Member
0 Kudos

    Dear Consultants,

One of my client was useing ZHR_PF Report to generate PF related information for all the employees, after patch up gradation in the same report duplicate columns created and new data is flowing to that columns. Now i wan to delete the duplicate columns, Hope after that the data will flow to excising columns, Please ind the attachment.

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member182426
Active Contributor
0 Kudos

the screen shot show's standarad PA infotype IT0587 records. It will contain what ever data you have maintained in PA30 level.

You need to check the logic in your Z report wat it's has written to pick the records and display in output.

Try to use the statement DELELTE ADJACENT DUPLICATES FROM itab

Former Member
0 Kudos

Dear Shankar Reddy,

Will you please explain how to (use the statement DELELTE ADJACENT DUPLICATES FROM itab)

Thanks & Regards,

Naresh.KM

former_member182426
Active Contributor
0 Kudos

is your custom Z report displays duplicate line items with same values ?

If yes, then delete the line items(records) from your final itab before displaying in out put using below statement in your codding.

DELELTE ADJACENT DUPLICATES FROM <itab_name>.

For example see below code:

data: begin of ls,

              v1 type char10,

              v2 type char10,

          end of ls.

data: itab like ls occurs 0.

MOVE 'ABC10' TO ls-v1.

MOVE 'DEF10' TO ls-v2.

append ls to itab.

MOVE 'ABC10' TO ls-v1.

MOVE 'DEF10' TO ls-v2.

append ls to itab.

MOVE 'ABC20' TO ls-v1.

MOVE 'DEF20' TO ls-v2.

append ls to itab.

DELETE ADJUCENT DUPLICATES FORM itab COMPARING ALL FIELDS.