How to populate value of a Z table which is a value node for the context?
Hi,
My requirement is to display the content of a z table onto a webpage, for this a have create a z component having a tableview with value node (Z table) assigned.
In output its showing the table with table columns name. But how to display the content of that table?
Regards,
Payalg
The get_xxxX methods should be automatically created and there is no need to add any code .. it generally has this kind of code.
DATA: current TYPE REF TO if_bol_bo_property_access.
DATA: dref TYPE REF TO data.
value =
CNODE1 not bound'."#EC NOTEXT
if iterator is bound.
current = iterator->get_current( ).
else.
current = collection_wrapper->get_current( ).
endif.
TRY.
dref = current->get_property( 'FIELD1' )."#EC NOTEXT
CATCH cx_sy_ref_is_initial.
RETURN.
ENDTRY.
IF dref IS NOT BOUND.
value = CNODE1/FIELD1 not bound'."#EC NOTEXT
RETURN.
ENDIF.
TRY.
value = if_bsp_model_util~convert_to_string( data_ref = dref
attribute_path = attribute_path ).
CATCH cx_bsp_conv_illegal_ref.
FIELD-SYMBOLS: <l_data> type DATA.
assign dref->* to <l_data>.
please implement here some BO specific handler coding
conversion of currency/quantity field failed caused by missing
unit relation
Coding sample:
provide currency, decimals, and reference type
value = cl_bsp_utility=>make_string(
value = <l_data>
reference_value = c_currency
num_decimals = decimals
reference_type = reference_type
value = '-CURR/QUANT REF DATA MISSING-'.
CATCH cx_root.
value = '-CONVERSION FAILED-'. "#EC NOTEXT
ENDTRY.
Similar Messages
-
How to populate value node with values?
Hi Experts,
I have created a new view with a vlaue node of table type.
How can I populate values into the value node?
Which method will be useful?
Is there any material for Web UI Programing?
Please help me in this.
Thanks,
Adi.Hi Adi
If ZVal is your value node then,
DATA: lref_entity TYPE REF TO cl_bsp_wd_value_node,
lref_bo_coll TYPE REF TO if_bol_bo_col,
lref_data TYPE REF TO <<your ZStructure>>,
ls_data type <<your ZStructure>>.
ls_data-<<field1>> = 'XYZ'
ls_data-<<field2>> = 'XYZ'
CREATE OBJECT lref_bo_coll TYPE cl_crm_bol_bo_col.
CREATE DATA lref_data.
CREATE OBJECT lref_entity
EXPORTING
iv_data_ref = lref_data.
lref_entity->set_properties( ls_data ).
lref_bo_coll->add( lref_entity ).
typed_context->ZVal->set_collection( lref_bo_coll ).
Hope this was helpful.
Best Regards,
Lakshminarayana -
Table which gives all change log for the Documnets( Contract)
Hi folks,
I need to know wchich table will capture all the change log in documents (contratc, quotaion , sales order)
please let me know the Table name where i can get change log details when i input the order no.
Its very urgent please let me know ASAP.
Thanks,
Ravi
Edited by: raviraju nadimpally on Sep 4, 2008 9:28 PMHello,
check these tables CDPOS, CDHDR
Prase -
How to populate values in to dropdown in table ui element
Hi,
according to my scenario i have atable with five records ...andi have acolumn name DATE and it contains 5 dropdowns with some values i.e dates from jan 1 2008-dec 31 2008.user needs to select only those values which are in dropdown. can u tell me the code to populate values in to dropdown in table UI element.
Thanks
RajuHi,
you can go for two drop downs like DropDown by Key or Drop Down by Index as per requirment.
Create context Node for the table UI, in that one will be for ur drop down. Create element for the Context node and add thses to the conetxt.
Code example for DropDownBy Key:-
ISimpleType simpleType = wdContext .nodeProjEstiTable().getNodeInfo()
.getAttribute("projphasname") .getModifiableSimpleType();
IModifiableSimpleValueSet svs1 =
simpleType.getSVServices().getModifiableSimpleValueSet();
svs1.clear();
for (int j = 0; j < projphasname.length; j++) {
svs1.put(projphasname[j][1], projphasname[j][1]);
for DropDownBy Index you can work in normal way means try to create element for the respective context attribute.
Hope this may help you...
Deepak -
How to populate multiple entries to Bapi Table
Hi all,
How to populate multiple entries to Bapi Table.....
Here is the code(in component controller)
Z_Recr_Apply_Point_Input request = new Z_Recr_Apply_Point_Input(WDModelScopeType.TASK_SCOPE);
int size = wdContext.nodeApplicants().size();
for(int i = 0 ; i < size ; i++)
String isselected = wdThis.wdGetContext().nodeApplicants().getElementAt(i).getAttributeAsText("Appl_Number");
if(isselected == "true")
com.models.veteranpoint.Zrecr_Aplno appid = new
com.models.veteranpoint.Zrecr_Aplno();
appid.setAppl_Number(wdContext.nodeApplicants().
getApplicantsElementAt(i).getAppl_Number());
request.addApplicants(appid);
I want to pass the selected input field to bapi..
Please tel me where i pass the input field...
Please correct my code...
Thanks & regards
Mathi sHi,
Steps to insert multiple entries to BAPI table.
1.Create an instance for BAPI input
2.Bind the instance to the Node of the BAPI input
3.Create instance of the Structure(BAPI table) to which input has to be added.
4.Set the input values to the Structure instance.
5.Add the instance to the BAPI input.
6.Execute
From the given example,I assume Z_Recr_Apply_Point_Input is the BAPI Input and com.epiuse.us.recruitment.models.veteranpoint.Zrecr_Aplno as Structure
Step 1:
Z_Recr_Apply_Point_Input request = new Z_Recr_Apply_Point_Input(WDModelScopeType.TASK_SCOPE);
Step 2:
<b>wdContext.nodeZ_Recr_Apply_Point_Input.bind(request);</b>
Steps 3 & 4:
int size = wdContext.nodeApplicants().size();
for(int i = 0 ; i < size ; i++)
String isselected = wdThis.wdGetContext().nodeApplicants().getElementAt(i).getAttributeAsText("Appl_Number");
if(isselected == "true")
com.epiuse.us.recruitment.models.veteranpoint.Zrecr_Aplno appid = new
com.epiuse.us.recruitment.models.veteranpoint.Zrecr_Aplno();
appid.setAppl_Number(wdContext.nodeApplicants().
getApplicantsElementAt(i).getAppl_Number());
<b>wdContext.currentZ_Recr_Apply_Point_InputElement().modelObject().addRecr_Aplno(appid);</b>
Step 5:
<b>wdContext.currentZ_Recr_Apply_Point_InputElement().modelObject().execute();</b>
Regards,
Viji Priya -
How to populate values into a Listbox on selection screen
Hi All,
Please any one let me know how to populate values (for ex.01,02 and 03) in a list box of selection screen..
Thanks,
VijayTry this code ...
REPORT ZLISTBOX.
TYPE-POOLS: VRM.
TABLES SPFLI.
TABLES SSCRFIELDS.
DATA flag.
DATA: NAME TYPE VRM_ID,
LIST TYPE VRM_VALUES,
VALUE LIKE LINE OF LIST.
PARAMETERS PS_PARM LIKE SPFLI-CARRID AS LISTBOX VISIBLE LENGTH 5
USER-COMMAND fcodex.
data: i_spfli type spfli occurs 0 with header line.
PARAMETERS PQ_PARAM LIKE SPFLI-connid AS LISTBOX VISIBLE LENGTH 15
USER-COMMAND
fcodey.
*DS AS CHECKBOX USER-COMMAND FLAG.
INITIALIZATION.
NAME = 'PS_PARM'.
DATA T TYPE I VALUE 0.
SELECT DISTINCT carrid into corresponding fields of table i_spfli FROM
SPFLI.
loop at i_spfli.
VALUE-KEY = i_spfli-CARRID.
VALUE-TEXT = i_spfli-CARRID.
APPEND VALUE TO LIST.
endloop.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = NAME
VALUES = LIST.
AT SELECTION-SCREEN.
if sy-ucomm eq 'FCODEX'.
REFRESH LIST.
CLEAR LIST.
PQ_PARAM = ' '.
NAME = 'PQ_PARAM'.
SELECT * FROM SPFLI WHERE CARRID = PS_PARM.
VALUE-KEY = SPFLI-connid.
VALUE-TEXT = SPFLI-connid.
APPEND VALUE TO LIST.
ENDSELECT.
endif.
AT SELECTION-SCREEN OUTPUT.
LOOP AT SCREEN.
IF SY-UCOMM NE 'FCODEX' OR SY-UCOMM NE 'FCODEY'.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
ID = NAME
VALUES = LIST.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
START-OF-SELECTION.
clear i_spfli.
refresh i_spfli.
select * into table i_spfli from spfli where carrid = ps_parm and connid
= pq_param.
loop at i_spfli.
WRITE: / 'CITY FROM:', I_SPFLI-CITYFROM, 'CITY TO :',I_SPFLI-CITYTO,
'DEPARTURE TIME :', I_SPFLI-DEPTIME.
ENDLOOP. -
How to populate values in List Box in Adobe form
Hi,
How to populate values in List box in adobe forms?
Thanks
RBif you want to display a fixed values in the dropdown you can use list box ui and can specify values there
or if u want to display values from the context node of the webdynpro
1. Drag and drop a Value Help Drop-down List element from the Web Dynpro Library tab to the Body Pages pane.
2. Drag and drop your node from the Data View tab onto it. This action binds the layout element to the corresponding node.
with regards
shanto aloor -
How to populate values for a new field in target infoprovider
Hi Experts,
am new to BI. i would like to know on how to populate values for a new field in the target cube with start rotuine.In my case, i have a source infoprovider, which has 3 fields and a target infoprovider, which has 5 fields. i need to populate the new 2 fields in start routine. i dont want to populate using Field routine and am using 3.5 version. please assist with code on how to solve this issue.
Thank you,
Chitra.
Edited by: Chitra_BI on Jun 13, 2011 10:23 AMDebug the standard code and see where the other fields are getting update. you can use the similar approach and area to code for the new field.
Regards,
Lalit Mohan Gupta. -
How to create value request for screen field text box tt1
How to create value request for screen field text box tt1
i have a text box name tt1,
i want f4 help for that .
remember i am asking for screen i.e done from screen layout not selectio-screen.
Thank you,
Regards,
Jagrut Bharatkumar Shukla,Hi,
Create one Search Help in the SE11 for the particular Field that u want to display. In the Screen(Transaction SE51),For that Text Box in the Attributes,in Dict Tab ->Search Help Field give that Search Help Name.
For Eg,
If u want Purchase Order Numbers in that F4 Help.Create one <b>Search Help</b> by giving Table Name as <b>EKKO</b> & <b>Search Help Parameter</b> as <b>EBELN</b> with Lpos & Rpos as 0 & 1.Save & Activate it.
Give this Search Help Name in Dict Tab ->Search Help Field of that Screen Attributes.
Regards,
Padmam. -
On a form, using the value "image/*" for the accept attribute of the HTML input Element, how can I add .pdf to the array of pre-configured file types (.jpe, .jpg, .jpeg, .gif, .png, .bmp, .ico, .svg, .svgz, .tif, .tiff, .ai, .drw, .pct, .psp, .xcf, .psd, .raw)?
Say I wanted to add .gif, .jfif or .ico. I find this array limited, how can I add types to image?
<input type="file" name="file" accept="image/*" id="file" />
mimeTypes.rdf does not seem to allow this.''mimeTypes.rdf'' has nothing to do with web development. It's a file that stores your file handling preferences (e.g. if you want ZIP files automatically saved or opened).
You can't change the file types of the pre-defined content specifiers (audio/*, video/*, image/*), but you can specify additional MIME types. To add PDF to your above example,
<pre><nowiki><input type="file" name="file" accept="image/*,application/pdf" id="file" /></nowiki></pre>
For details, see
* [https://developer.mozilla.org/En/HTML/Element/Input developer.mozilla.org/En/HTML/Element/Input] -
How to give Value set for model attribute?
Hi all,
How to give value set for model attribute?
plz explain me with some sample code.
Regards,
SrinuHi Srinivasulu,
An attribute (of basic data types like integer , string etc) holds a single values.
Please clarify by what you mean value set ?
Also, share the structure of context.
Regards,
Kartikaye -
How can i join more than 20 tables which contains more than 5 lacks records
how can i join more than 20 tables which contains more than 5 lacks records
If you're trying to join 20 tables I would check:
- Are all the joins necessary. It's easy sometimes to just join to another table because you're unsure as to whether it's required.
- What sort of application is it? 20 joins seems a lot to me. Are you trying to achieve too much with one query? Is it possible to break the problem down?
- If it is necessary to join so many tables then force the use of hash joins in the query, especially if you're processing a lot of data and want the best throughput. If you want a quicker response, this will not be a appropriate. -
How can I crate a view with tables which require "Left outer join"?
Hi guys,
how can I define a view with tables which require "Left outer join"?. In SE11 "View",->tab "Join condition", it seems that it valid only for "Inner Join".
Please give me some hint.
Thanks in advance.
Regards,
LiyingHi
Inner Join and Outer Join
The data that can be selected with a view depends primarily on whether the view implements an inner join or an outer join.
With an inner join, you only get the records of the cross-product for which there is an entry in all tables used in the view.
With an outer join, records are also selected for which there is no entry in some of the tables used in the view. (ABAP allows left outer join.)
The data that can be selected with a view depends primarily on whether the view implements an inner join or an outer join. -
How to create a new variant and a job sheduled to use it for the exisisting programs
Hi
1. The ALV Grid Control is a tool with which you can output non-hierarchical lists in a
standardized format. The list data is displayed as a table on the screen.
The ALV Grid Control offers a range of interactive standard list functions that users need
frequently (find, sort, filter, calculate totals and subtotals, print, print preview, send list,
export list (in different formats), and so on. These functions are implemented in the
proxy object class. You as the programmer have the possibility to turn off functions not
needed. In most cases the implementations of the standard functions provided by the
control are sufficient. However, if required, you can adjust these implementations to
meet application-specific needs.
You can add self-defined functions to the toolbar, if necessary.
The ALV Grid Control allows users to adjust the layout of lists to meet their individual
requirements (for example, they can swap columns, hide columns, set filters for the
data to be displayed, calculate totals, and so on). The settings (list customizing) made
by a specific user are called a display variant. Display variants can be saved on a userspecific
or on a global basis. If such display variants exist for a list, they can be offered
to the user for selection. If a display variant is set as the default variant, the associated
list is always displayed based on the settings of this variant.
2. REUSE_ALV_LIST_DISPLAY
REUSE_ALV_GRID_DISPLAY
REUSE_ALV_FIELDCATALOG_MERGE
REUSE_ALV_COMMENTARY_WRITE
3. Use of Field Catalog is to determines the technical properties & add formating information of the column.
6. all the definition of internal table, structure, constants are declared in a type-pool called SLIS.
7.fieldcat-fieldname
fieldcat-ref_fieldname
fieldcat-tabname
fieldcat-seltext_m
5. Form user_command using r_ucomm like sy-ucomm rs_selfield type slis_selfield.
Sap provides a set of ALV (ABAP LIST VIEWER) function modules which can be put into use to embellish the output of a report. This set of ALV functions is used to enhance the readability and functionality of any report output. Cases arise in sap when the output of a report contains columns extending more than 255 characters in length.
In such cases, this set of ALV functions can help choose selected columns and arrange the different columns from a report output and also save different variants for report display. This is a very efficient tool for dynamically sorting and arranging the columns from a report output.
The report output can contain up to 90 columns in the display with the wide array of display options.
<b>The commonly used ALV functions used for this purpose are;</b>
1. REUSE_ALV_VARIANT_DEFAULT_GET
2. REUSE_ALV_VARIANT_F4
3. REUSE_ALV_VARIANT_EXISTENCE
4. REUSE_ALV_EVENTS_GET
5. REUSE_ALV_COMMENTARY_WRITE
6. REUSE_ALV_FIELDCATALOG_MERGE
7. REUSE_ALV_LIST_DISPLAY
8. REUSE_ALV_GRID_DISPLAY
9. REUSE_ALV_POPUP_TO_SELECT
Purpose of the above Functions are differ not all the functions are required in all the ALV Report.
But either no.7 or No.8 is there in the Program.
<b>
How you call this function in your report?</b>
After completion of all the data fetching from the database and append this data into an Internal Table. say I_ITAB.
Then use follwing function module.
CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
EXPORTING
I_CALLBACK_PROGRAM = 'Prog.name'
I_STRUCTURE_NAME = 'I_ITAB'
I_DEFAULT = 'X'
I_SAVE = 'A'
TABLES
T_OUTTAB = I_ITAB.
IF SY-SUBRC <> 0.
WRITE: 'SY-SUBRC: ', SY-SUBRC .
ENDIF.
ENDFORM. " GET_FINAL_DATA
The object F_IT_ALV has a field, the activity ACTVT, which can
contain four permitted values: 01, 02, 03 and 70. Each of the
activities 01, 02 and 70 controls the availability of particular
functions (in the menu and the toolbar) of the ALV line item list:
a) 01: "Settings -> Display variant -> Save..."
b) 02: "Settings -> Display variant -> Current..." and
"Settings -> Display variant -> Current header rows "
c) 70: "Settings -> Display variant -> Administration..."
Activity 03 corresponds to the minimum authorization, which is the
most restricted one: The user can only select layouts which have
been configured already. In particular, all of the other functions
named above are inactive with activity 03.
Now if you want to permit a user to change the column selection and
the headers as well as to save the layout thus created, for example,
but if you do not want to permit the user to administrate the
layouts, you grant him or her the authorization for activities 01
and 02.
Check this link it will be mosty usefull for u
http://www.sap-img.com/fu017.htm
Reward all helpfull answers
Regards
Pavan -
Exception Description: No conversion value provided for the attribute
Hi!,
The following is printed when I try to persist an entity with a an enum attribute in it. It deployted succuessfully and mapped fine a table, my configuration is, Windows2003, SJSAS 9 FCS, Derby DB.
Exception [TOPLINK-115] (Oracle TopLink Essentials - 2006.4 (Build 060412)): ora
cle.toplink.essentials.exceptions.DescriptorException
Exception Description: No conversion value provided for the attribute [NEW].
Mapping: oracle.toplink.essentials.mappings.DirectToFieldMapping[status-->REPORT
.STATUS]
Descriptor: RelationalDescriptor(com.namespace1.reports.persistence.Report --> [
DatabaseTable(REPORT)])
The Entity class is the following:
* Report.java
* Created on 25 ����� �����, 2006, 06:07 �
* To change this template, choose Tools | Template Manager
* and open the template in the editor.
package com.namespace1.reports.persistence;
import java.io.*;
import java.util.*;
import javax.persistence.*;
* @author Administrator
@javax.persistence.Entity(name="Report")//name used in EJB-QL.
public class Report implements Serializable {
public enum ReportStatus{
NEW,
OPEN,
SUBMITTED,
ACCEPTED,
REJECTED
@javax.persistence.Id
@javax.persistence.GeneratedValue(strategy = javax.persistence.GenerationType.AUTO)
private long id;
@Transient
private int currentEntryId;
@Column(length=256)
private String title;
private String ownerName;
@Enumerated(EnumType.ORDINAL)
@Basic
private ReportStatus status;
@OneToMany(mappedBy="report",targetEntity=ReportEntry.class,cascade=CascadeType.ALL)
private Map<Integer,ReportEntry> reportEntries;
/** Creates a new instance of Report */
public Report() {
public long getId() {
return id;
public void setId(long id) {
this.id = id;
public int hashCode() {
int hash = 0;
hash += (int)getId();
return hash;
public boolean equals(Object object) {
// TODO: Warning - this method won't work in the case the id fields are not set
if (!(object instanceof Report)) {
return false;
Report other = (Report)object;
if (this.getId() != other.getId()) return false;
return true;
public String toString() {
return "com.namespace1.reports.persistence.Report[id=" + getId() + "]";
public int getCurrentEntryId() {
return currentEntryId;
public void setCurrentEntryId(int currentEntryId) {
this.currentEntryId = currentEntryId;
public String getTitle() {
return title;
public void setTitle(String title) {
this.title = title;
public String getOwnerName() {
return ownerName;
public void setOwnerName(String ownerName) {
this.ownerName = ownerName;
public ReportStatus getStatus() {
return status;
public void setStatus(ReportStatus status) {
this.status = status;
public Map<Integer, ReportEntry> getReportEntries() {
return reportEntries;
public void setReportEntries(Map<Integer, ReportEntry> reportEntries) {
this.reportEntries = reportEntries;
}This problem is side effect of issue 193 (https://glassfish.dev.java.net/issues/show_bug.cgi?id=193) and is described in details in issue 634 (https://glassfish.dev.java.net/issues/show_bug.cgi?id=634). Your choices are to use the work around described in the above issue or switch to the GlassFish build with the fix.
regards,
-marina
Maybe you are looking for
-
Welcome to the OES 2015 Public Beta forum. We are pleased to deliver to you a new version of OES. OES 2015 is a major leap for OES. It re-assures our long term commitment to help our customers manage their environments with ease. Below are some of th
-
Export and Import of Roles and Privileges
Hi, We're nearing the end of our development phase and are now preparing for initial load in our QA / Test environment. Is there a way to export the Roles and Privilege metadata from one environment to import them into the other. The Staging guide st
-
NiConnect Unsuccessful, Communication error, CPI-C function: CMINIT
Hello, NiConnect Unsuccessful, Return Code: -0012 > Host: 10.4.0.34 > Service: sapgw00 Communication error, CPIC return code 020, SAP return cod
-
Using iPhone as laptop connect
I'm thinking about getting an iPhone, but would like to be able to use its internet capabilities with my Mac. Can you use the iPhone as a kind of laptop connect card?
-
Jumping of reports by using RRI
Hi Gurus Can anybody help me in getting the scenarions for RRI, when it is usefull on what scenarios wego for RRI