KONP object value in CDHDR
I am trying to see the changes done on KONP - Pricng table. In CDHDR what will be the Object value for this KONP table. WHen i put the table name and field name in CDPOS, it is not giving me any details
In short i am trying to see the changed done in KONP table, where do i see these changes and how??
Regards
Screams
Do a change in KONP table and save it. If there is change document generated for it you it will be the last entry added to CDHDR by you so use filter
CDHDR-USERNAME = ...
CDHDR-UDATE = today.
If you don't get any results, this means there is no change document generation triggered. Go to tcode SWEC to check which event of BOR object is triggered for given change document object. You need to add new event here in order to activate change document generation.
To trace which event is raised during KONP change go to SWEL and turn the trace on. Do a change in KONP table and save it. Go to trace log SWELS and check the event name.
Now go back to SWEC and add the change doc. gener. for this BOR object and event.
Turn the trace off using SWEL
Regards
Marcin
Similar Messages
-
How to get the object class field value in CDHDR table for vendor
hi
how to get the object class field value in CDHDR table for vendorTry KRED/KRED_N as object class in CDHDR for Vendor.
-
How to set a object value bound to a session to JavaScript variable
In a JSP, I store an object value in a HttpSession and I also write a Javascript function to display something on the screen. I need to use the Javascript function to display the object value which is stored in the session. How to set the object value to variable of the JavaScript function. Thanks.
I write a class JavaScriptHelper to convert the object value to variable of the JavaScript;
1.get the data to a javabean from database;
2.convert the data to variable of the JavaScript as a String ;
3.store the object in a HttpSession or Httprequest ;
4.use in Jsp get the String (variable of the JavaScript )
YourBean bean = (YourBean) request.getAttribute("model");
if (bean != null) out.println(bean .getJsCode())
convert function,(this is only for the matrix):
public static String formatJsCode(Vector vector) {
String sJsCode = "";
//get js head
sJsCode = getJsHeader();
//define js array;
sJsCode += "var data=new Array();\n";
Vector v = null;
String sTemp = "", sLine = "";
for (int i = 0; i < vector.size(); i++) {
v = (Vector) vector.get(i);
sLine = "";
for (int j = 0; j < v.size(); j++) {
sTemp = (String) v.get(j);
//replace " to \"
sTemp = sTemp.replaceAll("\"", "\\\\\\\"");
//escape Html Tag
//sTemp = StringUtil.escapeHTMLTags(sTemp);
//replace \r\n to <br>
sTemp = sTemp.replaceAll("\r\n", "<br>");
if (j != 0)
sLine += ",";
sLine += "\"" + sTemp + "\"";
sJsCode += "data[" + i + "]=new Array(" + sLine + ");\n";
//get js foot
sJsCode += getJsFooter();
return sJsCode;
public static String getJsHeader(){
return "<script language=\"JavaScript\">";
public static String getJsFooter(){
return "</script>";
} -
How to set a Object value by JDI
How to set a Object value using JDI?
For example:
class User{
private String name;
private String id;
set and get method;
public static void main(String[] args) throws Exception {
VirtualMachineManager vmm = Bootstrap.virtualMachineManager();
List<AttachingConnector> connectors = vmm.attachingConnectors();
SocketAttachingConnector sac = null;
for (AttachingConnector ac : connectors) {
if (ac instanceof SocketAttachingConnector) {
sac = (SocketAttachingConnector) ac;
break;
if (sac == null) {
System.out.println("JDI error");
return;
Map<String, Connector.Argument> arguments = sac.defaultArguments();
Connector.Argument hostArg = arguments.get("hostname");
Connector.Argument portArg = arguments.get("port");
hostArg.setValue(HOST);
portArg.setValue(String.valueOf(PORT));
vmMachine = sac.attach(arguments);
List<ReferenceType> classesByName = vmMachine.classesByName(CLSNAME);
if (classesByName == null || classesByName.size() == 0) {
System.out.println("No class found");
return;
ReferenceType rt = classesByName.get(0);
List<Method> methodsByName = rt.methodsByName(METHODNAME);
if (methodsByName == null || methodsByName.size() == 0) {
System.out.println("No method found");
return;
Method method = methodsByName.get(0);
I will connect to server and monitor the remote server JVM , There is a object of User, I want to change its value by the Java Debugger Interface by client.
so how to set its value by the client, and I can not got the User bean at client.
I know the basic type filed value changed as follows:
Value newValue = vmMachine.mirrorOf("change var value");// this field is a string.
stackFrame.thisObject().setValue(field, newValue);
But a Object , how can I change its value.
Thanks Advanced.ObjectReference.setValue() is the method for chaining the value of an Object's field. First you need to find the specific Object you want to change, though.
/Staffan -
GlobalContainer object values acessed among UDF's in message mapping ?
hi
i have scenario where i am using globalContainer variable functionality in my message mapping.
in edit java section
String usr;
Container container ;
GlobalContainer globalContainer ;
intialize usr = "";
in First UDF
String inlogin_sess = " ashutosh test value" ;
globalContainer.setParameter(usr,inlogin_sess);
return any value :
now if i create another 2nd UDF and use :
String out =globalContainer.getParameter(usr);
return out ;
now 2nd UDF is giving null pointer exception...
for testing the code functionality..
IF i use the SET and GET in 1st UDF :
globalContainer.getParameter(usr); in 1st UDF than it is working sucessfully...
globalContainer.setParameter(usr,inlogin_sess);
String out = globalContainer.getParameter(usr);
return out ;
in help.sap it is mentioned that Globalcontainer objects values can be fetched among UDF's in one message mapping....
[http://help.sap.com/saphelp_nw04/helpdata/en/0f/80243b4a66ae0ce10000000a11402f/frameset.htm]
i have gone a lot of thread in sdn where Global container are used like sequence no creation etc, but every where the
GET and SET are used in SAME UDF...
any clue where is leak..
Regards,
ashutosh RHi Abhishek
Your point is legimate, but for my their is no such issue..
even i try to use it as :see image..
[http://www.screenshots.cc/show.php/14137_GlobalVariable.JPG.html]
UDF1 :
globalContainer.setParameter(usr,inlogin_sess);
return any value :
and in UDF2
String out = globalContainer.getParameter(usr);
return out ;
mainting the sequence
My concern is object globalContainer is local in UDF1, so it will through nullpointer ,if we try to access in UDF2.
if we declare globalContainer in edit jave -GlobalVariables also, still it is having the error..
Regards
AshutoshR -
Workitem ID wise to get the Object value
Hi All,
is it possible to get the object value form Workitem id wise.
for example workitem id '446085' based on that workitem id i want to retrieve the object value.
Please clarify.,
Thanks & Regards
K.Gunasekar.Hi
I want to update the object Reference.
for example i am getting the object value from SAP_WAPI_GET_OBJECTS. (F.M)
based on the workitem_id.
i want to update the objects reference from the original one.
if is it possible means please let me know.
Thanks & Regards
K.Gunasekar. -
JTree get selected node/object values
I wan to get all the selected nodes/objects values that I added to the JTree. How can I do this?
Thanks.TreePath[] paths = tree.getSelectedPath();
for(int i = 0; i < paths.length; i++){
TreeNode node = (TreeNode)paths.getLastPathComponent();
Object mySelectedObject = node.getUserObject();
}Some minor Errors
We have to use array paths[i] instead of paths
The correct code as used by me is
javax.swing.tree.TreePath[] paths = jTree1.getSelectionModel().getSelectionPaths();
for(int i = 0; i < paths.length; i++){
javax.swing.tree.TreeNode node = (javax.swing.tree.TreeNode)paths.getLastPathComponent();
System.out.println(((javax.swing.tree.DefaultMutableTreeNode)node).getUserObject());
CSJakharia -
Reload object value from session
Hi, I use a for loop to get object value "JPEG" from servlet.
My servlet create different value of "JPEG".
But the result is JPEG keeps in its first value.
The value won't change!!
Can anyone tell me how to solve this bug ??
Thanks in advance
<%
String x[] ={"80" ,"241" ,"401" ,"561" ,"80" ,"241" ,"401" ,"561" ,
"80" ,"241" ,"401" ,"561" ,"80" ,"241" ,"401" ,"561" };
String y[] ={"40" ,"40" ,"40" ,"40" ,"161" ,"161" ,"161" ,"161" ,
"281" ,"281" ,"281" ,"281" ,"401" ,"401" ,"401" ,"401" };
for (int i=0;i<10;i++){
String jpeg = (String) session.getValue("JPEG");
int jpeg_ch = Integer.parseInt(jpeg,10);
%>
<img style="position: absolute; left:<%= x[jpeg_ch] %>; top:<%= y[jpeg_ch] %>; width: 160; height:120;" Src="http://192.168.10.110:8080/servlet/Servlet?jpeg=<%= jpeg_ch %>">
<%
%><code>
for (int i=0;i<10;i++){
String jpeg = (String) session.getValue("JPEG");<i>// Wrong</i>
int jpeg_ch = Integer.parseInt(jpeg,10);
%>
// That should be the following:
String jpeg;
for (int i=0;i<10;i++){
jpeg = (String) session.getValue("JPEG");<i>// Wrong</i>
int jpeg_ch = Integer.parseInt(jpeg,10);
%>
</code> -
Openscript - adf unable to identify object value
Hi Everyone,
Please find the screenshot in the below shared link, where the adf inputtext object value is not identified while doing object test.
https://docs.google.com/file/d/0B0qqXKChgAG1VkRmR1Y0eEYyQlE/edit?usp=sharing
Kindly suggest on this whether it is a bug .
Regards,
Mohan.Can we also get a screenshot of all the read-only attributes of that object?
-
Viewing object values in the Eclipse debugger
I was wondering if there is an easy way to have Eclipse display object "values", as it does for simple types, for example, to have Eclipse automatically show the result of the toString() method called on certain types of objects. This would make it much easier to track object state while stepping through the program, instead of having to manually inspect the object properties. Thanks
Seen the usage instructions at this link?
"Viewing Global Variables
The Variable list contains a Globals group, which is initially empty.
You can choose which global variables to display..." (clip) -
Using OVS (Object value selector) inside a tabe.
I am new to the WebDynpro Java development. I am developing a simple UI ,where I have to put inputfield in table row and apply OVS to that inputField. I have already done that , but the problem is when selecting the inputField the value hep button is showing and , when clicking on the value help button nothing happens.Can any body suggest me , how to use OVS inside a table row.
Thanks,
SrikantaHi Srikanta,
you can use object value help selector in table by creating a singleton node attribute by this you will make sure that one row's value is not affected by other row's value selection for object value help please refer to this wiki article [Value Help - Object Value Selector|http://wiki.sdn.sap.com/wiki/display/WDJava/ValueHelp-ObjectValue+Selector]. Please let us know if you need any help.
Regards
Jeetendra -
请教 采购申请 审批权限 的tocde,object和value?
如题,我现在想在sap中获取 具有审批 采购申请 权限的人员名单,通过suim查询,但是不知道改权限与那个tcode,object和value相连,知道的请告诉下,谢谢了。
非常感谢您的回复,祝您身体健康。
其实我现在是帮一朋友问,但是我这边没有环境,而且时间紧迫,我需要一个肯定的答案,如果有明确的就好了,
我上网搜索了下,这个object,的确和审批挂钩,但是我不能肯定。 -
Retirval problem for the old-new values from cdhdr,cdpos
hi all.
i want to get the old and new values from cdhdr and cdpos table but not getting the output as the if condition of read statement" if i_cdhdr-objectid = itemp-kunnr." is not getting executed.what could be the mistake and how can i resolve.plz suggest
loop at it_knb1.
itemp-kunnr = it_knb1-kunnr.
itemp-kunnr1 = it_knb1-kunnr.
append itemp.
endloop.
if not itemp[] is initial.
select * from cdhdr
into table i_cdhdr
for all entries in itemp
where OBJECTCLAS = 'DEBI'
and OBJECTID = itemp-kunnr
and tcode = 'VD02'.
select * from cdhdr
appending table i_cdhdr
for all entries in itemp
where OBJECTCLAS = 'DEBI'
and OBJECTID = itemp-kunnr
and tcode = 'XD02'.
endif.
if not i_cdhdr[] is initial.
select * from cdpos into table i_cdpos
for all entries in i_cdhdr
where OBJECTCLAS = i_cdhdr-OBJECTCLAS
and OBJECTID = i_cdhdr-OBJECTID
and TABNAME = 'KNVV'
and ( FNAME = 'ZTERM' ).
endif.
loop at it_knb1 where kunnr = it_kna1-kunnr.
read table itemp with key kunnr1 = it_knb1-kunnr.
if sy-subrc = 0.
loop at i_cdhdr.
if i_cdhdr-objectid = itemp-kunnr.
it_final-username = i_cdhdr-username.
clear i_cdpos.
read table i_cdpos with key OBJECTCLAS = i_cdhdr-OBJECTCLAS
OBJECTID = i_cdhdr-OBJECTID
FNAME = 'ZTERM'.
if sy-subrc = 0.
it_final-zterm_old = i_cdpos-value_old.
it_final-zterm_new = i_cdpos-value_new.
endif.
endif.
endloop.
endif.
endloop.Hi Tanisha,
BEtter to loop everything cdhdr and CDPOS
U can do one thing.
Use CHANGEDOCUMENT_READ_HEDAER to get the data from CDHDR.
SUE FM CHANGEDOCUMENT_READ_POSTIONS.
to get the data from the each change number.
then u can retrieve the data as u want.
This will avoid confusion.
U can get the correct data.
Thanks -
Create configuration guide with IMG object values
Hello all!
Is it possible to generate configuration guide not only with the IMG objects but also with IMG object values?
For instance, if we filled in plant 1000 in customizing, then could this value also be present on the generated configuration guide?
Regards
MartinSorry, seems I was unclear with the question.
I meant the generated word document that can be generated with SOLAR02->Configuration->Generate configuration document.
Here I can download the objects specified in the configuration tab to a word document with the help of a visual basic macro but the content of the IMG objects does not get downloaded.
When I look at the macro in the generated word document, this functionality seems to be somewhat supported but I cannot make the system generate the appropriate excel files.. -
Object Value Selector (OVS) Tutorial Help!
Hi,
I am working on the advanced input help: The Object Value Selector (OVS) tutorial. I downloaded the ready- to- use from SDN and tried to deploy and run it. I don't know what user name and password to use in order to maintain JCo to create the MODELDATA and METADATA in local J2EE engine. In NetWeaver Developer Studio, the models AdRFCFlightListModel, Model Classes, and the BAPIs have been created by SDN already, so I don't really know what username and password to use. If anyone could help me with this, I would greatly appreciate that.
Regards,
-NapadolHi,
For creating JCO,
SAP JCo Functions,Architecture,Applications,Installation,Client & Server Programming :
http://help.sap.com/saphelp_nw70/helpdata/en/6f/1bd5c6a85b11d6b28500508b5d5211/frameset.htm
Creating Jco destination:
http://help.sap.com/saphelp_nw70/helpdata/en/3a/3b1b40fcdd8f5ce10000000a155106/frameset.htm
Maintaining Jco destination:
http://help.sap.com/saphelp_nw70/helpdata/en/94/3c1b40fcdd8f5ce10000000a155106/frameset.htm
The SAP JCo Repository :
http://help.sap.com/saphelp_nw70/helpdata/en/01/43e13d82fcfb34e10000000a114084/frameset.htm
Dynamic Jco creation Blogs:
/people/anilkumar.vippagunta2/blog/2007/02/06/dynamic-jco-creation
/people/gregor.wolf3/blog/2004/09/23/from-function-module-to-jco-application--part-1-of-3
Maybe you are looking for
-
Can't unlock the lock on Time Machine
I Can't unlock the lock on Time Machine, Security, Accounts, or Startup Disk prefPanes? This occured after the last update to OS 10.6.8. Repaired the disk Permitions.The problem remains....... Does anyone know how to solve the problem? I
-
I want to change my playlists and artists on ipod4...how?
I want to change my playlists and artists on my ipod..how do i do this?
-
Is it possible to have a synchronous and asynchronous db connection
I am using an SQLlite database and calling all my queries synchronously. All, but one of the queries is fast, so I was wondering if I could call that one query asynchronously. I created two sqlConnections, one called sync and another async. After mak
-
PowerShell runnig in Admin Mode by default
How should I remove Windows Powershell from running in Admin Mode by default?
-
Retrieving ESSBase data from Microsoft Access
Hello Can anyone advise on how to pull data from Essbase directly into MS Access rather than via Excel? Thanks