Get workitem parent by transaction
Hi,
Is there a way to retrieve the field swwwihead-top_wi_id from a transaction?
I've a lot of workitem from SWI1 and i'd like to get the parent(top-wi_id) for each of them(without developing a report).
Thanks in advance
Hello Tony,
I believe the column titled "Workflow ID" in SWI1 is what you're looking for.
Cheers,
Mike
Similar Messages
-
How to get a Parent Message Id in Mapping?
Hi,
I have a scenario to post the idoc to file to mulitple receivers. I have to get both Message ID and Parent Message ID in mapping. I am able to get Message ID but not Parent Message ID. I tried to get it from Table sxmspmast but it does not contain the entry during runtime.
Any suggestions to get the Parent ID while in Mapping.
Thanks,
Manikandan Ryou can create a UDF,say getMSGID, to get current message ID:
String headerField;
java.util.Map map;
// get runtime constant map
AbstractTrace trace=container.getTrace();
map = container.getTransformationParameters();
String key = "MessageId";
// get value of header field by using variable key
headerField = (String) map.get(key);
return headerField;
pass this output to an RFC lookup UDF which calls this FM in XI ABAP stack:
FUNCTION ZGET_PARENT_MSG_ID.
""Local Interface:
*" IMPORTING
*" VALUE(I_CURRMSGID) TYPE CHAR40
*" EXPORTING
*" VALUE(E_PARENTMSGID) TYPE CHAR40
DATA: lv_currmsgid type SXMSPMAST-MSGGUID,
lv_parentmsgid LIKE SXMSPMAST-PARENTMSG,
lv_currmsgid = i_currmsgid.
select single PARENTMSG from SXMSPMAST into lv_parentmsgid where MSGGUID = lv_currmsgid.
e_premsgid = lv_parentmsgid.
ENDFUNCTION. -
How to get the parent of a component in fx?
Here is an example:
Index.fx:
Stage {
title: "Online book library";
width: 1024
height: 768
scene:Scene {
fill: Color.WHITE
content: [
banner ,
login = Login{translateX:715 translateY:135}
};Login.fx:
var logOn : Button = Button {
translateX:25 translateY: 170
text: "Log On"
font: Font {size:11 name: "Verdana Bold"}
action: function() {
showHello();
function showHello(){
// add a label in index.fx whose text is "welcome!";
}I want to show something on the index.fx but I don't know how to get the parent from the child component?
In Flex, we use parent or parentApplication, Is there a similar function in JavaFX?Reusing the same Tile example, I had no problems, I suppose I was doing wrong the first time:
def IMAGES_WIDTH = 100;
def IMAGES_HEIGHT = 100;
var COLUMN_NB = 3;
var ROW_NB = 3;
var scene: Scene;
var previews: Container;
Stage
title: "Test of Tile layout"
scene: scene = Scene
width: 500
height: 500
fill: Color.LAVENDER
content:
previews = Tile
hgap: 10
vgap: 10
layoutX: bind (scene.width - previews.width) / 2
layoutY: bind (scene.height - previews.height) / 2
columns: COLUMN_NB
content: for (i in [ 1 .. COLUMN_NB * ROW_NB ])
ImageView
id: "IV{i}"
image: Image
url: "{__DIR__}clock.gif"
width: IMAGES_WIDTH
preserveRatio: true
onMousePressed: Hide
function Hide(evt: MouseEvent): Void
println("{evt.node} ({evt.node.id}) - {evt.node.parent}");
var nm: Node = evt.node.parent.lookup("IV5"); // Middle node
nm.visible = false;
var ntl: Node = evt.node.parent.lookup("IV1"); //Top left node
(ntl as ImageView).viewport = Rectangle2D { height: IMAGES_WIDTH/2, width: IMAGES_WIDTH/2 };
(evt.node.parent as Tile).hgap = 20; // Strange effect, but works
} -
How to get the parent window in sub-child controller class in javafx?
how to get the parent window in sub-child controller class in javafx?
You can get the window in which a node is contained with
Window window = node.getScene().getWindow();Depending when this is invoked, you might want to check the Scene is not null before calling getWindow().
If the window is a stage that is owned by another window, you can get the "parent" or "owner" window with
Window owner = null ;
if (window instanceof Stage) {
Stage stage = (Stage) window ;
owner = stage.getOwner();
} -
Where do I get all SAP WM transaction codes for user acceptance test ?
Hello experts,
Where do I get all SAP WM transaction codes for user acceptance test during cutover activities?
I need the list of transactions.
Thanks in advanceHi,
You can download through Solution Manager also. If ASAP is installed in your computer, you can download all the standard transactions, otherwise let me know your id, i will send it to you.
Aktar -
Problem with GET PARAMETER in "O4K_LICENSE" Transaction
Hi folks,
I am facing a problem with the usage of "GET PARAMETER ID" in the transaction O4K_LICENSE (IS-oil).
I have written a BDC which feeds in the License Type, External License type and a few other Mandatory fields to the Transaction, and on saving the transaction, SAP generates an "Internal License Number". This field has a Parameter ID "OIH", and I am using the command
GET PARAMETER ID 'OIH' FIELD lw_licin.
For the first pass of the loop, there is a value coming into lw_licin, but in the later loops this Value is not refreshing and the value which is coming into lw_licin is not changing. But the Database table OIHL is getting updated with the correct Internal License number values.
So, my question is, is there anyway by which i can refresh the SAP Global Memory after every loop pass?
Or, is there any way out to get the new generated values into lw_licin ?
Thanks in advance,
Vijay.Hi
If you clear the parameter, you should transfer a blank value to it:
DATA: NO_VALUE.
SET PARAMETER ID <ID> FIELD NO_VALUE.
Now the problem is this statament should be into loop and i think the transaction only does the GET PARAMETER.
If transaction doesn't do the SET PARAMETER yuo can do anything.
In your standard program there should be something like:
LOOP...
IF SY-TABIX > 1.
SET PARAMETER ID <ID> FIELD NO_VALUE.
ENDIF.
ENDLOOP.
but I think it's very hard there is a piece of code like that, and you can do nothing, because you can only set the parameter before calling the transaction (in bdc mode) and after calling the transaction but not while the transaction is working.
You should change the standard program to do this.
Max
Message was edited by: max bianchi -
How to get GUID for a transaction
How to get GUID of a transaction in solution manager support desk.
pls help reg this.Hi Kalpanashri,
I would suggest you to go for recording of the transaction. Then you can get to know the tables of the related fields which you have entered value during recording.
OR
For checking individual fields, you can go for the <b>WHERE-USED LIST</b>.
For Ex:
Please go to SE11 and enter data type with MATNR.
Then click on where-used list button and check only table type (the first option) and click on continue.
The system will show list of tables that store value of MATNR field. You can do double click on the field name and system will take you to detail screen of the table fields. Then from here ... you browse the data as well.
Hope this resolves your query.
Reward all the helpful answers.
Regards -
How to get the parent node of the current node?
Hi all,
i want to get the parent node of the current node and the not the parent of the parent node.
thank you very muchHi,
the parent node of <subnode1-2>29.99</subnode1-2> is (node1), how can do to get <node1> throw <subnode1-2>29.99</subnode1-2> the sub node of <node1>.
As per my understanding the parent node of <subnode1-2>29.99</subnode1-2> is book not the node1.
If you want node 1 as a parent of subnode1-2 than your xml will look like this.
<?xml version="1.0" encoding="ISO-8859-1"?>
<bookstore>
<book>
<fathernode>Harry Potter</fathernode>
<node1>
<subnode1>29.99</subnode1>
<subnode2>29.99</subnode2>
</node1>
<node2>
<subnode1>19.99</subnode1>
<subnode2>19.99</subnode2>
</node2>
</book>
</bookstore>
and also if you want tom retrive float data than refer following XPATH.
"//book[[price='1000']]/price/text()"
Regards,
Manoj Bilthare -
How to get the parent Frame of a component ?
Hi,
I'm wondering how to get the parent JFrame (or JDialog) of a component.
Thanks for tipsI'm using this code:
public Component getFrame(Component comp)
Component frame = comp;
while ((frame != null) && !(frame instanceof Frame))
frame = frame.getParent();
if (frame == null)
frame = comp; // no parent found
return frame;
} -
FM for getting the Parent materials for the component material
Hi All,
I need to to get a list of parent materials for a given component material and that too upto 10 levels.
i.e.
Ist Iteration
The material M1 is a component in 3 other materials.
2nd iteration
The above 3 materials will be a components of 3 other materials each i.e. now a total of 9 materials are there.
3rd iteration
The above 9 materials will be a component of 3 other materials each i.e. now a total of 27 materials are there.
upto 10 iterations.
Is there any FM which can provide me the list of parent and superparents for a given component material..upto 10 levels (or something closer if these levels exists).
Regards
AbhishekHi,
Check this link..Getting the Parent Material (BOM) -
Getting the Parent JFrame or JDialog
I am trying to get the parent JFrame or JDialog so I can change the cursor. Right now I am doing it in a stupid way by doing this:
private void changeCursorQuestion(){
JFrame frame=(JFrame) getParent().getParent().getParent().getParent().getParent().getParent().getParent();
Cursor cursor=new Cursor(Cursor.HAND_CURSOR);
frame.setCursor(cursor);
}//end changeCursorQuestionBut is there an easier and of course better way of getting the frame or jdialog that a panel is in?I am trying to get the parent JFrame or JDialog so I can change the cursor. You can change the cursor of the JPanel ( in fact any Container) so why use that getParent() thing....
Also, if you want to have quick refrence to JFrame object from JPanel, extend JPanel to make a new class and have a refrence to that JFrame/JDialog in that class, that way you can access it quickly.
Thanks! -
How to get rid of maintaining transaction IDX2
Hy everybody,
is there a way to get rid of maintaining transaction IDX2, when an IDoc structure changes?
Thanks a lot,
ThomasI have done some investigations and found the part in the idx2 where the structure is deleted...
delete from idxsload where port eq i_idxsload-port
and idoctyp eq i_idxsload-idoctyp
and cimtyp eq i_idxsload-cimtyp.
delete from idxidocsyn where port eq i_idxsload-port
and idoctyp eq i_idxsload-idoctyp
and cimtyp eq i_idxsload-cimtyp.
Do you think it is crazy to write a program which uses this lines of code?
Regards,
Thomas -
[CS2 JS] Get the parent paragraph of a table
Hi,
Anybody here who knows how to get the parent paragraph of a selected table?
var myTable = app.selection[0];
var myStory = myTable.parent.paragraphs;
The script above gives me all the paragraphs of the parent text frame. I want to know the index of the paragraph where my selected table is.
Appreciate the help you can give. Thanks!from VB6 ObjectBrowser (PC):
Property StoryOffset As InsertionPoint
read-only
Member of InDesign.Table
The location of the Table in the parent story.
so (VB6):
myTable.StoryOffset.Paragraphs.Item(1)
should give you paragraph
robin
www.adobescripts.com -
Getting a parent folder WITHOUT IfsFileSystem
Hi,
We discovered that using the IfsFileSystem class drastically increases access times to iFS public objects. As a result we are considering phasing out use of this class in favour of other API calls, which appear to be faster.
Unfortunately we cannot find an easy way to get the parent folder of a document or folder. Please help, we definitely cannot use IfsFileSystem and need another way around.
It would be interesting to hear if anybody else has discovered problems with the IfsFileSystem class. Even just creating one instance seems to increase access times?!?
Thanks in advance,
MaxOne way to do this is to use either of the following two methods on PublicObject:
public java.lang.String[] getAllFolderPaths()
public java.lang.String getAnyFolderPath()
The first will return every path to the PublicObject in question. (Remember that a PublicObject can have multiple parent folders, or none.) The second will return one of them.
Given a folder path, you can find a PublicObject. Here's some pseudocode (if you decide to use this, make sure to check for IfsExceptions and null values):
// get your folder and its path
LibrarySession sess = openLibrarySession();
Folder myFolder = getMyFolder();
String path = myFolder.getAnyFolderPath();
// get its parent folder
FolderPathResolver fpr =
new FolderPathResolver(sess);
PublicObject parent = fpr.findPublicObject(
path +
sess.getFolderPathDelimiter() +
FolderPathResolver.UP_DIRECTORY_TOKEN );
Another way to do this would be to search for all FolderPathRelationship objects whose RIGHTOBJECT attribute is your folder, and then get the LEFTOBJECT attribute from one of the FolderPathRelationship objects you find. The LEFTOBJECT would be the folder's parent.
Read the javadoc for more details. -
FMor Bapi to get the number of transactions in SM35 for the session name
Hello All,
Can you anybody give me a function module or bapi to get the number of transactions in SM35 for the session name.
Can anybody help me out in this issue.
ThanksHello Maroz,
Thanks for the help.But can you provide me a FM or BAPI.
Thanks
Maybe you are looking for
-
Trigerring Outbound XI interfaces in ABAP
Hi, I need to know about calling an outbound XI interface in ABAP. Can any body share some knowledge about this? Thanks, Kulwant
-
Fonts in pdf files show as squares
My new lion imac renders some fonts in pdf files as squares. I trensferred applications and setting from my old snow leopard macbook which was working ok. Problem appears in preview, skim, filemaker but not in adobe reader. Seems like the lion pdf re
-
Front Panel 3D Plot Object will not load
Hello Everyone, I'm having a problem on a particular PC in our lab where, when I attempt to place the 3D graphing object, it does not appear on the front panel. The associated subVI objects appear in the block diagram but if I try to right click and
-
Performance Optimization for Collection
I have a query with fetches the data as a Record Type in the form of an Array like below :- SELECT <Long_Column_List> FROM (TABLE(<Schema_Name>.<Package_Name>.<Function_Name>))y Where the Function Returns a PLSQL table type. This approach we had take
-
Catalyst 2950 sockets ios 12.1.22
There are several listening sockets on the management interface, as output form show ip sockets The listening port numbers are 67,68,2228. I do not know what is being used on these ports. DHCP is handled by another machine. 2228 i have no idea, but e