Need help to read model node input field attribute present in view - first time developer.
Hello Experts,
I am new to CRM Web UI development.
Presently, I am trying to develop a Guided Activity Page having 2 views.
First view has the field Business Partner Number, I have added model Node BuilHeader and the attribute BP_NUMBER while creation of the view.
The Second View consists of 2 fields from the Model Node BuilHeader, namely First Name and Last Name.
The requirement is to enter the BP Number on the first screen then click on the NEXT button from the Guided Activity buttons, on navigating to the Second View, the Names should auto-populate.
I have Created both views and the GP page, the GP navigation is also happening. Initially the fields were showing Not Bound text in value, so I commented the line in GET_I and GET methods to enable the field and remove the Not Bound text. I have created a custom controller with BuilHeader
I have tried doing this but facing the below problems :
1) When I enter the BP number on the first view and press Enter, the value disappears. How to solve this ?
2) Does clicking on the NEXT button on the GP Navigation trigger a Server Roundtrip ?
3) How to read the context node value of BP Number entered on the first view and populate the Name fields on the second view.
Please help.........
you can take reference from from below code as in above case we use BuilHeaderAdvancedSearch search object, to get current entity.
data: query TYPE REF TO cl_crm_bol_dquery_service,.
query ?= me->typed_context->BuilHeaderAdvancedSearch->collection_wrapper->get_current( ).
Do not remove code from getter setter of fields , it will not clear.
Check with http://scn.sap.com/thread/3391203 , for basic understanding of UI.
Regards,
Harish Kumar
Similar Messages
-
Need help to read Instant messenger packet
I need help to read the IM packet from the LAN.Can anyone help me? I doing my project to monitor the IM in LAN.If got example,pls show me.
There are several problems with this. First, it is not possible to separate IM packets from any other packets floating around a network. Second, to peek at packets intended for other computers is a pretty big no no.
If you really need to do this, build a proxy server or some layer in the middle of your IM where you can record
I need help to read the IM packet from the LAN.Can
anyone help me? I doing my project to monitor the IM
in LAN.If got example,pls show me. -
Hi. Need help. I purchased tinylegends monster crasher 2500ltd crystal pack. First purchased, I did not received the crystals.
2nd purchased i got the crystals. Please check your record. My billing came in already for 2 purchases. ThanksYou are not speaking directly to Apple. Contact iTunes support for help: https://expresslane.apple.com/Issues.action
-
Hi, I need help. I have several groups of data for input, and need to use them later in the same or different code. When I key in the input data, the code will ask the number of data group first, then in each group, there will be 6 data to key in, each has a specific variable name. The number of group and the data for each group will vary at each time running the code. The data group needs to be numbered sequently. After having all groups of data, these data will be sent to another sub VI to read. This sub VI needs to know each group number and each data of a group.
I think I should create a 2-D array to read these data in a do loop, but I can't let my do loop read data in each time. Then when I sent the data out, the next sub VI was confused by the sequence of the data group and the sequence of data in each group. Can someone help me or give me some example how to do it? Thank you very much for your help.
Message Edited by ccyang on 06-06-2006 10:37 AMFrom what I understand of your explanation, an event structure might be
the way to go (LV 6+ I think). Events could be based off of
keypresses in a particular control (a 2D array like you mentioned), and
once input in that particular field is complete, the user presses say
the 'enter' key, and you can use the "VKey" of the event data node to
determine which key is pressed (i.e. VKey = enter?). From there,
you would continue to the next portion of data entry or processing of
entered information.
Hope this helps. -
Choose an entry in Search help and not in its input field
Hi to all,
In my application I have a field with a search help.
I want that this field only can be modified using a search help and this field can't be modified directly writing in this field.
Is similar to transaction se63 - Translation - Abap objects - Short texts - OTR - Source language
I have created an example with the field SCARR-CARRID but this field can be modified with search help and directly, or this field can't be modified.
In my application I have done the following:
-> Screen painter (layout):
Name: SCARR-CARRID
Input Field: not marked
Output Field: marked
Possible entries: marked
Possible entries keys: 2
-> Flow logic:
PROCESS BEFORE OUTPUT.
MODULE IMPORT_DATA_0001.
PROCESS AFTER INPUT.
MODULE EXPORT_DATA_0001.
PROCESS ON VALUE-REQUEST.
FIELD SCARR-CARRID MODULE listbox.
PROCESS ON HELP-REQUEST.
MODULE listbox INPUT.
TYPES:
BEGIN OF VRM_VALUE,
KEY(40) TYPE C,
TEXT(80) TYPE C,
END OF VRM_VALUE,
VRM_VALUES TYPE VRM_VALUE OCCURS 0,
VRM_ID TYPE VRM_VALUE-TEXT,
VRM_IDS TYPE VRM_ID OCCURS 0.
DATA: name TYPE vrm_id,
list TYPE vrm_values,
value LIKE LINE OF list.
CHECK list[] IS INITIAL.
name = 'SCARR-CARRID'.
SELECT carrid CARRNAME FROM SCARR
INTO (value-key,value-text).
APPEND value TO list.
ENDSELECT.
SORT list BY text.
CALL FUNCTION 'VRM_SET_VALUES'
EXPORTING
id = name
values = list.
ENDMODULE. " LISTBOX INPUT
How can i solve this problem?
Thanks a lot.Hi Jey:
I have tried this:
MODULE listbox INPUT.
TYPES: BEGIN OF vrm_value,
key(40) TYPE c,
text(80) TYPE c,
END OF vrm_value,
vrm_values TYPE TABLE OF vrm_value,
vrm_id TYPE vrm_value-text,
vrm_ids TYPE TABLE OF vrm_id.
DATA: name TYPE vrm_id,
list TYPE TABLE OF vrm_value WITH HEADER LINE,
poplist TYPE TABLE OF spopli WITH HEADER LINE,
popanswer TYPE c,
popindex TYPE i,
value TYPE vrm_value,
lt_dyntab TYPE TABLE OF dynpread WITH HEADER LINE,
dynpprog TYPE syrepid VALUE 'SAPMZxxxx', "Enter your dynpro here
dynpnr TYPE sydynnr VALUE '0100', "Enter your screen number here
dynpfield TYPE help_info-dynprofld VALUE 'SCARR-CARRID'.
IF list[] IS INITIAL.
name = 'SCARR-CARRID'.
SELECT carrid carrname FROM scarr
INTO (value-key,value-text).
APPEND value TO list.
poplist-varoption = value-text.
APPEND poplist.
ENDSELECT.
ENDIF.
Use some method to display a list for selection
Here is a simplified way of doing it but there are
much more sofisiticated methods.
CALL FUNCTION 'POPUP_TO_DECIDE_LIST'
EXPORTING
textline1 = 'Select an entry'
titel = 'Selection'
IMPORTING
answer = popanswer
TABLES
t_spopli = poplist
EXCEPTIONS
not_enough_answers = 1
too_much_answers = 2
too_much_marks = 3
OTHERS = 4.
CHECK sy-subrc = 0.
CHECK popanswer NE 'A'.
popindex = popanswer.
READ TABLE list INDEX popindex.
IF sy-subrc = 0.
lt_dyntab-fieldvalue = list-key.
ENDIF.
Update the screen field with the selected value
lt_dyntab-fieldname = dynpfield.
APPEND lt_dyntab.
CALL FUNCTION 'DYNP_VALUES_UPDATE'
EXPORTING
dyname = dynpprog
dynumb = dynpnr
TABLES
dynpfields = lt_dyntab
EXCEPTIONS
invalid_abapworkarea = 1
invalid_dynprofield = 2
invalid_dynproname = 3
invalid_dynpronummer = 4
invalid_request = 5
no_fielddescription = 6
undefind_error = 7
OTHERS = 8.
ENDMODULE. " LISTBOX INPUT
I think that there is a error that I have not seen because I put a breakpoint at the beginning of your code and the execution doesn`t stop.
Now I execute the dynpro and appears my field 'SCARR-CARRID' and I can't choose a value and I can write in input field.
Can you help me?
Thanks a lot. -
Read content of input fields in an internal table?
<b>Hello everybody!</b>
This is my first posting here in that forum, so i hope you can help my with my issue..
In the following time i will develop with Adobe Interactive Forms. I already had a SAP Training in it.
My Question: It is very simple to define input fields in an Adobe Form. After fireing an Action (example "Send Document") the entered value should be transported back to the ABAP Interface, which is calling the Adobe Form. Is this plan realizable? If so, how can i realize it?
The Adobe Form will calling from the SAP R/3 System and not via Web Dynpro!
Thanks a lot for engagement.
Greetings from Germany
Ismail ErHas Anyone an idea? it is very urgent to know that...
Thx -
Need Help in reading data from URLConnection in servlets
hi i created GUI which sends d username n password to the servlets via URLConnection.n am sending the same to Server program via sockets.but when i read d data in the servlet am getting only null value...need help here....
This is my button's ActionPerformed code
private void LoginActionPerformed(java.awt.event.ActionEvent evt) {
String uname = UserName.getText();
char [] pwd = PassWord.getPassword();
String pword = new String(pwd);
try
String url = "http://localhost:8080/MIMServlets/hit";
URL ucon = new URL(url);
URLConnection conn = ucon.openConnection();
conn.setDoOutput(true);
conn.setDoInput(true);
conn.setUseCaches (false);
conn.setDefaultUseCaches (false);
conn.setRequestProperty("Content-Type", "text/plain");
System.out.println(uname);
System.out.println(pword);
PrintWriter out = new PrintWriter( conn.getOutputStream() );
BufferedReader in = new BufferedReader(
new InputStreamReader(
conn.getInputStream()));
out.print(uname);
out.print(pword);
out.close();
String inputLine = in.readLine();
Status.setText(inputLine);// TODO add your handling code here:
}catch(MalformedURLException e)
System.out.println("Exception"+e);
catch(IOException e1)
System.out.println("Exception"+e1);
This is my Servlet code........
import java.io.*;
import java.net.*;
import java.util.*;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class MIMServlets extends HttpServlet
PrintWriter out,out1;
BufferedReader in,in1;
String host = "localhost";
String fromServer = "";
String username,password;
int a;
public void init()
out=null;
out1=null;
public void doPost(HttpServletRequest request,HttpServletResponse
response)throws ServletException,IOException
response.setContentType("text/html");
out=response.getWriter();
try{
InetAddress address = InetAddress.getByName(host);
Socket theSocket = new Socket(address, 4444);
out1 = new PrintWriter(theSocket.getOutputStream(),true);
in = new BufferedReader(new InputStreamReader(theSocket.getInputStream()));
in1 = new BufferedReader(new InputStreamReader(request.getInputStream()));
String username = in1.readLine();
String password = in1.readLine();
System.out.println(username);
System.out.println(password);
out1.println(username);
out1.println(password);
out1.println("Yahoo");
out1.flush();
while ((fromServer = in.readLine()) != null)
out.println("From Server: " + fromServer);
break;
out1.close();
in.close();
theSocket.close();
}catch(IOException e)
System.out.println("Exception");
System.exit(-1);
public void destroy()
out.close();
thanks in advance.......Follow below example to using FM 'READ_TEXT'
DATA BEGIN OF i_tlines OCCURS 0.
INCLUDE STRUCTURE tline.
DATA END OF i_tlines.
DATA: w_textname(70) TYPE c.
w_textname = vbdkr-vbeln.
CALL FUNCTION 'READ_TEXT'
EXPORTING
client = sy-mandt
id = 'Z006'
language = 'E'
name = w_textname
object = 'VBBK'
TABLES
lines = i_tlines.
IF sy-subrc = 0.
READ TABLE i_tlines INDEX 1.
t_in-m1 = i_tlines-tdline. "Now t_in_m1 will have the value
ENDIF.
Regards,
SaiRam -
Need Help with Average of a calculated field
Good Morning ,
In the cube that i built i have a calculated field "AvgAbandonTime"=round(([Measures].[C8]/[Measures].[C9]),0). C8 and C9 in the calculation are calculated fields in the DSV based off the fields from the Database.
In the browser i'm having a problem. In the below sample data set , if you look i'm calculating the "AvgAbandonTime" per each location and this value is in seconds. C8 and C9 are the fields used in the calculation. For example C8/C9=11588/126=92
(ROUNDED).Similarly for the other two rows. The problem is when it comes to the Grand Total , i'm expecting average of AvgAbandonTime over the 3 locations and that should be (92+16+73)/3=60, but where as what its doing is Summing all the C8 and all
the C9 values and giving me the SUM(C8)/SUM(C9)=74. Please need help or advice.
ThanksThanks David,
But no its not giving those values instead its giving
C8
C9
Avg
AvgAbandonTime11
newcalc
sum
11588
126
92
8191
8191
24753
157
10
16
157
157
24753
62160
857
73
16405
16405
24753
GrandTotal
73905
993
74
99
1.#INF
24753 -
Need help with Toshiba model 42TL515U TV FAN
I recently had an error message pop up on the tv that says the tv fan went out. The tv has worked perfectly since i purchased it untill now. I'm very unhappy about it since i have taken great care of it the entire time and it is not my fault but toshibas for selling me the tv with a faulty internal fan and OF COURSE it tells me fan went out after my warranty just ended. I need help, answers and customer support because this is rediculous...
If there truly is a fan in the TL515U you can easily open up the TV, look at the fan specs, and replace it.
I bet the fan used in it are the ones used in computers. -
NEED HELP? Read this first. Also, NOODZ.
Ok, first, noodz (caution: may not be work/school-safe*).
Now, if you need help, follow these guidelines.
Do your homework first.
Many of the questions that get posted here are directly answered in the Wiki or easily found on Google or through an Arch forum search. The Latest News will sometimes address known issues too. Finally, you can check the bugtracker to see if anyone else has reported the same problem. Do some research before posting to save yourself and others time. Don't just post a problem and expect everyone else to do your work for you. Archers help those who (at least try to) help themselves.
Use an explanatory subject title.
Titles such as "this doesn't work, wtf???" do not help and make people roll their eyes. Try to summarize the problem in the title so someone opening the thread has an idea of what your post is about. This will also increase the chance of someone who can solve your problem finding your thread.
Explain the problem clearly and provide detailed information.
Again, "it's just broken" and similar "descriptions" don't tell anyone anything. Give all the relevant information that you can think of, such as the specific error that you're getting, system information (e.g. soundcards for audio problems, network setup for connection problems), when the problem started and what might have caused it, relevant logs, relevant system configuration files, etc. Include information about anything that you've tried so far to solve the problem. You can also read this extensive guide on getting help.
Be patient and polite.
Sometimes it takes time to get a reply. Do not bump your thread every 3 hours with messages like "come on, help me!!!". Also, don't be rude to people who misunderstand your problem or reply with suggestions that don't work. Instead, politely try to explain your problem more clearly.
Mark the thread as [SOLVED] once you've found a solution.
Once you've found the solution, edit your original post and add "[SOLVED]" to the beginning of the subject title. This way others with similar problems will be able to find the solution faster.
@mods
This is my suggested consolidation and replacement of the following stickies:
http://bbs.archlinux.org/viewtopic.php?id=16152
http://bbs.archlinux.org/viewtopic.php?id=50160
http://bbs.archlinux.org/viewtopic.php?id=50161
*actually, it's a joke in response to Mr. Elendig's comment and it's perfectly worksafe
Last edited by Xyne (2008-11-15 14:25:33)tomk wrote:
Thanks for the suggestion, we'll have a look at it.
Tip for the future - if you want to make effective contributions, it would be better not to include random links to pages that may not be work/school-safe. Whatever merit your suggestion may have has been completely undermined by this unnecessary nonsense, which clearly belongs in the Off-topic area.
Um, it's a joke. If you check the link, you'll find a wikipedia page.
EDIT: The joke is a direct response to Mr. Elendig's post and my reply to it here: http://bbs.archlinux.org/viewtopic.php?id=50161
Last edited by Xyne (2008-11-15 14:12:54) -
How to clear model node input table data?
hi experts,
i am developing one application, which updates database table. i am having one table having all claimids as column, in of view. when i click on any of the claimid, it moves to second details view of that claim id having header and item details in seperate two tables on view.right. that second view is having addrow, deleterow and save button .
what i am facing problem is : when i add any row it works, delete any row it works and modify item details and save it , it works first time perfectly . bt when second time, i click on same claimid from first view and comes to details view and make any changes in item table and try to save it, it should save whatever is there at that time on table. Bt it takes new item values and as well as old one , all the time.
In backend , i passed that table and claimid and what i do , i delete all the item details with that claimid and insert new one . backend works fine.
I have disconnect the model instance as well....
wdContext.currentZbapi_Gen_Clm_Write_InputElement().modelObject().modelInstance().disconnectIfAlive();
any idea?
Plz.
Saurin ShahHi Saurin,
It seems that context node value not been clear out.
try to invialidate your node before submitting(Saveing) new value to context node On your details view scrren,.
NodeName().Invalidate();
or
for(int i=NodeName().size(); i++){
NodeName.removeElement( NodeName .getElementAt(i));
Thanks
Anup -
Gurus..need help in reading data from virtual infocube
Gurus,
I have to read data from an virtual infocube...I am trying to use FM RSDRI_INFOPROV_READ to read data but it doesn't work..
I am doing exactly what has been done in the demo program RSDRi_INFOPROV_READ_DEMO...
Please help me...its really URGENT...
Thanks
samCheck out this thread....
must be helpful
Re: Read data from 0BWTC_C02 via ABAP -
How to get the value from the Input field of the Table view.
Hi Experts,
I have created a table view with 10 rows and each rows contains input fields in it.Can you please help me getting the values that are entered in all 10 rows.
Currently I am using the below code,but using the below I am able to get only the first row details of the table.
lo_el_table->get_static_attributes(
IMPORTING
static_attributes = ls_table).
Please let me know you suggestions on this.Thanks in advance.
Regards,
ArunHi Arun,
You should use this method:
lo_nd_table->get_static_attributes_table(
IMPORTING
table = lt_table).
Cheers,
Roelof
http://www.nl4b.com -
FDM: Need help on how to show the new attribute in import - export form.
Hello,
I was able to enable a new attribute in FDM workbench client. Now I see this new attribute in import format , but I don't see this attribute in import, validate and export form. Please help how I can show this new attribute in import, validate and export.
we are using FDM 11.1.1.2.0 version.
THanks,
sikandarHello SH,
Thanks for your response.
We have already have attribute1, 2, 3 and attribute12 which is already enabled and I can also see them in the import, validate and export form.
I even tried to click on the amount field to see the details (Click here to see details). When I check on the amount field, nothing appears.
Might be some setting which is missing. If you can please guide that will be helpful.
Thanks, -
Input field in a table view control
Hi,
I have a table view control, with input field in one of the columns.
That is meant for entering some values.
My problem is when i am entering a 3 input field with value and then by using mouse control i enter say 20th input field with value. After that when i use the directional keys to enter the 21st field, the cursor is not in 21st field, it is somewhere else.
How to correct this problem.
Regards,
VijayalakshmiHi,
Try to use the TABINDEX property of <input>.
Best regards,
Guillaume
Maybe you are looking for
-
Commitment Item for Balance Sheet accounts
Hi all, Can someone clearly explain the need to create commitment items for balance sheet accounts? I have searched a lot and have not found a satisfactory explanation. Since balance sheet accts are typically not budgeted, why do they even have to be
-
Can't Print Landscape from Crystal Reports Viewer XI
Post Author: conrad CA Forum: General Product: Crystal Reports Viewer XI, version 12.0.0.r130_v20070725 and Crystal Reports XI, version 11.0.0.1282 Patches Applied: none Operating System(s): XP Pro SP2 Database(s): Error Messages: noneSteps to Reprod
-
Essbase add-in Error (duplicate name found in grid)
Hi, I have upgraded from 7.3 to 9.2 essbase add-in and get the following error when zooming into a product dimension - seems to be a problem with base member name and alias showing duplicates! However this error does not occur on a new installation o
-
A small Java Problem for java Experts
Hi Guys... I have a small problem with my program... Tha program I am using consist of several frames where one invokes the other in row. These are the classes I am using: the FIRST class://THIS CLASS IS NOT COMPLETE import java.io.*; import java.awt
-
Do we have any option to see all the WIKIs submitted/published by me?
Dear Experts, Do we have any option to see all the WIKIs submitted/published by me (logged in user)? This option is available for Blogs and Articles. If it is not available, can we give a thought to implement the same? It would be very helpfull for t