Swapping the fields in a view cluster
Hi
I have a view cluster with the fields in the order FIELD1, FIELD2, FIELD3, FIELD4.
My requirement is that it should come in the order FIELD1, FIELD4, FIELD3, FIELD2.
Help me on this.
Thanks in advance.
Regards
Karthik
after fetching you can pass them to the required order into another internal table of the required order.
or define you internal table the way you want the data to come and in select statement it self you can use into corresponding fields to get the data in their respective positions
Similar Messages
-
I have created numerous forms in Designer and for some reason, "Edit in Designer" from PDF, I cannot edit any of the fields in Design View.
Is it possible you accidentally put the fields on the master page?
-
Refreshing the fields in a view
Hi Gurus,
I have a requirement of refreshing the values of fields in custom assignment block when clicked on NEW tab in WEB UI.
If I open an existing campaign and then i click in NEW, then the values of custom fields are not getting refreshed. these fields are created using Value nodes and the assignment block is custom one.
Also few of the fields are made Display only as per business requirement. So these values are getting stored by default for the new entry.
Please help me through this.
Thanks,
AmeyI think the mistake u did is populating the collection/entity of your custom view in some other place rather than on_new_focus method of the context class. So when u first time come to the view, it is calling your custom code and populating your custom view. But when u click new, it is not executing that method and it is not refreshing. on_new_focus is called everytime
you change to new or open in edit mode..that method should be declared as event handler method..
Move your code to the on_new_focus method of the particular context node. see standard codes how that is created and used...
e.g. you can see the component/view BT112H_SC/Details, context node BTPARTNERSET and method CREATE_BTPARTNERSET of CL_BT112H_S_DETAILS_CTXT of how it is used. -
Purpose of the the field EDIVIEW ( Idoc View) in table EDP13.
In table EDP13. what is the filed EDIVIEW ( Idoc View ) where can i find it. what is the purpose of this field
Hi,
The purpose of EDIVIEW is used to read the attributes and syntax of an IDoc view. The attributes of the IDoc view contain the description of the IDoc view, as well as the assigned basic type, the assigned extension and the assigned logical message.
You can find this information in table EDVIEW. Also you can use FM EDI_VIEW_READ to get the same information.
Hope this will help.
Regards,
Ferry Lianto -
Cannot select the fields for table view WB2_V_MKPF_MSEG2
Hi, I have a program where the query is using join statement of MSEG and MKPF. As part of the performance enhancement I use Table View WB2_V_MKPF_MSEG2 instead.
Validation: Entries in MSEG and MKPF is the same as in WB2_V_MKPF_MSEG2 = OK (via SE16)
But upon debugging the program on SY-SUBRC breakpoint, I can see 5 rows appended in internal table T_MSEG "BUT" the entries are all blank.
The entries in my SE16 are exact data that's appearing on the filter statement in my SQL query below. SE16 is giving correct output, but using table view in my SQL does not give me the correct output.
(Note: This is my first time to use table view in ABAP-SQL)
SELECT MATNR_I BWART_I MENGE_I
FROM WB2_V_MKPF_MSEG2
INTO CORRESPONDING FIELDS OF TABLE T_MSEG
WHERE MATNR_I IN R_MATNR3
AND MATNR_I IN R_COMPNTS
AND WERKS_I EQ P_WERKS
AND BWART_I EQ '931'
AND BUDAT IN S_GSTRP
AND MJAHR EQ W_DOC_YEAR.
IF SY-SUBRC EQ 0.
ENDIF.
THANKS, appreciate your inputs.
Regards,
JunHi Suhas,
I just did a short test just now:
REPORT ZTEST_SELVIEW.
TABLES: WB2_V_MKPF_MSEG2.
TYPES: BEGIN OF Y_MSEG,
MATNR LIKE MSEG-MATNR,
BWART LIKE MSEG-BWART,
MENGE LIKE MSEG-MENGE,
END OF Y_MSEG.
DATA: T_MSEG TYPE STANDARD TABLE OF Y_MSEG.
SELECT MATNR_I
BWART_I
MENGE_I
FROM WB2_V_MKPF_MSEG2
INTO CORRESPONDING FIELDS OF TABLE T_MSEG
WHERE MATNR_I EQ '000000000000004000'
AND WERKS_I EQ '0288'
AND BWART_I EQ '931'
* AND BUDAT EQ '20071117'
AND MJAHR EQ '2007'.
IF SY-SUBRC EQ 0.
ENDIF.
In my debug, T_MSEG contains the same number of rows that my SE16>WB2_V_MKPF_MSEG2(using the hard coded statement in my SQL) "BUT" each rows does not have any entries. Bottomline, I can't only see blank entries in ITAB T_MSEG but the rows are being selected properly, so the itab contains x-number of rows with blank entries.
Thanks. -
How to maintain the data in the view cluster
we are doing upgrade, we have one view cluster app_log in this object scwb
and subobjects is swtlo1,02,03 like i have some subobjects in 4.6c we transported the view cluster to ecc6.0 in ecc 6.0 i have object scwb but subobjects doesn't exist how to maintain the subobjects in view cluster.Definition
A view cluster is a group of maintenance dialogs which are collected in one maintenance unit for business or technical reasons. They allow related data in more than one table/view to be maintained consistently.
Use
Whereas only 1:1 relationships can be processed in maintenance views (except for language-dependent texts), key extensions and relationships of cardinality N:M can also be handled in view clusters. Maintenance dialogs with no key, or partial key-dependence, can also be combined into view clusters.
Grouping dialogs into one maintenance unit has the following advantages for data maintenance:
Navigation: A view cluster contains convenient standard navigation between the individual maintenance dialogs. This simplifies the maintenance of the data in a view cluster.
Consistency: The view cluster ensures data consistency when deleting, copying, saving, retrieving and manually transporting data. For example when an entry in a higher-level view is deleted, , it automatically ensures that all dependent entries in lower-level views are also deleted.
You can first split tables with a lot of fields into various views and then collect them into a view cluster.
Use tabs to format very wide tables with a lot of fields.
Structure
Navigation in a view cluster is usually based on the hierarchy of the tables/views on which the dialogs are based. A view cluster usually consists of one or more root dialogs and the at most 14 maintenance dialogs which depend on them. A view at a lower level has one or more additional fields in its key compared its higher-level view. Each data record at the higher level has several dependent data records below it.
Each maintenance dialog is an independent unit consisting of an overview screen or an overview and a detail screen, depending on the dialog type. As well as the data to be maintained, the overview screen contains a navigation area, in which you can go to higher or lower level maintenance dialogs.
One-level maintenance dialogs only contain one screen, the list screen, in which all existing data records are displayed in a table. In a two-level maintenance dialog, double-clicking on a data record in the list screen takes you to the detail screen, which displays all the fields in the selected data record.
Generate a maintenance dialog for each view before you call the cluster maintenance (SM34). When you generate the maintenance dialog, flag the key fields which are identical in the view and its higher-level in the cluster, with the maintenance attribute S. The system fills the key fields when you go from the upper to the lower level, with the values of the data record selected in the upper level. Go to the transaction SE54 to define a view cluster.
<b>Rewards point if useful.......</b>
regards....
Abhaysingh. -
Need Code for FM for extracting the fields in view!
Hi,
can any one here pls give me the sample code for the function module, extracting all the fields in view ?
Thanks,
RaviNo No,
I need to append two more fields other than the fields existing in View.and for that i need to create FM as per the requirement. they do not want view in the data source definition any more.
now i want a sample code for Building the FM code
Hope i am clear this time
Thanks,
Ravi -
Error while creating a View Cluster
Hello Gurus,
I have created two maintenance views ZVIEW1 & ZVIEW2 with table maintenance generator.Know I am trying
to create a view cluster using these views.
I have Proceeded with the following steps to create the View Cluster:
1. Tcode : SE54 --> GIven the name ZVIEWCLUSTER as View Cluster name & pressed ENTER.
2. Filled the description of the View cluster.
3.Selected the tab OBJECT STRUCTURE and filled it with ZVIEW1 & ZVIEW2.
4.Selected view ZVIEW1 and clicked on button "FIELD-DEPENDENCE" ,System throws a message
"Field-dependence generated succesfully"
5. Selected view ZVIEW2 and clicked on button "FIELD-DEPENDENCE" ,System throws an error message
"No log generated".
Am stuck up at point 5 in the above mentioned steps.
Please guide me in coming out of this error message.
Regards,
NajamHi Najam,
I don't think you need to define field dependencies for both tables, you only define the relationship from the second table to the first.
Double-click on the Field dependencies folder and check the link between the two tables is correctly defined, if so you don't need to generate the field dependency twice.
Regards,
Nick -
HI All,
I need add the field IDTYPE to view BP_EMPL_SEARCH.
WHAT ARE THE STEPS TO DO SO?
well as possible detailing the steps because I'm new to crm
Thank you very muchHi,
Can you please explain your requirement, do you want to search contact's by identification types?
If that's the requirement let me know will explain in detail how to enhance contact search by bp identification number's..
Cheers,
Sumit Mittal -
Change the description of the field
Dear All
I have a requirement where in i have to change the decription of the field " sales district" to "cluster" in the customer master.Can anybody please guide me how to do that??I have tried to go to SE11 against the table KNVV & searched for VKBUR field to change the description but wasnt able to navigate further to resolve the issue.Hi,
use transaction cmod. In the menu point GoTo -> Text enhancements -> Keywords -> change. You will see a pop up Key in your data element. Now you can change the field describtion.
Regards
William -
Passing field values from View Controller to Custom Controller
Hi Experts,
I am working on a customer requirment in which customer want to see the values of field from one view in another view. The Context node & Context node attribute are the same in both the views.
I am aware that we need to pass the field values from view controller to custom controller in order to see the field in the subsequent view. I would like to kow how i can achieve that technically?
Kindly let me your valueable suggesions.
Best Regards,
PrabaharHi Carsten,
Thank you for the detailed feedback.
I want the fields ID_TYPE & ID_TYPE_DESCRIPTION from IUICMD/SearchAccount to be available in IUICMD/DetailAccount. I have created a context node u201CSEARCHu201D in view IUICMD/DetailAccount. I have created the context node with out choosing u201CCreate with Instanceu201D. This Context node (SEARCH) is already available in IUICMD/SearchAccount as part of the standard.
Below given is contents of the Method CREATE_SEARCH of my context class ZL_IUICMD_DETAILACCOUNT_CTXT of view IUICMD/DetailAccount, which is created by the Wizard during enhancement.
method CREATE_SEARCH.
DATA:
model TYPE REF TO if_bsp_model,
coll_wrapper TYPE REF TO cl_bsp_wd_collection_wrapper,
entity TYPE REF TO cl_crm_bol_entity, "#EC *
entity_col TYPE REF TO if_bol_entity_col. "#EC *
model = owner->create_model(
class_name = 'ZL_IUICMD_DETAILACCOUNT_CN00'
model_id = 'SEARCH' ). "#EC NOTEXT
SEARCH ?= model.
CLEAR model.
bind to custom controller
owner->do_context_node_binding(
iv_controller_type = CL_BSP_WD_CONTROLLER=>CO_TYPE_CUSTOM
iv_name = 'IUICMD/CuCoMD' "#EC NOTEXT
iv_target_node_name = 'BUILHEADERSEARCH'
iv_node_2_bind = SEARCH ).
endmethod.
I have enhanced the Custom Controller. Now it have new implementation class u201CZL_IUICMD_CUCOMD_IMPLu201D
Let me know where I am doing mistake
Thanks in advance
Best Regards,
Prabahar
Edited by: Prabahar Raju on Sep 2, 2009 10:47 AM
Edited by: Prabahar Raju on Sep 2, 2009 10:52 AM -
Dear all,
Pls show me how to delete a View Cluster that made by Se54?
Thanks,
Quanglv- in SE54 put the name of your view cluster and go to menu Environment / Maintenance Objects / Change
- confirm
- on the next screen click on the Delete button in toolbar (or Shift-F2)
- confirm -
Sorting of a field in view cluster
Hi All,
Is there any way to sort a field in main screen of view cluster.
SE54->Edit view cluster->Test. I want to sort a field in main screen, after pressing test.
Is there any event for this?
I know the events which get called after pressing test, but tables TOTAL and EXTRACT are blank in these events so I can't sort them.
Pointers will be highly appreciated.
Regards,
Seemahi
In your method there would be a parameter ie ON_TOGGLE where you can write the name of your event .
Whenever your checkbox will be clicked that event wil be called.
You can write your code in that event itself.
Regards
Kuldeep -
F4 help for a field in item table in a view cluster
Hi All,
I have a view cluster with two tables. I should provide F4 help for field in item table based on the selected row of the header table.
F4 should have only values fetched based on the header table entry.
How can i achieve this. Please suggest.
Regards,
Kusuma K.Hi amar_war,
use screen painter to edit the screen layout where the field VKBUR is on. Double click the field to get the details screen. Here you can attach a search help to the field.
H_TVBUR has no more parameters, it will display a list of al sales offices with description text
H_TVBVK will also show the sales group, if VKGRP is a screen field, it will restrict the result list automatically on matching VKGRP.
H_TVKBZ has also VKORG VTWEG SPART - it will take those values from screen if filled.
If you are not satisfied with the results, you can easily create your own search help using own selection method and own search help exits if required.
Try standard search help for standard field first.
You can create a copy of VKBUR as ZVKBUR and attach search help there, you can create your own screen structure and attach the search help there - 50 ways to get your search help...
Regards,
Clemens -
Dump while copying the entries in view cluster
Hi Experts,
I am having a scenario where i am getting the dump while copying the entries through the vies cluster.
I have 2 tables CU00 and CU01. CU01 is depended on CU00.
CU00- it is having schema which are defined by the user.(SCHEMA-P,DESC)
CU01- this table is having the different tabs in a tab strip for a each of the user defined schema.(SCHEMA-P,SEQNO-P,TABID)
the data will be as follows
In CU00
SCHEMA1 first schema
SCHEMA2 second schema
In CU01
SCHEMA1 01 TAB1
SCHEMA1 02 TAB2
SCHEMA2 01 TAB2
SCHEMA2 02 TAB3
I maintained above 2 tables in a view cluster by making CU00 is the start point and defined the field dependencies as well.
in the T-code SE54 i tried to copy the existing schema and all its dependencies(means all the dependent entries in the CU01 table also).
when i pressed the SAVE button it is going for the dump by saying due to duplicate entries in the table CU01.
but it should check the consistency and display the error message when i pressed the COPY key.
I am badly struck up here. Please help me on this issue.
thanks in advance.Hi Gouri,
CU01 and CU00 both are dictionary tables.
What I think is, while copying all the dependencies for a particular schema the system ha to check whether the data can be inserted into the child tables or not. I too dont know whether this can be done or not.
If not, it should display an error message stating that " primary key violation occurs please use different key values..."
thanks for the reply.
Maybe you are looking for
-
AirPlay between Mac and Apple TV
Hi there, I just bought Apple TV and I am trying to connect my Macbook Pro (2012 model) to Apple TV. I know that I have to go to AirPlay, but my computer does not give me the option. I go to system preferences, settings, and I am not given an option
-
Find corresponding BPM to message in SXMB
Hello everybody, we made a mass test: 500 IDOCs where send through BPM to call a JDBC insert. Now there is just one insert with an error and I want to find the corresponding BPM to find out, which IDOC caused the error. Where is the link from SXMB_M
-
Matrix Select Row And Click()
Good Day Experts: I am in a bit of a quandry here today. I cannot figure out why I am unable to programatically acheive the 2 following actions: 1)Select a row in a Matrix 2)Click in a field to set cursor I have the right
-
How to increase size of letters in scripts?
hi, now in some information in print output of PO is in very small size not able to see. So i want to increase the size. How is it possible . can any please help... In my code tag column taken as "ZI'. thanks
-
I don't know what more I can provide until maybe it pops up again....which I'm sure it will.