Reg: Sorting
Hi all,
we have builte a report on EBS Statisitics using following columns
Organization Code, Organization name, Fiscal Week, Fiscal year, Row Count.
Actually this report is being pulled directly by using one table ie. EBS Satistics_G (i.e. directly pulling the data from the SQL query we have overwritten at Source Extract Level i.e SDE)
Now in this table EBS Satistics_G we are having these columns (Organization Code, Organization name, Row Count, Run Date)
So for displaying fiscal week in the report we have used CONCAT('FW ', CAST(WEEK_OF_YEAR(" EBS Statistics"."Run Date") AS char)) and for displaying Fiscal Year we have used YEAR("EBS Statistics"."Run Date") .
Now we are facing issue with the Fiscal Weeks Sorting. When we select Fiscal year 2012 fiscal weeks are showing up FW1, FW10,FW2,FW3,FW4,FW5,FW6,FW7,FW8,FW9.
but when we select fiscal year 2011 we don't have any issues as we are having data from FW15 to FW 52.
So is it the problem with this formula CONCAT('FW ', CAST(WEEK_OF_YEAR(" EBS Statistics"."Run Date") AS char)) .
Now our requirement is to show all the fiscal weeks in Sequence.
Kindly help
I answered this question when you asked it the first time. Look at part II of my answer. If you don't want to display the formatting I have, you can put this column at the far left, apply the sort, and then hide it.
Re: Reg; Current Quarter and Past Quarter
Similar Messages
-
Reg Sorting in Combined Request in OBIEE11g
Currently we are facing a problem in OBIEEE11g Combined Request where sorting is not happening on any column at all. Please note that sorting should be dynamic on which column the user selects based on the column property available. Sorting works for normal request but not for combined request.
Please advise if there is any way or workaround to resolve this issue. Thanks.
Edited by: user11008583 on Mar 25, 2013 12:46 AMThanks for your response. We have a requirement where the Column Sorting should happen on any column based on what user selects from UI. This is working for a normal request but not for Combined Request in 11g. Please provide your valuable inputs to resolve this issue.
-
class search {
public static void main(String [] args) {
String [] sa = {"one", "two", "three", "four"};
Arrays.sort(sa); // #1
for(String s : sa)
System.out.print(s + " ");
System.out.println("\none = "+ Arrays.binarySearch(sa,"three")); // #2
System.out.println("now reverse sort");+_
ReSortComparator rs = new ReSortComparator(); // #3
Arrays.sort(sa,rs);
for(String s : sa)
System.out.print(s + " ");
System.out.println("\none = "+ Arrays.binarySearch(sa,"one")); // #4
System.out.println("one = "
+ Arrays.binarySearch(sa,"one",rs)); // #5
static class ReSortComparator
implements Comparator<String> { // #6
public int compare(String a, String b) {
return b.compareTo(a); // #7
this code after the reverse sort line , the array is sorted in reverse order ? hows this possible? where did we mention to actually reverse the array?class search {
public static void main(String [] args) {
String [] sa = {"one", "two", "three", "four"};
Arrays.sort(sa); // #1
for(String s : sa)
System.out.print(s + " ");
System.out.println("\none = "+ Arrays.binarySearch(sa,"three")); // #2
System.out.println("now reverse sort");
ReSortComparator rs = new ReSortComparator(); // #3
+Arrays.sort(sa,*rs*); // Here u r giving that ref. rs+
for(String s : sa)
System.out.print(s + " ");
System.out.println("\none = "+ Arrays.binarySearch(sa,"one")); // #4
System.out.println("one = "
+ Arrays.binarySearch(sa,"one",rs)); // #5
static class ReSortComparator
+implements Comparator<String> { // #6+
+public int compare(String a, String b) {+
return b.compareTo(a); // #7 // This is the idea.... in reg. sort we do like a.compareTo(b) now it's in da other way. U shd get it nw.+
+}+
+}+ -
Batch determination -sort rule -reg
hi,
requirement is :
Through COR2 , for the process order's component when batch determination is done , Batch determination should first select for the unrestricted stock in the storage location and once all the unrestricted stock is consumed then only batch determination should happen from the stock of the batches of the consignment stock in the storage location.
With in the stock of the storage location ... first it should check for unrestricted stock -with in unrestricted it should sort based on GR date of the batch and consume the oldest batch.Once all unrestricted is consumed then only it should look for consignment stock consumption , again based on the Gr date and consume the oldest batch with in the consignment .
We have created a sort sequence with unrestricted stock as the first characteristic (table MCHB-field CLABS in the additional data tab of the CT04) and then Gr date in ascending (table MCH1-Field LWEDT)
and also tried with the combination of consignment stock also (from MARD table ) but it is not working as expected
System is always picking the oldest GR date batch irrespective whether it is unrestricted or consignment as sorting is done for the characteristic Gr date which is updated in the classification tab of the batch when it is created .
Can the multiple sorting ( first sort on stock type :unrestricted / consignment & then on gr date) is possible in standard SAP
please guide us
regards,
Madhu KiranHi Madhu,
I have the same issue. What was your solution please ?
Thanks in advance, -
Reg the Sort Key field in Vendor Master Record
Hi MM Gurus,
I have the requirement of displaying the Purchase Order number & Line Item number in the Accounting document of the Goods Receipt. i.e., in the "Assignment" field.
I have made the necessary configuration in FS00 for the specific GL account & also specified 014 code in the corresponding Vendor master record.
However, once I post the GR document, and checked the "Assignment" field, it displays only the Purchase Order number and not the Line item number.
Kindly help me on this.
Best Regards
SudhiHave you posted the above document after set 014 in FS00 ?
Can you test the same in your practice client.
Check the document for more details Sort Key Functionalities and the wiki content How to update Assignment field in FBL*N report - ERP Financials - SCN Wiki
(Note: The changes of FS00 as 014 will not effect old documents) -
Reg:USER COMMAND and sorting in REUSE_ALV_HIERSEQ_LIST_DISPLAY
Hi,
I am displaying sales order and items in hierachical ALV using REUSE_ALV_HIERSEQ_LIST_DISPLAY.
How to handle User command in the above function module.
I have a scenario: A hyperlink should be provided to Sales Document at header level.
When User clicks on it, it should take to transaction VA02 (sales order change mode).
Please give me the declaration and logic for this functionality.
And also help me in sorting hierachical list based on particular field.
Eg:
based on 1)creation date,
2) sales document at header level
based on 1)material
2) Plant at item level
Useful logic will be rewarded
Thanks in Advance,
Priya.Priya,
There is a parametere called "callback_user_command" , u have to use form/subroutine for that parameter.,,
for example:
reuse_alv_hierseq_list_display
exporting
callback_user_command = 'demo'
form demo rucomm type sy_ucomm rselfield type slis_selfield
for hyperlink u have to user hotspot option while building the fieldcatalog for header level for ur report,
set the hotspot = 'X' for the respective fieldcatalog of header level.
regards
John -
Reg. Invalid batch according to selection criteria in batch determination
Dear Experts
I have configured newly batch management in our IDES ECC 6 system in which while posting the GRN I am getting the following error:
Invalid batch according to selection criteria in batch determination
Batch WHITE has already been posted in stock
For batch WHITE of material YARN40SCMBD 1001, no class could be deter
Deficit of PU Ordered quantity 5 KG : YARN40SCMBD 1001 YN01 WHITE
and also the system response is
For batch WHITE of material YARN40SCMBD 1001, no class could be determined
Message no. M7207
Diagnosis
The system has been configured so that batches have to be classified for the current movement type. Since neither the material nor any batch of this material has been classified, batch &V1 cannot be classified for the current movement type.
System Response
Depending on how the system is configured, either a warning or an error message is issued.
If the message issued is a warning (W), the system allows you to enter batch WHITE without classification. The warning is, however, issued to prevent you from making a wrong entry.
If the message issued is an error message (E), you cannot post batch WHITE.
Procedure
You either have to classify material YARN40SCMBD in the material master or manually create batch WHITE in the batch master and classify the batch there.
As soon as a class has been assigned to the material or a batch of this material, you can classify other batches of this material upon goods movements.
Pls help me. how to solve this problem.
Thanks
Rajakumar.KHi,
Follow the steps:
1.Field---VFDAT and table-MCHA should be created as a charecter in CT04 and assigned to a class in CL02N.
2.create MM01 and add the class to it in classification view.
3.In mm01 plt storage1 view give data for remainning shelf life and total shelf life and in purchasing view activate batch management.
4.OMJ5- activate SLED for your plant and mvt type 201.
5.opj2- set BD for your plant.
6.create sort sequence in cu70 and assign your charecteristic value to it.
7.create batch serch strategy in MBC1 for access sequence(plt/matrl/mvt typ) create a condition record.
8.Do a GR using 501 and enter SLED related details.(production date and exp date values)
Repeat the above step and enter diffrent values for SLED details.
So now two batches are created with SLED as the charecteristic.
9.Do a GI using 201 mvt tye in MB1A and enter * in batch field(system will determine the batch using the SLED value basedon the criteria(ascending or descending which was set in the sort rule.)
(or)
view this thread
Re: Batch Search
Reg,
Deepak -
Hai to all,
I am created one below rfc function module. that is ZTEST_FUNC.
Expert Forums » ABAP Development » ABAP Dictionary
Thread: reg:fm
Welcome, chaitu sumi
Your Control Panel
Your Reward Points
Your Questions
There are new replies to your question.
Mark question as still not answered.
Mark question as answered.
Use the radio buttons to award points to replies.
You are watching this thread. To stop watching this thread, click "Stop Watching Thread" below. (Watch Options)
This watch sends emails by default. If you don't want to receive emails on changes in this thread, go to the watch options, un-mark the "Email" checkbox next to the thread's entry and click "Update".
Reply to this Thread Search Forum Stop Watching Thread Back to Thread List
Replies: 2 - Pages: 1 - Last Post: Aug 6, 2007 5:03 PM by: Sudheer Junnuth... Threads: Previous
chaitu sumi
Posts: 9
Questions: 9
Registered: 7/13/07
Forum points: 0
reg:fm
Posted: Aug 6, 2007 4:47 PM Reply E-mail this post
I created below function module, which is having below import parameters and tables:
FUNCTION ztest_func.
""Local interface:
*" IMPORTING
*" VALUE(S_LFDAT1) LIKE LIKP-LFDAT
*" VALUE(S_LFDAT2) LIKE LIKP-LFDAT OPTIONAL
*" VALUE(RAIL_ROAD) TYPE CHECKBOX
*" TABLES
*" IT_FINAL STRUCTURE ZTLC_SAL
data: it_cond type n,
loop_index like sy-tabix .
select zdelv~vkorg
zdelv~vbeln
zdelv~lfart
zdelv~lfdat
zdelv~wadat
zdelv~vtweg
zdelv~spart
zdelv~vkbur
zdelv~vkgrp
zdelv~kunnr
zdelv~vsbed
zdelv~ntgew
zdelv~route
zdelv~lgort
zdelv~inco1
zdelv~matnr
zdelv~mvgr1
zdelv~vsart
zdelv~rwerks
zdelv~dwerks
into corresponding fields of table IT_FRGT
From zdelv WHERE zdelv~wadat = s_lfdat1 " and s_lfdat2
AND zdelv~lfart IN ('ZGDP','ZGRR','ZRLF','ZGLF').
if Sy-subrc = 0.
Sort it_frgt
by vbeln dwerks lgort route kunnr regio vkbur vkgrp bran1 cityc.
Delete adjacent duplicates from it_frgt
Comparing vbeln dwerks lgort route kunnr
regio vkbur vkgrp bran1 Cityc.
Loop_index = 1.
Loop at it_frgt." to wa_frgt.
*select kunnr regio from kna1 into kna1 where kunnr = it_frgt-kunnr.
*select bland from t005u into corresponding fields of table it_regio where Bland = kna1-regio.
*endselect.
IF RAIL_ROAD = 'I'.
IF IT_FRGT-VSBED <> '04'.
DELETE IT_FRGT.
clear it_frgt.
CONTINUE.
ENDIF.
ENDIF.
IF RAIL_ROAD = 'R'.
IF IT_FRGT-VSBED = '04'.
DELETE IT_FRGT.
clear it_frgt.
CONTINUE.
endif.
endif.
clear wa_frgt.
select single lifnr from vbpa into vbpa
where vbeln eq it_frgt-vbeln and
parvw eq 'ZD'.
move-corresponding it_frgt to wa_frgt.
move vbpa-lifnr to wa_frgt-lifnr.
If wa_frgt-lfart eq 'ZGND' OR
wa_frgt-lfart eq 'ZGNL' OR
wa_frgt-lfart eq 'ZGNS'.
wa_frgt-LVTEXT = 'STA'.
if wa_frgt-lfart eq 'ZGNS'.
delete it_frgt.
continue.
endif.
select mseg~werks
mseg~lgort
into (wa_frgt-rwerks,wa_frgt-rlgort)
from vbfa join mseg
on mseg~mblnr = vbfa~vbeln
where vbfa~vbelv eq wa_frgt-vbeln and
vbfa~vbtyp_n = 'i'.
Endselect.
wa_frgt-netwr = 0.
if wa_frgt-netwr = 0.
select single regio region plant lgobe cityc from zsta
into corresponding fields of it_zfrgt
where werks = it_frgt-dwerks
and lgort = it_frgt-lgort
and vkorg = it_frgt-vkorg
and kunnr = it_frgt-kunnr.
if sy-subrc <> 0.
select single regio region plant lgobe cityc from zsta into corresponding fields of it_zfrgt
where werks = it_frgt-dwerks
and lgort = it_frgt-lgort
and vkorg = it_frgt-vkorg.
select single cityc from kna1 into wa_frgt-cityc
where kunnr = wa_frgt-kunnr.
it_zfrgt-cityc = wa_frgt-cityc.
endif.
select single regio region plant lgobe cityc from zsta into corresponding fields of it_zfrgt1
where werks = it_frgt-rwerks
and lgort = it_frgt-rlgort
and vkorg = it_frgt-vkorg
and kunnr = it_frgt-kunnr.
if sy-subrc <> 0.
select single regio region plant lgobe cityc from zsta into corresponding fields of it_zfrgt1
where werks = it_frgt-rwerks
and lgort = it_frgt-rlgort
and vkorg = it_frgt-vkorg.
endif.
else.
select single regio region plant lgobe cityc from zsta into corresponding fields of it_zfrgt
where werks = it_frgt-dwerks
and lgort = it_frgt-lgort
and vkorg = it_frgt-vkorg.
endif.
else.
select single * from zsta into it_zfrgt
where werks = it_frgt-dwerks
and lgort = it_frgt-lgort
and vkorg = it_frgt-vkorg.
endif.
wa_frgt-regio = it_zfrgt-regio.
wa_frgt-region = it_zfrgt-region.
wa_frgt-plant = it_zfrgt-plant.
wa_frgt-lgobe = it_zfrgt-lgobe.
wa_frgt-cityc = it_zfrgt-cityc.
wa_frgt-soffice = it_zfrgt1-Plant.
STA *
endif.
if wa_frgt-lfart eq 'ZGDP' OR
wa_frgt-lfart eq 'ZGDR' OR
wa_frgt-lfart eq 'ZGRR' OR
wa_frgt-lfart eq 'ZRLF' OR
wa_frgt-lfart eq 'ZGLF' OR
wa_frgt-lfart eq 'ZGLR' .
if wa_frgt-lfart eq 'ZGLR'.
delete it_frgt.
continue.
endif.
if wa_frgt-lfart eq 'ZGDR'.
delete it_frgt.
continue.
endif.
select single WBSTK from LIKPUK into Likpuk-wbstk
where vbeln = wa_frgt-vbeln.
if sy-subrc = 0.
if likpuk-wbstk <> 'C'.
delete it_frgt.
clear wa_frgt.
continue.
endif.
endif.
wa_frgt-LVTEXT = 'SALES'.
wa_frgt-netwr = 0.
if wa_frgt-netwr = 0.
Select single * from ZFRGT into it_zfrgt2
where werks = it_frgt-dwerks
and lgort = it_frgt-lgort
and vkorg = it_frgt-vkorg
and kunnr = it_frgt-kunnr.
if sy-subrc <> 0.
clear it_zfrgt2.
Select single * from ZFRGT into it_zfrgt2
where werks = it_frgt-dwerks
and lgort = it_frgt-lgort
and vkorg = it_frgt-vkorg.
if sy-subrc <> 0.
select single * from t001w
where werks = it_frgt-dwerks.
if sy-subrc = 0.
wa_frgt-plant = t001w-name1.
select single * from t001l
where werks = it_frgt-Dwerks and
lgort = it_frgt-lgort.
if sy-subrc = 0.
wa_frgt-lgobe = t001l-lgobe.
endif.
it_zfrgt2-lgobe = wa_frgt-lgobe.
it_zfrgt2-plant = wa_frgt-plant.
endif.
Endif.
Select single * from kna1 where kunnr = it_frgt-kunnr.
wa_frgt-cityc = kna1-cityc.
wa_frgt-regio = kna1-regio.
wa_frgt-bran1 = kna1-bran1.
select single vtext from tbrct into tbrct where braco = it_frgt-bran1.
wa_frgt-vtext = tbrct-vtext.
endselect.
select single bezei from t005u into t005u where bland = wa_frgt-regio
and land1 = 'IN'.
wa_frgt-region = t005u-bezei.
it_zfrgt2-cityc = wa_frgt-cityc.
it_zfrgt2-regio = wa_frgt-regio.
it_zfrgt2-region = wa_frgt-region.
it_zfrgt2-vtext = wa_frgt-vtext.
it_zfrgt2-bran1 = wa_frgt-bran1.
endif.
endif.
endif.
wa_frgt-regio = it_zfrgt2-regio.
wa_frgt-region = it_zfrgt2-region.
wa_frgt-plant = it_zfrgt2-plant.
wa_frgt-lgobe = it_zfrgt2-lgobe.
wa_frgt-cityc = it_zfrgt2-cityc.
wa_frgt-vtext = it_zfrgt2-vtext.
wa_frgt-bran1 = it_zfrgt2-bran1.
select single * from tvkbt into tvkbt where vkbur = wa_frgt-vkbur.
if sy-subrc = 0.
wa_frgt-soffice = tvkbt-bezei.
endif.
select single * from tvgrt where vkgrp = wa_frgt-vkgrp.
if sy-subrc = 0.
wa_frgt-district = tvgrt-bezei.
endif.
endif.
select single * from zdest into zdest where
vkorg = wa_frgt-vkorg and
regio = wa_frgt-regio and
cityc = wa_frgt-cityc and
actvt = 'A'.
if sy-subrc = 0.
wa_frgt-vtext = zdest-vtext1.
wa_frgt-bran1 = zdest-ibraco.
wa_frgt-vkgrp = zdest-ivkgrp.
select single * from tvgrt into tvgrt where vkgrp = wa_frgt-vkgrp.
if sy-subrc = 0.
wa_frgt-district = tvgrt-bezei.
endif.
else.
wa_frgt-vtext = ' '.
wa_frgt-bran1 = ' '.
wa_frgt-district = ' '.
endif.
endselect.
*endselect.
*IF kna1-regio IS NOT INITIAL.
Read table it_regio with key BLAND = wa_FRGT-REGIO.
IF SY-SUBRC <> 0.
DELETE IT_FRGT.
clear it_frgt.
CONTINUE.
ENDIF.
ENDIF.
if wa_frgt-lfart eq 'ZGDR'.
wa_frgt-NQGEW = wa_frgt-NTGEW.
wa_frgt-NQGEW = wa_frgt-NQGEW * 1.
else.
wa_frgt-NQGEW = wa_frgt-NTGEW.
wa_frgt-NQGEW = wa_frgt-NQGEW * 1.
endif.
if wa_frgt-vsbed <> '04'.
Wa_frgt-t_mode = 'Road'.
else.
Wa_frgt-t_mode = 'Rail'.
endif.
it_cond = 0.
if wa_frgt-netwr eq 0.
if wa_frgt-vsbed <> '04'.
select * from a531 into a531
where werks eq wa_frgt-dwerks and
zzlgort eq wa_frgt-lgort and
cityc eq wa_frgt-cityc
order by datbi DESCENDING.
if sy-subrc = 0.
it_cond = 1.
if ( a531-datbi >= sy-datum and
a531-datab <= sy-datum ).
wa_frgt-knumh = a531-knumh.
exit.
endif.
endif.
endselect.
if it_cond = 0.
select * from a524 into a524
where werks eq wa_frgt-dwerks and
ZZTRANSP eq wa_frgt-lifnr and
cityc eq wa_frgt-cityc
order by datbi DESCENDING.
if sy-subrc = 0.
it_cond = 1.
if ( a524-datbi >= sy-datum and
a524-datab <= sy-datum ).
. wa_frgt-knumh = a524-knumh.
exit.
endif.
endif.
endselect.
endif.
if it_cond = 0.
select * from a530 into a530
where werks eq wa_frgt-dwerks and
ZZLGORT eq wa_frgt-lgort and
inco1 eq wa_frgt-inco1 and
cityc eq wa_frgt-cityc
order by datbi DESCENDING.
if sy-subrc = 0.
it_cond = 1.
if ( a530-datbi >= sy-datum and
a530-datab <= sy-datum ).
wa_frgt-knumh = a530-knumh.
exit.
endif.
endif.
endselect.
endif.
if it_cond = 0.
select * from a527 into a527
where werks eq wa_frgt-dwerks and
ZZLGORT eq wa_frgt-lgort and
ZZTRANSP eq wa_frgt-lifnr and
cityc eq wa_frgt-cityc
order by datbi DESCENDING.
if sy-subrc = 0.
it_cond = 1.
if ( a527-datbi >= sy-datum and
a527-datab <= sy-datum ).
wa_frgt-knumh = a527-knumh.
exit.
endif.
endif.
endselect.
endif.
endif.
else.
select * from a519 into a519
where vsbed eq wa_frgt-vsbed and
rke_route eq wa_frgt-route
order by datbi DESCENDING.
if sy-subrc = 0.
it_cond = 1.
if ( a519-datbi >= sy-datum and
a519-datab <= sy-datum ).
wa_frgt-knumh = a519-knumh.
exit.
endif.
endif.
endselect.
endif.
if wa_frgt-knumh is not initial.
select single * from konp into konp
where knumh = wa_frgt-knumh.
move konp-kbetr to wa_frgt-netwr.
if konp-KMEIN = 'BAG'.
wa_frgt-NQTWR = wa_frgt-NETWR *
( wa_frgt-ntgew * ( 20 / konp-kpein ) ).
else.
wa_frgt-NQTWR = wa_frgt-NETWR * wa_frgt-ntgew.
endif.
else.
delete it_frgt.
clear wa_frgt.
continue.
endif.
else.
wa_frgt-NQTWR = wa_frgt-NETWR.
endif.
CLEAR ZFREIGHT.
if wa_frgt-vsbed = '04'.
select single distn frgt from Zfreight into Zfreight
Where Werks eq wa_FRGT-DWERKS
AND LGORT eq wa_FRGT-LGORT
AND route eq wa_FRGT-route.
else.
if ( it_frgt-lfart = 'ZGNL' ) OR ( it_frgt-lfart = 'ZGLF' ).
Select single * from Zfreight into Zfreight
Where Werks eq wa_FRGT-DWERKS
AND cityc eq wa_FRGT-cityc
AND route eq wa_FRGT-route.
else.
Select single * from Zfreight into Zfreight
Where Werks eq wa_FRGT-DWERKS
AND LGORT eq wa_FRGT-LGORT
AND cityc eq wa_FRGT-cityc
AND route eq wa_FRGT-route.
endif.
endif.
if sy-subrc = 0.
wa_FRGT-RRKM = ZFREIGHT-DISTN.
if wa_frgt-rrkm > 0.
wa_frgt-NKTWR = wa_frgt-rrkm * wa_frgt-ntgew.
endif.
IF ZFREIGHT-FRGT = 'P'.
wa_frgt-BEZEI = 'Primary Freight'.
Endif.
IF ZFREIGHT-FRGT = 'S'.
wa_frgt-BEZEI = 'Secondary Freight'.
Endif.
endif.
modify it_frgt from wa_frgt index loop_index .
Loop_index = loop_index + 1.
endloop.
endif.
Sort it_frgt by Regio dwerks lgort Vkbur district bran1 mvgr1 t_mode.
Clear:WA_frgt.
Loop at it_frgt.
If wa_frgt is initial.
move-corresponding it_frgt to wa_frgt.
wa_frgt-NQGEW = 0.
wa_frgt-NQTWR = 0.
wa_frgt-NKTWR = 0.
endif.
if it_frgt-lfart eq 'ZGDR' .
it_frgt-NQGEW = it_frgt-NQGEW * -1.
it_frgt-NQTWR = it_frgt-NQTWR * -1.
it_frgt-NKTWR = it_frgt-NKTWR * -1.
endif.
if it_frgt-regio = wa_frgt-regio and
it_frgt-dwerks = wa_frgt-dwerks and
it_frgt-lgort = wa_frgt-lgort and
it_frgt-vkbur = wa_frgt-vkbur and
it_frgt-district = wa_frgt-district and
it_frgt-bran1 = wa_frgt-bran1 and
it_frgt-t_mode = wa_frgt-t_mode.
wa_frgt-NQGEW = wa_frgt-NQGEW + it_frgt-NQGEW.
wa_frgt-NQTWR = wa_frgt-NQTWR + it_frgt-NQTWR.
wa_frgt-NKTWR = wa_frgt-NKTWR + it_frgt-NKTWR.
else.
Append wa_frgt to it_sfrgt.
Clear wa_frgt.
move-corresponding it_frgt to wa_frgt.
wa_frgt-NQGEW = 0.
wa_frgt-NQTWR = 0.
wa_frgt-NKTWR = 0.
wa_frgt-NQGEW = WA_frgt-NQGEW + it_frgt-NQGEW.
wa_frgt-NQTWR = wa_frgt-NQTWR + it_frgt-NQTWR.
wa_frgt-NKTWR = wa_frgt-NKTWR + it_frgt-NKTWR.
endif.
AT LAST .
Append wa_frgt to it_sfrgt.
Clear wa_frgt.
ENDAT.
endloop.
sort it_sfrgt by regio dwerks lgort Vkbur district bran1 t_mode rrkm nqgew nqtwr nktwr avg_frt.
Loop At IT_SFRGT.
IT_SFRGT-RRKM = 0 .
IF IT_SFRGT-NQGEW > 0 AND IT_SFRGT-NQTWR > 0.
IT_SFRGT-AVG_FRT = IT_SFRGT-NQTWR / IT_SFRGT-NQGEW.
ENDIF.
IF IT_SFRGT-NQGEW > 0 AND IT_SFRGT-NKTWR > 0.
IT_SFRGT-RRKM = IT_SFRGT-NKTWR / IT_SFRGT-NQGEW.
ENDIF.
IF IT_SFRGT-RRKM > 0 AND IT_SFRGT-AVG_FRT > 0.
IT_SFRGT-FRT_RT = IT_SFRGT-AVG_FRT / IT_SFRGT-RRKM.
ENDIF.
MODIFY IT_SFRGT .
Endloop.
Sort it_sfrgt by REGION vkorg dwerks lgort t_mode rwerks mvgr1.
loop at it_sfrgt.
move-corresponding it_sfrgt to itab1.
append itab1.
endloop.
loop at itab1.
move-corresponding itab1 to IT_FINAL.
append it_final.
endloop.
ENDFUNCTION.
AND I created another function module ZTEST_RFC.
In ZTEST_RFC MODULE I AM CALLING ABOVE FUNCTION MODULE ZTEST_FUNC.
NOW its going to dump its showing the error CALL_FUNCTION_UC_STRUC RUNTIME ERROR IS COMING.
how can i solve this problem could any body tell me its very urgent.
In ZTEST_FUNC function module only i am collecting the data and put into IT_FINAL INTERNAL TABLE.According to
http://help.sap.com/saphelp_nw04/helpdata/en/f9/3f69fd11a80b4e93a5c9230bafc767/content.htm
The reason for the Runtime error: CALL_FUNCTION_UC_STRUCT is that "Type conflict while transferring structure ".
I'd suggest therefore that you check the definition of the variables in ZTEST_RFC where it calls ZTEST_FUNC as there would seem to be a mismatch. If you are editing ZTEST_RFC, try using the Check > Extended check functionality as this will typically pinpoint such problems for you. -
Does SAP support the Contractor Witholding Regulations REG-158747-06
Purchasing and payments is not an area I am very familiar with. I am trying to get enough information to determine what sort of assistance we will need.
Can anybody tell me if the new IRS Contractor Withholding mandate (REG-158747-06 [http://www.irs.gov/govt/fslg/article/0,,id=204409,00.html] that is to start effective 1/1/2012 can be configured through "normal" configuration in SAP R/3 4.7?
As a quick summary I understand if you have a contract for a vendor that exceeds $10,000/year or monthly payments to a vendor that exceed $10,000 you will be required to withhold 3% taxes to be paid to the IRS.
Any direction insight to this would be greatly appreciated.GigabitEthernet0 unassigned YES unset up down
The AP has a faulty NIC card. Contact Cisco TAC to get it replaced. -
Hi all,
I want to display records from an internal table with similar description together.
I have an internal table with few fields and one among them is description.
I want to display records with same description.I can sort on description but because my descrption contains alphabets numericals etc its giving me a dump error.
for ex descriptions looks like thise
ILETIN II PK REG 100 1 X 1
PHENERGAN DM 120ML 1 X 1
SOLU-CORT 500MG 4ML 1 X 1
PROTAMINE SULF 250mg 25ml 1x1 Lilly
TIMOLOL OPHTH XE 0.5%SOL 1x1 MSD
all i want is same descriptions should display together.
You can say that you can sort on material number but the problem is for different material number there is possibility of having same description so i cannot sort on material number to achieve this .
Please send me your thoughts on this one.
Thanks in advanceHi,
Did you try this option : <b>SORT <itab> ... AS TEXT ... .
</b>
Give the dump info it will help to analyze the problem .
Thanks,
Varun . -
Hi,
Jdeveloper Version : 11.1.1.4.0
Sorting for dynamic VO that has been created based on the programmatic ViewObject is not working.
I tried a sample in Hr Schema with Non-Programmatic VO. if I do table sorting for the dynamic ViewObject, it worked.
I tried a sample in Hr Schema with Programmatic VO. If I do table sorting for the dynamic ViewObject, it is not working.
Iam getting oracle.jbo.NoDefException: JBO-25058
Kindly provide me the solutions
reg,
bakkia
Edited by: Bakkia on May 9, 2011 1:34 AMCheck this blog post:
http://jobinesh.blogspot.com/2010/12/sorting-transient-viewobject.html
Thanks,
Navaneeth -
Sorting Pictures/Videos in File Explorer causes Explorer to relaunch.
I have a folder with all my pictures and videos in it, and when I try to sort it by date(or tags, however I don't wish to), explorer crashes and relaunches, leaving the folder unsorted. I have the same folder on my boot drive, and also an external drive,
but in both occasions explorer crashes. I have also tried to disable thumbnails, and changing the view to small icons/detail etc but I still have explorer crashing.
Thanks in advance.Hi SCOx,
Please take a look at the following thread:
Windows 8.1 File Explorer Crashing
Please follow the steps below to generate an explorer dump:
Copy the following into a new notepad, then save it to a reg file:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\Explorer.exe]
"DumpFolder"=hex(2):43,00,3a,00,5c,00,4c,00,6f,00,63,00,61,00,6c,00,44,00,75,\
00,6d,00,70,00,73,00,00,00
"DumpType"=dword:00000002
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\explorer.exe]
"GlobalFlag"=dword:02000100
"PageHeapFlags"=dword:00000003
Then double click to import it; or open regedit.exe and then import the reg file to it;
The next time explorer crashes, Windows error reporting would save a dump file under
C:\Localdumps, find them and then upload it into OneDrive and then post the shared link here.
After collecting the dumps, run the following reg file to stop dump collection:
Windows Registry Editor Version 5.00
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\LocalDumps\Explorer.exe]
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\explorer.exe]
Further, also take a check at this thread:
Windows 8.1 File Explorer crashes repeatedly
with iPhone movies (MOV) files
If we have some related MOV files, we may temporarily uninstall the related update.
Best regards
Michael Shao
TechNet Community Support -
Please help! iweb and 123-reg.co.uk
Hi,
I have read the various postings and still have no idea what I am doing.
I have gone to my my DNS settings and what I have is:
@ A 194.154.164.82
www CNAME web.mac.com. (I can't seem to lose the dot on the end)
www CNAME 194.154.164.82
mx0.123-reg.co.uk. Priority 10
mx1.123-reg.co.uk Priority 20
I have turned web forwarding off but this hust sends my domain to a holding page care of 123-reg.co.uk Should I turn web forwarding on - if so what URL do I ask it to forward to?
Any help would be much appreciated.
Kind regards
MatthewmacduffHi there,
I hope you've sorted your problem out. I'm also with 123.reg and had similar problems which have mostly been resolved. If your still struggling. Log in to 123reg.co.uk and go to your control panel. Click on web fowarding and select either framed or non framed forwarding. Add your site to the add url eg http://web.mac.com/yourname. Add title to be displayed in browser (presumably you've registered/bought a name with 123reg)...thats it
My problem with 123reg's system is that it, to me, isn't particularly user friendly. My web forwarding works great but the browser bar only ever shows smandrews.com and not smandrews.com/home/html...anybody know why? -
Is it possible to update QT 7 to higher version? I ran the update once and all the Pro features were disabled with the message: Your Reg Key is for QT Version 7 only. I uninstalled the new QT version, and reinstalled the old QT 7 but the Pro functions were still unavailable, so , I had to reinstal Windows to get my Pro functions back. This happened quite a while ago, but every time I get the "Update" message, I am afraid to launch it.
All I can say is that the problem you experienced is not by design but was instead some sort of technical fault, either in QuickTime or in Windows. I've upgraded QuickTime for Windows a number of times, to various new versions of QuickTime 7, and it's never removed my Pro key. My guess, and this is strictly a guess, is that something corrupted the preference file where the Pro key is held, disabling the Pro features and not allowing you to re-enter your key. Since you reinstalled Windows, I would expect that future updates to QuickTime will go without problem, and if for some reason the Pro features are ever removed, re-entering your Pro key should get them back.
Regards. -
Hi Folks;
I need to create a reg exp pattern with these rules :
mpexprfinal : mpexprUnit(\ OROP\ mpexprUnit)*
mpexprUnit : mp(\ AND\ mp)*minusplusexpr
minusplusexpr : "\ \(+\)\ " or "\ \(-\)\ "
mp : "[A-Z]{1}[0-9]{6}" (ex: I123456)
OROP : ","
Help me please!
Edited by: Moostiq on 2 mai 2011 16:52
Edited by: Moostiq on 2 mai 2011 16:52Hi,
I don't know of any really good way to assign names to sub-patterns in a regular expression, and then use those names in bigger expressions.
You can (sort of) do the same thing in SQL, by assigning column aliases to string literals (as in def_1, below), or concatentions of literals and previouslly defined aliases (as in def_2):
WITH def_1 AS
SELECT '\(\+|-\)' AS minusplusexpr
, '[A-Z]{1}[0-9]{6}' AS mp
, ';' AS orop
FROM dual
, def_2 AS
SELECT def_1.*
, mp || '( AND '
|| mp
|| ')*' AS mpexprunit
FROM def_1
SELECT x.*
FROM table_x x
CROSS JOIN def_2 d
WHERE REGEXP_LIKE ( x.txt
, d.mpexprunit || '('
|| d.orop
|| '|'
|| d.mpexprunit
|| ')*'
;Take this as pseudo-code. I'm not sure it will do anything. (I can't test it until you post some sample data).
If it does run, I'm not sure it will do what you want (since you haven't explained what you want).
You may find it easier just to repeat the expressions in your code. An approach like the one above is most useful when the definitions (mp, mpexprunit, and so on) change frequently.
I hope this answers your question.
If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables, and also post the results you want from that data.
Explain, using specific examples, how you get those results from that data.
Always say which version of Oracle you're using. I'm not sure you'll need any features that were added after Oracle 10.1, but why take a chance?
Maybe you are looking for
-
i have the ipod touch 4th generation and the screen is white, i was going to charge it and it turned white. I have tried to reset it but the apple logo will not show up and it will not turn on! i just got it for christmas... can you please help?
-
Install applet without admin rights
Hi, Apologies for my complete lack of knowledge here, but I'm wondering if there's a way of installing java applets on users profiles who don't have local admin rights on their machine. Basically, I work for a company with a lot of users who access v
-
10.4.3 installed, but now weird malfunctions
After finally installing 10.4.3 on my dual 2Ghz G5 I'm finding the following weird malfunctions. CD's from PC's that play fine on my wife's 10.4.2 loaded mac will not mount on my 10.4.3 machine, although they show up under disk warrior The Date and T
-
What specifically does the "I/O Safety Buffer" do?
In Logic 8, in the preferences under audio there is a new box you can check that says I/O Safety buffer. It seems to enable use of logic at lower buffer rates. Whats it doing and how? the manual says nothing about this feature. It must have been adde
-
Lr4 Install+AVOID lr3 catalog possible?
Just downloaded the Lr4 final Had to search around to see if the beta was to be uninstalled. Never did find that info. At this time I do not want to merge or connect to the Lr3 catalog. Is there a distinct choice to accomplish that while installing L