Grid with a detail field
Hello all..
I have a gridControl which displays a certain view object. The view object also includes an Id field which is a FK to another view object (Id,Name).
I want to display the Name which is translated from the other table in the grid as well... How can I do that? I tried creating a view which is the combination of both entities but when I try to insert a new record it requires me to enter an Id for the detail view as well.. Since it's only a detail table, I don't want to insert value in it too.
What can I do?
Thank
Liron
Hi, Susett!
In addition to information, given above, i'll give you some code in C#. Here you can see a checkbox in "Col8" and binded user datasource on this column.
SAPbouiCOM.Matrix tblItems;
SAPbouiCOM.UserDataSource oUsDataSrcFormPrice;
oUsDataSrcFormPrice = frmYourForm.DataSources.UserDataSources.Add("FormPrice", SAPbouiCOM.BoDataType.dt_SHORT_TEXT, 1);
oColumn = (SAPbouiCOM.Column)tblItems.Columns.Item("Col8");
oColumn.ValOn = "Y";
oColumn.ValOff = "N";
oColumn.DataBind.SetBound(true, "", "FormPrice");
oUsDataSrcFormPrice.Value = "Y";
To check if checkbox is checked, use this code:
cbToForm = (SAPbouiCOM.CheckBox)tblItems.Columns.Item("Col8").Cells.Item(i).Specific;
bool isChecked = cbToForm.Checked;
if (isChecked)
// your code
HTH
Similar Messages
-
Hello. When I right click a cube in the solution explorer and click browse, I am presented with a Details field area which doesn't have "Drop Row Fields" area like in BIDS 2008, and doesn't have "Drop Column Fields" area like in BIDS. It just has one details
area with the message "Drag levels or measures here to add to the query".
How do I include the "Drop Row Fields" area and the "Drop Column Fields" area in this Details area so it can be like 2008?I am using MDX query to build SSRS report.
How do i get MDX query from Excel ?
Hi Vishal,
We can use "OLAP PivotTable Extension" to get MDX query in Excel, please download it from:
http://olappivottableextend.codeplex.com/
In addition, I would suggest you open a new case if you have any more questiosn.
Regards,
Elvis Long
TechNet Community Support -
Master Detail grid with flash remoting
I've been trying to populate a detail grid based on selection
from master grid I finally got the second grid (detail) to populate
when I selected a record from the first grid(master), unfortunately
I lost the text input fields for the master record that I was
binding to from the Master grid. now I'm just getting the detail
records.
The two grids are populated by 2 different queries that
reside in the same CFC.
I first populate the Master grid (userGrid) then when a row
is selected I pass the selected rows primary key to the function
that calls the detail query in the cfc. This query selects only the
records where the Master primary key = the foreign key in the
detail table.
This is a sample of the code that is in the script tag that
deals with the grid:
var responseHandler:Object = {};
var userGrid:mx.controls.DataGrid = userGrid; (this is the
master grid)
var userIdGrid:mx.controls.DataGrid = userIdGrid; (this is
the detail grid)
responseHandler.onResult = function ( results: Object):Void
{userGrid.dataProvider = results.item;
_root.setMode('add');
mx.managers.CursorManager.removeBusyCursor();
responseHandler.queryUserid_Result = function (results:
Object):Void
{userIdGrid.dataProvider = results.item;
_root.setMode('add');
mx.managers.CursorManager.removeBusyCursor();
On form load calls the getData() that populates the
Mastergrid using the master query in the CFC - this works.
the getData() looks like this:
public function getData():Void
var qArgs:Object {};
<cfoutput>
qArgs.status = '#session.status#';
</cfoutput>
_global.listingService.queryAll(qArgs);
_root.setMode('add');
mx.managers.CursorManager.removeBusyCursor();
The master grid makes the call to populate the second grid
(getUserid() in the onchange event, the PKNO column is the primary
key:
<cfgrid name="userGrid" ........
onchange="userGridChanged();getUserid(userGrid.selectedItem.PKNO)">
The getUserid () looks like this:
public function getUserid(pkno:String):Void
var userArgs:Object {};
<cfoutput>
userArgs.pkno = pkno;
</cfoutput>
_global.listingService.queryUserid(userArgs);
_root.setMode('add');
mx.managers.CursorManager.removeBusyCursor();
This function is populating the detail grid with the correct
data. When I select a row from the master userGrid.
The right hand panel has textinput fields for the master
record that are bound to the master grid- userGrid. Below these
textinput fields I have the detail grid - userIdGrid that can
contain 1 or more rows. I can only get one or the other to
populate, not both.
Is there a problem with the resultHandlers each specifing the
.dataprovider?
Any help would be greatly appreciated.
Thanks in advanced for any help,
KimYou call setMode() a lot, perchance you are clearing the
wrong data there when you don't expect it. -
Dear Colleagues,
I develop an ALV grid with OO standard methods. Before the first display of the table I define the editable fields. It works fine.
I have a problem : if the table is empty and I press the standard icons "Append a line" or "Insert a line", the new line don't have the defined editable characteristics.for fields. Is there a standard method which I have forgotten ?
Thanks a lot and kind regards
Petervs_toolbar_excluding = cl_gui_alv_grid=>mc_fc_loc_delete_row.
APPEND vs_toolbar_excluding TO i_toolbar_excluding.
vs_toolbar_excluding = cl_gui_alv_grid=>mc_fc_loc_append_row.
APPEND vs_toolbar_excluding TO i_toolbar_excluding.
vs_toolbar_excluding = cl_gui_alv_grid=>mc_fc_loc_copy_row.
APPEND vs_toolbar_excluding TO i_toolbar_excluding.
vs_toolbar_excluding = cl_gui_alv_grid=>mc_fc_loc_insert_row.
APPEND vs_toolbar_excluding TO i_toolbar_excluding.
vs_toolbar_excluding = cl_gui_alv_grid=>mc_fc_loc_copy.
APPEND vs_toolbar_excluding TO i_toolbar_excluding.
vs_toolbar_excluding = cl_gui_alv_grid=>mc_fc_loc_cut.
APPEND vs_toolbar_excluding TO i_toolbar_excluding.
vs_toolbar_excluding = cl_gui_alv_grid=>mc_fc_loc_paste.
APPEND vs_toolbar_excluding TO i_toolbar_excluding.
vs_toolbar_excluding = cl_gui_alv_grid=>mc_fc_loc_undo.
APPEND vs_toolbar_excluding TO i_toolbar_excluding.
vs_toolbar_excluding = cl_gui_alv_grid=>mc_fc_loc_paste_new_row.
APPEND vs_toolbar_excluding TO i_toolbar_excluding.
* Displaying the output in ALV Grid
vs_layout_grid-no_rowmark = 'X'.
vs_layout_grid-zebra = 'X'.
vs_layout_grid-cwidth_opt = 'X'.
vs_layout_grid-edit = 'X'.
vs_layout_grid-ctab_fname = 'CT'.
vs_layout_grid-stylefname = 'CELLTAB'.
CALL METHOD v_grid->set_table_for_first_display
EXPORTING
i_save = 'X'
is_layout = vs_layout_grid
it_toolbar_excluding = i_toolbar_excluding[]
CHANGING
it_outtab = itab[]
it_fieldcatalog = it_fieldcat[]
EXCEPTIONS
invalid_parameter_combination = 1
program_error = 2
too_many_lines = 3
OTHERS = 4.
IF sy-subrc NE 0.
MESSAGE 'ALV Grid display unsuccessful' TYPE 'I'.
STOP.
ENDIF. " IF sy-subrc NE 0
ELSE. " IF w_custom_container...
* Refresh the container if it already exists
CALL METHOD v_grid->refresh_table_display
EXCEPTIONS
finished = 1
OTHERS = 2.
IF sy-subrc NE 0.
MESSAGE 'Refreshing the container is not successful' TYPE 'I'.
STOP.
ENDIF. -
EBS with MT940 format field 86 structure - the details of remitter
Dear Sap guru,
I am starting configuration for EBS with MT940 format field 86 structured. I have got the format from Deutsche bank.
My problem is how to configure a search string to search within field 86 for Bank code of remitter (?30) and account number of remitter (?31). The search string appears to search the details of payment information (?20Bis?29) only.
Could any of you provide your expertise on this so that EBS will pick up the remitter information ?
Kind regards
taroThe field ?30 is stored in FEBEP-PABLZ.
When the field ?31 contains an IBAN, it is stored in FEBEP-PIBAN (and the corresponding BBAN is stored in FEBEP-PAKTO); in the other cases it is stored in FEBEP-PAKTO.
You should use these fields in a user exit.
(Source: program RFEKA400:)
WHEN '30'.
* BLZ Auftraggeber/Zahlungsempfänger
MOVE HEAD_2 TO XFEBEP-PABLZ.
WHEN '31'.
* Konto Auftraggeber/Zahlungsempfänger
CALL FUNCTION 'FUNCTION_EXISTS' "start n969358
EXPORTING
funcname = 'SEARCH_FOR_IBAN'
EXCEPTIONS
others = 1.
IF sy-subrc = 0.
CALL FUNCTION 'SEARCH_FOR_IBAN'
EXPORTING
i_string = head_2
IMPORTING
* e_tiban = l_tiban
e_subrc = l_subrc.
IF l_subrc = 1. "not an IBAN
MOVE HEAD_2 TO XFEBEP-PAKTO.
ELSE.
MOVE HEAD_2 TO XFEBEP-PIBAN.
ENDIF.
ELSE.
MOVE HEAD_2 TO XFEBEP-PAKTO.
ENDIF. "end n969358 -
MD form with a blob field on the detail
Hi,
I created a master detail form, my detail form is based on a table with a blob field.
I got the following error message when I hit 'OK' on the form to finish creation.
"Exception from wwv_generate_component.build_procedure (WWV-01821)
Error creating module: ORA-01403: no data found (WWV-16042)".
Why?
BTW, I can create a form based on a table with blob field without any problem, but not a master detail form.
Thanks;
Kelly.Kelly,
Please provide more details and/or send the URL/login info directly to me.
Thanks,
Dmitry -
ALV GRID with icon fields. When exports to Excel, icon fields are emtpy.
Hi all,
In our SAP system (6.0 ECC) we've noticed the following behaviour:
In ALV GRID with icons (color lights for example...) when we export the list to Excel format with the standard button bat, the icon column is always empty.
We think that in previous SAP version (4.7), the code corresponding to the icon appeared (For example @08@ for green light).
It's possible to have tha same functionality in this new version like in 4.7?
Regards.
Edited by: Ole ES on Nov 17, 2010 6:05 PMHi,
Check the format in which you export to Excel (MHTML, XML, ...) and try antoher one.
http://help.sap.com/saphelp_erp60_sp/helpdata/en/66/79ad48157f11d2953700a0c930328a/content.htm
I think the integrated Excel mode shows '@08@'.
Best regards,
Guillaume -
OO ALV grid with a header line is this possible?
Howdy!
I have a requirement where I need to produce an ALV grid with the following format:
<b>Text 1 Text 2 Text 3 Text 4
Text 6
Col_1 Col_2 Col_3 Col_4 Col_5 Col_6 Col_7 Col_8 Col_9
Cell conents -
Cell conents -
Cell conents -
Cell conents -
Cell conents -
</b>
Anyone got any idea on how to get the 'TEXT' fields into the ALV grid? These are dynamic texts that would basically display details of data entered in the selection screen.
The ALV title line is limited to 70 characters and I can't think of another way of doing this.
The texts need to appear on the ALV grid becasue the user would like to download them to Excel in addition to the ALV cell contents using the standard ALV functionality.
Any ideas would be appreciated!
Message was edited by: RobertI'm thinking that this may not work because it is not a full screen grid and the grid container does not care about the container on top of it so, it most likely would not print it. Implement this example program, you can see how this would work for you if you were using the FM.
report zrich_0001
no standard page heading.
* Global ALV Data Declarations
type-pools slis.
data: begin of i_alv occurs 0,
matnr type mara-matnr,
end of i_alv.
* Miscellanous Data Declarations
data: fieldcat type slis_t_fieldcat_alv,
events type slis_t_event,
list_top_of_page type slis_t_listheader,
top_of_page type slis_formname value 'TOP_OF_PAGE'.
start-of-selection.
perform initialization.
perform get_data.
perform call_alv.
end-of-selection.
* Form Initialization
form initialization.
clear i_alv. refresh i_alv.
perform eventtab_build using events[].
endform.
* Form Get_Data
form get_data.
select matnr into table i_alv
from mara up to 100 rows.
endform.
* CALL_ALV
form call_alv.
data: variant type disvariant.
data: repid type sy-repid.
repid = sy-repid.
variant-report = sy-repid.
variant-username = sy-uname.
perform build_field_catalog.
perform comment_build using list_top_of_page[].
* Call ABAP List Viewer (ALV)
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
it_fieldcat = fieldcat
i_callback_program = repid
is_variant = variant
it_events = events[]
i_save = 'U'
tables
t_outtab = i_alv.
endform.
* EVENTTAB_BUILD
form eventtab_build using events type slis_t_event.
* Registration of events to happen during list display
data: tmp_event type slis_alv_event.
call function 'REUSE_ALV_EVENTS_GET'
exporting
i_list_type = 0
importing
et_events = events.
read table events with key name = slis_ev_top_of_page
into tmp_event.
if sy-subrc = 0.
move top_of_page to tmp_event-form.
append tmp_event to events.
endif.
endform.
* BUILD_FIELD_CATALOG
form build_field_catalog.
clear: fieldcat. refresh: fieldcat.
data: tmp_fc type slis_fieldcat_alv.
tmp_fc-reptext_ddic = 'Material'.
tmp_fc-fieldname = 'MATNR'.
tmp_fc-tabname = 'I_ALV'.
tmp_fc-outputlen = 18.
append tmp_fc to fieldcat.
endform.
* COMMENT_BUILD
form comment_build using list_top_of_page type
slis_t_listheader.
data: tmp_line type slis_listheader.
clear tmp_line.
tmp_line-typ = 'H'.
tmp_line-info = 'Here is a line of text'.
append tmp_line to list_top_of_page.
clear tmp_line.
tmp_line-typ = 'S'.
tmp_line-key = 'Key1'.
tmp_line-info = 'Here is a value'.
append tmp_line to list_top_of_page.
clear tmp_line.
tmp_line-typ = 'S'.
tmp_line-key = 'Key2'.
tmp_line-info = 'Here is another value'.
append tmp_line to list_top_of_page.
endform.
* TOP_OF_PAGE
form top_of_page.
call function 'REUSE_ALV_COMMENTARY_WRITE'
exporting
i_logo = 'ENJOYSAP_LOGO'
it_list_commentary = list_top_of_page.
endform.
Regards,
Rich Heilman -
Standart GR/IR report with the following fields?
Hi All,
Transaction FBL3N gives a list of open GR/IR items at a keydate. However, I'm looking for the following fields to appear in the output
Purchasing doc#, line item, Vendor number, vendor name, Material, Quantity, Accounting document no., Document date and Amount.
I've tried adding certain fields using the Layout option but still havent got all these fields together. Is there any standard SAP report which would give me this output or would I need to develop a custom report?
I also tried ABAP query but there;s no link between an accounting document and Purchase order apart from the "Assignment" field in the BSEG table which has purchase orderno. and line item combined into a single text field.
Thanks
TejasHi
There is no specific standard report for getting the details required by you.
In FBL3N you will get only the FI vendor line items but all the details required by you is not possible.
BUT you can go for the ABAP Report.
TABLES: RSEG,EKKO, EKPO, EKBE, BSAK
Use the "Object key" = (MM invoice number along with fiscal year it comes10+4 is length of the field take the invoice number use the same in RSEG and you will get the the PO details and material details)field in the BSAK for linking both the BSAK and RSEG
VVR -
Master-detail: detail field not displayed after changed by master field
I want to use the Depends on item with Clear/refresh value functionality in a master detail situation. Within the same group it is no problem to use the setter method of a field to change a second field and then displaying this new value. But in the detail group, I can not select items from the master group as a depends on item.
In the setter of the master field, the value in a field for each row in the detail (table layout) is updated. The only problem is that this updated value is not displayed, the old value doesn't change. When saving the changes, the displayed value is committed to the database. When de updated field is not displayed at all, the correct value is saved, so I know the detail field is updated.
How can I make sure the displayed value in the detail is displayed after changeing a master field? I already gave the detail field the correct partial trigger.Wouter,
I guese you don;t see the changed value when you display the detail item because after the depends on item update changed the detail item, JSF procesing continues and the detail table changes are sent to the server which will override again the detail item attriibute, resetting it to the old, still displayed value.
So, the trick is to get PPR working. Make sure the partialTYriggers property of the detail item is set to the value of the id property of the master item. If it still doesn't work, try setting the partial triggers property on the table, instead of the individual item.
Steven Davelaar,
JHeadstart team -
Report with multiple Detail Area
Hi All,
Please see the Report pointed to the link below:
[Report with multiple Detail Area|http://us.share.geocities.com/felix5ac/fairway.jpg]
Some Explanations:
========================
(1) The line with "ABCDEFGH..." is variable data coming from the database in the Detail Area
(2) The lines with "WBLNX'" "123, 123.12",
"WBLNX'"
are variable data associated with the same Heading: "ABCDEFGH..."
(2b) There can be multiple lines of data in the detail area (i.e. 1 or more "ABCDEFGH..." and the associated WBLNX and numbers...)
(3) Item Code Descriptions ==> is a Header Info
(4) ARL ... and FPHI... ==> are variable data and lines in these area can be 1 line; it can be 4 lines; it can be 10 lines...
(5) Lines FROM "Artwork Procedures..." to the the end of the page are static.
QUESTION:
===================
How do I best design these Report with the multiple detail areas? Again, please see link of the Report above...
Thanks and Best regards,
FelixHi Felix
You can place the less detailed fields in the regular sections of the report and wherever you require multiple lines you can use the subreports.
Hope this helps.
Regards
Nikhil -
Display amount in ALV Grid with different Decimal Places based on Currency
HI Experts,
Working with ALV Report i have one Amount field NETWR which is having Length 15 and Decimal Places 2.
we have two different types of currency's AED and KWD and AED having 2 decimal Places and KWD having 3 decimal places.
im using FM: REUSE_ALV_GRID_DISPLAY for Display. value storing in Table was like this
AED---22.56
KWD---225.65
i need to display values like AED : 22.56HI Experts,
Working with ALV Report i have one Amount field NETWR which is having Length 15 and Decimal Places 2. we have two different types of currency's AED and KWD and AED having 2 decimal Places and KWD having 3 decimal places.
im using FM: REUSE_ALV_GRID_DISPLAY for Display. value storing in Table was like this
AED---22.56
KWD---225.65 (converting this value to 22.565 using BAPI_CURRENCY_GETDECIMALS according to currency in my Report)
i need to display values like AED : 22.56
KWD---22.565 but here field is NETWR with 2 decimal.
Need to Display amount in ALV Grid with different Decimal Places based on Currency
Regards,
Dileep Kumar Reddy -
How to create a pdf/a-1b with a text field
hello, I'm trying to execute a very simple task: create a pdf/a-1b containig a text field.
using Acrobat XI pro, I created a simple pdf form with 1 form field of type text , then tried to save as pdf/A-1b. The pdf is saved but the form field is removed from resulting pdf.
Here in detail the steps I made:
0) configure adobe pdf printer to save as pdf/A-1b
1) creat a test.txt with notepad
2) print using acrobat pdf printer
3) open the generated pdf with Acrobat XI
4) in 'Standards' panel I see that pdf conform
5) now go to 'Tools\Modules' and 'Modify'
6) add a textbox field
7) exit from 'Modify' mode and save
8) in 'Standards' panel I see that pdf doesn't conform.
9) I opened the preflight tool and see two errors
a) "XMP property for a page object not predefined and no extension schema present".
page reports the following Trigger values:
- Extension schema is present in XMP: is not true
- Property exists in PDF/A Standard: is not true
b) Form field does not have an appearance dictionary
page reports the following Trigger values:
- Form field has an appearance dictionary: is not true
I'm quite new to Acrobat: simply downloaded the Actobat XI evaluation version, created the file and added the text field. No special settings nor other configurations was applied,
I'm wondering if someone else was able to reproduce this behavior.
thank you for any commentFirst, about invalidating the PDF/A. I was told, but never had this confirmed nor tested, that editing a PDF/A will automatically cause the PDF/A status to be deleted from the file. This is because Acrobat does not know about the compatibility of every edit with every current (and future) PDF subset standard, so it is safest just to remove the indicator - if you turn off Adobe's PDF/A view mode which will prevent editing anyway.
Now, you have a problem with the signatures. Possibly a very big one. Your description "2) fill the text field with some annotations and then sign the signature field 3) save the pdf" is a little too separated. At the time a file is signed it is saved, the hash calculated, and written to the file. So signing and saving are just one action. Yet an unsigned digital signature needs, it seems to me, no appearance.
I think the solution is a simple one. Sign it, but not with a signature field. If it is PDF/A when you start it is probably PDF/A when you finish. Signature fields seem a distraction and obstacle to the important thing, signing. -
Is there a way to print the check register with the Text field
Hi,
Is there a way to print the check register with the Text field and also each item's Text field?"
When we enter a invoice we enter a generic text on the Basic Data tab then enter a "+" on each individual line item which in turns defaults to the generic text. Just wanted to know if the check register could draw in the individual line item detail where we can enter text that relates to just that line item. Sort of like the MIR7 draws in the detail for each item.
Kindly help me in full fill the above requirement.
Thanks
SunithaHi,
Can any one help me on this issue?
Thanks
Sunitha -
How to create a group with multiple data fields
Post Author: RichS
CA Forum: Formula
Using CR XI. Using CSV input from ODBC text driver. No problems here.
There are 3 fields that I want the same group by action. Is this possible?)
If any one of these 3 fields change I want some header information and column fieldnames to display. The header information I only want displayed on the first page (on the change) and the column fieldnames to display on every page. I have played around with things like "InRepeatedGroupHeader" and "report group header on each page". I am not getting all the results that I am looking for though.
I want report to look like:
Page header stuff (to display on every page) This data consists of some fields that will have static data and will display on every page. And it consists of 3 non-static fields that I want to group on.
Group header stuff that I only want displayed on the first page on a change from one of the 3 fields mentioned above.
Column headings that I want displayed on every page.
Details data
Group footer stuff (details not important for this)
I get the expected output (column headings displayed on every page, and group header stuff display on the first page on each group change) with one group field. But I want the group change to happen for all 3 fields.
It seems simple but I can't find a way to create a "group" so if "field1 or field2 or field3" change, I get the same "group by" action. I just need to know how to get the expected action.
I expect that I might have some terms mixed up and/or some important information that would aide you in helping me. If that is the case please re-post and I will add any missing or mis-stated information.
Thanks,Post Author: V361
CA Forum: Formula
I am slightly confused, but perhaps you can create a formula
Then group on the formula. If this is not what you want, could you post some sample data, with the desired results.
Maybe you are looking for
-
How to delete when file in use by the finder?
I have two files in my trash which won't delete. I get the error that they are being used by another program. Holding down option, using secure empty trash, using the terminal method of deleting the trash.. none of them work. So I did the terminal co
-
Can you make some columns Read/Display Only in DataSheet view?
I noticed on another posting what appears to be a datasheet view with 3 of the columns in a display mode. Can someone confirm if this is possible? Here is the original posting. http://social.msdn.microsoft.com/Forums/en-US/sharepointcustomizationprev
-
How do I download an ebook to read in itunes? I have windows 7 and itunes 12
How do I download a book to read in itunes? I have windows 7 home premium and itunes 12? I think my computer is authorized and my account is up to date.
-
Moving photos from photo stream and camera roll into a photo library?
Can I move photos from camera roll or photo stream album to an album I created?
-
Hello! My setup: - I'm using Aperture 2.1.4 on an iMac 3.06 GHz with 4GB 800 MHz DDR2 SDRAM, 1 TB harddrive and Mac OS X 10.5.8. - Right now I have 8 Projects with 3.250 photos. The Aperture-Library - 3.62GB - is on the internal harddrive. - The orig