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..
Sheetal
you 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
Similar Messages
-
Hi
I have wrote a below Advanced UDF (using context). But I want to return string array "temp" through "result". My below code throug error as last "result" statement is wrong. If anybody knows how to define this statement could you plz help me out ?? Any help in this regard is highly appreciated.
String[ ] temp = new String[1000000000];
for (int i = 0; i < a.length; i++) {
if ((Integer.parseInt(a<i>) == 11) || (Integer.parseInt(a<i>) == 12) || (Integer.parseInt(b<i>) == 4)) {
temp<i> = "1";
temp<i> = "0";
// String temp1 = Arrays.toString(temp).
result = (temp [ ]);
Thanks in advance
kumarIf you need to output the value of 'temp',then you can try this code : -
String temp = null;
for (int i = 0; i < a.length; i++) {
if ((Integer.parseInt(a) == 11) || (Integer.parseInt(a) == 12) || (Integer.parseInt(b) == 4))
temp = "1";
result.addValue(temp);
else
temp = "0";
result.addValue(temp);
Regards
Priyanka -
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 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
sandeepHi,
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 -
ADVANCED PULLDOWN REMOVAL - Problem with 60 Hours of Material
After I capture about 60 hours of material and worked for the past 3 months in a 90 minutes documentary I realized that the material was shoot in 24P advanced and was not captured in advanced pulldown removal mode! What should I do now? Should I do an online of the 90 min sequence with advance pulldown removal? What should I expect to happen? Thanks a lot in advance for your help.
I am delivering an EDL to do an online in HD for later on blow it up to 35mm. I just don't want to fix problems in the online because it'll take time therefore MONEY. I was thinking on recapturing the master sequence in my machines at advanced pulldown removal, fix any problems and then export the EDL to go to the online.
Dual 2 GHz G5; 4.0 GB RAM, Mac OS X (10.4.8) Dual 2 GHz G5; 2.0 GB RAM, -
Advance pulldown removal problem
There is a bit of info i've found about similar issues but nothing covers my scenario. I captured dvx100a 24pa footage-- but without the advance pulldown removal selected. The clips therefore all had frame rates of 29.97. I then went to tools and added the "*remove advance pulldown*".
Two different things happened to my clips. It's corrupting some clips and not others. Some worked and changed to 23.98 fps. Others instantly went offline and when I tried to reconnect the media from the capture scratch I get this:
"*File Error: 1 file(s) recognized, 0 access denied, 1 unknown*" and I can't reconnect the media--that still plays fine in quicktime from the capture scratch. I have to re-digitize all the random clips that this happens to.
I'm wondering if it might be a fps and timecode issue-- or a codec issue. Any ideas would be greatly appreciated.
thanks.Think I figured it out. There was a duplicate folder with the media files on two hard drives and FCP may have been trying to reference both. Deleted one folder and files went offline then when i reconnected the media and applied "remove advance pulldown" it worked this time.
-
Hey Everyone,
I recently got into video editing and production through my work. We were working with some multi rotor pilots to get some aerial footage of a ranch and there was a shadow in one of the segments. More so for my own knowledge then for work purposes I have been trying to remove the shadow. It crosses over grass, gravel, a cattle guard, and nears another shadow so using any kind of clone stamping or masking was proving to be super difficult. I found this youtube video for advanced object removal and have been trying to follow the steps. As far as I can tell, I have followed them to a T but am still having some issues. Without being super familiar with After Effects or with some of the fundamentals of video editing I have been at a stand still trying to figure it out.
This is what I am getting after following the video. For some reason, I can't seem to get rid of the white solid layer entirely. Im guessing it has to do with how the light projection is happening or with the camera tracking. The other large problem I am having is that the light projection seems to just be a zoom in of the second clip layer. If I move forward in the clip you can see the upper layer is expanding and getting larger instead of just playing through. Lastly, as you can see in the image, i am having some issue with the quality of the projected image. Again I'm sure this is just a simple settings change but I am not sure where to start my look for them.
I attached the video footage I was working with if anyone would like to try. Again I'm just learning After Effects and would appreciate any help I can get.
Dropbox - Emigrant Shadow.mp4
Thanks!The only times I've had problems with this is if I've captured multiple formats on one tape and my batch is too close to the other format. I mean, if the run-up is starting in the odd format.
I'd hate to say go in and capture one at a time... then make sure the pulldown was removed and if not, do it manually... under TOOLS.
CaptM -
Audio goes missing after advanced pulldown removal
Anybody come across this? I can't find anything in the forum about it.
I shot 24pAdvanced on my DVX-100A. Captured everything as 29.97 NTSC DV in 20 min segments. I do a DV Start/Stop Detect to get markers placed, then do an advanced pulldown removal and edit on 23.98 timeline. I've got about 100 hours of footage, and have been going along quite smoothly on about 80 of those hours.
Recently however, some clips mysteriously lose their audio after the pulldown removal! Both audio tracks are still there, but they are flatlined. All except for the first 4 or 5 seconds actually. That much audio is present. Then the waveforms show it just flatline. Recapturing the tape replaces the audio, but then it disappears after the pulldown again!
Any thoughts would be welcome
2GHz Mac Book Pro Mac OS X (10.4.8) 1.5 GB RAM, FCP 5.1.2, 23" HD monitorI am delivering an EDL to do an online in HD for later on blow it up to 35mm. I just don't want to fix problems in the online because it'll take time therefore MONEY. I was thinking on recapturing the master sequence in my machines at advanced pulldown removal, fix any problems and then export the EDL to go to the online.
Dual 2 GHz G5; 4.0 GB RAM, Mac OS X (10.4.8) Dual 2 GHz G5; 2.0 GB RAM, -
Hi,
could you please tell me the use of Container in advanced UDF ?? Preferrably with examples
thanks
kumarKumar,
Refer below links it will be more helpful.
http://help.sap.com/saphelp_nw70/helpdata/en/78/b4ea10263c404599ec6edabf59aa6c/content.htm
http://help.sap.com/saphelp_nw70/helpdata/en/b3/9a2aeb24dc4ab6b1855c99157529e4/content.htm
Best Regards,
raj. -
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 -
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 -
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
-
UDF - Removing Header Record from File
Hi Team,
In my file(File Content Conversion) to ABAP server proxy scenario...
The source File structure is like this...
KUNNR|Matnr|Description----->(This is Hearder Record.Each File contains this header record.)
1001|0077321|Special Materials
1002|0077323|Raw Material
File adapter will picks the file , In Message Mapping The first record is the Header Record from the above file structure.So I need to remove the Header Record.
Can we handle this requirement with any FCC parameter ;I think we can do it with the help of UDF in MessageMapping?
Can anybody ghelp me the sample code for this.
Thanks.
DrumiHi,
You can use Document Offset in FCC to specify the number of lines that are to be ignored at the beginning of the document.
Regards,
Priyanka -
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> -
Hi All,
I write a UDF to change context but it is not working properly
can any please guide me. code is ,
for (int i = 0 ; i<Plant.length ; i ++)
int b = 0;
for (int j = 0 ; j<Plant.length ; j++)
if (i!=j)
if (Plant<i>.equals(Plant[j]) )
b++;
if (b > 0 )
result.addValue(ResultList.CC);
else
result.addValue ("true") ;
In this code it is working for 'result.addValue ("true")' but not for 'result.addValue(ResultList.CC)'
Can any one tell me where is a problem?
---RohitRohit,
I've doubt that the condition for true is not satisfied and it always goes to else block.
Add MappingTrace to your code and check if its going to the If block or always it goes to esle block.
One more thing what is this operator for (int j = 0 ;<b> j><Plant.length</b> ; j++) ? What r u trying to achieve...
-raj.
Maybe you are looking for
-
Dump in BAPI while fetching data
Hi all, I m getting a short dump (: ' No more storage space available for extending an internal table.') in my vendor trial balance report . The place of short dump is the BAPI which im using to fetch opening balance i.e BAPI_AP_ACC_GETKEYDATEBALANC
-
I accidentally wiped out all the memory from my desktop computer, including all the music from my Window's media player and itunes. All of my favorite music is stored on my iPhone, most of which was not bought from iTunes. iTunes only synced the musi
-
How can I reduce BEx Query execution time
Hi, I have a question regarding query execution time in BEx. I have a query that takes 45 mins to 1 hour to execute in BEx analyser. This query is run on a daily basis and hence I am keen to reduce the execution time. Are there any programs or funct
-
The Ol' "My Duration Isn't Showing Up" issue.
'Casters, I've been doing my podcast using LibSyn for over 4 years and have never seemed to have this issue. We have never changed the way that encode or export our show's MP3's. This past Friday, after releasing our show I had a bit of a long wait t
-
Firefox will not open, but when I shut my computer down it says that it is running and must be forced quit. Once I rebute the computer it opens but is very slow and hang up on many web pages. I have reinstalled it with little help. In contrast, Windo