Using CL_RSR_WWW_MODIFY_TABLE to remove rows completely from output!
Hello All,
I have a problem I am trying to work thru and I need some assistance.
Here is the issue...
I have a report, in which I want to completely remove uneeded rows (depending on the contents of the row).
I have had a look thru the how-to papers on the TAble interface (so please don't post links to those, they are not what I am searching for as they only describe things like not displaying cell contents, and like I stated, I want to not show rows...ie, delete them from output.)
Does anyone have some code to show me how to accomplish this?
Here is my scenerio...
I have a query, from the 0IC_C03 infocube (I understand the IM scenerio, so don't post links to the SAP help for How-to on this subject), and in the query, I have storage location and material. As we all already know, the infocube does not give a good solution to provide values only on Storage location. But, to get around this, you can have a report with Material in the rows, and do a calculation (Price * Qty) to get the totals by storage location. But, I do not want to show the materials. (Yes, I know there is yet another how to paper on realizing inventory on storage location level, but that does not produce correct results).
The query is doing exactly what I want...here is the results.
STORLOC____MATERIAL_____VALUE
<b>LOC1________RESULT_______$200000</b>
LOC1________MATNR1_______$150000
LOC1________MATNR2_______$50000
<b>LOC2________RESULT_______$2500</b>
LOC2________MATNR3_______$1500
LOC2________MATNR4_______$1000
<b>LOC3________RESULT_______$500</b>
LOC3________MATNR5_______$500
You get the idea...
Anyway, I want to turn the above, into the following..
STORLOC____MATERIAL_____VALUE
<b>LOC1________RESULT_______$200000
LOC2________RESULT_______$2500
LOC3________RESULT_______$500</b>
Essentially, removing everything but the results rows...
Now, I have read a few other questions out here on something similiar (someone else was trying to accomplish the same thing) but nobody has ever posted a reasonable answer to the above question, so I am hoping, some of you have a solution, either via defining my own CL_RSR_WWW_MODIFY_TABLE solution or via Javascript.
If someone has accomplished this with the table interface, which method and how did you change the table?
If someone has accomplished this with javascript or something else, I would like the details of that as well.
Note: I was able to read the table, and was able to use a temp table, and remove the rows I did not want, but, I was not able to update the table passed by the interface.
This code works to get the right rows, but, it doesn't allow me to update the passing table.
DATA:wa_y_axis_data LIKE LINE OF
I_r_data_set->n_sx_version_20a_1-axis_data,
wa_cell_data LIKE LINE OF
I_r_data_set->n_sx_version_20a_1-cell_data,
set LIKE LINE OF wa_y_axis_data-set,
TUPLE_ORDINAL like set-TUPLE_ORDINAL,
l_counter TYPE i,
l_index TYPE sy-index,
l_trade_fvalue LIKE wa_cell_data-formatted_value.
* prerequesite in example: 1 key figure and 1 calc. key figure column
LOOP AT I_r_data_set->n_sx_version_20a_1-axis_data INTO wa_y_axis_data
WHERE AXIS = 1.
LOOP at wa_y_axis_data-set into set.
l_index = sy-index.
if set-chanm = 'A0MAT_PLT' AND set-chavl NE 'SUMME'.
delete wa_y_axis_data-set where tuple_ordinal = set-tuple_ordinal.
ENDIF.
ENDLOOP.
ENDLOOP.
Any similiar experiences or feedback is appreciated.
Cheers!
/smw
Hi Steve,
just want to know why the material has to be present in this report - when not shown in the end - just to have it in the column or why wonder?
regards, Johannes
Similar Messages
-
How to remove duplicates records from output ?
how to remove duplicates records from output ? i used delete adjacent but duplicates records are coming again ..suggest me
hi shruthi,
thanks for ur answer ..but duplicates records coming again
here is my code >> plz check it out
*& Report ZCRM_TROUBLE_TICKET
REPORT zcrm_trouble_ticket.
TYPES : BEGIN OF ty_qmih,
qmnum TYPE qmnum,
equnr TYPE equnr,
iloan TYPE iloan,
ausvn TYPE ausvn,
ausbs TYPE ausbs,
auztv TYPE auztv,
auztb TYPE auztb,
iwerk TYPE iwerk,
END OF ty_qmih,
BEGIN OF ty_qmel,
qmnum TYPE qmnum,
qmtxt TYPE qmtxt,
indtx TYPE indltx,
priok TYPE priok,
strmn TYPE strmn,
strur TYPE strur,
ltrmn TYPE ltrmn,
ltrur TYPE ltrur,
objnr TYPE qmobjnr,
arbpl TYPE lgwid,
vkorg TYPE vkorg,
vtweg TYPE vtweg,
spart TYPE spart,
END OF ty_qmel,
BEGIN OF ty_ihpa,
parnr TYPE i_parnr,
parvw TYPE parvw,
objnr TYPE qmobjnr,
END OF ty_ihpa,
BEGIN OF ty_crhd,
arbpl TYPE arbpl,
objid TYPE cr_objid,
END OF ty_crhd,
BEGIN OF ty_crtx,
ktext TYPE cr_ktext,
objid TYPE cr_objid,
END OF ty_crtx,
BEGIN OF ty_qmfe,
fecod TYPE fecod,
fegrp TYPE fegrp,
qmnum TYPE qmnum,
END OF ty_qmfe,
BEGIN OF ty_qmur,
urcod TYPE urcod,
urgrp TYPE urgrp,
urtxt TYPE urstx,
qmnum TYPE qmnum,
END OF ty_qmur,
BEGIN OF ty_iloa,
tplnr TYPE tplnr,
iloan TYPE iloan,
END OF ty_iloa,
BEGIN OF ty_output,
qmnum TYPE qmnum,
equnr TYPE equnr,
iloan TYPE iloan,
ausvn TYPE ausvn,
ausbs TYPE ausbs,
auztv TYPE auztv,
auztb TYPE auztb,
iwerk TYPE iwerk,
qmtxt TYPE qmtxt,
indtx TYPE indltx,
priok TYPE priok,
strmn TYPE strmn,
strur TYPE strur,
ltrmn TYPE ltrmn,
ltrur TYPE ltrur,
objnr TYPE qmobjnr,
arbpl TYPE lgwid,
vkorg TYPE vkorg,
vtweg TYPE vtweg,
spart TYPE spart,
parnr TYPE i_parnr,
parvw TYPE parvw,
arbpl TYPE arbpl,
objid TYPE cr_objid,
arbpl1 TYPE arbpl,
ktext TYPE cr_ktext,
fecod TYPE fecod,
fegrp TYPE fegrp,
urcod TYPE urcod,
urgrp TYPE urgrp,
urtxt TYPE urstx,
tplnr TYPE tplnr,
END OF ty_output.
DATA : it_qmih TYPE STANDARD TABLE OF ty_qmih,
it_qmel TYPE STANDARD TABLE OF ty_qmel,
it_ihpa TYPE STANDARD TABLE OF ty_ihpa,
it_crhd TYPE STANDARD TABLE OF ty_crhd,
it_crtx TYPE STANDARD TABLE OF ty_crtx,
it_qmfe TYPE STANDARD TABLE OF ty_qmfe,
it_qmur TYPE STANDARD TABLE OF ty_qmur,
it_iloa TYPE STANDARD TABLE OF ty_iloa,
it_output TYPE STANDARD TABLE OF ty_output,
wa_qmih TYPE ty_qmih,
wa_qmel TYPE ty_qmel,
wa_ihpa TYPE ty_ihpa,
wa_crhd TYPE ty_crhd,
wa_crtx TYPE ty_crtx,
wa_qmfe TYPE ty_qmfe,
wa_qmur TYPE ty_qmur,
wa_iloa TYPE ty_iloa,
wa_output TYPE ty_output.
INITIALIZATION.
REFRESH : it_qmih,
it_qmel,
it_ihpa,
it_crhd,
it_crtx,
it_qmfe,
it_qmur,
it_iloa,
it_output.
CLEAR: wa_qmih,
wa_qmel,
wa_ihpa,
wa_crhd,
wa_crtx,
wa_qmfe,
wa_qmur,
wa_iloa,
wa_output.
start-of-selection.
SELECT qmnum
equnr
iloan
ausvn
ausbs
auztv
auztb
iwerk
FROM qmih
INTO TABLE it_qmih.
SORT it_qmih BY qmnum .
DELETE ADJACENT DUPLICATES FROM it_qmih COMPARING qmnum equnr iloan ausvn ausbs auztv auztb iwerk.
SELECT qmnum
qmtxt
indtx
priok
strmn
strur
ltrmn
ltrur
objnr
arbpl
vkorg
vtweg
spart
FROM qmel
INTO TABLE it_qmel
FOR ALL ENTRIES IN it_qmih
WHERE qmnum = it_qmih-qmnum.
SORT it_qmel BY qmnum.
DELETE ADJACENT DUPLICATES FROM it_qmel COMPARING qmnum
qmtxt
indtx
strmn
strur
ltrmn
ltrur
objnr
arbpl
vkorg
vtweg
spart.
IF it_qmel IS NOT INITIAL.
SELECT parnr
parvw
objnr
FROM ihpa
INTO TABLE it_ihpa
FOR ALL ENTRIES IN it_qmel
WHERE objnr = it_qmel-objnr.
ENDIF.
DELETE ADJACENT DUPLICATES FROM it_ihpa COMPARING parnr
parvw
objnr.
IF it_qmel IS NOT INITIAL.
SELECT arbpl
objid
FROM crhd
INTO TABLE it_crhd
FOR ALL ENTRIES IN it_qmel
WHERE objid = it_qmel-arbpl.
ENDIF.
DELETE ADJACENT DUPLICATES FROM it_crhd COMPARING arbpl
objid.
IF it_qmel IS NOT INITIAL.
SELECT ktext
objid
FROM crtx
INTO TABLE it_crtx
FOR ALL ENTRIES IN it_crhd
WHERE objid = it_crhd-objid.
ENDIF.
DELETE ADJACENT DUPLICATES FROM it_crtx COMPARING ktext
objid.
IF it_qmih IS NOT INITIAL.
SELECT fecod
fegrp
qmnum
FROM qmfe
INTO TABLE it_qmfe
FOR ALL ENTRIES IN it_qmih
WHERE qmnum = it_qmih-qmnum.
ENDIF.
SORT it_qmfe BY qmnum.
DELETE ADJACENT DUPLICATES FROM it_qmfe COMPARING fecod
fegrp.
IF it_qmih IS NOT INITIAL.
SELECT urcod
urgrp
urtxt
qmnum
FROM qmur
INTO TABLE it_qmur
FOR ALL ENTRIES IN it_qmih
WHERE qmnum = it_qmih-qmnum.
ENDIF.
SORT it_qmur BY qmnum.
DELETE ADJACENT DUPLICATES FROM it_qmur COMPARING urcod
urgrp
urtxt.
IF it_qmih IS NOT INITIAL.
SELECT tplnr
iloan
FROM iloa
INTO TABLE it_iloa
FOR ALL ENTRIES IN it_qmih
WHERE iloan = it_qmih-iloan.
ENDIF.
DELETE ADJACENT DUPLICATES FROM it_iloa COMPARING tplnr
iloan.
LOOP AT it_qmih INTO wa_qmih.
wa_output-qmnum = wa_qmih-qmnum.
wa_output-equnr = wa_qmih-equnr.
wa_output-iloan = wa_qmih-iloan.
wa_output-ausvn = wa_qmih-ausvn.
wa_output-ausbs = wa_qmih-ausbs.
wa_output-auztv = wa_qmih-auztv.
wa_output-auztb = wa_qmih-auztb.
wa_output-iwerk = wa_qmih-iwerk.
APPEND wa_output TO it_output.
CLEAR wa_output.
READ TABLE it_qmel INTO wa_qmel WITH KEY qmnum = wa_qmih-qmnum.
wa_output-qmtxt = wa_qmel-qmtxt.
wa_output-indtx = wa_qmel-indtx.
wa_output-priok = wa_qmel-priok.
wa_output-strmn = wa_qmel-strmn.
wa_output-strur = wa_qmel-strur.
wa_output-ltrmn = wa_qmel-ltrmn.
wa_output-ltrur = wa_qmel-ltrur.
wa_output-objnr = wa_qmel-objnr.
wa_output-arbpl = wa_qmel-arbpl.
wa_output-vkorg = wa_qmel-vkorg.
wa_output-vtweg = wa_qmel-vtweg.
wa_output-spart = wa_qmel-spart.
APPEND wa_output TO it_output.
CLEAR wa_output.
READ TABLE it_ihpa INTO wa_ihpa WITH KEY objnr = wa_qmel-objnr.
wa_output-parnr = wa_ihpa-parnr.
wa_output-parvw = wa_ihpa-parvw.
APPEND wa_output TO it_output.
CLEAR wa_output.
READ TABLE it_crhd INTO wa_crhd WITH KEY objid = wa_qmel-arbpl.
wa_output-arbpl = wa_crhd-arbpl.
APPEND wa_output TO it_output.
CLEAR wa_output.
READ TABLE it_crtx INTO wa_crtx WITH KEY objid = wa_crhd-objid.
wa_output-ktext = wa_crtx-ktext.
APPEND wa_output TO it_output.
CLEAR wa_output.
READ TABLE it_qmfe INTO wa_qmfe WITH KEY qmnum = wa_qmih-qmnum.
wa_output-fecod = wa_qmfe-fecod.
wa_output-fegrp = wa_qmfe-fegrp.
APPEND wa_output TO it_output.
CLEAR wa_output.
READ TABLE it_qmur INTO wa_qmur WITH KEY qmnum = wa_qmih-qmnum.
wa_output-urcod = wa_qmur-urcod.
wa_output-urgrp = wa_qmur-urgrp.
wa_output-urtxt = wa_qmur-urtxt.
APPEND wa_output TO it_output.
CLEAR wa_output.
READ TABLE it_iloa INTO wa_iloa WITH KEY iloan = wa_qmih-iloan.
wa_output-tplnr = wa_iloa-tplnr.
APPEND wa_output TO it_output.
CLEAR wa_output.
ENDLOOP.
DELETE ADJACENT DUPLICATES FROM it_output COMPARING qmnum
equnr
ausvn
ausbs
auztv
auztb
iwerk
qmtxt
indtx
priok
strmn
strur
ltrmn
ltrur
vkorg
vtweg
spart
parnr
parvw
arbpl
ktext
fecod
fegrp
urcod
urgrp
urtxt
tplnr.
*CALL FUNCTION 'STATUS_TEXT_EDIT'
EXPORTING
CLIENT = SY-MANDT
FLG_USER_STAT = ' '
objnr =
ONLY_ACTIVE = 'X'
spras = en
BYPASS_BUFFER = ' '
IMPORTING
ANW_STAT_EXISTING =
E_STSMA =
LINE =
USER_LINE =
STONR =
EXCEPTIONS
OBJECT_NOT_FOUND = 1
OTHERS = 2
*IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
*ENDIF.
*CALL FUNCTION 'READ_TEXT'
EXPORTING
CLIENT = SY-MANDT
id =
language =
name =
object =
ARCHIVE_HANDLE = 0
LOCAL_CAT = ' '
IMPORTING
HEADER =
tables
lines =
EXCEPTIONS
ID = 1
LANGUAGE = 2
NAME = 3
NOT_FOUND = 4
OBJECT = 5
REFERENCE_CHECK = 6
WRONG_ACCESS_TO_ARCHIVE = 7
OTHERS = 8
*IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
*ENDIF.
*LOOP AT IT_OUTPUT INTO WA_OUTPUT.
*WRITE : / WA_OUTPUT-qmnum,
WA_OUTPUT-equnr,
WA_OUTPUT-iloan,
WA_OUTPUT-ausvn,
WA_OUTPUT-ausbs,
WA_OUTPUT-auztv,
WA_OUTPUT-auztb,
WA_OUTPUT-qmtxt,
WA_OUTPUT-indtx,
WA_OUTPUT-strmn,
WA_OUTPUT-strur,
WA_OUTPUT-ltrmn,
WA_OUTPUT-ltrur,
WA_OUTPUT-objnr,
WA_OUTPUT-arbpl,
WA_OUTPUT-parnr,
WA_OUTPUT-parvw,
WA_OUTPUT-objid,
WA_OUTPUT-ktext,
WA_OUTPUT-fecod,
WA_OUTPUT-fegrp,
WA_OUTPUT-urcod,
WA_OUTPUT-urgrp,
WA_OUTPUT-urtxt,
WA_OUTPUT-tplnr.
*ENDLOOP.
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
BIN_FILESIZE =
filename = 'E:\CRM1.TXT'
FILETYPE = 'ASC'
APPEND = ' '
write_field_separator = '|'
HEADER = '00'
TRUNC_TRAILING_BLANKS = ' '
WRITE_LF = 'X'
COL_SELECT = ' '
COL_SELECT_MASK = ' '
DAT_MODE = ' '
CONFIRM_OVERWRITE = ' '
NO_AUTH_CHECK = ' '
CODEPAGE = ' '
IGNORE_CERR = ABAP_TRUE
REPLACEMENT = '#'
WRITE_BOM = ' '
TRUNC_TRAILING_BLANKS_EOL = 'X'
WK1_N_FORMAT = ' '
WK1_N_SIZE = ' '
WK1_T_FORMAT = ' '
WK1_T_SIZE = ' '
WRITE_LF_AFTER_LAST_LINE = ABAP_TRUE
IMPORTING
FILELENGTH =
TABLES
data_tab = it_output
FIELDNAMES =
EXCEPTIONS
FILE_WRITE_ERROR = 1
NO_BATCH = 2
GUI_REFUSE_FILETRANSFER = 3
INVALID_TYPE = 4
NO_AUTHORITY = 5
UNKNOWN_ERROR = 6
HEADER_NOT_ALLOWED = 7
SEPARATOR_NOT_ALLOWED = 8
FILESIZE_NOT_ALLOWED = 9
HEADER_TOO_LONG = 10
DP_ERROR_CREATE = 11
DP_ERROR_SEND = 12
DP_ERROR_WRITE = 13
UNKNOWN_DP_ERROR = 14
ACCESS_DENIED = 15
DP_OUT_OF_MEMORY = 16
DISK_FULL = 17
DP_TIMEOUT = 18
FILE_NOT_FOUND = 19
DATAPROVIDER_EXCEPTION = 20
CONTROL_FLUSH_ERROR = 21
OTHERS = 22
IF sy-subrc <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF. -
how can i transfer msgs from iphone 4s using ios6 to iphone 5 using ios7 without removing any thing from iphone5?
Thanks for the response -I thought that may be the case. I can access all the tracks in iTunes as it's part of the iTunes Match library. Is there not a way to download the tracks that are currently on the iPhone to the MacBook? I'm not trying to transfer the purchases but download the content from the cloud.
Have I explained myself at all well?! -
Using REGEXP_REPLACE to remove XML data from between XML tags
Hello there,
I am trying to use the REGEXP_REPLACE SQL function on a piece of XML, to remove the actual XML data from the elements. My end goal is to end up with a comma-delimited list of XML element names. As part of the first step, I just want to rip out all the actual data.
I tested the following query, and it initially appeared to work:
SELECT REGEXP_REPLACE('>THIS IS A TEST<',
'>([[:alnum:]]\s|\S)*<',
'><' ) AS test_result
FROM dual;Unfortunately, when I applied this to a full XML string, it didn't work. Here is the test query I used:
SELECT REGEXP_REPLACE('<ROW><TEST_ELEMENT1>123</TEST_ELEMENT1><TEST_ELEMENT2>THIS IS A TEST!</TEST_ELEMENT2></ROW>',
'>([[:alnum:]]\s|\S)*<',
'><') AS test_result
FROM dual;I ended up with the following output:
*<ROW></ROW>*
What I was trying for was:
*<ROW><TEST_ELEMENT1></TEST_ELEMENT1><TEST_ELEMENT2></TEST_ELEMENT2></ROW>*
If you're reading this and you're a Posix RegExp Guru, please could you let me know exactly where I'm going wrong? RegExps are not my strong point, but I'd like to get better at them.jmcnaug2 wrote:
Just out of interest, how would you go about writing the XQuery function so that it returns the actual XML Element values in comma-delimited form (This is Oracle Canonical XML, so has a very basic layout)? ;)Do you mean like this ?
SQL> SELECT xmlquery(
2 'for $i in $d/ROWSET/ROW
3 return string-join($i/*, ",")'
4 passing dbms_xmlgen.getXMLType('SELECT employee_id, last_name, first_name FROM employees WHERE rownum < 10') as "d"
5 returning content
6 ).getClobVal() as csv
7 FROM dual;
CSV
100,King,Steven
101,Kochhar,Neena
102,De Haan,Lex
103,Hunold,Alexander
104,Ernst,Bruce
105,Austin,David
106,Pataballa,Valli
107,Lorentz,Diana
108,Greenberg,Nancy
SQL> -
Im gunna be straight up honest here.. I have some rude pictures of my girlfriend on my iphone which I would like to keep for my own personal viewing but obviously dont want family and friends seeing when they are flicking threw my camera album which often happens. I had intended to make a private album put them all in there and put a passcode on the album. With all of apples features I would of thought this would be a standard thing you could do, however when I made the private album the pictures were still in my camera roll and if I try to delete them I am told the pictures will be removed completly from my phone.. This is stupid. What is the point in being able to make albums if the pictures are going to still all be in the camera roll!? Does anybody know of a way I can move pictures from camera roll to a private album?? Any help would be much appreciated.
Photos placed in a user created album or in an existing album are not copied/duplicated. The photos placed in an album include a pointer to the original photos stored in the Camera Roll. Having an album for select photos is for viewing the select photos only without having to see all photos in the Camera Roll.
The same applies to albums transferred from your computer. All photos transferred from your computer are stored in the Photo Library. Photos on the albums below include a pointer to the original photos stored in the Photo Library. The photos appear as they are duplicated when they are not. This way you can view the photos in an album only by selecting the album, or all photos on the Photo Library or Camera Roll by selecting it. -
UDO: Add and Remove rows to/from Matrix.
Hi all,
Yes, I know there are lots of topics about adding and removing rows but I was having trouble with these and I need some expert's opinion.
I'm working with a Document type UDO, with 1 header table (ADAT_ONR) and 1 child table (ADAT_NR1 - MatrixUID = "mtx_NR").
I add the first row when the user chooses the business partner.
If oMatrix.RowCount = 0 Then
oMatrix.AddRow()
oMatrix.AutoResizeColumns()
oMatrix.Columns.Item("V_LineId").Cells.Item(1).Specific.Value = 1
End If
Then, the user has to press the AddRow button to add new rows, and the user can only add 1 new blank row. Later I'll change the row adding behavior to mimic B1s.
If pVal.BeforeAction = False Then
Select Case pVal.ItemUID
Case "AddRow"
'ItemHandler_Click = AddRow(oCompany, oApplication, oForm, oForm.Items.Item("mtx_NR").Specific.RowCount())
oMatrix = oForm.Items.Item("mtx_NR").Specific
If oMatrix.RowCount > 0 Then
If Trim(oMatrix.Columns.Item("V_PltCode").Cells.Item(oMatrix.RowCount).Specific.Value) = "" Then
oApplication.StatusBar.SetText(TranslateStr(oApplication, MustChoosePallet), BoMessageTime.bmt_Short)
Exit Function
End If
End If
ItemHandler_Click = NewLine(oCompany, oApplication, oForm)
Exit Function
Private Function NewLine(ByRef oCompany As SAPbobsCOM.Company, ByRef oApplication As SAPbouiCOM.Application, _
ByRef oForm As SAPbouiCOM.Form) As Boolean
NewLine = False
Try
oMatrix = oForm.Items.Item("mtx_NR").Specific
Dim Index As Integer = oMatrix.RowCount
With oForm.DataSources.DBDataSources.Item("@ADAT_NR1")
.Clear()
End With
oMatrix.AddRow()
oMatrix.Columns.Item("V_LineId").Cells.Item(Index + 1).Specific.Value = (Index + 1).ToString
oMatrix.FlushToDataSource()
oMatrix.LoadFromDataSource()
oForm.Refresh()
NewLine = True
Catch ex As Exception
oApplication.MessageBox("NewLine(): " & oCompany.GetLastErrorCode.ToString & ", " & ex.Message)
End Try
End Function
When I Add or Update the data, I clear the last blank row, if it exists.
'// In the Click Event
If pVal.BeforeAction = True Then
Select Case pVal.ItemUID
Case "1"
If oForm.Mode <> BoFormMode.fm_FIND_MODE Then
oMatrix = oForm.Items.Item("mtx_NR").Specific
oMatrix.FlushToDataSource()
oMatrix.LoadFromDataSource()
If Trim(oMatrix.Columns.Item("V_PltCode").Cells.Item(oMatrix.RowCount).Specific.Value) = "" Then
oForm.DataSources.DBDataSources.Item("@ADAT_NR1").RemoveRecord(oMatrix.RowCount - 1)
oMatrix.DeleteRow(oMatrix.RowCount)
'oMatrix.FlushToDataSource()
End If
End If
End Select
My question is, Is there an easier way to Add and Delete Rows??
BTW, I still have a problem so solve. With this code, when the user deletes a row the row numbering is incorrect. Example: if I have to rows in a matrix and I delete row nº1, row nº2 will hold the same number...
Any Ideas?
Thanks in advanced,
Vítor VieiraHi Victor,
there is a Form Data event which you ca use in that try to write the code for adding a row after updating and delete a row while inserting and add a row while traversing.
sample code.
Sub FormDataEvent(ByRef BusinessObjectInfo As SAPbouiCOM.BusinessObjectInfo, ByRef BubbleEvent As Boolean)
Try
Select Case BusinessObjectInfo.EventType
Case SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD, SAPbouiCOM.BoEventTypes.et_FORM_DATA_UPDATE
If BusinessObjectInfo.BeforeAction = True Then
objForm = objMain.objApplication.Forms.Item(BusinessObjectInfo.FormUID)
oDBs_Head = objForm.DataSources.DBDataSources.Item("@Header")
oDBs_Detail= objForm.DataSources.DBDataSources.Item("@Line")
objMatrix = objForm.Items.Item("83").Specific
If objMatrix.VisualRowCount <> 0 Then
objMatrix.DeleteRow(objMatrix.VisualRowCount)
objMatrix.FlushToDataSource()
End If
If BusinessObjectInfo.EventType = SAPbouiCOM.BoEventTypes.et_FORM_DATA_ADD Then
End If
ElseIf BusinessObjectInfo.ActionSuccess = True Then
objForm = objMain.objApplication.Forms.Item(BusinessObjectInfo.FormUID)
If BusinessObjectInfo.EventType = SAPbouiCOM.BoEventTypes.et_FORM_DATA_UPDATE Then
objMatrix = objForm.Items.Item("83").Specific
objMatrix.AddRow()
SetNewLineCharge(objForm.UniqueID, objMatrix.VisualRowCount)
objMatrix.FlushToDataSource()
End If
End If
Case SAPbouiCOM.BoEventTypes.et_FORM_DATA_LOAD
If BusinessObjectInfo.ActionSuccess = True Then
oDBs_Head = objForm.DataSources.DBDataSources.Item("@Header")
oDBs_Detail = objForm.DataSources.DBDataSources.Item("@Line")
objMatrix = objForm.Items.Item("83").Specific
objMatrix.AddRow()
SetNewLineCharge(objForm.UniqueID, objMatrix.VisualRowCount)
objMatrix.FlushToDataSource()
End If
End Select
End Sub
Hope this helps,
OM Prakash -
I tried to delete Hotspot shield using the control panel function. Now it keeps showing up when ever I am using Firefox. I tried deleting the tool bar for it. But, it keeps coming back. it will show up on different accounts when I change pages. Like when I log onto the Telus account to pay bill.
So how do I get this removed from my computer completely?Hi,
Please see [http://www.anchorfree.com/support.php this] (the uninstall section towards the bottom).
[http://hotspotshield.uservoice.com/forums/46095-hotspot-shield-support Support]
You can also [https://support.mozilla.org/en-US/kb/update-firefox-latest-version update Firefox to the latest] and consider to [https://support.mozilla.org/en-US/kb/reset-firefox-easily-fix-most-problems Reset Firefox].
[https://www.mozilla.org/en-US/firefox/new/ Firefox latest] -
Each time I try to download an update for iTunes, I can't because it tells me iTunes on my computer has errors and nothing I try can repair the errors. It gives me the choice to try to repair, but of course it can't repair because it always says it can't repair, the other choice is to remove iTunes from my computer. If I remove iTunes and reinstall it, will my music, pictures, e-books still be there or will it be empty?
I'm afraid to remove iTunes because I don't want to lose my data. On the other hand, I think I will have to remove and re-install to have the most up-to-date version with no errors.
Has anyone completely removed iTunes and reinstalled, and if so, was everything still there? Especially CD's I have imported, etc.?Unfortunately, this sort of trouble has gotten more complicated to deal with ever since Microsoft pulled the Windows Installer CleanUp utility from their Download Center on June 25. First we have to find a copy of the utility.
Let's try Googling. (Best not to use Bing, I think.) Look for a working download site for at least version 3.0 of the Windows Installer CleanUp utility. (The results from mydigitallife and Major Geeks are worth checking.)
After downloading the utility installer file (msicuu2.exe), scan the file for malware, just in case. (I use the free version of Malwarebytes AntiMalware to do single-file scans for that.)
If the file is clean, to install the utility, doubleclick the msicuu2.exe file you've downloaded.
Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any Bonjour and QuickTime entries and click "Remove".
Quit out of CleanUp. Restart the PC, and try another iTunes install. Does it go through properly this time? -
Mapping question - how to remove empty recordsets from output XML?
Hello everyone!
I have a mapping problem I hope you can help me out with.
Here is an example of the source message:
<IDOC>
. <HEAD>
. </HEAD>
. <DET>
. . <Node>
. . . <nodeA>001</nodeA>
. . . <nodeB>OA</nodeB>
. . </Node>
. . <Node>
. . . <nodeB>OB</nodeB>
. . </Node>
. . <Node>
. . . <nodeA>002</nodeA>
. . . <nodeB>OC</nodeB>
. . </Node>
. </DET>
</IDOC>
After testing the above XML in the message mapping, here's what my target looks like:
<FILE>
. . <Rec>
. . . <nA>001</nA>
. . . <nB>OA</nB>
. . </Rec>
. . <Rec>
. . . <nB>
. . . <nA>
. . </Rec>
. . <Rec>
. . . <nA>002</nA>
. . . <nB>OC</nB>
. . </Rec>
</FILE>
"Node" in the "source" message is mapped to "Rec" in my "target" message.
"Node=" -
> "Rec"
You may notice the the "Rec" in the second entry has empty fields. The reason this is so is because I put an "IF" condition in field "nA" and field "nB" that checks whether "nodeA" in the "source" exists/has a value, and if it doesn't, empty values should be given.
Here's my problem, I need the XML output to be clean. All empty Recs should be removed from the Output XML so that it resembles the one below:
<FILE>
. . <Rec>
. . . <nA>001</nA>
. . . <nB>OA</nB>
. . </Rec>
. . <Rec>
. . . <nA>002</nA>
. . . <nB>OC</nB>
. . </Rec>
</FILE>
I've tried several ways to get this done to no avail. Would anyone be able to help me out? I would really, really appreciate it!
Warm regards,
GlennHello,
Here's how the Display Queue looks like from the "CreateIF"
Default Context:
0 [false] [suppress]
1 [false] [suppress]
2 [false] [suppress]
3 [true] []
4 [false] [suppress]
5 [true] []
6 [false] [suppress]
7 [false] [suppress]
8 [false] [suppress]
9 [true] []
10 [false] [suppress]
11 [false] [suppress]
12 [false] [suppress]
13 [true] []
14 [false] [suppress]
15 [false] [suppress]
16 [false] [suppress]
17 [true] []
18 [false] [suppress]
19 [false] [suppress]
20 [false] [suppress]
21 [true] []
CreateIF Context up one notch:
0 [false] [suppress]
1 [true] []
2 [true] []
3 [true] []
4 [true] []
5 [true] []
6 [true] []
7 [true] []
8 [false] [suppress]
9 [false] [suppress]
10 [false] [suppress]
11 [false] [suppress]
Here's how the Display Queue looks like from the "NodeA"
SUPPRESS [false]
SUPPRESS [false]
[0000000292] [false]
[0000000292] [true]
[0000000252] [false]
[0000000252] [true]
SUPPRESS [false]
[0000000078] [false]
[0000000078] [false]
SUPPRESS [true]
[0000000109] [false]
[0000000109] [false]
SUPPRESS [false]
[0000000292] [true]
[0000000292] [false]
SUPPRESS [false]
[0000000076] [false]
[0000000076] [true]
SUPPRESS [false]
[0000000292] [false]
[0000000292] [false]
SUPPRESS [true]
SUPPRESS [false]
NodeA context one notch up:
SUPPRESS [false]
[0000000292] [true]
[0000000252] [true]
[0000000078] [true]
[0000000109] [true]
[0000000292] [true]
[0000000076] [true]
[0000000292] [true]
[0000000074] [true]
[0000000077] [true]
[0000000081] [true]
[0000000292] [true]
[0000000252] [true]
[0000000081] [true]
[0000000081] [false]
SUPPRESS
Hope that helps you help me!
Glenn -
TS1702 How do you removed applications completed from devices
I am having difficulty removing apps from my iphone deviced. This is causing all my usage to be used up however on my phone i have no apps currently on my deviced. However, itunes shows all previously downloaded apps and will not allow me to delete them. Help please!!!!
Restore in iTunes and Setup as New. Give the iPhone a new name.
-
How to remove user completely from IdM?
Is there any way to remove/delete the user from the IdM completely? It means also from the "Top:Deleted users".
E.g. when some testing user is created and deleted after and should not be in system any more.Thanks a lot - it works.
My problem was that I didn't realize that there is a customized workflow mapped to 'deleteUser' process type... -
How do I remove indesign COMPLETELY from my computer
Hello,
I installed the free trial last year and did not purchase Indesign. I am considering it now, and wish to try it out again, but when I uninstall indesign, download the trial again, and reinstall it, it still says the trial is over. It is like it doesn't completely uninstall. (leaves traces behind).
How do I completely remove it so that I can try it again?> I don't want them to leave stuff on my machine... When I
> remove something, I want it gone!!
I've read about using a disk imaging program (like Norton Ghost) to
image a hard disk before installing a trial program. After the trial
runs out, you restore the image back to the hard disk and all traces of
the trial should be gone (along with everything else you've saved).
This may be useful for installing programs you're not confident about,
but it always seemed like way too much work for me.
Kenneth Benson
Pegasus Type, Inc.
www.pegtype.com -
How can we remove javascript completly from J2EE based web application?
java script produce lots of problem in web application i just want to remove them comletly
rinku5259 wrote:
java script produce lots of problem in web application i just want to remove them comletly3 easy steps
1. using the mouse or keyboard, select the javascript code
2. press the delete button on the keyboard
3. save the file
do that for each file that has JavaScript in it -
Remove LR3 completely from my iMac
I want to do a fresh install of LR3 but need to remove it from my iMac. How do I do this?
Remove Lightroom on Mac OS
In the Finder, navigate to the Applications folder.
Drag the Lightroom application to the Trash.
(Optional) Delete the preferences file, the catalog file, and other Lightroom files on your computer. For a list of those files and their default locations, see the following documents:
Preference file and other file locations | Lightroom 3.x
link: http://helpx.adobe.com/lightroom/kb/manually-remove-lightroom.html
-janelle -
OK, so I have gone into iTunes on my desktop computer and completely deleted podcasts that I no longer want. I synced my phone (4S) but the podcasts are still showing on my phone. I am already unsubscribed, but I want to totally DELETE them. Why is this so hard?
Also, why doesn't Apple bring back the right-click delete option in iTunes?Under "My Podcasts" swipe down to reveal a search bar, to the left will be an "EDIT" button. Press and delete the ones you want. I agree it's not very intuitive, should just be like any app, hold down and either move or delete.
Maybe you are looking for
-
Overriding attributes in ABAP objects
Hello, I currently want know if it is possible to override attributes in ABAP objects. i know it is possible with methods. I have extend a previous class functionality and want to change the refrence type of an attribute from the parent class, but on
-
Using US ipad in the UK and buying iphone 4 in the US to bring back to UK
I am thinking of buying a ipad 2 in the US when I visit there to bring back to the UK. I will then be heading home to Australia next year. Can someone help me to confirm: 1) is there any issues (eg power differences, adaptors, getting wifi set up) bu
-
Terms and Conditions in PDF PO with RTF Template
Hi Gurus, We have a custom RTF template for the PDF PO. I want to add the Terms and Conditions into this RTF template that should start after the last page of each PO I looked into the Oracle standard template also but it is in XSL-FO format. I tried
-
Is it possible to save 3d model as file from j2se or better from j2me?
I have created 3d model (m3g) and i want to save it as a 3d file, is there a way for doing this? Edited by: 813096 on Nov 18, 2010 2:54 PM
-
hi! i try to install ecc5 & oracle 9i. i was successfully installed CI ( ecc5,uni-code,abap ). when i try to install DB port, at the time of DATABASE LOAD( R3load shows running 1: waiting ), the following error will occur. log file : SAPSSEXC.log sho