Application Development and Automation 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: 
Read only

Internal table task

Nirojan
Participant
0 Likes
1,879

Hi team,

I have one task please help me how to solve this, (Report program)

Depending on ztable, one Internal table have four columns company code, customer id, sequence and mail.

second internal table have company code, customer id and mail (adding these values inside first internal table)

Final output is display like this,

Sequence condition.

if company code and customer id records are duplicate, sequence should be display 1, 2, 3... (depending on duplicate records, sequence will increase)

else non duplicates found, sequence should display 1.

Thanks.

4 REPLIES 4
Read only

Nirojan
Participant
0 Likes
1,809

Hi emanuel.klenner can you please help me how to solve this task.

Read only

Jelena_Perfiljeva
Active Contributor
1,809

What have you tried so far to solve this?

Sorry, it isn't some great riddle, it's a pretty common ABAP development task. So I'm confused what exactly is the challenge / not clear? There isn't any question in this question...

Read only

Nirojan
Participant
0 Likes
1,809

Hi jelena.perfiljeva thanks for reply. I'm a ABAP beginner.

what I'm trying is,

This is a report report program.

ztable contain above mention records (screenshot 1).

based on Ztable I created one internal table (it_tab) which is contain company code, customer id, mail and sequence.

Now I need to add new values by using another internal (it_tab1) which is contain 3 fields company code, customer id and mail. sequence number will increase depending on having duplicate values.

for example: it_tab1 have 3 duplicate values. now I'm adding duplicate vaules into it_tab, sequence needs to be display like 1st row sequence = 1, 2nd row sequence = 2, 3rd row sequence = 3.

My question, How to add duplicate values with this sequence?

I hope you understand my question...

Thanks.

Read only

Sandra_Rossi
Active Contributor
0 Likes
1,809

So, what have you tried so far? What is your issue? What do you know in ABAP?