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

conditions

Former Member
0 Likes
473

Hi to all experts(urgent).

Doc no line item tax code amt tax item

-


-


-


-


-


1 10 20 200 a

1 11 20 300 a

1 12 20 100 b

2 11 20 400 b

My process is

First check it tax item –if it is ‘a’ for any line item for particular docno.

Then u leave the value related to tax item ‘b’ for same doc no.

Then u not taken other tax item value.

If tax item- is not ‘a’ for any line item for particular doc no than u accept value related to

Tax item b.

Output in this way.

Doc no tax code amt

-


-


-


1 20 500

2 20 400

Then how can I solve this issues.

Please give sample code for that.

Thanks in advance and reward also.

Regard : deep

Hi to all experts(urgent).

Doc no line item tax code amt tax item

-


-


-


-


-


1 10 20 200 a

1 11 20 300 a

1 12 20 100 b

2 11 20 400 b

My process is

First check it tax item –if it is ‘a’ for any line item for particular docno.

Then u leave the value related to tax item ‘b’ for same doc no.

Then u not taken other tax item value.

If tax item- is not ‘a’ for any line item for particular doc no than u accept value related to

Tax item b.

Output in this way.

Doc no tax code amt

-


-


-


1 20 500

2 20 400

Then how can I solve this issues.

Please give sample code for that.

Thanks in advance and reward also.

Regard : deep

1 REPLY 1
Read only

Former Member
0 Likes
410

Hi deep,

take loop,

loop at itab into wa: Where you have all values populated.

on change of <field> i.e. a/b

wa-<field> (your 500/400) = sum.

append wa to jtab. > Output.

endon.

sum = wa-<field> + sum.

endloop.

Reward if useful!