I have an int tabl with following keys .

posnr type posnr,
matnr type matnr,
charg type charg ,
kbetr_mrp type kbetr,
fkimg type fkimg ,
vrkme type vrkme,
kbetr_zchp type kbetr, "value for cond type zchp
kwert_zchp type kwert, "% for for cond type zchp
kbetr_z366 type kbetr,
kwert_z366 type kwert,
kbetr_z001 type kbetr,
kwert_z001 type kwert,
kbetr_jin1 type kbetr,
kwert_jin1 type kwert,
kbetr_jin2 type kbetr,
kwert_jin2 type kwert,
kbetr_zast type kbetr,
kwert_zast type kwert,
kbetr_zats type kbetr,
kwert_zats type kwert,
kbetr_jin4 type kbetr,
kwert_jin4 type kwert,
kbetr_jin5 type kbetr,
kwert_jin5 type kwert,
kbetr_ztut type kbetr,
kwert_ztut type kwert,
kbetr_zmnd type kbetr,
kwert_zmnd type kwert,
NETWR TYPE NETWR,

I am printing all these fields in the MAIN window of the table .
After the main win, I need to analyse the print taxes/condition types
and then print them in TAXES window .I have to keep the following
points
in mind .

I need to consolidate the taxes for eg if in one invoice I have 3
items with 10% lst ,
I will be printing `10%LST' only once in the TAXES window. However ,
If in one invoice
I have 2 items with 10%lst and 3 with 8%lst , then these will be
printed at two places (first I will print 8%lst as it occurs more
times in the invoice as compared 10%lst)


If Condition Type is JIN1, It should print JIN1 (KOMV-KWERT) and %
(KOMV-KBETR) of JIN1
if Condition Type is JIN2, It should print JIN2 and % of JIN2;
if Condition Type is JIN4 and JIN5, It should print SUR and % of
JIN4 and JIN5;
if Condition Type is ZAST and ZATS, It should print AST and % of
ZAST and ZATS;
if Condition Type is ZTUT, It should print TOT and % of ZTUT;
if Condition Type is ZMND, It should print MND and % of ZMND.

In the TAXES window I have only four places to print the different
taxes (P1,P2,P3,P4)
If there are different % of Same Tax or different types of taxes in
the same Invoice,
for each combination of Condition Type and Tax %, it should print in
2nd or 3rd or 4th Position(ie P2,P3,P4) accordingly


e.g. If One Invoice has 10 line items and has 6 items with 10 % LST,
2 items with 15% LST and 2 items with 15% LST and 10% SUR, It should
show
LST 10% in P1, LST 15% in P2, SUR 10% in P3.

As per my understanding ,From the above  int table , I need to create
another int table that tells me :
1)      about the cond type (JIN1 or JIN2 or so on)
2)      Its % and value (KBETR , KWERT)
3)      No. of times it occurs in the invoice


This internal table can have more than one entry for a cond type(JIN1
eg)
However , these entries must be for different % ages of the cond type.

      Can some one pls help me create the new internal table .

Thanks and regards
annie








To unsubscribe from this list, send a to mail to
[EMAIL PROTECTED] or go to http://groups.yahoo.com/group/ABAP

Comments about the list can be sent to [EMAIL PROTECTED]



Yahoo! Groups Sponsor
ADVERTISEMENT
click here
Web Bug from http://us.adserver.yahoo.com/l?M=298184.5639630.6699735.3001176/D=groups/S=:HM/A=2434971/rand=438726507


Yahoo! Groups Links

Reply via email to