Remove context
hi every one
can any one of you help me with the removecontext function as it is used only when the reciever fields cardinality is 0-1
and not sure wether mapping will generate this particular field
if so please confirm and please can you give ur inputs regarding the remove context any how it is used for suppressing the reciever's field .and one more basic querie can any one brief me about what does actually context means i will be very thankfull to your reply
thanks and regards
sandeep
Hi,
You use removeContexts () to delete all the top contexts for an element. This removes all top hierarchy levels, so that all elements of the target queue are assigned to a root element of the source queue.
Advanced user-defined functions can import either just one context into the input arrays, or complete queues. Make your selection by selecting or deselecting the Save Entire Queue in Cache checkbox in the function editor.
Working with Contexts or Queues in User defined function
Information in Cache Implications
Context Advanced functions that only import one context do not have an identifiable context change. You can of course insert a context change into the results list.
Queue Since one or more entire queues are imported in this case, this option is more memory-intensive and is not suitable for very large messages.
For more node function refer below link:
/people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii
http://help.sap.com/saphelp_nw04/helpdata/en/79/2835b7848c458bb42cf8de0bcc1ace/frameset.htm
Thnx
Chirag
Similar Messages
-
Remove context and split by value.
Hi Friends,
the SAP Library seems to bge a bit tough for me. Any url where I can find easy definition to Remove context and split by value , with exampl!!
Thanks in advance!!
Arnab .Hi,
Remove Context Simply remove the Context. SplitByValue inserts Context.
Case 1: Remove Context is not Used.
Source Message:
<Test_Out_Remove>
<header name=u201CA">
<item>A.one</item>
<item>A.two</item>
<item>A.three</item>
</header>
<header name="B">
<item>B.one</item>
<item>B.two</item>
</header>
</Test_Out_Remove>
TargetMessage:
<Test_In_Remove>
<item>A.one</item>
<item>A.two</item>
<item>A.three</item>
</Test_In_Remove>
Case 2: Using Remove Context.
Source Message:
<Test_Out_Remove>
<header name=u201CA">
<item>A.one</item>
<item>A.two</item>
<item>A.three</item>
</header>
<header name="B">
<item>B.one</item>
<item>B.two</item>
</header>
</Test_Out_Remove>
TargetMessage:
<Test_In_Remove>
<item>A.one</item>
<item>A.two</item>
<item>A.three</item>
<item>B.one</item>
<item>B.two</item>
</Test_In_Remove>
Case 3: Without SplitByValue
Source Message :
<Test_Out_Split>
<header>
<item>one</item>
<item>two</item>
<item>three</item>
<item>four</item>
</header>
</Test_Out_Split>
Target Message :
<Test_In_Split>
<new_context>
<item>one</item>
<item>two</item>
<item>three</item>
<item>four</item>
</new_context>
<new_context />
<new_context />
<new_context />
</Test_In_Split>
Case4: Using SplitBYValue
Source Message :
<Test_Out_Split>
<header>
<item>one</item>
<item>two</item>
<item>three</item>
<item>four</item>
</header>
</Test_Out_Split>
Target Message :
<Test_In_Split>
<new_context>
<item>one</item>
</new_context>
<new_context>
<item>two</item>
</new_context>
<new_context>
<item>three</item>
</new_context>
<new_context>
<item>four</item>
</new_context>
</Test_In_Split>
Reward points if needful.
Thanks,
RamuV -
Hi
I know the use of remove context node function. Even I have gone through couple of weblogs that are available on the sdn. But I would like to know.........whether remove context node function is mandatory in any case ?? I believe even we can directly map the source and target fields which are in different contexts. If it is the case ......if we can do it without remove context node function.......what is the importance of remove context node function ?? Is there any performance issue ......to use this node function ??
thanks
kumarHi palnati
<i>if we can do it without remove context node</i>
---> Yes you can avoid remove context. This can be done by changing the context of source field to one parent above. This will collect all the source values in same context.
for example, consider following mapping
Amount -
> (removeContext)--> sum--
> target field
will be same as
Amount(change context to parent of parent)-->sum-----> target field.
Hope this helps.
Regards -
Advance UDF --- Remove Context
Hi all
I want to use RemoveContext function in UDF ...as this will be based on few conditiond.
Hence i can not use the standard removeContext node function..
can any one tell me the code for doing the same..
Sheetalyou can have a remove context functionality outside the UDF itself.
Right click the source field and change the context from the parent node to the top(root) node to remove all contexts.
Note: you can indeed ADD context etc in a UDF - http://help.sap.com/saphelp_nw04/helpdata/en/b1/83a09f668320419dbe00a741e0fe6a/content.htm -
Remove Context Menu for KM Content for Anonymous User
Hi All,
I have implemented External Facing Portal and i have to show KM documents
on Anonymous user home page. For This I have created JSP page and have
created url iview for this created JSP application. On this JSP page to access
KM i have used below code
<iframe src ="/irj/go/km/navigation/documents/Public%20Documents" > </iframe>
Now i am able to see the KM Contents of Public Documents on my Anonymous
user Home Page .But here i need to remove the context menu for KM Content
for Anonymous User , but the context menu should come for Logged in user.
How to do this ??
Regards,
Piyushsolved
-
Hi!
I have 2 views and I navigate forth and back. On the second view I am creating a context node dynamically in method HANDLEFROM_INPUT_VIEW. Everything works fine for the first time. However, if I go back from the second view to the first one and then again navigate to the second view, the system attempts to create the new node with the same name like the existing one and I get a short dump (an exception cx_wd_context=>child_already_exist).
I tried to delete the existing node by using the below code, which I placed in methods WDDOINIT, HANDLEFROM_INPUT_VIEW (before creating the node), ONACTIONBACK and WDDOINIT, but it didn't help. What can I do?
DATA: lr_info TYPE REF TO if_wd_context_node_info.
* delete existing node (if there is one)
TRY.
lr_info = wd_context->get_node_info( ).
lr_info = lr_info->get_child_node( 'DB_TABLE' ).
lr_info = lr_info->get_parent( ).
lr_info->remove_child_node( 'DB_TABLE' ).
CATCH cx_root.
ENDTRY.
Thanks in advance!
KR,
IgorHi, Lekha,
I tried with no success. I debugged it and saw a strange result. Here is the new code:
TRY.
lr_node = me->wd_context->get_child_node( 'DB_TABLE' ).
lr_node->invalidate( ).
lr_info = me->wd_context->get_node_info( ).
lr_info = lr_info->get_child_node( 'DB_TABLE' ). "test to see is there such node
lr_info = lr_info->get_parent( ).
lr_info->remove_child_node( 'DB_TABLE' ).
CATCH cx_root INTO lr_error.
l_error_text = lr_error->get_text( ).
ENDTRY.
lr_info object seems consistent in debugger, lr_info->get_child_node( 'DB_TABLE' ). returns a valid object, but later the statement lr_info->remove_child_node( 'DB_TABLE' ). fires exception which says: Static Node ZTEST_COMPONENT#OUTPUT_VIEW.CONTEXT Cannot Be Deleted. But I am trying to remove 'DB_TABLE'. Why am I getting message as if I was trying to delete the entire context?
KR,
Igor -
How do I remove the options from acrobat on the right click context menu?
ThanksHi All,
I followed you guys procedures. But after i delete few commands of the Command List and click ok i get the following error:
<b>"DefaultResourceCommandGroup" has not been saved since there were no changes WARNING The following configuration objects have some invalid or problematic properties: "Broadcasting_Group_More_Commands", "SingleDiscHeaderActionGroup"</b>
<b>UI Command Groups
Name : Consumer Table Apply Filter
There is no configuration object that matches the filter
New</b>
What should i do after this and how do i come across this problem.
Waiting for replies.
Thanks & Regards,
Kavitha -
Hello Gurus,
I am working on WAD 3.5. I use a hierarchy and need to remove the context menu mouse display text
.Every time I place the cursor on the web object, the text " expand the hierarchy" is being dsiplayed.
If any one knows this please let me know how to go about this.
Regards,
SunithaI think you can set the three hierarcy query properties in the WAD.
In a web template (also made in 3.5) i found the following HTML code.
Hope this helps.
<object>
<param name="OWNER" value="SAP_BW"/>
<param name="CMD" value="SET_PROPERTIES"/>
<param name="TEMPLATE_ID" value="ZBWOL0068_3"/>
<param name="MENU_BACK" value=""/>
<param name="MENU_BACK_TO_START" value=""/>
<param name="MENU_FILTER" value=""/>
<param name="MENU_FILTER_ON_AXIS" value=""/>
<param name="MENU_SELECT_FILTER" value=""/>
<param name="MENU_FILTER_ON_AXIS_CHART" value=""/>
<param name="MENU_FILTER_CHART" value=""/>
<param name="MENU_FILTER_DRILL_DOWN" value=""/>
<param name="MENU_DRILL_UP_GIS" value=""/>
<param name="MENU_DRILL_DOWN" value=""/>
<param name="MENU_EXCHANGE_OBJECTS" value=""/>
<param name="MENU_REMOVE_DRILL_DOWN" value=""/>
<param name="MENU_SWITCH_AXIS" value=""/>
<param name="MENU_HIERARCHY_NODE_DRILL" value=""/> <param name="MENU_HIERARCHY_DRILL" value=""/>
<param name="MENU_HIERARCHY_STATE" value=""/>
<param name="MENU_SORT" value=""/>
<param name="MENU_CALCULATE_RESULT" value=""/>
<param name="MENU_CALCULATE_VALUE" value=""/>
<param name="MENU_CUMULATE_VALUE" value=""/>
<param name="MENU_DISPLAY_DOCUMENTS" value=""/>
<param name="MENU_DOCUMENT_CREATE" value=""/>
<param name="MENU_DISPLAY_DOCUMENT_PROP" value=""/>
<param name="MENU_DISPLAY_DOCUMENT_SELEC" value=""/>
<param name="MENU_RRI" value=""/>
<param name="MENU_BROADCASTER" value=""/>
<param name="MENU_EXPORT_TO_CSV" value=""/>
<param name="MENU_EXPORT_TO_XLS" value=""/>
<param name="MENU_BOOKMARK" value=""/>
<param name="MENU_CHARACTERISTIC_PROPERTIES" value=""/>
<param name="MENU_VALUE_PROPERTIES" value=""/>
<param name="MENU_QUERY_PROPERTIES" value=""/>
<param name="MENU_VARIABLE_SCREEN" value=""/>
<param name="MENU_CURRENCY_CONVERSION" value=""/>
<param name="MENU_ENHANCED" value=""/>
<param name="USE_PAGE_WRAPPER" value="X"/>
<param name="MENU_FORWARD" value=""/>
TEMPLATE PROPERTIES
</object> -
Disable/Remove context menus in XP
is there anyway to disable the following context menus from
windows explorer?
- Convert to Macromedia Flash (.swf)
- Convert to PDF with Macromedia Flashpaper
- Convert to PDF and Email with Macromedia Flashpaper
i get them when i right-click on most if not all file types
tx in advance!2m wrote:
> Urami, I do have the Tweak UI (Version 2.1) installed,
and I just cannot figuer
> out where to cutomize that.
> (To be honest, I don't care about it very much, but when
I couldn't find it -
> probably just temporary blindness - I just had to ask)
>
Templates
Windows will offer to create new document of the following
types when you right click.....
It's somewhere near the My Computer options.
I have allot of programs install. Just winRar and anti
Viruses offer like 20 options on right click.
Really annoying at times. I just off all the stuff I don't
want. Keep my right click to like
2 or 3 links :)
Regards
Urami
Happy New Year guys - all the best there is in the 2006 :)
<urami>
http://www.Flashfugitive.com
</urami>
<web junk free>
http://www.firefox.com
</web junk free> -
Dynamically removing context attribute
Hi all,
does anybody know a better way of getting rid of dynamically created attributes than using the IWDContext.reset() functionality?
Best regards,
ChristianHi,
We had the similar requirement .We have mailed to Uwe regarding this.Please find the reply below .
there is currently no way to remove a single attribute in NW04. There is only the possibility to reset the metadata to the state that has been declared in the design time. This can be achieved using IWDContext.reset(boolean), reachable via wdContext.getAPI(). The method removes all attributes and nodes, that have been added at run time ("dynamically"), via one of the add Attribute or add Child methods of IWDNode. So, if you have added the root attribute at runtime, this method will remove it, but it removes all other dynamically added attributes and nodes, too.
NW05 will allow to remove single attributes and child nodes, but still only if they have been dynamically added before.
Regards
Anil -
Remove context menu for the taskbar
Good afternoon,
It is possible to restrict only one program to be executed by the taskbar?
The aim is to be able to open all programs by the taskbar by right click, with the exception of one.
Cmpts,Hi hugo,
I am quite sure about your exact need .
The programs opened should not be combined ?
Check this setting :
If this is not what you want ,please explain your needs more detailed .All the settings about the taskbar are listed in the properties. You can have a look at these settings to find out the exact options to meet your need .
Best regards -
How do we remove Carriage Return (line feed) inserted in FCC files
Hi Experts,
The file that we generate has a carriage return at the end.
Is there any way in which we can remove this carriage return (line feed) from the file?
The FCC parameters used at our end are as below:
structure.filedNames:
structure.fieldFixedLengths:
structure.fixedLengthTooShortHandling: Cut
Kindly tell us a solution ASAP.
Thanks & Regards
DhwaniDear All,
Let me elaborate on my query
Consider that the files output looks like below:
12 34 45 545 5454 UL
23 33 43 434 4545 FG
45 44 44 586 6535 GM
Now there is an extra line(Carriage Return) getting inserted after the last line 45 44 44 586 6535 GM which is not required at our end.
The cursor of the file instead of stopping on the last character M, points to the next line.
Can you please suggest how to remove this extra line from the files.
I dont understan how will remove context help in this case.
Regards
Dhwani -
Using Search Help with ALV and Dynamic context node
The topic subject already describes my situation.
I have to create, populate and remove context nodes at runtime, and bind them to an ALV, to let user display the data or modify the data. The nodes I create are always typed with a table name, but the table name is of course, dynamic.
This is all working: what's not working is help for entries inside the ALV; since the table has foreign keys and domains with check tables or fixed values, I expected that search helps were detected and managed by the framework.
Instead, no help search is displayed except the input help based on data-type of the one "Date" input fields.
I think I have to work on the dynamic node creation, and not on the ALV itself, since the latter only takes the node/attributes information, but i could be wrong. I tried with both the two following codings:
CALL METHOD lo_nd_info_root->add_new_child_node
EXPORTING
static_element_type = vs_tabname
name = 'SAMPLE_NODE_NAME'
* is_mandatory = abap_false
* is_mandatory_selection = abap_false
is_multiple = abap_true
is_multiple_selection = abap_false
* is_singleton = abap_false
is_initialize_lead_selection = abap_false
is_static = abap_false
RECEIVING
child_node_info = lo_nd_info_data .
cl_wd_dynamic_tool=>create_nodeinfo_from_struct(
parent_info = lo_nd_info_root
node_name = 'SAMPLE_NODE_NAME'
structure_name = vs_tabname
is_multiple = abap_true ).
The result is the same...is there any way to let the ALV know what search helps it has to use, and doesn't force me to manually build a VALUE_SET to be bound on the single attributes? There are many tables, with many fields, and maintaining this solution would be very costly.I have checked with method GET_ATTRIBUTE_VALUEHELP_TYPE of interface IF_WD_CONTEXT_NODE_INFO, on an attribute which i know to have a search help (Foreign key of a check table).
The method returns 'N', that is the constant IF_WD_VALUE_HELP_HANDLER~CO_VH_TYPE_NO_HELP. So, the framework was not able to find a suitable search help.
Using method GET_ATTRIBUTE_VALUE_HELP of the same interface, on the same attribute, returns me '111', which is constant C_VALUE_HELP_MODE-AUTOMATIC.
Therefore, the WD framework knows it has to automatically detect a value help, but fails to find one.
Also, this means in my opinion that the ALV and the dynamic external mapping are not the culprits: since node creation, no help is detected for any attribute but the date. Honestly, I don't have a clue on what's happening. -
User-Defined Function and Context Manipulation
Hi Mapping Gurus, I need your help.
I have a user-defined function and one of my input parameter (c) is in a loop (EDI segment). So one, if I execute my function I get:
Exception:[java.lang.ArrayIndexOutOfBoundsException: 0]
If I change the context or use the remove context node function its working but its always taking the first row in consideration since I'm using c[0] . Here is the logic:
String WHERE_CLAUSE = "A"" = ""'"b[0]"'"" and B = ""'"c[0]"'";
So since c is an array [], I have tried different logic to get to the right row.
1- I tried using another parameter (e) to pass a counter or an index to my function. So each time it's looping, it's passing a new value to the function but Im still getting the first row and Im not to sure why?
int G = Integer.parseInt(e[0]); // e[] = My counter field
String WHERE_CLAUSE = "A"" = ""'"b[0]"'"" and B = ""'"c[G]"'";
2- I tried using a parameter stored in the container:
String Num;
Num = (String)getParameter(counter);
if (Num == null) G = 0;
else
G = Integer.parseInt(Num);
G = G + 1;
String WHERE_CLAUSE = "A"" = ""'"b[0]"'"" and B = ""'"c[G]"'";
Num = "" + G;
setParameter(e[0], Num);
and Im still getting the first one, look like its using a different container each time its looping so the Value is always the same?
4- I created a new user-defined function with the container logic, then its working but Im back to the same problem in my main function, its only looking at e[0] for my counter all the time.
5- I tried using the Seeburger Java Variables and guess what in the main fonction, as new UDF,... and guess what, same result!
So anybody out there that was able to get UDF's working into a multiple context scenario?
Am I missing something?
I will reward points and beer for any help!This is one of the text with passing a counter to the function to try to go to the right row in the array since I'm doing a remove context and I'm getting all the d_234's:
public void ReadTable(String[] a,String[] b,String[] c,String[] d,String[] e,ResultList result,Container container){
int G = Integer.parseInt(e[0]); // My counter
String var;
String DBTABLE = a[0];
String lookUpField = d[0];
String WHERE_CLAUSE = "A"" = ""'"b[0]"'"" and B = ""'"c[G]"'";
Now this one was with the internal container logic:
int G;
String DBTABLE = a[0];
String lookUpField = d[0];
String Num;
Num = (String)getParameter(e[0]);
if (Num == null) G = 0;
else
G = Integer.parseInt(Num);
G = G + 1;
Num = "" + G;
setParameter(e[0], Num);
String WHERE_CLAUSE = "A"" = ""'"b[0]"'"" and B = ""'"c[G]"'";
And now with the Seeburger Variables:
int G;
try {
VariableBean be=VariableFactory.getVariableInstance("");
G = Integer.parseInt(String.valueOf(be.getStringVariable("yves")));
} catch (Exception f) {
throw new RuntimeException(f);
String DBTABLE = a[0];
String lookUpField = d[0];
String WHERE_CLAUSE = "A"" = ""'"b[0]"'"" and B = ""'"c[G]"'";
try {
G = G + 1;
Num = "" + G;
VariableBean be=VariableFactory.getVariableInstance("");
be.setStringVariable("yves",Num);
catch (Exception f) {
throw new RuntimeException(f);
All 3 logics were returning always the first row or a counter of 1 if the logic is in the main ReadTable function. -
Disable Right Click Context Menu in XP "OPEN WITH ADOBE READER 8"
How can I eliminate the right click context menu "OPEN WITH ADOBE READER 8" in Windows XP?
I have general familiarity with removing context menus. I see no option for this one in msconfig, or various context menu editors. I am unable to find a setting in Adobe Reader 8. If you know where the setting is, or have solved this problem, please let me know.
Thanks,
JoeyThat would be the device Metadata from the print driver vendor. It's part of the Device Stage feature mainly for client OS.
Here is some MSDN documentation on the feature.
http://windows.microsoft.com/en-us/windows7/products/features/device-management
If this is a print server, use the tools include by the print team if you are performing any management on the server.
Printmanagement.msc
The Devices UI is really about devices it's not designed for print management, the spooler team had minimal input on the UI design.
Alan Morris formerly with Windows Printing Team
Maybe you are looking for
-
Report to show data for specific MD
Hello, I am racking my brain thinking of a way to do this... I have some specific masterdata for example Product 1,2,3...10 and i also have a cube where any Actual & target sales are recorded I need a way of producing a report whereby the report show
-
Calling webservices in Oracle Forms version 6.0.8.26.0
Hi, I am trying to call a webservice from Forms version 6.0.8.26.0. I have created the jar file using JDeveloper 9.0.3.1. I could import the class in forms but when I compile the form, it gives me the following error: Error 306 at line 13 column 13 w
-
Make pop-up appear as the topic only (i.e, w/o the screen layout)
Hello All, I'd like to use pop-ups in my current project but I'd like for the pop-ups to appear as the topic only without the corresponding screen layout (side bar, contents, index, glossary, etc.). I'm generating in Multiscreen_HTML5. When I previe
-
Investemnt measure relavant assets not added for IFRS Dep.
Hi All, We are added in asset accounting for IFRS Depreciation area,but we are facing problem is investemnt measure relavant assets not addedfor IFRS Dep.Please help me out this Issue. Regards Raju
-
How do you fix key light eyedropper after yosemite upgrade in ae cs5.5
since the yosemite upgrade the key light and every other eyedropper in ae crashs the program. a pop up noting: Unable to obtain the User 'Language' registry key at: Software\Adobe\After Effects\10.5\ Defaulting to 'en_US'. could domeone please help?