In alv report can i use control break events? if no .whay?
Hi all,
in alv report can i use control break events? if no .whay?
hi,
you can use control break statements in ALV report.
for example: if one PO is having more than one line item, that time you need to display PO only once.
Similar Messages
-
Smartforms, how to use control break events
Please help with this requirement.
Purchase Docu No.111
Pur Item No Mat no Quantity
1 2356 2000
2 1256 2000
3 8556 2000
Purchase Docu No.112
Pur Item No Mat no Quantity
1 9656 2000
2 7356 2000
3 1356 2000
Purchase Docu No.113
Pur Item No Mat no Quantity
1 5356 2000
2 8356 2000
This i have to design for the smartform.
1 header data then its item data.
like is Script i can call the WIndow elements using control break events in the driver prog but how to get this kind of output in Smartforms.???????
ThanksI dont want trigger new page.
In the same page i want like this
I have purchase docu data in only 1 internal table.
So, for every new VBELN, under this i want its corresponding item details.
I have created the command node for the main window with 2 rows, in the 1st row i am giving VBELN and in the 2nd row i am giving in item details like item no, matnr etc etc and in the condition its askng Field name and Comparison Value.
How shold i give condition.??????
Thanks
Edited by: Jalaaluddin Syed on May 1, 2008 5:03 PM -
Bdc on vk11 using control break events
hi
have any one done bdc for vk11 using control break events.my flat file is
ZTAX X IN 1000 1200 2000 A0
ZTAX X IN 1000 1210 3000 A1
ZTAX X US 7676 01 4000 L3
ZTAX X US 7676 02 5000 s1
i need the logic for this any sample code will be usefulhi, check the sample code using Control break statements.
LOOP AT IT_MAIN.
WRITE : IT_MAIN.
C_TABIX = SY-TABIX.
<b>AT NEW LIFNR_001.</b>
READ TABLE IT_MAIN INDEX C_TABIX.
REFRESH IT_BDC.
perform bdc_dynpro using 'SAPMM06E' '0100'.
perform bdc_field using 'BDC_CURSOR'
'RM06E-BSTNR'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
perform bdc_field using 'EKKO-LIFNR'
IT_MAIN-LIFNR_001.
perform bdc_field using 'RM06E-BSART'
IT_MAIN-BSART_002.
perform bdc_field using 'RM06E-BEDAT'
IT_MAIN-BEDAT_003.
perform bdc_field using 'EKKO-EKORG'
IT_MAIN-EKORG_004.
perform bdc_field using 'EKKO-EKGRP'
IT_MAIN-EKGRP_005.
perform bdc_field using 'RM06E-LPEIN'
IT_MAIN-LPEIN_006.
perform bdc_field using 'RM06E-WERKS'
IT_MAIN-WERKS_007.
MOVE 1 TO CNT.
<b>ENDAT.</b>
perform bdc_dynpro using 'SAPMM06E' '0120'.
perform bdc_field using 'BDC_CURSOR'
'EKPO-TXZ01(01)'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
CONCATENATE 'EKPO-EMATN(' CNT ')' INTO FLD.
perform bdc_field using FLD IT_MAIN-EMATN_01_008.
CONCATENATE 'EKPO-TXZ01(' CNT ')' INTO FLD.
perform bdc_field using FLD IT_MAIN-TXZ01_01_009.
CONCATENATE 'EKPO-MENGE(' CNT ')' INTO FLD.
perform bdc_field using FLD IT_MAIN-MENGE_01_010.
perform bdc_dynpro using 'SAPMM06E' '0120'.
perform bdc_field using 'BDC_CURSOR'
'RM06E-EBELP'.
perform bdc_field using 'BDC_OKCODE'
'/00'.
CNT = CNT + 1.
IF CNT = 6.
CNT = 1.
PERFORM BDC_FIELD USING 'BDC_OKCODE'
'=P+'.
ENDIF.
<b>AT END OF LIFNR_001.</b>
READ TABLE IT_MAIN INDEX C_TABIX.
RECORD = IT_MAIN.
perform bdc_dynpro using 'SAPLSPO1' '0100'.
perform bdc_field using 'BDC_OKCODE'
'=YES'.
CALL TRANSACTION 'ME21' USING IT_BDC MODE 'A' MESSAGES INTO IT_MESSAGES.
clear: cnt, C_tabix .
<b>ENDAT.</b>
ENDLOOP. -
How can I use control break statement in my requirement
Hi ABAPers,
In my requirement, I have 4 fields in sorted internal table, (audat, prdha, ipnum, netwr). In that i need to do summation of netwr field falling under same prdha(BU) for the same month
internal table fields :
audat prdha ipnum netwr
02 abc 1 100
02 abc 2 200
02 xyz 3 300
03 abc 4 100
03 xyz 5 300
03 xyz 6 200
i need output like this:
audat prdha ipnum netwr
02 abc 1,2 300
02 xyz 3 300
03 abc 4 100
03 xyz 5,6 500
Can anyone suggest me logic for this by using control break statements
Thanks in advance,
Ankita
Moderator Message: Duplciate Post.
Edited by: kishan P on Apr 14, 2011 3:03 PMHi ABAPers,
In my requirement, I have 4 fields in sorted internal table, (audat, prdha, ipnum, netwr). In that i need to do summation of netwr field falling under same prdha(BU) for the same month
internal table fields :
audat prdha ipnum netwr
02 abc 1 100
02 abc 2 200
02 xyz 3 300
03 abc 4 100
03 xyz 5 300
03 xyz 6 200
i need output like this:
audat prdha ipnum netwr
02 abc 1,2 300
02 xyz 3 300
03 abc 4 100
03 xyz 5,6 500
Can anyone suggest me logic for this by using control break statements
Thanks in advance,
Ankita
Moderator Message: Duplciate Post.
Edited by: kishan P on Apr 14, 2011 3:03 PM -
Hi all,
I have a requirement in ALV ,
100 abc
100 xyz
using control break statement how we remove two hundreds and display output only one 100 ,names
100 abc
xyz.
regrads,
PraveenHi,
with the help of sort option you can get that. just check this sample.
REPORT ZTEST_ALV1 .
TYPE-POOLS: SLIS.
DATA:
LS_FIELDCAT TYPE SLIS_FIELDCAT_ALV,
LT_FIELDCAT TYPE SLIS_T_FIELDCAT_ALV,
LT_SORT TYPE SLIS_T_SORTINFO_ALV,
LS_SORT TYPE SLIS_SORTINFO_ALV.
DATA: BEGIN OF ITAB OCCURS 0,
VBELN LIKE VBAK-VBELN,
POSNR LIKE VBAP-POSNR,
END OF ITAB.
ITAB-VBELN = '12345'.
ITAB-POSNR = '10'.
APPEND ITAB.
CLEAR ITAB.
ITAB-VBELN = '12345'.
ITAB-POSNR = '11'.
APPEND ITAB.
CLEAR ITAB.
ITAB-VBELN = '12345'.
ITAB-POSNR = '12'.
APPEND ITAB.
CLEAR ITAB.
ITAB-VBELN = '12356'.
ITAB-POSNR = '10'.
APPEND ITAB.
CLEAR ITAB.
ITAB-VBELN = '12356'.
ITAB-POSNR = '11'.
APPEND ITAB.
CLEAR ITAB.
ITAB-VBELN = '12356'.
ITAB-POSNR = '12'.
APPEND ITAB.
CLEAR ITAB.
CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE'
EXPORTING
I_PROGRAM_NAME = SY-REPID
I_INTERNAL_TABNAME = 'ITAB'
I_INCLNAME = SY-REPID
CHANGING
CT_FIELDCAT = LT_FIELDCAT
EXCEPTIONS
INCONSISTENT_INTERFACE = 1
PROGRAM_ERROR = 2
OTHERS = 3.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
LS_SORT-FIELDNAME = 'VBELN'.
LS_SORT-UP = 'X'.
*ls_sort-group = 'UL'. "using this you can get new lines
APPEND LS_SORT TO LT_SORT.
CLEAR LS_SORT.
LS_SORT-FIELDNAME = 'POSNR'.
LS_SORT-UP = 'X'.
*ls_sort-group = '*'."using this you get new pages
APPEND LS_SORT TO LT_SORT.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
IT_FIELDCAT = LT_FIELDCAT
IT_SORT = LT_SORT
TABLES
T_OUTTAB = ITAB.
Regards
vijay -
Can we use control events in smartforms
Hi all,
I am srinivas. can we use control events in smartforms, I mean at new, at end of ..... if these are not used can you suggest me any alternative....
Actually my requirement is like a classical report, for which I need to display subtotal and grand totals based on two fields....
Please help me out in this issue as it is very urgent.
<b><REMOVED BY MODERATOR></b>
Thanks in advance....
Regards,
Sri...
Message was edited by:
Alvaro Tejada GalindoHi Nick,
Thanks for the reply... it is really very useful for me.
As I discussed in my earlier mail regarding the output sequence, which should be in the below format.
number quantity uom unitprice amount curr
plant
material
date
x y z A
e f g h
p q r s
subtotal date..... 1 2 3 4
subtotal material.5 6 7 8
As you said when I using <b>event of Begin</b> its working fine. but while using the <b>event of end</b>, I am specifying date and then matnr (sort) its taking(nodes are created mean first matnr and then date) in the reverse order and when I am taking matnr and date it is placing the events(nodes) in the right order but the order date is not triggering.
can please tell me how to proceed here..
waiting for your reply..
Regards,
Srinivas -
What happen if i use controll break statement in between select & endselect
Hi all,
what happen if i use controll break statement in between select & endselect ?
Thanks in Advance
KRHi for reference u can go through this code example
data:
fs_tab like sflight.
data:
t_tab like standard table of fs_tab.
select * from sflight into table t_tab.
loop at t_tab into fs_tab.
write: / fs_tab-carrid.
endloop.
refresh t_tab.
clear fs_tab.
select * from sflight into fs_tab.
at new fs_tab-carrid.
append fs_tab to t_tab.
endat.
endselect. -
Can I use control query and Variant?
Can I use control query and Variant?
I tried both but its not working, whats my requirement is in a web template having material, distribution as drop box and I have to create for all countries(Like USA, Canada,China )so what I did , I created a control query as material& distribution and I created variants for countries. After precalculating its not working.
Any help ll be appreciated
ThanksYes you can use Control Query AND Variant in your Setting. Maybe you did not setup you Web template correctly?
-
How can I use custom repeating event in my iPad Air calendar iOS 8.0.2
How can I use custom repeating event in my iPad Air calendar iOS 8.0.2?
Unless something has changed, you can't. The iPad has limited ability to make repeats. However if you make the custom repeats in another program you can send them to or import them into your calendar and the iPad will respect the custom repeat.
-
Flash player on the new mac sarafi can't use keyboard and event listener
flash player on the new mac sarafi can't use keyboard and event listener
cn:英文有些差不好意思,附上中文说明:在flash player web 开发时,我在最新版本的sarafi上,目前出现不能响应键盘事件bug,为了验证是不是我本地问题,我也用在多款别的网页游戏上进行测试,全有这个bug,另外,有时还有那个fp弹出本地 缓存提示设置窗口也点不了“允许或拒绝“那些按钮Now after 5 weeks, you have always not resolved this very important and urgent issue. It seems that Adobe has realy abandonned the actionscript / flash player projects. Why not simply discontinue flash player on desktops too ? Or even better remove or block "automaticaly" all flash players with the final update. That could create a serious issue on the Internet for few weeks but at least that will be honorable end like a Samurai's Seppuku...
-
Write stat below alv report .if i use field catalog.
hi experts,
i want to use write statment after alv report.
note: i am useing fieldcatalog.
i got it if i use standard table with : end_of_list event event.
thank you.Hi snk,
1. It won't work in GRID display.
2. The reason is when grid comes,
it comes on a screen which has container and the grid control.
3. Write statement is displayed on a special screen,
which is generally used for list output.
Normal screens (where we can put textboxes/checkboxes etc),
do not support write statements.
regards,
amit m. -
Is there any way to use Control Break in a SQL Query
Hi,
Is there any way to use a control break on Dept column in a SQL query to have a Output-2 instead of Output-1.
Is there any way to modify the SQL query.
SQL
select dept, loc, count(*)
from dept
group by dept, locOutput-1
Dept Loc Count(*)
10 AA 1
10 BB 2
10 CC 2
20 AA 2
20 BB 2Output-2
Dept Loc Count(*)
10 AA 1
BB 2
CC 2
20 AA 2
BB 2Thanks,
DeepakDeepakJ wrote:
Hi,
Is there any way to use a control break on Dept column in a SQL query to have a Output-2 instead of Output-1.
Is there any way to modify the SQL query.
SQL
select dept, loc, count(*)
from dept
group by dept, locOutput-1
Dept Loc Count(*)
10 AA 1
10 BB 2
10 CC 2
20 AA 2
20 BB 2Output-2
Dept Loc Count(*)
10 AA 1
BB 2
CC 2
20 AA 2
BB 2
Yes, using the <tt>lag</tt> analytic function and specified ordering of the data:
select
nullif(d.deptno, lag(d.deptno) over (order by d.deptno, d.loc, e.mgr nulls first)) deptno
, nullif(d.loc, lag(d.loc) over (order by d.deptno, d.loc, e.mgr nulls first)) loc
, e.mgr
, count(*) n
from
dept d
join emp e
on d.deptno = e.deptno
group by
d.deptno
, d.loc
, e.mgr
order by
d.deptno
, d.loc
, e.mgr nulls first;
DEPTNO LOC MGR N
10 NEW YORK 1
7782 1
7839 1
20 DALLAS 7566 2
7788 1
7839 1
30 CHICAGO 7698 4
7839 1
40 BOSTON 7698 2
7902 1 -
How can i use control panel in win vista
Can i get an old version of icloud ( may be V.2 ) to install an use control panel in win Vista. The newest version (v. 3.1) only works in win 7 or win 8
You can get ver. 2.1.2 here: http://support.apple.com/kb/DL1687.
-
Can I use a Change Event with a NI 9403 module?
Hi, I would want to know if the NI 9403 supports a Change Detection Timing configuration to generate events for programming something like this thread and not polling the Digital Inputs: http://forums.ni.com/t5/LabVIEW/Can-I-use-an-Event-Structure-to-process-an-input-signal-from-a/td-p/...
I have read this page: http://www.ni.com/white-paper/4102/en/, but I saw that date is of 2012 so I was thinking if is there any updated list or if someone has used the NI 9403 of this way?
Thank you for your time.Hi AYanez,
You might want to look at this link
http://zone.ni.com/reference/en-XX/help/370471W-01/cdaqmxsupp/ni9403/
In DAQmx Physical Channel Properties section, there is change detection supported list there.
Hope this help
Best regards,
TuiTui -
Cannot get the details in ME2N when using ALV but can when using BEST
Hi experts,
Could you let me know why I am not able to get the results when using ALV as Scope of List in ME2N Transaction, but can get data when using BEST?
Regards,
PriHi Priya,
Check the following :
IMG-> Materials Management-> Purchasing-> Reporting-> Scope of List->Define Scope of List
Here select ALV and click details.
Check the check boxes you need.
Cheers,
Satish
Maybe you are looking for
-
Hola, Ok so I have a Macbook Pro and last week I purchased photoshop CS6 and I updated it to the latest patch. Photoshop itself works fine except every time I open photoshop a message appears that I have to sign in and register the product or it will
-
Difference between Credit memo and subsequent credit
All SAP Gurus, In MIRO, what is the difference between Credit memo and subsequent credit? Regards,
-
Mac mini, isn't sending the signal to my LG flatron L204WS monitor
Hi Suddenly tonight my mac mini is not sending the signal to my LG flatron TV (it's worked fine for the past year). The troubleshooting I have done so far with positive results is: 1. installed the mac mini on a 32" tv using a DVI to HDMI cable - wor
-
Session Count not dropping in BOE XI
Iam calling crystal reports using url reporting. ie. calling OpenDocument.aspx page from a custom asp webpage. Iam able to create a token and then redirect to the OpenDocument.aspx correctly. But iam facing 2 issues : 1. The session created does not
-
hi there is a discount for the customer and the material group so now i wants that discount for material in the material group should be deleted how should i do do help me thanks in advance rgds ramana