Create Organization using PPOCE
Hi All,
I Want to create an LSMW or use a Function Module for creating entries in PPOCE.
Looking at the Transaction it looks difficult to create LSMW for this.
Can anyone help me in this regard.
varun
Hi varun,
PPOCE is nothing but u r creating whole org structure.
I dont this so u will create that.
Y can't use the fucntion module HR_INSERT_INFOTYPE.
to inserting the data into one infortype.
Thanks
Similar Messages
-
Create Organization Data programatically
I am using ALBPM 5.7 Studio and trying to create Organization data programatically - OU, Participant, Role etc.
I am able to fetch data but not able to create OU.
For the following code
DirOrganizationalUnit dirOrgUnit;
dirOrganizationalUnit = dirOrgUnit.create(session : Fuego.Fdi.DirectorySession.currentEngineSession, name : "MT", description : "Michigan Transport");
I get the following exception
A component failed while executing activity '/CreateOrgData#Default-1.0/CreateOU' (BP-method CreateOU) over instance '/CreateOrgData#Default-1.0/5/0'.
Details:
The method 'CIL_createOU' from class 'OrgData.CreateOrgData.Default_1_0.Instance' could not be successfully executed.
Caused by: java.lang.NullPointerException
fuego.lang.ComponentExecutionException: The method 'CIL_createOU' from class 'OrgData.CreateOrgData.Default_1_0.Instance' could not be successfully executed.
at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:498)
at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:251)
at fuego.fengine.FEEngineExecutionContext.invokeMethodAsCil(FEEngineExecutionContext.java:214)
at fuego.server.execution.EngineExecutionContext.runCil(EngineExecutionContext.java:1063)
at fuego.server.execution.TaskExecution.invoke(TaskExecution.java:391)
at fuego.server.execution.TaskExecution.executeCIL(TaskExecution.java:483)
at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:657)
at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:618)
at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:152)
at fuego.server.execution.activities.XAutomatic.execute(XAutomatic.java:54)
at fuego.metadata.Activity.execute(Activity.java:1022)
at fuego.server.execution.ToDoItemAutomatic.execute(ToDoItemAutomatic.java:35)
at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:291)
at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:462)
at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:540)
at fuego.transaction.TransactionAction.start(TransactionAction.java:213)
at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:117)
at fuego.server.execution.DefaultEngineExecution.executeAutomaticWork(DefaultEngineExecution.java:57)
at fuego.server.execution.EngineExecution.executeAutomaticWork(EngineExecution.java:42)
at fuego.server.execution.ToDoItem.executeAutomaticWork(ToDoItem.java:264)
at fuego.server.execution.ToDoItem.run(ToDoItem.java:530)
at fuego.component.ExecutionThread.processMessage(ExecutionThread.java:754)
at fuego.component.ExecutionThread.processBatch(ExecutionThread.java:734)
at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:140)
at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:132)
at fuego.fengine.ToDoQueueThread$PrincipalWrapper.processBatch(ToDoQueueThread.java:432)
at fuego.component.ExecutionThread.work(ExecutionThread.java:818)
at fuego.component.ExecutionThread.run(ExecutionThread.java:397)
Caused by: java.lang.NullPointerException
at OrgData.CreateOrgData.Default_1_0.Instance.CIL_createOU(Instance.java:229)
at OrgData.CreateOrgData.Default_1_0.Instance.CIL_createOU(Instance.java:243)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at fuego.component.ExecutionThreadContext.invokeMethod(ExecutionThreadContext.java:491)
... 27 moreDont insert values directly in dB as you have to update multiple dependent tables in case you start doing that way. Check this thread for available api to create an organization
Creating Organizations using API, OIM 11G
Edited by: Durgaprasad on Jan 28, 2013 1:20 AM -
Trying to create Organization in OIM 11g R2 using API
Hi All,
I am trying to create Organization in OIM 11g R2 using API's. I able to create a organization with attributes Organization Name and Organization Customer Type but when i am trying to add Parent Organization Name it is throwing me the following error
Caused by: oracle.iam.platform.entitymgr.UnknownAttributeException: Organization : [Parent Organization Name]
any help in this regard will be helpful....
ThanksYes i do have the org with act_key 27
I have done that changes...still it is throwing the same error
Exception in thread "main" oracle.iam.identity.exception.OrganizationCreateException: IAM-3056148:act_createby is a System Attribute and cannot be set through API.:act_createby
at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:237)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
at oracle.iam.identity.orgmgmt.api.OrganizationManager_874ar_OrganizationManagerRemoteImpl_1036_WLStub.createx(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:85)
at $Proxy2.createx(Unknown Source)
at oracle.iam.identity.orgmgmt.api.OrganizationManagerDelegate.create(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at Thor.API.Base.SecurityInvocationHandler$1.run(SecurityInvocationHandler.java:68)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.security.Security.runAs(Security.java:41)
at Thor.API.Security.LoginHandler.weblogicLoginSession.runAs(weblogicLoginSession.java:52)
at Thor.API.Base.SecurityInvocationHandler.invoke(SecurityInvocationHandler.java:79)
at $Proxy3.create(Unknown Source)
at oracle.iam.ui.custom.Class1.main(Class1.java:108)
Caused by: oracle.iam.identity.exception.OrganizationCreateException: IAM-3056148:act_createby is a System Attribute and cannot be set through API.:act_createby
at oracle.iam.identity.orgmgmt.impl.OrganizationManagerImpl.create(OrganizationManagerImpl.java:318)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at oracle.iam.platform.utils.DMSMethodInterceptor.invoke(DMSMethodInterceptor.java:25)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy333.create(Unknown Source)
at oracle.iam.identity.orgmgmt.api.OrganizationManagerEJB.createx(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.oracle.pitchfork.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:34)
at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
at com.oracle.pitchfork.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:42)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy331.createx(Unknown Source)
at oracle.iam.identity.orgmgmt.api.OrganizationManager_874ar_OrganizationManagerRemoteImpl.__WL_invoke(Unknown Source)
at weblogic.ejb.container.internal.SessionRemoteMethodInvoker.invoke(SessionRemoteMethodInvoker.java:40)
at oracle.iam.identity.orgmgmt.api.OrganizationManager_874ar_OrganizationManagerRemoteImpl.createx(Unknown Source)
at oracle.iam.identity.orgmgmt.api.OrganizationManager_874ar_OrganizationManagerRemoteImpl_WLSkel.invoke(Unknown Source)
at weblogic.rmi.internal.BasicServerRef.invoke(BasicServerRef.java:667)
at weblogic.rmi.cluster.ClusterableServerRef.invoke(ClusterableServerRef.java:230)
at weblogic.rmi.internal.BasicServerRef$1.run(BasicServerRef.java:522)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
at weblogic.rmi.internal.BasicServerRef.handleRequest(BasicServerRef.java:518)
at weblogic.rmi.internal.wls.WLSExecuteRequest.run(WLSExecuteRequest.java:118)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:256)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:221)
Caused by: oracle.iam.platform.kernel.ValidationFailedException: IAM-3056148:act_createby is a System Attribute and cannot be set through API.:act_createby
at oracle.iam.identity.usermgmt.utils.UserManagerUtils.createValidationFailedException(UserManagerUtils.java:337)
at oracle.iam.identity.usermgmt.utils.UserManagerUtils.createValidationFailedException(UserManagerUtils.java:372)
at oracle.iam.identity.utils.Utils.checkAllowedAttributes(Utils.java:2523)
at oracle.iam.identity.orgmgmt.impl.handlers.create.CreateOrganizationValidationHandler.validate(CreateOrganizationValidationHandler.java:102)
at oracle.iam.platform.kernel.impl.OrchProcessData.validate(OrchProcessData.java:258)
at oracle.iam.platform.kernel.impl.OrchProcessData.runValidationEvents(OrchProcessData.java:203)
at oracle.iam.platform.kernel.impl.OrchestrationEngineImpl.validate(OrchestrationEngineImpl.java:699)
at oracle.iam.platform.kernel.impl.OrchestrationEngineImpl.process(OrchestrationEngineImpl.java:547)
at oracle.iam.platform.kernel.impl.OrchestrationEngineImpl.orchestrate(OrchestrationEngineImpl.java:485)
at oracle.iam.platform.kernel.impl.OrchestrationEngineImpl.orchestrate(OrchestrationEngineImpl.java:403)
at sun.reflect.GeneratedMethodAccessor1171.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at oracle.iam.platform.utils.DMSMethodInterceptor.invoke(DMSMethodInterceptor.java:25)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy251.orchestrate(Unknown Source)
at oracle.iam.identity.orgmgmt.impl.OrganizationManagerImpl.create(OrganizationManagerImpl.java:306)
... 46 more -
Create organizational charts using application express
I would like to create organizational charts using the application express(HTMLDB). How do I go about it?
I also tried the Aria sample application for HTMLDB 2.0, but when I try to run the scripts it asks for some bind variable parameters ' :NEW ' and ' :OLD ' which I could not identify. Can anybody help with understanding the standard inputs to this?A perfectly reasonable question, phrased in
a perfectly reasonable way (in my opinion).
On this, I believe, we'll have to agree to disagree. I point you to the following document,
particularly the section "Questions Not To Ask":
I'm not sure why you feel the need to point me at a
document entitled "Questions Not To Ask",
particularly when I wasn't the one asking the
question....I pointed you to the section "Questions Not To Ask" in the document entitled "How To Ask Questions The Smart Way" not because I believe you need help asking questions, but because the advice given in that document directly contradicts your opinions:
"Q: How can I use X to do Y?
A: If what you want is to do Y, you should ask that question without pre-supposing the use of a method that may not be appropriate. Questions of this form often indicate a person who is not merely ignorant about X, but confused about what problem Y they are solving and too fixated on the details of their particular situation. It is generally best to ignore such people until they define their problem better."
I admit, I failed to follow the advice of ignoring the person when I first replied, but the issue is whether it was an appropriate question, which I think this quote clearly indicates it is not.
Robert -
PPOCE - Create Organization and Staffing
Hi All,
I Want to create an LSMW or use a Function Module for creating entries in PPOCE.
Looking at the Transaction it looks difficult to create LSMW for this.
Can anyone help me in this regard.
varunHi
What do you mean by Non SAP Field.
Mouse click can always be cartured in LSMW. Mouse click is nothing but a selection of the particular object. Like in PA40 how does LSMW capture a selection of the Action.
R K -
Step by step on how to create organizational structure(plan) for workflow?
Hi Experts,
Can anyone send me a step by step process on how to create organizational structure(plan) for workflow?
Thanks a lot in advance.
Rgds,
TMHi,
You can use the following accessible transactions to process your organizational plan:
Transaction Name of Transaction
PPO5 Change Attributes
PPO6 Display Attributes
PPOCE Create Organization and Staffing
PPOCW Create Organization and Staffing (WF)
PPOME Change Organization and Staffing
PPOMW Change Organization and Staffing (WF)
PPOSE Display Organization and Staffing
PPOSW Display Organization and Staffing (WF)
PP01 Maintain Plan Data (Menu)
PP01_DISP Display Plan Data (Menu)
PP03 Maintain Plan Data (Actions)
PP03 Execute Action Directly
Regards,
Deepa Kulkarni -
Vendor not intended when create SC using create limit item
Hi All,
This is a challenging issue for all of us...
SRM : 5.0
ECC : 6.0
I am facing the problem when creating the Shopping cart..
When i click on Centralized purchasing -- > Shop -- > Create Limit item
and give the Desc, Product category, Value limit, Expected value, Date between, Supplier and Follow-up actions as Confirmation and Invoice and account assignment as Known and click add to shopping cart..
It is giving a message vendor not intended for purchaing org.. in the Item under Good/Service field value LIMIT is getting created automatically.. I dont understand how it is getting created..
If i try to create one more item and specify the Good/service as our custom field value , for this item there are no error and
no message saying Vendor not intended for Purchasing organization..
Please help me in finding out the issue.So that will be greatful to you..
Advanced thanks
Points will be rewarded..
Regards
RajuHi Teja,
I agree with you answer..
When i tryo to create SC using the Product which are repliacted from ECC to SRM.. I am able to create SC successfully. That means vendor is properly intended to the Porg and Pgrp right...
When i click on Centralized purchasing -- > Shop -- > Create Limit item
and give the Desc, Product category, Value limit, Expected value, Date between, Supplier and Follow-up actions as Confirmation and Invoice and account assignment as Known and click add to shopping cart..
It is giving a message vendor not intended for purchaing org.. in the Item under Good/Service field value LIMIT is getting created automatically.. I dont understand how it is getting created and Product type is neither a Material nor service.. The product type field vale is blank....
Please help me in finding out the issue.So that will be greatful to you..
REgards
Kumar -
How to create report using Procedure.
Hi All,
I want to create report in apex.But i do not have sql code.I have one procedure.Is it possible to create report using this procedure in apex.
CREATE OR REPLACE PROCEDURE headcsv_prc2
AS
CURSOR cr_header
IS
SELECT ood.organization_code, fm.formula_no AS "FORMULA_NAME",
fm.formula_vers AS "FORMULA_VERSION",
fm.formula_desc1 AS "FORMULA_DESC",
DECODE (fm.formula_status,
100, 'New',
400, 'Approve for Laboratory Use',
700, 'Approve for General',
800, 'On Hold',
900, 'Frozen',
1000, 'Obsolete/Archived'
) AS "FORMULA_STATUS",
DECODE (fd.line_type, '1', msib.segment1) product,
DECODE (fd.line_type, '-1', msib.segment1) ingrediant,
DECODE (fd.line_type, '2', msib.segment1) AS "BY_PRODUCT",
DECODE (by_product_type,
'W', 'Waste',
'R', 'Rework',
'Y', 'Yield',
'S', 'Sample',
NULL
) AS "BY_PRODUCT_TYPE"
FROM org_organization_definitions ood,
fm_form_mst fm,
fm_matl_dtl fd,
mtl_system_items_b msib
WHERE ood.organization_id = fm.owner_organization_id
AND fm.owner_organization_id = msib.organization_id
AND msib.organization_id = fd.organization_id
AND fd.organization_id = ood.organization_id
AND fm.formula_id = fd.formula_id
AND msib.inventory_item_id = fd.inventory_item_id
-- and fm.FORMULA_NO like'%TEA%'
AND fd.line_type IN ('1', '2', '-1')
GROUP BY ood.organization_code,
fm.formula_no,
fm.formula_vers,
fm.formula_desc1,
fm.formula_status,
fd.line_type,
msib.segment1,
by_product_type
ORDER BY fm.formula_no, fm.formula_vers;
BEGIN
DBMS_OUTPUT.put_line ( INITCAP ('ORGANIZATION CODE')
|| ','
|| INITCAP ('FORMULA NAME')
|| ','
|| INITCAP ('FORMULA VERSION')
|| ','
|| INITCAP ('FORMULA DESC')
|| ','
|| INITCAP ('FORMULA STATUS')
|| ','
|| INITCAP ('PRODUCT')
|| ','
|| INITCAP ('INGREDIANT')
|| ','
|| INITCAP ('BY PRODUCT')
|| ','
|| INITCAP ('BY PRODUCT TYPE')
FOR ch IN cr_header
LOOP
DBMS_OUTPUT.put_line ( ch.organization_code
|| ','
|| ch.formula_name
|| ','
|| ch.formula_version
|| ','
|| '"'
|| ch.formula_desc
|| '"'
|| ','
|| ch.formula_status
|| ','
|| ch.product
|| ','
|| ch.ingrediant
|| ','
|| ch.by_product
|| ','
|| ch.by_product_type
END LOOP;
EXCEPTION
WHEN OTHERS
THEN
DBMS_OUTPUT.put_line ('Error No: ' || SQLCODE || 'Error Msg: '
|| SQLERRM
END;
EXEC HeadCSV_Prc2
Thanks,
RaghuRaghuVarma wrote:
I created one report using sql code.(Ex: select * from emp).
But my higher authorities want that for security purpose They will change the code into java.
What "higher authorities"? What "security purpose"?
In this process they changed my code as a procedure.Finally they give that java code.they tell to me please fix in apex.
Do these "higher authorities" know anything about APEX? What does the Java code actually do? Have you asked them how their approach is to be integrated into APEX?
There is no reason why a properly written Java stored program cannot be used in APEX, provided that whatever it is doing makes sense in an APEX/web context, and isn't some nonsense like using DBMS_OUTPUT to generate a CSV.
I tried so many ways.But it is not fixed.Different Different errors will occurs.
Tried what? Demonstrate what you have tried, preferably using examples on apex.oracle.com.
How to solve this.
How to solve what? No clearly defined problem or requirement has been identified.
Describe the the problem/requirement (not your attempted solutions) in detail.
How to ask questions
Re: 2. How do I ask a question on the forums?
Include as much relevant information with your question as possible, starting with:
APEX version
DB version, edition and host OS
Web server architecture (EPG, OHS or APEX listener), platform, and host OS
Browser(s)/version(s) used
Theme
Templates
Region type(s) -
Create Organizations in OIM by recon with GTC Database App tables
Hello,
Does anybody know if and how you can create organizations instead of users in OIM when using the GTC DataBase Application Tables connector?
Thank you,
Ionut.Very unlikely verging on the impossible.
I would recommend writing your own connector. As you only need a little bit of JDBC and call the createOrganization in tcOrganizationOperationsIntf wrapped in a scheduled task this should not be a big issue.
Good luck
/M -
Our organization uses an Oracle database hosted on a Unix platform and one of our data processing outputs is a “stuffer” document that has a barcode, and Unix jobs automatically send the document to a printer.
Is there a way, or does Adobe have a product or solution, to create a PDF version of the document including the barcode, before it’s sent to a printer?What format is the document that is printed? Or what technology is used to format the printer? There isn't a standard way of doing things in Unix.
-
Steps for Creating Report using LDB
hellow sirs
can u please tell Step by Step method for creating Reports using LDB method...
if possible with screen Shots..
thanking You
RahulHi,
Please refer the code below:
Use the PNP LDB for this program,
*: Report: ZP_POSTCODE :
*: Date : 2004 :
*: Description: Displays report of employees by postcode area, :
*: includes current travelling allowances (i.e. parking :
*: permit or transport card etc..) :
*: Use: Help encourage the use of car sharing and public :
*: transport where appropriate. :
REPORT zp_postcode.
type-pools: slis. "ALV Declarations
NODES: pernr.
INFOTYPES: 0000, 0001, 0002, 0006, 0008, 0014, 0105, 0121.
SELECTION-SCREEN BEGIN OF BLOCK pcode WITH FRAME TITLE text-s01.
SELECT-OPTIONS: so_pcode FOR p0006-pstlz.
SELECTION-SCREEN END OF BLOCK pcode.
TYPES: BEGIN OF t_output,
pernr TYPE p0001-pernr, "personnel name
anredtxt TYPE t522t-atext, "title (based on p0002-anred)
fname TYPE p0002-vorna, "first name
lname TYPE p0002-nachn, "last name
orgtx TYPE t527x-orgtx, "dept
fte TYPE p0008-bsgrd, "fte
parking(20) TYPE c,
payslip TYPE t526-sachn, "payslip address
telno TYPE p0105-usrid_long, "tel number(p0105-usrty = 0020)
email TYPE p0105-usrid_long, "email (p0105-usrty = MAIL)
postcode type p0006-pstlz,
END OF t_output.
DATA: it_output TYPE STANDARD TABLE OF t_output INITIAL SIZE 0,
wa_output TYPE t_output.
*ALV data declarations
data: fieldcatalog type slis_t_fieldcat_alv with header line,
gd_tab_group type slis_t_sp_group_alv,
gd_layout type slis_layout_alv,
gd_repid like sy-repid,
gt_events type slis_t_event,
gd_prntparams type slis_print_alv,
gd_count(6) type n,
gd_outtext(70) type c,
gd_lines type i.
*START-OF-SELECTION.
START-OF-SELECTION.
clear: gd_count.
GET pernr.
* Infotype 0121 is used to store multiple contracts for personnel.
* Field p0121-hpern contains the personnel number for the main contract.
PROVIDE * from p0121 between pn-begda and pn-endda.
* Check if main contract
if p0121-pernr ne p0121-hpern.
reject.
endif.
ENDPROVIDE.
add 1 to gd_count.
concatenate 'Processing personnel data'(m10) gd_count into gd_outtext
separated by ' '.
* Display indicator for employee count
perform progress_indicator using gd_outtext.
* Retrieve datd from infotypes
rp_provide_from_last p0000 space pn-begda pn-endda.
rp_provide_from_last p0001 space pn-begda pn-endda.
rp_provide_from_last p0002 space pn-begda pn-endda.
rp_provide_from_last p0006 space pn-begda pn-endda.
rp_provide_from_last p0008 space pn-begda pn-endda.
rp_provide_from_last p0014 space pn-begda pn-endda.
* Check post code
CHECK p0006-pstlz IN so_pcode. "cp
* Post code
wa_output-postcode = p0006-pstlz.
* Personnel number
wa_output-pernr = pernr-pernr.
* Personnel title
SELECT SINGLE atext
FROM t522t
INTO wa_output-anredtxt
WHERE sprsl EQ sy-langu AND
anred EQ p0002-anred.
* First name
wa_output-fname = p0002-vorna.
* Last name
wa_output-lname = p0002-nachn.
* Organizational Unit text (dept)
SELECT SINGLE orgtx
FROM t527x
INTO wa_output-orgtx
WHERE sprsl EQ sy-langu AND
orgeh EQ p0001-orgeh AND
endda GE sy-datum.
* FTE
wa_output-fte = p0008-bsgrd.
* Parking / travel deducted?
CASE p0014-lgart.
WHEN '7180' OR '7181' OR '7182'.
wa_output-parking = text-002.
WHEN '7183'.
wa_output-parking = text-001.
WHEN '7171' OR '7172' or '7173' or '7174' or
'7175' or '7176' or '7177' or '7178'.
wa_output-parking = text-003.
ENDCASE.
* Payslip Address
SELECT SINGLE sachn
FROM t526
INTO wa_output-payslip
WHERE werks EQ p0001-werks AND
sachx EQ p0001-sacha.
PROVIDE * from p0105 between pn-begda and pn-endda.
* Telephone numbers
if p0105-usrty = '0020'.
wa_output-telno = p0105-usrid_long.
endif.
* Email address
if p0105-usrty = 'MAIL'.
wa_output-email = p0105-usrid_long.
endif.
ENDPROVIDE.
append wa_output to it_output.
clear: wa_output.
*END-OF-SELECTION.
END-OF-SELECTION.
describe table it_output lines gd_lines.
if gd_lines gt 0.
perform build_fieldcatalog.
perform build_layout.
perform display_alv_report.
else.
message i003(zp) with 'No records found'.
endif.
*& Form PROGRESS_INDICATOR
* Displays progress indicator on SAP screen
form progress_indicator using p_text.
call function 'SAPGUI_PROGRESS_INDICATOR'
exporting
* PERCENTAGE = 0
text = p_text.
endform. " PROGRESS_INDICATOR
*& Form BUILD_FIELDCATALOG
* Build Fieldcatalog for ALV Report
form build_fieldcatalog.
fieldcatalog-fieldname = 'PERNR'.
fieldcatalog-seltext_m = 'Personnel No.'.
fieldcatalog-col_pos = 0.
fieldcatalog-outputlen = 10.
* fieldcatalog-emphasize = 'X'.
* fieldcatalog-key = 'X'.
* fieldcatalog-do_sum = 'X'.
* fieldcatalog-no_zero = 'X'.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'ANREDTXT'.
fieldcatalog-seltext_m = 'Title'.
fieldcatalog-col_pos = 1.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'FNAME'.
fieldcatalog-seltext_m = 'First Name'.
fieldcatalog-col_pos = 2.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'LNAME'.
fieldcatalog-seltext_m = 'Last Name'.
fieldcatalog-col_pos = 3.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'ORGTX'.
fieldcatalog-seltext_m = 'Department'.
fieldcatalog-col_pos = 4.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'FTE'.
fieldcatalog-seltext_m = 'FTE'.
fieldcatalog-col_pos = 5.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'PARKING'.
fieldcatalog-seltext_m = 'Parking/Metrocard'.
fieldcatalog-col_pos = 6.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'PAYSLIP'.
fieldcatalog-seltext_m = 'Payslip Add.'.
fieldcatalog-col_pos = 7.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'TELNO'.
fieldcatalog-seltext_m = 'Telephone'.
fieldcatalog-col_pos = 8.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'EMAIL'.
fieldcatalog-seltext_m = 'E-mail'.
fieldcatalog-col_pos = 9.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
fieldcatalog-fieldname = 'POSTCODE'.
fieldcatalog-seltext_m = 'Post code'.
fieldcatalog-col_pos = 10.
append fieldcatalog to fieldcatalog.
clear fieldcatalog.
endform. " BUILD_FIELDCATALOG
*& Form BUILD_LAYOUT
* Build layout for ALV grid report
form build_layout.
gd_layout-no_input = 'X'.
gd_layout-colwidth_optimize = 'X'.
gd_layout-totals_text = 'Totals'(201).
gd_layout-zebra = 'X'.
endform. " BUILD_LAYOUT
*& Form DISPLAY_ALV_REPORT
* Display report using ALV grid
form display_alv_report.
gd_repid = sy-repid.
call function 'REUSE_ALV_GRID_DISPLAY'
exporting
i_callback_program = gd_repid
is_layout = gd_layout
it_fieldcat = fieldcatalog[]
i_save = 'X'
tables
t_outtab = it_output
exceptions
program_error = 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.
endform. " DISPLAY_ALV_REPORT -
How to create organizational Charts in Pages, keynote.
Need to create organization chart (automatic not manual) as in office, any suggestions?
Can you explain what exactly you want. Many of us here don't use Office so we have no idea what you are talking about.
-
How do I create organization chart
How do I create organization chart
I use OmniGraphLE. It came with my Mac. You may have the program on your Macbook.
Regards, -
Create Organization & assign forms bulk action
How can you create organizations by a bulk action,
Is it possible to assign userform & viewuserform along with this bulk action
As well as is it possible to assign a admin user to each Organisationi figure it out by myself, Thought would be of use to someone if required.
created an xml file .... like below, and import it using the "Configure"- "ImportExport File " from the Administrator UI.
<?xml version='1.0' encoding='UTF-8'?>
<!DOCTYPE Waveset PUBLIC 'waveset.dtd' 'waveset.dtd'>
<Waveset>
<ObjectGroup name='OU one'> <MemberObjectGroups> <ObjectRef type='ObjectGroup' id='#Top#' name='Top'/> </MemberObjectGroups> </ObjectGroup>
<ObjectGroup name='OU two'> <MemberObjectGroups> <ObjectRef type='ObjectGroup' id='#Top#' name='Top'/> </MemberObjectGroups> </ObjectGroup>
<ObjectGroup name='OU three'> <MemberObjectGroups> <ObjectRef type='ObjectGroup' id='#Top#' name='Top'/> </MemberObjectGroups> </ObjectGroup>
</Waveset
if u need to add approvers for any of these OUs you can add the tag "Approver" and you can assign forms too along with this .
The best way to do this is create a test OU with all that you need like approver, form etc...
and use the same syntax.
If multiple OUs are created make sure you have the <Waveset> tag in there....
Thanks NSankar -
Create organization -- parent organization
I have inserted a new organization using the API
hr_organization_api.create_organization successfully.
Also I have inserted the classification information using the API
hr_organization_api.create_org_classification successfully.
Now I need to insert Parent Organization information for a particular
Organization Classification. The navigation that I am talking about is
Work Structure -> Organizations -> Description
Query for a organization
under the Organization Classifications
Hit Other button
select Parent Organization
What I want to know is how to insert this Parent Organization
information from backend. i tried inserting using
HR_HIERARCHY_ELEMENT_API without success.
Please let me know if there is any other package or If I am missing
something here?Parent organization is created using hr_hierarchy_element_api.create_hierarchy_element. So you must not be passing some required information and that's why not able to create it.
Maybe you are looking for
-
The detail part of table doesn't refresh after deleting a row
Hello! I'm developing a Master-Detail table with some a functionality. Particularly, I want to invoke a DELETE function in the Detail part of the table. For this purpose, I placed a Command button to the tableSelectOne component of the Detail part of
-
Spry Alignment and Positioning Problem in Internet Explorer 6 and 7
I am designing a website at http://atoment.007gb.com, and neither me, nor my partner can figure out why the Spry Horizontal Menu Bar is loading the way it is in Internet Explorer. We are doing this for a school project, and eye appeal and workabilit
-
Model: X3-02 Version: 05.68 Yesterday I updated my phone. After update my applications, contacts, settings deleted. Like first day I bought my phone. Than I saw my memory card asking for password. I never put password on my memory card. I need help.
-
Patching and auto installing SAPgui for Windows
Hi, is it possibile to patch directoly SAPgui DVD installation with last released patch so we can install in one way SAPgui 7.10 and last patch ? is it possibile to install SAPgui with unattended installation and/or without desktop interaction ? ...
-
Hyperlink within a numbers document?
I'm trying to link two things on different sheets in numbers so that clicking on one brings up the other. For example clicking on 'Muffin Recipe' brings up the recipe from a separate sheet in the same document. I can't find out how to do this.