How to delete repeated values in smartforms
Hi
im using smartform.....
im getting the correct value, but whenever there is a blank value , then it is taking previous value instead of blank data...
how to come out of this problem?
Regards
Smitha
Hi Smitha,
It seems you are not clearing the variable or structure of that field.
Please clear it before the ENDLOOP.(If loop is used).
Regards,
Vimal.
Similar Messages
-
Everyone is how to delete repeating values?
There is a column,values are repeated,everyone is how to delete repeating values?
Assuming that this set of numerical many, can not directly determine whether there is a duplicate value.
Thank you~
Message was edited by: Tao.
Message was edited by: Tao.Hi Tao,
I've found that a short AppleScript provides a convenient way to identify duplicates (repeating values) in a range.
Just select the range of cells you want to check for duplicates and click. It will turn the duplicates red.
--select range, run, turns duplicates red
tell application "Numbers" to tell front document to tell active sheet
set selected_table to first table whose class of selection range is range
tell selected_table
set selected_range to the selection range
tell selected_range
set values_list to {}
repeat with i from 1 to count cells
set this_value to value of cell i as text
if values_list contains this_value then set text color of cell i to "red"
set end of values_list to this_value
end repeat
end tell
end tell
end tell
--end of script
Just copy and paste the above script into AppleScript Editor, and run it from there. Or place it in your scripts menu. Or download this Automator Service (Dropbox download) and double-click it to install it in your Services menu.
Similarly, if you want to get a list of just the distinct values in a range (i.e. with duplicates removed) this Copy Distinct Automator Service (Dropbox download) is very convenient.
Select the cells, make the menu pick, then paste the distinct values wherever you want in a table by single-clicking a cell and typing command-v to paste.
These functions become, in essence, a customized menu. That way you don't have to set up formulas to do this each time you work with a new Numbers document.
SG -
How to delete null values in a table
hi all,
tell me please any one how to delete null values in a table
example:
in emp table is there
empno ename job mgr sal deptno
7900 scott 7902 2000 10
7499 clerk 7900 20
7834 james manager 3000 30
like this in the above emp table there are some null values are there
so how to delete the null values in emp table
thanks,
regards.
Edited by: user9195968 on Feb 25, 2010 6:30 AMnot too sure what you mean, perhaps you could supply a table description and some sample data
but, consider
delete from table_1 where column_1 is null
commit
/ -
How to delete duplicate value in movement type 541 & 542(alv report)
hi experts,
i have some problem in alv report,
input we can give some movement type for ex(101,102,541,542, etc)
how to delete duplicate value in 541 and 542.
regards
gunasekaran.Try:
Delete adjacent duplicates from ITAB comparing FIELD1, FIELD2.
to do this the ITAB must be Sorted first.! -
How to delete the values from TKOMV at runtime after creating PO
Hi,
How to delete the values from TKOMV at runtime after creating PO from IDOC. I am creating PO through IDOC, subsequently need to create Sales order and again need to create 2nd PO with reference of Purchase Requestion(created with sales order). At the time creation of 2nd PO the Header conditions are appearing twice and net price value is appearing wrong.
Thanks in advance.Hi Padma
Can you do this activity once the company code is in to production. I guess you can not do this activity, if the company code is already in to live. Setting or resetting of the recon accounts will hinder the previous actitivity. Infact resetting of the company code is also not a good option.
Any how, thanks for the inputs. Please let me know whether i can do this activity only at the subledger level which will not impact other modules. The one solution i can figured out is , reverse all the transactions for the corresponding asset in the year of takeover and pass the entries again in the same year correctly which will have effect in Subledger and also in general ledger. But the business people will not allow this, since for a big client it will require lot of authorizations and approvals. Infact the vendor also, is cleared. So we have to reverse the cleared documents as well which is again a task and require approvals as well.
Thanks and regards
Seshu. -
How to delete duplicate values in a column?
consider a table contains 2 columns(NAME & DEPARTMENT)
NAME DEPARTMENT
santhosh finance
santhosh marketing
rahul sales
stephen IT
stephen sales
In the above table how to delete only the duplicate values(santhosh,stephen) in the column?If you don't care??
delete emp
where 1 < (select row_number() over(partition by deptno order by 1) from emp)
Error at line 1
ORA-01427: single-row subquery returns more than one rowI'd use something like
delete emp e1
where exists
(select null
from (select deptno, rowid rid, row_number () over (partition by deptno order by 1) rn from emp) e2
where e1.rowid = e2.rid
and 1 < rn) -
How to delete a value from the nested structure?
Hi Friends!
I have a nested structure such as
multimap<int, map<int ,set<int>>> FinalMul
It contains sample values
1=>4--->1
6=>4--->1
6=>9--->4
11=>4--->1
11=>5--->1 4
11=>9--->4
12=>2--->1 4 5
I want to delete the value 4 from the second and third column,
So, it looks like
1=>
6=>
6=>9--->
11=>
11=>5--->1
11=>9--->
12=>2--->1 5
after deleting 4, if I have a key(first) (1, 6, 11) and secondkey (second)(6=>9--->, 11=>9--->) with no values, then delete them also.
Finally it looks like
11=>5--->1
12=>2--->1 5
Can anyone help me how to solve it?
I just tried something;
set<int> tempV;
map<int, set<int>> tempM;
multimap<int, map<int, set<int>>> FinalMul
tempV.insert(1);
tempM.insert(make_pair(4, tempV));
FinalMul.insert(make_pair(1, tempM));
tempV.clear();
tempM.clear();
tempV.insert(1);
tempM.insert(make_pair(4, tempV));
FinalMul.insert(make_pair(6, tempM));
tempV.clear();
tempM.clear();
tempV.insert(4);
tempM.insert(make_pair(9, tempV));
FinalMul.insert(make_pair(6, tempM));
tempV.clear();
tempM.clear();
tempV.insert(1);
tempM.insert(make_pair(4, tempV));
FinalMul.insert(make_pair(11, tempM));
tempV.clear();
tempM.clear();
tempV.insert(1); tempV.insert(4);
tempM.insert(make_pair(5, tempV));
FinalMul.insert(make_pair(11, tempM));
tempV.clear();
tempM.clear();
tempV.insert(4);
tempM.insert(make_pair(9, tempV));
FinalMul.insert(make_pair(11, tempM));
tempV.clear();
tempM.clear();
tempV.insert(1); tempV.insert(4); tempV.insert(5);
tempM.insert(make_pair(2, tempV));
FinalMul.insert(make_pair(12, tempM));Check this attempt:
typedef
set<int>
SET;
typedef
map<int,
SET>
MAP;
typedef
multimap<int,
MAP>
MULTIMAP;
// remove '4' from second column
for_each( FinalMul.begin(), FinalMul.end(),
[]( MULTIMAP::value_type
& mmv )
MAP & m =
mmv.second;
m.erase( 4 );
// remove '4' from third column and remove empty entries
for_each( FinalMul.begin(), FinalMul.end(),
[]( MULTIMAP::value_type
& mmv )
MAP & m =
mmv.second;
for(
auto i = m.begin(); i != m.end(); )
SET & s = i->second;
s.erase( 4 );
if( s.empty() )
i = m.erase( i );
else
++i;
// remove empty entries
for(
auto i = FinalMul.begin(); i != FinalMul.end(); )
MAP & m = i->second;
if( m.empty() )
i = FinalMul.erase( i );
else
++i; -
How to delete repeated songs on ipod?
How can I delete repeated songs on my ipod classic?
The File menu has a "display duplicates" option at the bottom of the third section. This will bring up all duplicate songs within a playlist, album, artist, or the music list. I do a search for an artist or album at a time, then edit/select all (ctrl-A after selecting a song), select one of each song (holding the control key down allows you to select the ones you want without deselecting the rest), then I hit the delete key to delete the unwanted duplicates (the ones still highlighted). This is kind of a brute-force method but I don't anything more efficient.
-
Removing repeat value in smartforms different window
when i am using this code in smart forms with code option and using these( wjominy-VERWMERKM ,WJOMINY-ORIGINAL_INPUT) variable in ten different window for taking output for different condition the value showing in ten different window is right means if ten different value is coming it should show all value in ten different window but if only one value is available it should show only once .
but this code is showing one value in all window means it is repeating single value in all widndow but my requirement is it should show only once if it is repeat value .
pls help me in solving this issue.
CLEAR : IQAMV,IQAMR.
LOOP AT IQAMV.
IF IQAMV-VERWMERKM = 'J_1.5' OR IQAMV-VERWMERKM = 'J_3'
OR IQAMV-VERWMERKM = 'J_4' OR IQAMV-VERWMERKM = 'J_5'
OR IQAMV-VERWMERKM = 'J_7' OR IQAMV-VERWMERKM = 'J_8'
OR IQAMV-VERWMERKM = 'J_9' OR IQAMV-VERWMERKM = 'J_10'
OR IQAMV-VERWMERKM = 'J_11' OR IQAMV-VERWMERKM = 'J_13'
OR IQAMV-VERWMERKM = 'J_15' OR IQAMV-VERWMERKM = 'J_20'
OR IQAMV-VERWMERKM = 'J_25' OR IQAMV-VERWMERKM = 'J_30'
OR IQAMV-VERWMERKM = 'J_35' OR IQAMV-VERWMERKM = 'J_40'
OR IQAMV-VERWMERKM = 'J_50' OR IQAMV-VERWMERKM = 'J_1/16'
OR IQAMV-VERWMERKM = 'J_3/16' OR IQAMV-VERWMERKM = 'J_4/16'
OR IQAMV-VERWMERKM = 'J_6/16' OR IQAMV-VERWMERKM = 'J_7/16'
OR IQAMV-VERWMERKM = 'J_2' OR IQAMV-VERWMERKM = 'J_5/16'
OR IQAMV-VERWMERKM = 'J_8/16' OR IQAMV-VERWMERKM = 'J_9/16'
OR IQAMV-VERWMERKM = 'J_6' OR IQAMV-VERWMERKM = 'J_10/16'
READ TABLE IQAMR WITH KEY MERKNR = IQAMV-MERKNR.
IF SY-SUBRC = 0.
IF IQAMR-ORIGINAL_INPUT IS NOT INITIAL.
replace '_' in IQAMV-VERWMERKM with '=' .
wjominy-VERWMERKM = IQAMV-VERWMERKM.
WJOMINY-ORIGINAL_INPUT = IQAMR-ORIGINAL_INPUT.
APPEND WJOMINY TO IJOMINY.
ENDIF.
ENDIF.
ENDIF.
ENDLOOP.thanks jayathi.
BTW did you test this example with records exceeding single page.I actually coded the table in the same manner.But it does not work.
Anyhow, i solved the problem using a work around. I added a window to the next page with check box 'not on first page ' ticked. -
How to delete repeated text in Numbers
I have a long list of names, many of which are repeats. Is there a command that deletes any repeated phrases in Numbers?
Thanks.Hi Koenig--
OK, finally, I figured it out! Thank you!
Here are the steps I took:
1. Put my list of names in Column A.
2. In Column B, on cell B2 (not B1--which is the mistake I was making prior), I pasted the code you suggested: =IF(A=A1,"duplicate","")
3. Then, I filled the entire column B with the formula. I made the mistake several times of just selecting the entire column from the top. That's wrong. What you need to do is select B2, the scroll all the way down and while holding shift, select the bottom B cell--only then click go the insert>fill>fill down. This fills every repeat with the word "duplicate" next to it. In my case, everytime there was a repeat in column A, column B would have the word "repeat" next to it.
4. Then I sorted column B by descending. This grouped all of the "repeats" at the bottom. I deleted all of those rows.
This worked for me.
What I don't understand is how or why you'd use the "paste values"? What's this about?
Thanks Koenig. It took me lots of trial and error, but I got it. -
How to delete the value assignment in batches?
Hi guys,
How is it going?
We want to delete one assigned value ( for example: the value " powder " in "state of matter " of " physical / chemical data ") in property tree for thousands of REAL_SUBs.
But to my knowledge, I only know the way to delete them one by one. How can I delete them in batches?
Thanks,
LiHello
the option of the EasyExpert is a nice option (you need to my knowledge an installed expert server in using the easy expert; therefore customizing must be performed, RFC connection etc.).
In any case there could be a further topic there you could get some "trouble" in some sense. If you exchange by mass the phrase in "state of matter" you can only change the phrase (according to my knowlegde of the easy expert) but nothing else. If you switch from e.g. solid to liquid this is in my opion one of those topics which could be WWI report "critical" (normally it is DG critical too). Such a change is normally a legal change that means if use the property "State of matter" in MSDS generation then normally most legislations would say: this is a legal change. Therefore you need to "flag" this as "relevant" (standard EH&S process) so that you get the change mark in MSDS. The Easy Expert can not perform this to my knowledge. It can only change the phrase.
May be you need to consider this behaviour too.
With best regards
C.B.
PS: In your case you will have no problem because you delete something but the topic will come up if you would like to "exchange" something. And I would assume that if you have deleted the "state of matter" you would like to populate the same property again. If you need the "relevancy indicator" one option would be to generate a load file using the standard EH&S approach
Edited by: Christoph Bergemann on Apr 24, 2010 1:41 PM
Edited by: Christoph Bergemann on Apr 24, 2010 1:43 PM
Edited by: Christoph Bergemann on Apr 24, 2010 1:44 PM
Edited by: Christoph Bergemann on Apr 24, 2010 1:44 PM
Edited by: Christoph Bergemann on Jun 10, 2010 10:16 PM
Edited by: Christoph Bergemann on Jun 10, 2010 10:16 PM
Edited by: Christoph Bergemann on Jun 10, 2010 10:16 PM -
How to delete decimal values zeros
Hi experts,
i am using mseg-menge field ( lenth13 and decimals 3) in my alv grid report.
eg: 2.3456.000
user wants only 2.3456 no decimals.
how we can aviod decimals 0 s in report.
thanks in advance.
mahaheI search this ways in the forums:
Shift
SHIFT varb1 RIGHT DELETING TRAILING '0'.
write: gv_variable decimals 0.
SHIFT VALUE LEFT DELETING LEADING '0'.
Shift2
DATA: T(14) VALUE ' abcdefghij',
STRING LIKE T,
STR(6) VALUE 'ghijkl'.
STRING = T.
WRITE STRING.
SHIFT STRING LEFT DELETING LEADING SPACE (or use 0 to detete 0).
WRITE / STRING.
STRING = T.
SHIFT STRING RIGHT DELETING TRAILING STR or 0.
WRITE / STRING.
Shift3
data amt(6) type p decimals 3 value '123.450'.
data amt1(6) type p decimals 2.
data amt_c(6) type c.
unpack amt to amt_c.
shift amt_c right deleting trailing '0'.
pack amt_c to amt1.
write amt1.
use FM
FTR_CORR_SWIFT_DELETE_ENDZERO
this FM will remove all the zeros from decimal values like
value - 234.8000000
output - 234.8
IF
data: var1 type p decimals 3,
var2 type p decimals 2,
var3 type p decimals 1.
move '12345.100' to var1.
move var1 to var2.
move var1 to var3.
if var2 = var1.
if var3 = var1.
write var3.
else.
write var2.
endif.
else.
write var1.
endif.
I hope that this solve your problem.
Cordial greetings. -
How to restrict repeated values
Hi,
Iam trying to get values from BSAK using logical database.
bsak-lifnr having having 10 records.
code
nodes: bsak,bseg.
get bsak.
write bsak-lifnr.
while iam outputting the data it is showing all the 10 records.But i want only one record.Could u pls tell me how to do that...
reward guaranteed.
Kakican u check this one
REPORT Z1F_RFKEPL00 no standard page heading
line-size 140
line-count 65
message-id Z1.
TABLES: LFA1,t005t,bsak,bseg,t001,skat.
data: begin of t_bsak occurs 0,
bukrs like bsak-bukrs, "company code
lifnr like bsak-lifnr, "Vendor acc number
augdt like bsak-augdt, "Clearing date
AUGBL like bsak-AUGBL, "Clearing Document
GJAHR like bsak-GJAHR, "year
belnr like bsak-belnr, "Document number
BUZEI like bsak-BUZEI, "Line Item
budat like bsak-budat, "Posting Date in the Document
bldat like bsak-bldat, "Document date in document
blart like bsak-blart, "Document type
BSCHL like bsak-BSCHL, "Posting key
WAERS like bsak-WAERS, "Currency key
CPUDT like bsak-cpudt, "Accounting Document Entry Date
SHKZG like bsak-shkzg, "Debit/Credit Indicator
DMBTR like bsak-dmbtr, "Amount in local currency
WRBTR like bsak-wrbtr, "Amount in document currency
SGTXT like bsak-sgtxt, "Item Text
SAKNR LIKE bsak-saknr, "G/L Account Number
hkont like bsak-hkont, "General Ledger Account
SKFBT LIKE BSAK-SKFBT, "Amount Eligible for Cash Discount
KOSTL LIKE BSEG-KOSTL, "Cost center
ktopl like t001-ktopl, "chart of accounts
txt20 like skat-txt20, "Short test for the GL acc
name1 like lfa1-name1,
land1 like lfa1-land1,
landx like t005t-landx,
end of t_bsak.
data: begin of t_header occurs 0,
bukrs like bsak-bukrs,
hkont like bsak-hkont,
lifnr like bsak-lifnr,
land1 like lfa1-land1,
name1 like lfa1-name1,
landx like t005t-landx,
end of t_header.
data: begin of t_lfa1 occurs 0,
lifnr like lfa1-lifnr,
name1 like lfa1-name1,
land1 like lfa1-land1,
landx like t005t-landx,
end of t_lfa1.
data: t_bseg like t_bsak occurs 0 with header line.
data: t_data like t_bsak occurs 0 with header line.
selection-screen begin of block blk1 with frame title text-001.
select-options: s_lifnr for bsak-lifnr,
s_bukrs for bsak-bukrs.
selection-screen end of block blk1.
selection-screen begin of block blk2 with frame title text-002.
parameters s_budat like bsak-budat default sy-datum.
select-options: s_augdt for bsak-augdt.
selection-screen end of block blk2.
selection-screen begin of block blk3 with frame title text-003.
parameters: stand as checkbox default 'X',
park as checkbox.
selection-screen end of block blk3.
start-of-selection.
perform process_data.
top-of-page.
perform set_page_header.
*& Form process_data
text
form process_data.
data: line like t_bsak occurs 0 with header line.
data: l_wrbtr(10) type c.
data: l_debit type bsak-wrbtr,l_credit type bsak-wrbtr,
l_balance type bsak-wrbtr.
data:l_hkont(10) type n.
select BUKRS LIFNR AUGDT AUGBL GJAHR BELNR BUZEI BUDAT BLDAT
CPUDT WAERS BLART BSCHL SHKZG DMBTR WRBTR SGTXT HKONT SKFBT
from bsak
into corresponding fields of table t_bsak
where
lifnr in s_lifnr and
BUKRS in s_bukrs and
budat le s_budat and " Open items
augdt in s_augdt.
*DELETE t_bsak WHERE non-indexed field not in value list.
for parked items
if park = 'X'.
select BUKRS LIFNR AUGDT AUGBL GJAHR BELNR BUZEI BUDAT BLDAT
CPUDT WAERS BLART BSCHL SHKZG DMBTR WRBTR SGTXT HKONT SKFBT
from bsak
into corresponding fields of table t_bsak
where
lifnr in s_lifnr and
BUKRS in s_bukrs and
budat le s_budat and " Open items
augdt in s_augdt and
bstat = 'V'.
endif.
sort t_bsak by BUDAT.
CHECK NOT t_bsak[] IS INITIAL.
select BUKRS LIFNR AUGDT AUGBL GJAHR BELNR
SHKZG DMBTR WRBTR SGTXT SKFBT KOSTL BSCHL hkont BUZEI
into corresponding fields of table t_bseg from bseg
FOR ALL ENTRIES IN t_bsak
where belnr = t_bsak-belnr and
gjahr = t_bsak-gjahr and
bukrs = t_bsak-bukrs.
to get vendor name
loop at t_bsak.
select single * from lfa1 where lifnr = t_bsak-lifnr.
move lfa1-lifnr to t_header-lifnr.
move lfa1-name1 to t_header-name1.
move lfa1-land1 to t_header-land1.
move t_bsak-bukrs to t_header-bukrs.
move t_bsak-hkont to t_header-hkont.
if sy-subrc = 0.
append t_header.
clear t_header.
endif.
endloop.
to get vendor country
loop at t_header.
select single * from t005t where land1 = t_header-land1 and
SPRAS = 'E'.
move t005t-landx to t_header-landx.
if sy-subrc = 0.
modify t_header.
clear t_header.
endif.
endloop.
sort t_header by bukrs.
delete adjacent duplicates from t_header.
loop at t_bsak.
loop at t_bseg where belnr = t_bsak-belnr.
l_hkont = t_bseg-hkont.
t_data-bukrs = t_bsak-bukrs.
t_data-lifnr = t_bsak-lifnr.
t_data-augdt = t_bseg-augdt.
t_data-AUGBL = t_bseg-AUGBL.
t_data-GJAHR = t_bseg-GJAHR.
t_data-belnr = t_bsak-belnr.
t_data-BUZEI = t_bseg-BUZEI.
t_data-budat = t_bsak-budat.
t_data-bldat = t_bsak-bldat.
t_data-blart = t_bsak-blart.
t_data-BSCHL = t_bseg-BSCHL.
t_data-WAERS = t_bseg-WAERS.
t_data-CPUDT = t_bsak-cpudt.
t_data-SHKZG = t_bseg-shkzg.
t_data-DMBTR = t_bseg-dmbtr.
t_data-WRBTR = t_bseg-wrbtr.
t_data-SGTXT = t_bsak-sgtxt.
t_data-SAKNR = t_bseg-saknr.
t_data-hkont = t_bseg-hkont.
t_data-SKFBT = t_bseg-SKFBT.
t_data-KOSTL = t_bseg-KOSTL.
t_data-ktopl = t_bseg-ktopl.
t_data-txt20 = skat-txt20.
append t_data.
clear t_data.
endloop.
endloop.
sort t_data by budat.
*To get Chart of accounts
loop at t_data.
select single * from t001 where bukrs = t_data-bukrs.
move t001-ktopl to t_data-ktopl.
if sy-subrc = 0.
modify t_data.
clear t_data.
endif.
endloop.
*To get short text for the chart of accounts
loop at t_data.
l_hkont = t_data-hkont.
select single * from skat where ktopl = t_data-ktopl and
saknr = l_hkont and
spras = 'E'.
t_data-txt20 = skat-txt20.
if sy-subrc = 0.
modify t_data.
clear t_data.
endif.
endloop.
*Display----
*to display header
data: l_buzei type bseg-buzei.
loop at t_header.
write:/1(6) t_header-bukrs color 2,
7(8) t_header-hkont color 2,
18(10) t_header-lifnr color 2.
write:/30(10) t_header-name1.
write:/30(10) t_header-landx.
uline.
loop at t_data where lifnr = t_header-lifnr.
l_wrbtr = t_data-wrbtr.
if t_data-wrbtr = t_data-skfbt.
concatenate l_wrbtr '-' into l_wrbtr.
endif.
write:/15(11) t_data-BUDAT no-zero color 7,
26(5) t_data-BLART color 7,
30(12) t_data-belnr color 7,
42(16) t_data-BLDAT color 7,
58(5) t_data-buzei color 7,
63(12) t_data-BSCHL color 7,
75(9) t_data-AUGDT color 7,
84(35) t_data-AUGBL color 7,
119(7) t_data-WAERS color 7,
126(12) l_wrbtr color 7.
write:/55 t_data-sgtxt.
write:/60(10) t_data-kostl,
70(10) t_data-hkont,
80(20) t_data-txt20.
clear l_wrbtr.
endloop.
uline.
write:/1(6) t_data-bukrs color 2,
7(8) t_data-hkont color 2,
18(10) t_data-lifnr color 2.
uline.
write:/1(6) t_data-bukrs color 2,
7(8) t_data-hkont color 2,
18(10) t_data-lifnr color 2,
105(5) t_data-waers color 2.
*for totals
line[] = t_data[].
loop at line where lifnr = t_header-lifnr.
if line-shkzg = 'H'.
l_debit = l_debit + line-wrbtr.
endif.
if line-shkzg = 'S'.
l_credit = l_credit + line-wrbtr.
endif.
endloop.
l_balance = l_debit - l_credit.
write:115(15) l_debit color 3. write:135(1) 'D' color 3.
write:/115(15) l_credit color 3. write:135(1) 'C' color 3.
*for balnce
write:/90(25) 'Bal.:' color 3.
write:115(15) l_balance color 3.
clear: l_debit,l_credit,l_balance.
uline.
endloop.
endform. "process_data
*& Form set_page_header
text
FORM set_page_header.
call function 'Z_REPORT_TITLE'
EXPORTING
line_size = sy-linsz
sy_title = 'List of Vendor Line Items'
uline = 'X'
first_page_only = ' '.
write :1(15) 'Allocation' color col_heading,
15(10) 'Pstng' color col_heading,
25(5) 'Do' color col_heading,
30(10) 'Documnet' color col_heading,
40(10) 'Doc' color col_heading,
50(8) 'BusA' color col_heading,
58(5) 'LIm' color col_heading,
63(4) 'PK' color col_heading,
67(4) 'S' color col_heading,
71(4) 'P' color col_heading,
75(7) 'Clrg' color col_heading,
82(10) 'Clearing' color col_heading,
92(20) 'D/c discount Amnt' color col_heading,
112(5) 'Rsn' color col_heading,
117(2) 'G' color col_heading,
119(7) 'Curr-' color col_heading,
126(12) 'Amount in' color col_heading,
138(2) 'T' color col_heading.
write space.
write :1(15) 'number' color col_heading,
15(10) 'date' color col_heading,
25(5) 'ty' color col_heading,
30(10) 'number' color col_heading,
40(18) 'date' color col_heading,
58(5) '' color col_heading,
63(4) '' color col_heading,
67(4) 'I' color col_heading,
71(4) 'K' color col_heading,
75(7) 'date' color col_heading,
82(24) 'doc.no' color col_heading,
105(20) 'in LC' color col_heading,
112(5) 'code' color col_heading,
117(2) 'L' color col_heading,
119(7) 'ency' color col_heading,
126(12) 'doc.curr.' color col_heading,
138(2) 'X' color col_heading.
write space.
uline.
ENDFORM. " set_page_header -
How to remove the repetition of values for a particular column ?
eg:
product brand date
laptop hp 8/1/2013
laptop dell 8/1/2013
laptop hp 8/1/2013
I don't want " laptop" to appear thriceHi,
Go to Product Column Properties >> click on column format >> there u can see two radio buttons Suppress and Repeat >> click on suppress radio button >>
click OK >> click on results tab >> there u can see the only one laptop under product column.
Mark If Helpful/correct.
Thanks. -
How to delete the values of a vector of map with some conditions?
Hi Friends!
I have three map<int, vector<int>>
mainmap, m1, and m2.
m1 contains;
2=>9 16
3=>11 16
4=>13
mainmap contains; (keys of m1 are selected out of keys of mainmap)
1=>10 13 0 12 15
2=>12 0 0 11 0
3=>13 0 0 0 0
4=>14 11 12 0 15
m2 contains; (keys of m2 are the values of mainmap)
11=>9 16
12=>3 12
13=>11
14=>3 9 16
15=>1 3 6 9 16
I want to execute the following tasks;
first, pointing key '2' from m1 and the correspondent vectors are selected from mainmap with same key '2' (12 0 0 11 0).
second, out of the selected vector(keys of m2) are selected to compare the values of m2 and values of m1.
here ;
11=>9 16
12=>3 12
are selected.
Out of these selected figure (11=>9; 12=>3 12) if the value (9, 16) are fully matched, that key '11' is selected.
Suppose, in case the selected figure is (11=>9; 12=>3 12), that is partially matched as only 9 is available, then 16 is deleted from the value of 2 in m1, and select the key '11' from m2.
Then, it continues up to key '4' in m1.
Could anyone help me to solve this?Hi Friends!
I have three map<int, vector<int>>
mainmap, m1, and m2.
m1 contains;
2=>9 16
3=>11 16
4=>13
mainmap contains; (keys of m1 are selected out of keys of mainmap)
1=>10 13 0 12 15
2=>12 0 0 11 0
3=>13 0 0 0 0
4=>14 11 12 0 15
m2 contains; (keys of m2 are the values of mainmap)
11=>9 16
12=>3 12
13=>11
14=>3 9 16
15=>1 3 6 9 16
I want to execute the following tasks;
first, pointing key '2' from m1 and the correspondent vectors are selected from mainmap with same key '2' (12 0 0 11 0).
second, out of the selected vector(keys of m2) are selected to compare the values of m2 and values of m1.
here ;
11=>9 16
12=>3 12
are selected.
Out of these selected figure (11=>9; 12=>3 12) if the value (9, 16) are fully matched, that key '11' is selected.
Suppose, in case the selected figure is (11=>9; 12=>3 12), that is partially matched as only 9 is available, then 16 is deleted from the value of 2 in m1, and select the key '11' from m2.
Then, it continues up to key '4' in m1.
Could anyone help me to solve this?
1. Did you mean
"Out of these selected figure (11=>9 16; 12=>3 12) if the value (9, 16) are fully matched, that key '11' is selected."
2. When you say fully matched or partially matched, do you mean just in key 2 of m1?
3. What happens if there is no match?
4. What does it mean to say that a key from m2 is "selected"? What happens to keys that are or are not selected?
5. If the result of this exercise is a change in the three maps, you should at least tell us what that change is. If the result is some other data structure, then tell us what it is.
David Wilkinson | Visual C++ MVP
Maybe you are looking for
-
How to ENABLE detection of duplicate messages in Mavericks Mail?
Hello, There was a good discussion of how to disable detection of duplicate messages in Lion mail - https://discussions.apple.com/message/18265121#18265121 but unfortunately nothing seems to work to turn them ON in Mavericks. In Lion or Mt. Lion I do
-
How to bind a XML file to a dropdown list
Hello. I am trying to bind a XML file to a dropdown list as taught in the LiveCycle Designer Help. I created a XML file containing the following codes: <form> <lists> <item uiname="MasterCard" token="MC"/> <item uiname="Visa" token="VS"/> <item uinam
-
Looking for "Color Matching" in Tiger Printer dialogue box
Hello, I'm in transition from using Photoshop 7 in Classic to Photoshop CS in Tiger. I built a printer profile in ProfileMaker 5.xx that I would attach to the Printer Dialogue box in Classic under "Color Matching." Thus my prints would pretty much ma
-
Connecting my ipad2 to my iphone 3
Having problems connecting my ipad2 to my iphone 3 for internet while am on the go. It connects fine to my girlfriends iphone4. Is there any apps i can download on the iphone3 to get connection to the internet though the ipad2?
-
CUP 5.3 - Error creating request
Dear expert, We have installed GRC Access control 5.3 (support package 8.0) and are facing a problem when trying to create a request in CUP: When creating a new request, we always get the error message "Error creating request" after trying to submit.