PM Order: get PRT list for an operation
Hi expert,
I need to get the PRT list for an operation for a PM order (in particolar I need the documents related to a specific operation).
Do you know if exist a FM?
Any suggest?
Thanks
Salvatore
This is my solution:
PARAMETERS: p_aufpl LIKE affh-aufpl.
DATA: it_affh TYPE STANDARD TABLE OF affh WITH HEADER LINE.
DATA: it_affhd TYPE STANDARD TABLE OF affhd WITH HEADER LINE.
DATA: aufpl_tab TYPE STANDARD TABLE OF aufpl_pre WITH HEADER LINE.
SELECT * FROM affh INTO CORRESPONDING FIELDS OF TABLE it_affh
WHERE aufpl = p_aufpl.
LOOP AT it_affh.
* MOVE-CORRESPONDING it_affh TO it_affhd.
** APPEND it_affhd.
MOVE-CORRESPONDING it_affh TO aufpl_tab.
APPEND aufpl_tab.
ENDLOOP.
CALL FUNCTION 'CF_BT_CO_AFFH_PRE_READ_FROM_DB'
TABLES
aufpl_tab = aufpl_tab
* ORD_TAB = AUFNR_TAB
EXCEPTIONS
OTHERS = 1.
CALL FUNCTION 'CF_BT_CO_AFFHD_TAB_GET'
* EXPORTING
* i_aufpl = p_aufpl
* I_APLZL =
* I_NO_DELETED = ' '
* I_NO_PHYS_DELETED = ' '
* I_FLG_STATX = 'X'
TABLES
affhd_tab = it_affhd
* EXCEPTIONS
* NOT_FOUND = 1
* OTHERS = 2
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
WRITE: 'fine'.
LOOP AT it_affhd.
WRITE: / it_affhd-doknr.
ENDLOOP.
Similar Messages
-
FindGroups - Error while getting group list for login user
Hi All,
I am using below code snippet to search a group in OIM but it gives me "Error while getting group list for login user" error message.
tcResultSet rsetAss = null;
tcGroupOperationsIntf groupIntf = (tcGroupOperationsIntf)utilFactory.getUtility("Thor.API.Operations.tcGroupOperationsIntf");
HashMap mapGrp = new HashMap();
mapGrp.put("Groups.Group Name","DEF_GROUP");
rsetAss = groupIntf.findGroups(mapGrp);
And i am ruuning this code using xelsysadm logon.
com.thortech.xl.util.config.ConfigurationClient.ComplexSetting config = ConfigurationClient.getComplexSettingByPath("Discovery.CoreServer");
Hashtable env = config.getAllSettings();
com.thortech.xl.crypto.tcSignatureMessage moSignature = tcCryptoUtil.sign("xelsysadm", "PrivateKey");
utilFactory = new tcUtilityFactory(env, moSignature);
Any guess?
Thanks & Regards
Inbaa.Here it is Rajiv,
public class GetUserApprover {
private String defGroup = "DEF_GROUP";
public tcUtilityFactory getUtilFactory()
tcUtilityFactory utilFactory = null;
try
logger.debug("Initializing the utilFactory");
com.thortech.xl.util.config.ConfigurationClient.ComplexSetting config = ConfigurationClient.getComplexSettingByPath("Discovery.CoreServer");
Hashtable env = config.getAllSettings();
com.thortech.xl.crypto.tcSignatureMessage moSignature = tcCryptoUtil.sign("xelsysadm", "PrivateKey");
utilFactory = new tcUtilityFactory(env, moSignature);
catch(Exception ex)
logger.info("Error while getting the utilFactory" + ex.getMessage());
System.out.println(ex.getMessage());
return utilFactory;
public String getGroupKey(String defGroup){
String groupKey = null;
tcUtilityFactory utilFactory = getUtilFactory();
if(utilFactory != null)
System.out.println("utilFactory not null. Searching for group:" +defGroup );
try
tcResultSet rsetAss = null;
tcGroupOperationsIntf groupIntf = (tcGroupOperationsIntf)utilFactory.getUtility("Thor.API.Operations.tcGroupOperationsIntf");
HashMap mapGrp = new HashMap();
mapGrp.put("Groups.Group Name","DEF_OWNER_GROUP");
System.out.println("Finding Group....");
rsetAss = groupIntf.findGroups(mapGrp);
System.out.println("RowCount-->" +rsetAss.getRowCount() );
rsetAss.goToRow(0);
groupKey = rsetAss.getStringValue("Groups.Key");
System.out.println("GroupKey-->" + groupKey);
catch(Exception e){
System.out.println("Error" + e.getMessage());
return (java.lang.Object)groupKey;
} -
How to get pages list for a group space or create a page for a group space
hi All,
I am using wc11.1.1.3, I want to use java api to implementing the following functions in site template:
1. Get pages list for a given group space
2. Create a page for a given group space
I researched the following codes from web site:
PageDef newPage = mPageService.createPage(
PERSONAL_USER_PAGE, pageNameFormat, pageTitle,
"MyPageTemplate1.jspx",
"/mytemplates/",
null, null, null);
What should be used instead of PERSONAL_USER_PAGE if a group space page is intended to be created? which parameter is for defining group space name that the page should be created for?
By the way, PageService seems has method for getting list of pages, but how to use it to get page list which is in a specified gs?
Best regardsdid you manage to get the page list using Page Service API?
-
How can I get file list for a given directory?
Hi,
How can I get file list for a given directory? Is there a function?
Thanks.Hi friend,
Try this sample report. It displays all files in a directory.
While executing give some directory name in input. ex: C:\
Mention file type in filter parameter. ex: *.DOC
REPORT ztests.
DATA : file_table LIKE TABLE OF sdokpath WITH HEADER LINE .
DATA : dir_table LIKE TABLE OF sdokpath WITH HEADER LINE .
PARAMETERS:p_dir(50) TYPE c.
CALL FUNCTION 'TMP_GUI_DIRECTORY_LIST_FILES'
EXPORTING
directory = p_dir
filter = '*.DOC'
TABLES
file_table = file_table
dir_table = dir_table
EXCEPTIONS
cntl_error = 1
OTHERS = 2.
LOOP AT file_table .
WRITE:/ file_table-pathname.
ENDLOOP.
Might be helpful...
Thanks.....
Edited by: Guest77 on Feb 11, 2009 5:30 AM -
My laptop pc got stolen, how can I get hold of all the itune music I purchased, or at least get a list for insurance?
Yu can try this program. If unsuccessful, the contents of the iPod will be deleted if yu update/restore with the iPod in recovery mode.
RecBoot: Easy Way to Put iPhone into Recovery Mode | Jaxov -
On Work Order using Object lists for equip u can manually create Notifi
On a maintenance Work Order using Object lists for equipment you can manually create a notification for each line item.
We want to automate this process to do this when we save the document.
Any ideau2019s on how to do this?
Does a user exit exist for this?Hi:
Check with Tcode: IBIP - Plant maintenace batch input utility tool.
Hope, it may help!
Thanks,
Murali. -
Print Picking list for late operation in WO
Hello Experts,
I am not an expert in PP module, however i have a requirement to be able to generate a picking list automatically in a Work order for the components which are assigned to an operation that will happen in futur.
Let say we have a WO with 8 operations, and the operation 8 will begin 3 months after the release of the WO.
Does SAP manage in standard a printing of pick list for component that will be usd in WO at the last operation?
Thanks for your help
RegardsHi,
Thanks for feedback,
As i understand, it is possible to release operation by operation in the work Order ? can you please indicate me how to perform that?
And if it is the case, does it mean after each release the picking list is printed?
As i know there is only one release flag (green) to release all the work order. -
hi frnds,
In the tcode ib02 , we get the bom component list for particular equnr no. now in iw32 we need bom component list in the f4 help o,f component field of the components tab for particular equnr no ,added in the header tab.please help.
regard rajit.Rajit,
This facility is there in Standard.
In the components tab click on the List icon at the bottom menu (see picture below) . You'll be presented the BOM list, Here you double click on the material to be taken into Order. You'll be back to Components page with the material copied into Components list.
Jogeswara Rao K -
Getting BAPI_ALM_ORDER_MAINTAIN work for updating operations!
Dear users,
I am having a tough time in getting the BAPI_ALM_ORDER_MAINTAIN for updating my operations.
The requirement is to update the Material Group, Vendor and a few fields on the First operation of the Order. I have written a piece of code ( extracted bits and pieces from previous threads raised on the same issue).
The issue I have is, it only updates the Operation if a RELEASE is included in the method, and needless to say, it can happen only once. If I remove the RELEASE from methods table, then it gives a success message that the BAPI has worked, but nothing gets reflected on the Order. And as a bonus (?!!) I get an 'Update terminated' message in my SAP BUsiness workplace with an error SAPSQL_ARRAY_INSERT_DUPREC, when I try to open the Order.
Please find the code below in the next post.
Can you please suggest if there is a way to update ONLY the operation?
Thanks,
Vijayl_method_line-refnumber = '000001'.
l_method_line-objecttype = 'HEADER'.
l_method_line-method = 'CHANGE'.
l_method_line-objectkey = p_aufnr.
APPEND l_method_line TO l_methods.
l_method_line-method = 'RELEASE'.
APPEND l_method_line TO l_methods.
l_method_line-objecttype = 'OPERATION'.
l_method_line-method = 'CHANGE'.
CONCATENATE p_aufnr '0010' INTO l_method_line-objectkey.
APPEND l_method_line TO l_methods.
l_method_line-method = 'SAVE'.
l_method_line-objecttype = space.
APPEND l_method_line TO l_methods.
MOVE p_aufnr TO l_header_line-orderid.
MOVE sy-datum TO l_header_line-start_date.
MOVE '7' TO l_header_line-priority.
APPEND l_header_line TO l_header.
MOVE 'X' TO l_header_up_line-start_date.
MOVE 'X' TO l_header_up_line-priority.
APPEND l_header_up_line TO l_header_up.
MOVE '0010' TO l_operation_line-activity.
l_operation_line-MATL_GROUP = '9051'.
l_operation_line-usr01 = 'Test 1'.
APPEND l_operation_line TO l_operation.
MOVE 'X' TO l_operation_line_up-MATL_GROUP.
MOVE 'X' TO l_operation_line_up-usr01.
APPEND l_operation_line_up TO l_operation_up.
* Update order
CALL FUNCTION 'BAPI_ALM_ORDER_MAINTAIN'
TABLES
it_methods = l_methods
it_header = l_header
it_header_up = l_header_up
* IT_HEADER_SRV =
* IT_HEADER_SRV_UP =
* it_userstatus = l_userstatus
* IT_PARTNER =
* IT_PARTNER_UP =
it_operation = l_operation
it_operation_up = l_operation_up
* IT_RELATION =
* IT_RELATION_UP =
* IT_COMPONENT =
* IT_COMPONENT_UP =
* IT_TEXT =
* IT_TEXT_LINES =
* EXTENSION_IN =
return = l_return
* ET_NUMBERS =
LOOP AT l_return INTO l_return_line.
WRITE:/ l_return_line-type,
l_return_line-id,
l_return_line-number,
l_return_line-message.
ENDLOOP. -
Query to get objects list for which the current user has 'SELECT' privilege
Hi,
I want to get tables and views list for which the current user has 'SELECT' privilege excluding sytem tables and views. The privilege information for the current user is scattered in more than one system views. I have following system views
USER_TAB_PRIVS_RECD - Object grants for which the current user is the grantee
ROLE_TAB_PRIVS - describes table privileges granted to roles. Information is provided only about roles to which the user has access.
If the object privilege is granted explicitly like "GRANT ALL ON TABLE_NAME TO "USERNAME" then this privilege entry goes to USER_TAB_PRIVIS_RECD
If the object privilege is granted by ROLE. Role is created with certain object privileges. this role is assigned to user "GRANT ROLE_NAME TO "USERNAME"", then this entry goes to ROLE_TAB_PRIVS
From these findings, I have composed below query
(SELECT DISTINCT TABLE_NAME FROM USER_TAB_PRIVS_RECD) UNION (SELECT DISTINCT TABLE_NAME FROM ROLE_TAB_PRIVS WHERE PRIVILEGE = 'SELECT')
Have I got user's all prvilege details? should I look some other system views?
How to exclude system table privileges details?
(SELECT DISTINCT TABLE_NAME FROM USER_TAB_PRIVS_RECD) UNION (SELECT DISTINCT TABLE_NAME FROM ROLE_TAB_PRIVS WHERE PRIVILEGE = 'SELECT' AND OWNER NOT IN ('SYS','SYSTEM') Is this right?
What about Public role in Oracle? Should I consider public role here?
Oracel Version :11g
I want make this query to work on Oracle 8i or above version
Thanks>
I want to get tables and views list for which the current user has 'SELECT' privilege excluding sytem tables and views.
>
You will need a hierarchical query to do that.
Try this script for Listing privileges recursively for Oracle users
http://www.adp-gmbh.ch/ora/misc/recursively_list_privilege.html -
Hi,
I was trying to find where I could attach Document Info Record (DMS) into a Customer Service Order. A friend told me that it is in the u201COperationsu201D tab of the order under the u201CProd. Resources/Toolsu201D. I managed to do that. However, my users didnu2019t like the idea of having many clicks to get to the documents. Any other shorter way which I could attach the document info record?
That is my first question. My second question is that whenever I remove a document and replace with a different one, where can I view the logs (or is there one at the first place)?
http://img65.imageshack.us/img65/2297/csik7.pngHi Lao,
If u have used DMS System then it is worth to use this functionlity.
Linking a Document to a Production Resource/Tool
This procedure describes how you can link a document to a production resource/tool(PRT) with a PRT master record (miscellaneous).
For information about how to assign documents to the other PRT categories, see -
· for materials - LO - Managing Material Master Data
· for equipment - PM - Structuring Technical Systems
· for documents - CA - Document Management Guide
Prerequisites
The document that you want to link the PRT with has been created in document management. Its document type permits it being assigned to PRTs (set up in Customizing) - see CA - Document Management Guide.
Procedure
1. In the SAP menu choose Logistics ® Production ® Master data ® Prod.resources/tools and then Prod.resources/tools ® PRT master (misc.) ® Change.
2. Enter the PRT and choose Enter.
3. On the Basic Data screen choose Extras ®Document data
4. Enter the data of the documents, which you want to link with the PRT. Choose Continue.
5. Save the PRT.
Result
The documents are now linked with the PRT. You can display and print them in the PRT master record.
http://help.sap.com/erp2005_ehp_03/helpdata/EN/7e/d417cc455911d189400000e8323c4f/frameset.htm
Ramesh -
I'm just wondering if there is anyway this is possible. I have a function which generates a list of ids which I am using in my where clause. It looks something like the following:
SELECT blah from blahblah
WHERE blahblahblah IN function_blah(####)
function_blah returns a list of values. Is there anyway to rewrite this to work.Thanks for the help everybody, but it looks like this actually ruins the performance enhancements I was trying to acheive. It calls the function for every row in eb_par as opposed to the valid rows in rpr_par at the time of the join.
SELECT DISTINCT eb.circuitid AS ethernetbearerid, top.topologyid AS rprringid
FROM topology top,
toprelobjects top_rel,
topconnection top_conn,
circuit rpr_seg,
port rpr_port,
port rpr_par,
port eb_par,
port eb_port,
circuit eb,
circuitcircuit eb_ef,
circuit ef
WHERE top.topologyid = #######
--AND (top.topologyid = i_SelectionID OR i_SelectionID = 0)
AND top_rel.toprelobjects2topology = top.topologyid
AND top_conn.topconnection2toprelobjects = top_rel.toprelobjectsid
AND rpr_seg.circuitid = top_conn.topconnection2object
AND rpr_port.portid IN (rpr_seg.circuit2startport, rpr_seg.circuit2endport)
AND rpr_par.portid = rpr_port.parentport2port
AND eb_par.port2card IN (SELECT * FROM TABLE(CAST (pkgrprpathsupport.getchildcard(rpr_par.port2card) AS t_numberlist)))
AND eb_port.parentport2port = eb_par.portid
AND eb_port.portid IN (eb.circuit2startport, eb.circuit2endport)
AND eb_ef.uses2circuit(+) = eb.circuitid
AND ef.circuitid(+) = eb_ef.usedby2circuit
AND eb.circuit2circuittype = ##########
AND ef.circuit2circuittype(+) = ##########
AND top.topology2topologytype = ##########
ORDER BY rprringid, ethernetbearerid; -
The user has permissions on site A B, and C. within the sites, the user has permissions on some lists/libraries.
how can i retrieve an entire list to see what the user has permissions on?
thank you
I might be a newbie in some area. But I'm working hard. :)You can get the report using powershell, please check below posts
http://social.technet.microsoft.com/Forums/sharepoint/en-US/5a3252bf-cb03-4488-9a0d-f4e0ce07d497/user-permissionsaccess-report-in-sharepoint-site
http://reality-tech.com/2011/12/30/reporting-on-all-user-permissions-in-a-web-application/
My Blog- http://www.sharepoint-journey.com|
If a post answers your question, please click Mark As Answer on that post and Vote as Helpful -
Need to create a printable order sheet (wish list) for restaurant website
I'm looking for an extension that will allow the user to select entees from an online menu to go onto a form that can be printed out and faxed for takeout orders. Using CS3. Please make a recommendation. I have the WebAssist suite, but is that overkill for something this simple?
I'd appreciate your comments.I do not know the complete capabilities of the web assist suite, but it may be a starting point if you ask them how. You could save the selection to a database or cookie then place the items into the final wish form, from one or both of these.
The web assist forum is at - http://www.webassist.com/forums/ and they try to respond within 24 hrs.
The cookies solution may possibly be the easiest to implement, but it will require you to know some javascript, the database will be more complicated as this requires both a server side language (possibly php) and a database.
PZ -
Function module to get month lists for entered date
Hi Experts,
Is there any function module which gives me output as mentioned below.
Eg Input : 01.10.2010 - 01.02.2011
OUTPUT : OCT 2010
NOV 2010
DEC 2010
JAN 2011
FEB 2011
Please suggest.
Regards,
Kaustubh.Moderator message - Please see How to post code in SCN, and some things NOT to do... before posting - post locked
Please do not ask basic date questions
Rob
Maybe you are looking for
-
Calc Manager 11.1.2.3 does not open
Hello Gurus Just finished applying the maintenance release to 11.1.2.3 from 11.1.2.1. Can log in to workspace and was able to upgrade planning applications as well. However, when I try to open Calc Manager by doing ----> Navigate -> Administer -> Cal
-
How to restore MobileSync Backup from Hard Drive to new iTunes?
I am in serious need of help! My laptop which had Windows 7 running was crashing down after 4 years. When I brought it to the service center they took my internal drive out to save all the data before too late. The problem is I never had the chance t
-
How to Create Purchase Order with Co Product greater than Consumption
Hi All, I'm new to SAP. Can any one please help with the steps to create PO with Co Product greater than Consumption. Thanks in Advance.
-
How can I stack photos in E12 without clicking every single pair/group?
Stacking pics requires a click for every darn pair/group of pics. Surely E12 can spot pairs of JPEG/RAW files and just stack them automatically? If so HOW?
-
Error importing VAT Groups with DTW
Hello, I have a problem with importing with DTW VAT Groups. The error I am getting is: "" is not a valid value for field Category. The valid values are 'O' - Output tax and 'I' - Input tax. This error appears even if in my csv in the Category column