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.???????
Thanks
I 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
Similar Messages
-
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. -
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 -
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. -
How i use value signaling Event?
how i use Value signaling event by labview?
can you send me example?Wiring a value to Value(signaling) is like having a user click a button. Here is an example.
- tbob
Inventor of the WORM Global
Attachments:
Trigger_Other_Event[2].vi 156 KB -
How to use the PROGRESS Event?
Can someone explain to me how to use the PROGRESS event, i looked at the docs but it never helped me?
I want to use it to display the prgress of downloading data from a API, its a URL event. But i was told i can do this via a PROGREE Eventcopy and paste the trace output from:
import flash.events.ProgressEvent;
//var facebookAPI:String = "https://graph.facebook.com/ginorea1/feed?access_token=277830088900615|2.AQDUBMBocIw_QcqE.3600.1313856000.0-100001000396080|5bXT8Cj0OUxNpr7y NeqTsJfwADg";//
var facebookAPI:String = "https://graph.facebook.com/100001000396080/statuses?access_token=14563 4995501895|2.AQAKdU4pcsdMmmBO.3600.1313859600.0-100001000396080|7uzAMoRdsg5kXLjc exS5bVaPhag";
var loader:URLLoader = new URLLoader(new URLRequest(facebookAPI));
loader.addEventListener(Event.COMPLETE, loadComplete);
loader.addEventListener(ProgresEvent.PROGRESS,loadProgress);
function loadProgress(e:ProgressEvent):void
trace(e.bytesLoaded,e.bytesTotal);
progress_txt.text = String(Math.floor((e.bytesLoaded/e.bytesTotal)*100));
function loadComplete(e:Event):void{
processData(e.target.data);
function processData(data:String):void
var facebookFeed:Array = JSON.decode(data).data as Array;
for (var i:uint, feedCount:uint = 10; i < feedCount; i++)
var tf2:TextField=new TextField();
feed1.text = facebookFeed[i].message;
feed2.text = facebookFeed[2].message;
feed3.text = facebookFeed[3].message;
feed4.text = facebookFeed[4].message;
feed5.text = facebookFeed[5].message;
feed6.text = facebookFeed[6].message;
feed7.text = facebookFeed[7].message;
feed8.text = facebookFeed[8].message;
feed9.text = facebookFeed[9].message;
feed10.text = facebookFeed[10].message;
stop(); -
Hello Everyone
I am using Datagrid in my Canvas.
I use mouse wheel to scroll the datagrid. But in one scroll
through that wheel make the more than 4 rows to be scroll.
So Now my requirement is to control the delta value of mouse
wheel event and how to use that with my datagrid so that i will
able to scroll one row through mouse wheel scroller.
Thanksplease give me some suggestion around it.
I want to scroll one row of datagrid with per mousewheel
scroll. I am not getting how to use the scrollMouseWheelMultiplier
property of the IConfiguration class because i am not able to
create the object of this class.
I am using the Flex 3.0 and flash 9 version.
please help me out around this. -
How to use training and event functionality in ESS BP in ep 7.0 ?
Hi all,
We are using
1). sap portal 7.0 sp 9 and
2). Using back end ECC 6.0
3). And using Ess business package
Business Package for Employee Self-Service (mySAP ERP) release 1.0
The business package doesnot contain any training and events module iviews.
We want to use training and event management iviews on the portal.
The document for this business package says that to use training and event management iviews we should install Sap Learning solutions
I want to know?
1. How can we use training and event management iviews without using Learning solutions?
2. What is actually Learning solutions is a seperate module or it is the part of Sap HR module?
Please guide me..
Rajendra.Rajendra,
Have a look at SAP Note 870126.
Here is a snippet:
<i>The following international ESS applications based on Standalone ITS have been or will be converted to the integrated ITS Version 6.40, and can still be used with mySAP ERP 2005. You can integrate these applications using ESS Homepage Customizing if required:
International ESS Services available on the integrated ITS as of mySAP ERP2005:
Training Center (PV7I) (see Note 771196)
myBookings (PV8I) (see Note 771196)</i>
To answer the second part of your question, the Learning Solution is an optional component that can be deployed in ERP. It complements and extends the existing TEM module. You generally still use TEM with LSO.
Is that what you were after?
Regards,
John -
How to use Pause / Break button on Macbook / Small Apple Keyboards
I have ready many forums regarding the inability to use Pause / Break button on Macbooks (or other small keyboards made by mac) without using a USB pad extension. And all of those threads are closed and will not let me reply with MY ANSWER / SOLUTION!!
Lets just say my life depended on getting a Pause button working on Bootcamp Windows 7 x64 macbook. I googled away, with no answers... I did know about the fn option to perm in windows btw.
BUT, i remembered, when i couldn't get my x64 bit drivers for Bluetooth keyboard to work, that there was a VIRTUAL KEYBOARD inside of "ease of access center" inside of Control Panel (all view). Find "use the computer without keyboard" and enable "use on screen keyboard"
Now you will be able to click PAUSE virtually in keyboard...
I dont know if this is an option in XP or vista, but Im sure its built in as well.
YOUR WELCOME ;PI've been going crazy tring to figue this out as well-- I use Microsoft Remote Access on my Macbook Pro. I found this archived post below-- it worked for me!!!
MWithersIT
Nov 3, 2010 1:09 PM
I have ready many forums regarding the inability to use Pause / Break button on Macbooks (or other small keyboards made by mac) without using a USB pad extension. And all of those threads are closed and will not let me reply with MY ANSWER / SOLUTION!! Lets just say my life depended on getting a Pause button working on Bootcamp Windows 7 x64 macbook. I googled away, with no answers... I did know about the fn option to perm in windows btw. BUT, i remembered, when i couldn't get my x64 bit drivers for Bluetooth keyboard to work, that there was a VIRTUAL KEYBOARD inside of "ease of access center" inside of Control Panel (all view). Find "use the computer without keyboard" and enable "use on screen keyboard" Now you will be able to click PAUSE virtually in keyboard... I dont know if this is an option in XP or vista, but Im sure its built in as well. YOUR WELCOME ;P -
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 to use controls in silverlight direct3d interop program ?
I'm working on convert my winrt program to silverlight program.
And I'm using silverlight 8.1 now. The program has two part, SilverlightDirect3DInterop(C#) project and SilverlightDirect3DInteropComp(C++).
The question is, I can't use control in SilverlightDirect3DInteropComp.
In my program, all control are created and used by code.
I want to use these control in SilverlightDirect3DInteropComp.
How should I do?Hi Y.H.King,
I may need to know what SilverlightDirect3DInteropComp used for, is it a runtime component in Windows Runtime, or its a simply a DLL project?
And another question is how you create the controls in your C++ library? And how you use the control in your runtime app?
--James
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
How to use JDI handle event, need you help!~
Hi,
In our recent project, I need listen some event such as ClassPrepareEvent, MethodEntryEvent using JDI and handle it. I am trying to mend the TTY and let it
do something simple when MethodEntryEvent occur.
I just add a print line in the method methodEntryEvent in TTY.java. But I noticed that this method is not invocated after I input "run" commond. I don't konw why? And how can I listen this event? And when the methodEntryEvent method in TTY will be invocated?
Anyone can help me ???
Thank you!!!
PS: methodEntryEvent method is post as follow:
public void methodEntryEvent(MethodEntryEvent me) {
Thread.yield(); // fetch output
//notice:
//i want print this sentens when every method entry.
System.out.println("Method Entry:");
StringBuffer buffer = new StringBuffer("\nMethod Entered: ");
buffer.append(me.method().declaringType().name());
buffer.append(".");
buffer.append(me.method().name());
buffer.append(" ");
out.print(buffer.toString());
otherEvent(me);
Duan
SJTUYou must enable a MethodEntryRequest before any MethodEntryEvent will
be reported.
In the jdb/TTY reference debugger, use the 'trace methods [thread]'
and 'untrace methods [thread]' commands to turn tracing on or off
for method entry and exit.
Once you request MethodEntry/Exit notification, then the methodEntryEvent
handler in TTY.java will be called and you will see the println() you
added to the code. -
May I know how to use the user event
I saw a sample as the attached screen. The user event is used. I am totally new of user event.
may you give a brief explanation of it and how it used.
Thanks.
Attachments:
Event.JPG 195 KBHi turbot,
attached you will find an example. There is no need to use local variables.
Mike
Attachments:
test41_LV80.vi 17 KB
Maybe you are looking for
-
I am the administrator of the PC and logged on as such. Do not have a master password set up for Firefox security.
-
Dear All I'm trying to Implement the transport System to get access to the Appointments via Exchage Server at this moment i'm following the Steps indicated in the URL http://help.sap.com/saphelp_nw04/helpdata/en/a1/93de005bec214c8af54844721ef224/
-
XML to SQL conversion using OracleXML putXML
Hi, How many rowTag values can I use when I use OracleXML putXML ? I have an XML file in the following format. I have to use "ABC" as rowTag. What Can I do with "GRANT_ROW" ? I have a table with R_DATE and GRANT columns where GRANT is an object type
-
Chart run-time tools: focus
Hello, I have a problem with the chart run-time tools. The Focus button doesnu2019t seem to work. Situation: My chart has values (y-axis) that vary mainly from 0 to 30, but sometimes there might be values over 100. I want the user to be able to see t
-
Hi Any one into BW-BASIS Can let me know what's the actual process of making BW-PRD to BW-DEV client copy. What all are the post process and pre process required while doing the client copy Any kind of help is welcome and points rewarded. Gaurav upad