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

Logic in Internal table

Former Member
0 Likes
368

Hi experts,

Issue :

A internal table contains data of "Two documents".

  In this One document contain has one tax code and the another one has "two tax codes".

  It means for a First document there is a single line in the internal table, and for the second document there are two lines in internal table.

Now the requirement is I need to find the document which has "Two different tax codes". And I need to put "Negative sign" for "output tax" and "Positive sign"

for "Input tax".

Kindly guide me to create a logic for this.

Thanks,

Raja

Moderator message : Not enough re-search before posting, discussion locked.

Message was edited by: Vinod Kumar

1 REPLY 1
Read only

former_member209818
Active Contributor
0 Likes
345

loop the internal table.

Counter = Counter + 1

At end of Document #.

if counter is more than 1

Write your code to do the necessary action

Endat.

Endloop.