Approve absence using BAPI_ABSENCE_APPROVE
Hello Experts,
I was able to create an absence using BAPI_EMPLOYEE_ENQUEUE, BAPI_ABSENCE_CREATE/REQUEST in a sequence. But not able to approve the same using BAPI_ABSENCE_APPROVE.
Approve BAPI has the following input fields(input data that I am passing):
1. EMPLOYEENUMBER - Emp Number
2. SUBTYPE - 0200
3. OBJECTID - 01 "not sure if I am using correct data here"
4. LOCKINDICATOR - X
5. VALIDITYBEGIN - Start date
6. VALIDITYEND - End Date
7. RECORDNUMBER - 000
8. NOCOMMIT - blank
It returns the following error " No Data record was saved in the selection period".
Any clues? where am I going worng?
Please help
Thanks
Sandhya
Edited by: Sandhya Vennu on Oct 13, 2008 12:54 PM
Did you check that the record in PA2001 to ensure it was really in the database?
Then get the recordnumber and objectid from PA2001 for the pernr ....
Than should resolve your issue.
Hello Experts,
I was able to create an absence using BAPI_EMPLOYEE_ENQUEUE, BAPI_ABSENCE_CREATE/REQUEST in a sequence. But not able to approve the same using BAPI_ABSENCE_APPROVE.
Approve BAPI has the following input fields(input data that I am passing):
1. EMPLOYEENUMBER - Emp Number
2. SUBTYPE - 0200
3. OBJECTID - 01 "not sure if I am using correct data here"
4. LOCKINDICATOR - X
5. VALIDITYBEGIN - Start date
6. VALIDITYEND - End Date
7. RECORDNUMBER - 000
8. NOCOMMIT - blank
It returns the following error " No Data record was saved in the selection period".
Any clues? where am I going worng?
Please help
Thanks
Sandhya
Edited by: Sandhya Vennu on Oct 13, 2008 12:54 PM
Similar Messages
-
Create and Approve absence using BAPI's
Hello Experts,
I got to know that BAPI_EMPLOYEE_ENQUEE, BAPI_ABSENCE_CREATE & BAPI_ABSENCE_APPROVE. has to called in a sequence (test sequence) for creating and approving absence.
But when I test them I am getting the following error: "Attendance/absence type 0148 requires minimum of 1 attendance/absence days " for absence type 0148, when I try to use 425 it says fill in all required fields.
Please suggest,
Thanks,
SandhyaBecause of no relevant replies I am closing this question.....
-
Create and Approve Absence using BAPI_ABSENCE_CREATE/APPROVE
Hello Experts,
Have any one ever used BAPI_ABSENCE_CREATE and BAPI_ABSENCE_APPROVE for creating and approving absence?
Please help me with test data that can be used on to the BAPI.
Thanks,
SumaHi Thyagu,
I was able to create an absence using BAPI_EMPLOYEE_ENQUEUE, BAPI_ABSENCE_CREATE/REQUEST in a sequence. But not able to approve the same using BAPI_ABSENCE_APPROVE.
Approve BAPI has the following input fields(input data that I am passing):
1. EMPLOYEENUMBER - Emp Number
2. SUBTYPE - 0200
3. OBJECTID - 01 "not sure if I am using correct data here"
4. LOCKINDICATOR - X
5. VALIDITYBEGIN - Start date
6. VALIDITYEND - End Date
7. RECORDNUMBER - 000
8. NOCOMMIT - blank
It returns the following error " No data stored for 2001 in the selected period".
In a critical situation please help
Thanks in advace,
Suma
Edited by: Suma B on Oct 14, 2008 11:04 AM -
PO document total validation with approved PR used while creating PO
Hi,
Requirement :
Need a validation over document total in refeerence to approved PR used to create purchase order. so that NO PURCHASE ORDER would be created in system for more than approved value of purchase requistion.
Any ceeded control to achieve this ?? or any workaround suggestion.
Regards,
Ravi MalhotraFor information:
We are not using incumbrance ; so please consider this while replying.
Thanks, Ravi Malhotra -
Online purchase request(PR) approval application using Blackberry.
Hi,
We are having ECC6.0 ABAP stack and have to implement Online purchase request(PR) approval application using Blackberry.
Please provide related information.
With Request,
Krishna.Hi Venkat
below links will help you regarding your quarry
http://help.sap.com/search/highlightContent.jsp
http://help.sap.com/search/highlightContent.jsp
http://help.sap.com/search/highlightContent.jsp
Regards
Bandla -
Multilevel dynamic approval process using precondition loop block
HI,
I am trying to create a multivel dynamic approval process using a precondition loop block. The structure of my process is,
Process->1)Sequential Block containing requestor action->processor of requestor action is initiator
2)Precondition Loop Block containing
i)Loop Decision action containing a business logic callable object
ii)Loop Body Block containing Approver action-processor of approver action is filled from context parameter
The loop decision action implements the logic for loop decision. Can anybody help me by suggesting the proper target of each of these actions, and the processor for loop decision action?
Whenever I am initiating the process, the requestor action is getting executed, On completion of this action I am getting a message "No activity is currently selected", that is, it is not entering the precondition loop block.
Please guide me with the proper process flow of this and how to adjust the roles and parameters
Thanks,
SwaralipiPosted another thread on the same issue
-
2 level approval workflow using spd 2010
Hi,
I have to create 3 level approval workflow using sPD 2010,
1) User raises request --> Email goes to approver1 & Task assigned to approver1 --> If approver1 approves Task should be assigned to approver 2--> If approver2 approves--> Task should be assigned to approver3 & Email Notification-->
If approver3 approves workflow should complete & email goes to request initiator.
Could you please let me know the exact stepsHi ppatil,
According to your description, my understanding is that you want to create a workflow to assign tasks to different levels people in SharePoint 2010 Designer.
To achieve it, I suggest you use the built-in approval workflow 2010 template.
You can do as the followings:
Open the library
Click Library-> Settings->Workflow Settings->Add a workflow
Select the ‘Approval-SharePoint 2010’ template, and type a name for this workflow
Select the start options, and click Next
For the Approvers, type your approvers as the order approver1, approvaer2, approver3, and the Order is ‘One at a time(serial)’
Select ‘End on First Rejection’
Click Save
Then if you start the workflow, it can be workflow as your description.
I hope this helps.
Thanks,
Wendy
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Wendy Li
TechNet Community Support -
Cancelling a Approval Task using Designer 2010
I created an Approval Workflow using Designer 2010. The workflow sends out notifications emails to approvers. But what if I want to cancel the approval task after the email has been sent out. I mean I don't want user to be able to approve the List Item.
Is there something I can change in the Designer 2010 code to make that happen. Thanks so much!
Regards,
mayankHi Kapil,
Thanks so much for your response. I have a document library and it has a column called CE Status.
When a task is assigned, the CE Status becomes "Media Relations in Progress" for instance. That is one of the stages. There is a group called Media Relations that will receive an email to approve. Once approved, the logic in my code changes the
CE Status. It goes to next stage and sends out an notification email to the next group.
I want to create a separate workflow that will cancel any pending task. So some selected user should be able to cancel the task. In that event, the assignee (Media Relations for instance) should not be able to approve the document via the email they originally
received.
Mayank -
Approach to create a generic Approval process using SOA human workflow ?
Hello Experts,
I'm looking to create a generic approval process using oracle soa human workflow component using JDev 11.1.1.5
Have about 7-8 existing applications which do some kind of 'approval' . So need to create a generic solution for all 7-8 applications, instead of users logging into 7-8 different applications to approve by logging into different systems. Just want to have like a 'one stop shop' , where i can just go and approve for any application without having to log into separate applications.
I'm looking to get some suggestions and ideas, on how I can achieve this functionality ... Any suggestions/ideas are appreciated .
Thanks a lot.Hello,
you can find multiple sample on the web like those
http://www.splessons.com/2013/12/create-state-machine-workflow-in-sharepoint-2013-using-visual-studio-2012/
http://msdn.microsoft.com/en-us/library/ee231606.aspx
I don't think that's very different using VS2013 or VS2012
Best regards, Christopher.
Blog |
Mail
Please remember to click "Mark As Answer" if a post solves your problem or
"Vote As Helpful" if it was useful.
Why mark as answer? -
Customize SP2010 OOTB approval workflow using SP designer
Hi,
Even though it has been long time i raised the following question:
http://social.msdn.microsoft.com/Forums/office/en-US/1efa6726-5790-4930-9520-4ef6398c503c/customize-ootb-approval-workflow-using-spd-2010?forum=sharepointcustomizationprevious
but i never created the workflow using the proposed solution until now. After doing some testing i can verify the proposed solution doesn't work for the following reason:
1.If i use 'user who created current item' and at the time of submitting the workflow add a different user email address in the 'Approver' field. It doesn't assign task to the user who has been manually added into approver field. It would still assign the
task to the user who created the current item which is incorrect.
2.If i use 'user who created current item' and a user who created the page has moved from his/her role, when submitting the workflow manually, the system will assign the task to the user who created the original item not the one who has just modified the
item
Ideally we would like to add the 'Approver' when submitting the workflow manually. Is there any other way of doing this? or i have tried the following:
Copy default approval workflow -> Edit Workflow -> Initiation Form Parameters -> Modify Approvers -> Change 'Collect from parameter during:' to Initiation (starting the workflow) -> Next -> Finish -> OK -> Save -> Publish
This lets you add the approver and would assign the task to the correct user. Is this a correct approach?
Any help would be appreciated.
Regards,
KashBy collecting the values during initiation, you would be able to make it work correctly. The only down side to this approach is that there are no default values, but that's a small price to pay for a working process.
If you tested this and it works correctly, I would say that you have a good solution without having to dive too deep into custom code.
I trust that answers your question...
Thanks
C
|
RSS |
http://crayveon.com/blog |
SharePoint Scripts | Twitter |
Google+ | LinkedIn |
Facebook | Quix Utilities for SharePoint -
How to create Approval Policies using API - OIM 11g R2
Hi,
Could you please let me know how to create the Approval Policies using java API code in OIM 11g R2.
ThanksHi Karthik,
Thanks for sharing the link. Could you please let me know how to specify the rule condition while creating the Approval Policy using the API given in this link. -
SharePoint Approval Workflow using SharePoint Designer in SharePoint Foundation 2013
I am unable to do SharePoint Designer workflow for approval process and I didnt get any Approval process in Actions in SharePoint designer Workflow also I don't find workflow features in Site collection features SharePoint 2013.
Even I am not able to do simple Out of the box Approval Workflow.
Kindly help me with thisUnfortunately, Out of the box workflows are not available in SharePoint foundation 2013, you need at least the standard version of SharePoint 2013.
You can still create .Net Workflows using the 2010 plateform.
Take a look at this great comparative between the three versions of SharePoint 2013 :
http://blog.blksthl.com/2013/01/14/sharepoint-2013-feature-comparison-chart-all-editions/ -
Report for pending approval absences
Dear all Gents ,
I want to create report for all types of employees absences which are pending approval and approved and every thing , any one has a select statement for this please ?
thank youYou have to query : per_absence_attendances table for applied leave
and HR_API_TRANSACTION Table for pending approval leave.
Thanks -
Error while approving patch using solman.
Hi All,
I want to download Patch. So I had add it in my download basket.
Now while approving that patch using Solution Manager Maintainance Optimizer I got error.
The error is like " Condition REQUEST_IN_PROCESS is not checked without Change Management integration ". Due this error I am not able to approve the patch, so not possible to download it.
Regards,
NisitHi,
Please see the below link.
http://translate.google.co.in/translate?hl=en&sl=es&u=http://www.mundosap.com/foro/showthread.php%3Ft%3D15318&sa=X&oi=translate&resnum=2&ct=result&prev=/search%3Fq%3Dsap%2BREQUEST_IN_PROCESS%26hl%3Den
Anil -
Approval Status using Object ID
Hi Experts,
I am creating a Backend Report which gives the SC Status. I have Shopping Cart number, Based on the SC# how can I find the status like who approved or with whom the SC is waiting for approval. I dont have Work Item ID here.
Pls let me know which table / FM I can use to get the above status using Object ID( SC# ).
Thanks in Advance.
Rupachandran GHi,
Please refer the link..
How to Get WorkItem ID
Saravanan
Maybe you are looking for
-
WD passport external hard drive won't mount
I just purchased a Western Digital Pasport 60GB USB portable hard drive - which stated was Mac compatible on the packaging - hooked it up and nada....won't mount! Doesn't show up on Disk Utility - can't find anything on the WD support site.... It doe
-
SQL Developer 1.2.1 Build MAIN 32.13 (Windows XP) We can't Update SQL Developer with Times Ten in-Memory DB Extension 1.2.1.1.0 :-(( We did the same actions as described in tutorial http://www.oracle.com/technology/products/timesten/viewlets/tt703_sq
-
Why won't my ipod connect to itunes?
I try to connect my iPod touch to itunes and it just says "iTunes cannot connect to this iPod because an unknown error occured (0xE8000003).
-
Errors when using multiple USB-8473 devices
I am trying to put together an application that uses five USB-8473 devices simultaneously on one PC. I can't seem to get more than two of them running without getting error -1074388956 (object handle invalid). Any two of them will run together, but w
-
Part 2: Load Image from URL into Dynamic Text Box - goodinson.snapshot
I have a flash file where a user can add an image url into a Dynamic Text Box (image_in.text) and the image will now appear in the flash file. I am using goodinson.snapshot as featured in this article: Saving Flash graphics as image files at runtime