Transfer OTL Time via Selfservice Timecard to Elements in HR?
Hi,
We want to transfer OTL data via Selfservice TimeCard to Elements in HR for R12. I followed
all steps from the implementation guide and the problem is now that the LOV
for (Hours) Type in selfservice timecard is empty.
One of the problems is that we don't now which options to set in preferences
For example application set, we can choose payroll and/or Human Resource.
Which one do we need to choose on this set, we don't use Oracle Payroll in HR, but we have created
a payroll definition in HR.
Has anybody a checkup list of steps to follow to get this working
Thanks,
Kaan
Hi,
Could you be more specific. I still don't know which application set to choose?
I got now ''Time Store Application Set'' and preference value ='Human Resources and Payroll'
Regards,
Kaan
Similar Messages
-
Adding Project Name in OTL Time Card
Hello All,
I have done the following Changes to display Project Name in OTL time Card in R12.1.3 with no luck, please let me know.
1. Added Attribute28 as PROJECTNAME for Context - PROJECTS in OTL INformation Types - DFF
2. Using AK Html Forms, Added HXC_CUI_PROJECT_NAME to HXC_CUI_TIMECARD
3. Added Mapping PROJECTNAME
4. Ran the Generate Flexfield and Mapping Information
5. Modified and uploaded the ldt
6. Made Changes to Preferences using OTL Application Developer to look at latest layout
7. Bounced Apache Server
BEGIN HXC_LAYOUTS "ZEN_PROJECTS-TIMECARD" "HXC"
OWNER = "RSREENIV"
DISPLAY_LAYOUT_NAME = "Z Projects Timecard Layout"
LAYOUT_TYPE = "TIMECARD"
TOP_LEVEL_REGION_CODE = "HXCCONFIGTESTCUI"
LAST_UPDATE_DATE = "2012/01/06"
BEGIN HXC_LAYOUT_COMP_QUALIFIERS "Projects Timecard Layout - Project"
OWNER = "ORACLE"
QUALIFIER_ATTRIBUTE_CATEGORY = "LOV"
QUALIFIER_ATTRIBUTE1 = "ProjectLOVVO"
QUALIFIER_ATTRIBUTE2 = "N"
QUALIFIER_ATTRIBUTE3 = "HXC_CUI_PROJECT_LOV"
QUALIFIER_ATTRIBUTE4 = "809"
QUALIFIER_ATTRIBUTE5 = "12"
#QUALIFIER_ATTRIBUTE6 ="HxcCuiProjectNumber|PROJECT-DISPLAY|CRITERIA|N|HxcCuiProjectId|PROJECT|RESULT|N|HxcCuiProjectNumber|PROJECT-DISPLAY|RESULT|N"
QUALIFIER_ATTRIBUTE6 ="HxcCuiProjectNumber|PROJECT-DISPLAY|CRITERIA|N|HxcCuiProjectId|PROJECT|RESULT|N|HxcCuiProjectNumber|PROJECT-DISPLAY|RESULT|N|HxcCuiProjectName|PROJECTNAME|RESULT|N"
QUALIFIER_ATTRIBUTE8 = "ProjectNumber"
QUALIFIER_ATTRIBUTE9 = "ProjectId#NUMBER"
QUALIFIER_ATTRIBUTE10 = "oracle.apps.hxc.selfservice.timecard.server.ProjectLOVVO"
QUALIFIER_ATTRIBUTE17 = "OraTableCellText"
QUALIFIER_ATTRIBUTE20 = "N"
QUALIFIER_ATTRIBUTE21 = "Y"
QUALIFIER_ATTRIBUTE22 = "L"
QUALIFIER_ATTRIBUTE25 = "FLEX"
QUALIFIER_ATTRIBUTE26 = "PROJECTS"
QUALIFIER_ATTRIBUTE27 = "Attribute1"
QUALIFIER_ATTRIBUTE28 = "PROJECT"
LAST_UPDATE_DATE = "2004/05/24"
END HXC_LAYOUT_COMP_QUALIFIERS
END HXC_LAYOUT_COMPONENTS
### Project Name Component start ###
BEGIN HXC_LAYOUT_COMPONENTS "Projects Timecard Layout - Project Name"
OWNER = "ORACLE"
COMPONENT_VALUE = "PROJECTNAME"
REGION_CODE = "HXC_CUI_TIMECARD"
REGION_CODE_APP_SHORT_NAME = "HXC"
ATTRIBUTE_CODE = "HXC_CUI_PROJECT_NAME"
ATTRIBUTE_CODE_APP_SHORT_NAME = "HXC"
SEQUENCE = "215"
COMPONENT_DEFINITION = "TEXT_FIELD"
RENDER_TYPE = "WEB"
PARENT_COMPONENT = "Projects Timecard Layout - Day Scope Building blocks for worker timecard matrix"
LAST_UPDATE_DATE = "2004/05/24"
BEGIN HXC_LAYOUT_COMP_QUALIFIERS "Projects Timecard Layout - Project Name"
OWNER = "ORACLE"
QUALIFIER_ATTRIBUTE_CATEGORY = "TEXT_FIELD"
# Show Label (Component)
QUALIFIER_ATTRIBUTE1 = "N"
# Show Label (Parent Component)
QUALIFIER_ATTRIBUTE2 = "N"
# Field Width
QUALIFIER_ATTRIBUTE3 = "20"
# Field Height
QUALIFIER_ATTRIBUTE4 = "1"
# Style Class
QUALIFIER_ATTRIBUTE17 = "OraInlineInfoText"
# Display On New Line
QUALIFIER_ATTRIBUTE20 = "N"
# Show Outside Building Block
QUALIFIER_ATTRIBUTE21 = "Y"
# Outside Direction
QUALIFIER_ATTRIBUTE22 = "L"
# Access Method
QUALIFIER_ATTRIBUTE25 = "FLEX"
# Context
QUALIFIER_ATTRIBUTE26 = "PROJECTS"
# View Object Attribute
QUALIFIER_ATTRIBUTE27 = "Attribute28"
# Component Alias
QUALIFIER_ATTRIBUTE28 = "PROJECTNAME"
# Read Only
QUALIFIER_ATTRIBUTE30 = "Y"
LAST_UPDATE_DATE = "2004/05/24"
END HXC_LAYOUT_COMP_QUALIFIERS
END HXC_LAYOUT_COMPONENTS
### Project Name Component end ###
Edited by: 891594 on Jan 6, 2012 11:40 AM
Edited by: 891594 on Jan 6, 2012 11:54 AMIn extended controller processRequest method:
Get the project ID, asssuming that you are passing project id through hash map.
String prjId = pageContext.getParameter("ProectId_Parameter");
Default the LOV item value using:
OAMessageLovInputBean msglov = (OAMessageLovInputBean)webBean.findChildRecursive("ProjectId");
if(msglov != null)
msglov.setText(pageContext,"Hello");
-Anand -
OTL Time Cards to PA Integration. - All Time cards are imported into One OU
Hi,
At our site, we have implemented OTL to support PA. (No Payroll/HRMS).
We have created multiple selfservice Time Resp for each Operating Units. The MO Operating Unit for the responsibility is set to corresponding OU for each responsibility.
The issue is that,
When the Time cards are approved and the PRC: Transaction Import is ran for each operating unit (again difft responsibility for each OU), it is not importing the time cards into the respective OU in PA. Rather When we run the PRC: Transaction Import in US operating unit, all the Timecards are imported in the US OU.
We found, For all the OTL time cards, the ATTRIBUTE1 for the "SECURITY" Attribute category is 84 (which is US OU) in hxc_time_attributes table.
which configruation controls this ? Why the MO: Operating Unit is not used to populate the value or is there any other profile which needs to be set to get the right OU?
Any help on this is greatly appreciated.
Thanks
ChidambaramPlease check and confirm whether you have the profile 'HR:Business Group' set to corresponding BGs for the respective time entry responsibilities.
--Shiv -
R12 OTL Time Card: Create Time card throwing exception
Hi
I am getting below exception when clicked on Create Time card, Any idea. Please share your thought.
## Detail 0 ##
java.lang.NullPointerException
at oracle.apps.hxc.selfservice.timecard.util.TimecardProperties.getResourcePeriodStartDateValue(TimecardProperties.java:2900)
at oracle.apps.hxc.selfservice.timecard.util.TimecardUtilities.getPeriods(TimecardUtilities.java:2741)
at oracle.apps.hxc.selfservice.timecard.webui.TimecardsListCO.processRequest(TimecardsListCO.java:405)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:600)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:968)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:935)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:659)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
at oracle.apps.fnd.framework.webui.beans.layout.OAStackLayoutBean.processRequest(OAStackLayoutBean.java:350)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:968)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:935)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:659)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(OAPageLayoutHelper.java:1182)
at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(OAPageLayoutBean.java:1569)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:968)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:935)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:659)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(OAFormBean.java:385)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:968)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(OAWebBeanHelper.java:935)
at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(OAWebBeanHelper.java:659)
at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(OAWebBeanContainerHelper.java:252)
at oracle.apps.fnd.framework.webui.beans.OABodyBean.processRequest(OABodyBean.java:353)
at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2607)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1940)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:543)
at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:431)
at OA.jspService(_OA.java:212)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind.server.http.ServletRequestDispatcher.unprivileged_forward(ServletRequestDispatcher.java:259)
at com.evermind.server.http.ServletRequestDispatcher.access$100(ServletRequestDispatcher.java:51)
at com.evermind.server.http.ServletRequestDispatcher$2.oc4jRun(ServletRequestDispatcher.java:193)
at oracle.oc4j.security.OC4JSecurity.doPrivileged(OC4JSecurity.java:284)
at com.evermind.server.http.ServletRequestDispatcher.forward(ServletRequestDispatcher.java:198)
at com.evermind.server.http.EvermindPageContext.forward(EvermindPageContext.java:395)
at RF.jspService(_RF.java:225)
at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
at java.lang.Thread.run(Thread.java:619)Please post the details of the application release, database version and OS.
Please see these docs.
Cannot Update Timecards - You Cannot Complete this Task because HR Assignment is Incomplete. [ID 1206724.1]
Timecard Status Summary "Timecard Period" List Error Out With "Unexpected Error" [ID 1329966.1]
Timecard Generates Leaked Connections [ID 1329881.1]
When Click On 'Generate Report' Button In OTL Dashboard, Get Error "You Have Encountered An Unexpected Error. Please Contact the System Administrator For Assistance" [ID 1340554.1]
Thanks,
Hussein -
Adding a check box to OTL Time Card Page in Time Card Matrix
Hi,
My requirement is: A check box should be placed on each timecard row on the left hand side
I used hxczzhxclayt0082.ldt to make some changes to the Time Card matrix
Can I add a check box using the same .ldt file
Please Help
Its UrgentHi Meher,
Thank You for your reply
I did some research in Metalink
I found a White Paper for OTL Time Card Configuration in Metalink
White Paper says: Attribute components in the timecard layout can be modified via the configuration LDTs
I tried to add a text box using LDT configuration, It works
But I need a syntax of How to create a check box
Please Help
Thank You
Santosh -
Hi,
For a particular timecard.
The timesheet has 2 versions. The days has 2 versions, but the detail have 3. So the max version number on the timesheet is 2. The max version number on the DAYS is 2. But the max version number in the detail is 3.
My joins work as follows:
timesheet.time_building_block_id=<timecard id>
timeday.parent_building_block_id=timesheet.time_building_block_id and timeday.parent_building_block_ovn=timesheet.object_version_number and
timedetail.parent_building_block_id=timeday.time_building_block_id and
timedetail.parent_building_block_ovn=timeday.object_version_number
Because of this, I am reporting incorrect results.
A) Is this normal?
B) How should I handle this?Duplicate post -- OTL Time Card issue in Self Service
-
Hello ,
Iam working on a requirement, in OTL time card entry from the oracle self service page.
If Employees work on Holidays then they are allowed to enter work Hours .
Eg:
Mon, 25 dec
Regular: start 08:00
stop 12:00
hrs 04
Holiday: start 08:00
stop 17:00
Hrs 8
Iam getting the Overlapping Error as 'This time overlaps another entry.' when trying to save the timecard.
Is there any way, I can override this Error.
Can anyone Please help on this ?
thanks,
BabuRamesh,
OTL doesn't allow the over lapping entries, its one of the basic validations. But at the same time you can define OTL rules to configure this requirement which will automatically generate the holiday premium hours as per your requirement. There are many scenarios which you can configure to define the calculation of premium hours worked on holidays.
--Shiv -
How do I transfer from time machine adobe lightroom programme to my girlfriends computer (backed up on my hard drive via time machine) with out setting up my full desktop - i need it until i can afford a new computer to restore my old set up completely.
Any ideas, I can access files - i.e. jpegs of old work, but can't edit new photos...
PIf you have a license for Lightroom, you should be able to reinstall it from an installer disc or re-download it from Adobe after explaining the situation and clarifying the license issues. Either will be simpler than trying to extract and install it from a TM backup of a different Mac, I think. If it's anything like other Adobe products, it has bits and pieces all over the place that you'll have to find and put in their right places on your girlfirend's Mac.
-
OTL Time card || Details page || DFF
Hello every one,
Iam one working on OTL time card Details page.
Navigation:CreateTimeCard>>Click on details icon on table region.
Here we have DFF: PA_EXPENDITURE_ITEMS_DESC_FLEX
Need to set the default value to this DFF ,even im not able find DFF in co XXXTimecardsListCO extended T
TimecardsListCO
Below code used:
OADescriptiveFlexBean descFlexfieldsBean2 = (OADescriptiveFlexBean)oawebbean.findIndexedChildRecursive("PA_EXPENDITURE_ITEMS_DESC_FLEX ");
if(descFlexfieldsBean2 != null)
oapagecontext.writeDiagnostics(this, "descFlexfieldsBean2", 1);
It will return null ,please help if any body worked on this.
Regards
Jagand a supervisor can't change the timecard data. He can only add the comments and reject it. Upon rejection, TC will go back to employee and he will see the supervisor's comments also.
--Shiv -
Data transfer thru lsmw via bapi
how to perform data transfer thru lsmw via bapi.
Thanks.
Regards
RamaHI
BAPI stands for Business API(Application Program Interface).
A BAPI is remotely enabled function module ie it can be invoked from remote programs like standalone JAVA programs, web interface etc..
You can make your function module remotely enabled in attributes of Function module but
A BAPI are standard SAP function modules provided by SAP for remote access. Also they are part of Businees Objest Repository(BOR).
BAPI are RFC enabled function modules. the difference between RFc and BAPI are business objects. You create business objects and those are then registered in your BOR (Business Object Repository) which can be accessed outside the SAP system by using some other applications (Non-SAP) such as VB or JAVA. in this case u only specify the business object and its method from external system in BAPI there is no direct system call. while RFC are direct system call Some BAPIs provide basic functions and can be used for most SAP business object types. These BAPIs should be implemented the same for all business object types. Standardized BAPIs are easier to use and prevent users having to deal with a number of different BAPIs. Whenever possible, a standardized BAPI must be used in preference to an individual BAPI.
The following standardized BAPIs are provided:
Reading instances of SAP business objects
GetList ( ) With the BAPI GetList you can select a range of object key values, for example, company codes and material numbers.
The BAPI GetList() is a class method.
GetDetail() With the BAPI GetDetail() the details of an instance of a business object type are retrieved and returned to the calling program. The instance is identified via its key. The BAPI GetDetail() is an instance method. BAPIs that can create, change or delete instances of a business object type
The following BAPIs of the same object type have to be programmed so that they can be called several times within one transaction. For example, if, after sales order 1 has been created, a second sales order 2 is created in the same transaction, the second BAPI call must not affect the consistency of the sales order 2. After completing the transaction with a COMMIT WORK, both the orders are saved consistently in the database.
Create( ) and CreateFromData! ( )
The BAPIs Create() and CreateFromData() create an instance of an SAP business object type, for example, a purchase order. These BAPIs are class methods.
Change( )
The BAPI Change() changes an existing instance of an SAP business object type, for example, a purchase order. The BAPI Change () is an instance method.
Delete( ) and Undelete( ) The BAPI Delete() deletes an instance of an SAP business object type from the database or sets a deletion flag.
The BAPI Undelete() removes a deletion flag. These BAPIs are instance methods.
Cancel ( ) Unlike the BAPI Delete(), the BAPI Cancel() cancels an instance of a business object type. The instance to be cancelled remains in the database and an additional instance is created and this is the one that is actually canceled. The Cancel() BAPI is an instance method.
Add<subobject> ( ) and Remove<subobject> ( ) The BAPI Add<subobject> adds a subobject to an existing object inst! ance and the BAPI and Remove<subobject> removes a subobject from an object instance. These BAPIs are instance methods.
BAPI-step by step
http://www.sapgenie.com/abap/bapi/example.htm
list of all bapis
http://www.planetsap.com/LIST_ALL_BAPIs.htm
for BAPI's
http://www.sappoint.com/abap/bapiintro.pdf
http://www.sappoint.com/abap/bapiprg.pdf
http://www.sappoint.com/abap/bapiactx.pdf
http://www.sappoint.com/abap/bapilst.pdf
http://www.sappoint.com/abap/bapiexer.pdf
http://service.sap.com/ale
http://service.sap.com/bapi
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDAPII/CABFAAPIINTRO.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE8/BCFESDE8.pdf
http://www.planetsap.com/Bapi_main_page.htm
http://www.topxml.com/sap/sap_idoc_xml.asp
http://www.sapdevelopment.co.uk/
http://www.sapdevelopment.co.uk/java/jco/bapi_jco.pdf
Also refer to the following links..
www.sappoint.com/abap/bapiintro.pdf
www.sap-img.com/bapi.htm
www.sap-img.com/abap/bapi-conventions.htm
www.planetsap.com/Bapi_main_page.htm
www.sapgenie.com/abap/bapi/index.htm
Checkout !!
http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
http://techrepublic.com.com/5100-6329-1051160.html#
http://www.sap-img.com/bapi.htm
http://www.sap-img.com/abap/bapi-conventions.htm
http://www.sappoint.com/abap/bapiintro.pdf
u can check the below the material also
Example Code
U need to give the step_nr, item_nr, cond_count and cond_type so the correct conditon will be updated. If no condition exists for the given parameters, a new condition will be created.
U can find these parameters for a particular condition type in table KONV.
*& Form saveTransactionJOCR
text
--> p1 text
<-- p2 text
FORM saveTransactionJOCR .
data: salesdocument like BAPIVBELN-VBELN,
order_header_inx like bapisdh1x,
order_header_in like bapisdh1,
return type standard table of bapiret2 with header line,
conditions_in type standard table of bapicond with header line,
conditions_inx type standard table of bapicondx with header line,
logic_switch like BAPISDLS,
step_nr like conditions_in-cond_st_no,
item_nr like conditions_in-itm_number,
cond_count like conditions_in-cond_count,
cond_type like conditions_in-cond_type.
salesdocument = wa_order_information-VBELN.
LOGIC_SWITCH-COND_HANDL = 'X'.
order_header_inx-updateflag = 'U'.
conditions
clear conditions_in[].
clear conditions_inx[].
clear: step_nr,
item_nr,
cond_count,
cond_type.
step_nr = '710'.
item_nr = '000000'.
cond_count = '01'.
cond_type = 'ZCP2'.
CONDITIONS_IN-ITM_NUMBER = item_nr.
conditions_in-cond_st_no = step_nr.
CONDITIONS_IN-COND_COUNT = cond_count.
CONDITIONS_IN-COND_TYPE = cond_type.
CONDITIONS_IN-COND_VALUE = 666.
CONDITIONS_IN-CURRENCY = 'EUR'.
append conditions_in.
CONDITIONS_INX-ITM_NUMBER = item_nr.
conditions_inx-cond_st_no = step_nr.
CONDITIONS_INX-COND_COUNT = cond_count.
CONDITIONS_INX-COND_TYPE = cond_type.
CONDITIONS_INX-UPDATEFLAG = 'U'.
CONDITIONS_INX-COND_VALUE = 'X'.
CONDITIONS_INX-CURRENCY = 'X'.
append conditions_inx.
CALL FUNCTION 'BAPI_SALESORDER_CHANGE'
EXPORTING
SALESDOCUMENT = salesdocument
ORDER_HEADER_IN = order_header_in
ORDER_HEADER_INX = order_header_inx
LOGIC_SWITCH = logic_switch
TABLES
RETURN = return
CONDITIONS_IN = conditions_in
CONDITIONS_INX = conditions_inx
if return-type ne 'E'.
commit work and wait.
endif.
ENDFORM. " saveTransactionJOCR
Bdc to Bapi
The steps to be followed are :
1. Find out the relevant BAPI (BAPI_SALESORDER_CHANGE for VA02).
[for VA01 use BAPI_SALESORDER_CREATEFROMDAT2]
2. Create a Z program and call the BAPi (same as a Funtion module call).
2. Now, if you see this BAPi, it has
-> Importing structures.
eg: SALESDOCUMENT: this will take the Sales order header data as input.
-> Tables parameters:
eg: ORDER_ITEM_IN: this will take the line item data as input.
Note :
Only specify fields that should be changed
Select these fields by entering an X in the checkboxes
Enter a U in the UPDATEFLAG field
Always specify key fields when changing the data, including in the checkboxes
The configuration is an exception here. If this needs to be changed, you need to complete it again fully.
Maintain quantities and dates in the schedule line data
Possible UPDATEFLAGS:
U = change
D = delete
I = add
Example
1. Delete the whole order
2. Delete order items
3. Change the order
4. Change the configuration
Notes
1. Minimum entry:
You must enter the order number in the SALESDOCUMENT structure.
You must always enter key fields for changes.
You must always specify the update indicator in the ORDER_HEADER_INX.
2. Commit control:
The BAPI does not run a database Commit, which means that the application must trigger the Commit so that the changes are read to the database. To do this, use the BAPI_TRANSACTION_COMMIT BAPI.
For further details... refer to the Function Module documentation for the BAPi.
Bapi to VB(Visual Basic)
Long back I had used the following flow structure to acheive the same.
Report -> SM59 RFC destination -> COM4ABAP -> VB.exe
my report uses the rfc destination to create a COM session with com4abap. com4abap calls the vb.exe and manages the flow of data between sap and vb exe.
You need to have com4abap.exe
If com4abap is installed you will find it in sapgui installatin directory , C:\Program Files\SAPpc\sapgui\RFCSDK\com4abap.
else refer OSS note 419822 for installation of com4abap
after making the settings in com4abap to point to the vb program and setting up rfc destination in sm59 to point to com4abap session , you can use the following function modules to call the vb code.
for setting up com4abap and rfc destination please refer to the documentation for com4abap.
Invoke NEW DCOM session
call function 'BEGIN_COM_SESSION'
exporting
service_dest = service_dest "(this will be a RFC destination created in SM59)
importing
worker_dest = worker_dest
exceptions
connect_to_dcom_service_failed = 1
connect_to_dcom_worker_failed = 2
others = 3.
call function 'create_com_instance' destination worker_dest
exporting
clsid = g_c_clsid
typelib = g_c_typelib
importing
instid = g_f_oid
exceptions
communication_failure = 1 message g_f_msg
system_failure = 2 message g_f_msg
invalid_instance_id = 3
others = 4.
call function 'com_invoke' destination worker_dest
exporting
%instid = g_f_oid
%method = 'UpdatePDF'
sntemp = g_v_const_filent
snsysid = sy-sysid
snflag = 'N'
tables
rssaptable = g_t_pdfdetail1
%return = g_t_pdfdetail1 "t_test
exceptions
communication_failure = 1 message g_f_msg
system_failure = 2 message g_f_msg
invalid_instance_id = 3
others = 4.
then close the com session , using
FM delete_com_instance
FM END_COM_SESSION
http://help.sap.com/saphelp_nw2004s/helpdata/en/7e/5e114a4a1611d1894c0000e829fbbd/frameset.htm
http://www.sapgenie.com/abap/bapi/example.htm
http://help.sap.com/saphelp_46c/helpdata/en/9b/417f07ee2211d1ad14080009b0fb56/frameset.htm
http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
http://searchsap.techtarget.com/originalContent/0,289142,sid21_gci948835,00.html
http://techrepublic.com.com/5100-6329-1051160.html#
http://www.sap-img.com/bapi.htm
http://www.sap-img.com/abap/bapi-conventions.htm
http://www.sappoint.com/abap/bapiintro.pdf
http://www.sapgenie.com/abap/bapi/example.htm
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDAPII/CABFAAPIINTRO.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCFESDE8/BCFESDE8.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/CABFABAPIREF/CABFABAPIPG.pdf
http://help.sap.com/printdocu/core/Print46c/en/data/pdf/BCMIDAPII/CABFAAPIINTRO.pdf
http://techrepublic.com.com/5100-6329-1051160.html#
http://www.sap-img.com/bapi.htm
http://www.sap-img.com/abap/bapi-conventions.htm
http://www.sappoint.com/abap/bapiintro.pdf
BAPI - BAPIs (Business Application Programming Interfaces) are the standard SAP interfaces. They play an important role in the technical integration and in the exchange of business data between SAP components, and between SAP and non-SAP components. BAPIs enable you to integrate these components and are therefore an important part of developing integration scenarios where multiple components are connected to each other, either on a local network or on the Internet.
BAPIs allow integration at the business level, not the technical level. This provides for greater stability of the linkage and independence from the underlying communication technology.
LSMW- No ABAP effort are required for the SAP data migration. However, effort are required to map the data into the structure according to the pre-determined format as specified by the pre-written ABAP upload program of the LSMW.
The Legacy System Migration Workbench (LSMW) is a tool recommended by SAP that you can use to transfer data once only or periodically from legacy systems into an R/3 System.
More and more medium-sized firms are implementing SAP solutions, and many of them have their legacy data in desktop programs. In this case, the data is exported in a format that can be read by PC spreadsheet systems. As a result, the data transfer is mere child's play: Simply enter the field names in the first line of the table, and the LSM Workbench's import routine automatically generates the input file for your conversion program.
The LSM Workbench lets you check the data for migration against the current settings of your customizing. The check is performed after the data migration, but before the update in your database.
So although it was designed for uploading of legacy data it is not restricted to this use.
We use it for mass changes, i.e. uploading new/replacement data and it is great, but there are limits on its functionality, depending on the complexity of the transaction you are trying to replicate.
The SAP transaction code is 'LSMW' for SAP version 4.6x.
Check your procedure using this Links.
BAPI with LSMW
http://esnips.com/doc/ef04c89f-f3a2-473c-beee-6db5bb3dbb0e/LSMW-with-BAPI
For document on using BAPI with LSMW, I suggest you to visit:
http://www.****************/Tutorials/LSMW/BAPIinLSMW/BL1.htm
What are the methods to migrate data from a legacy system to SAP?
LSMW is used for migrating data from a legacy system to SAP system, or from one SAP system to another.
Apart from standard batch/direct input and recordings, BAPI and IDocs are available as additional import methods for processing the legacy data.
The LSMW comprises the following main steps:
Read data (legacy data in spreadsheet tables and/or sequential files).
Convert data (from the source into the target format).
Import data (to the database used by the R/3 application.
But, before these steps, you need to perform following steps :
Define source structure : structure of data in the source file.
Define target structure : structure of SAP that receives data.
Field mapping: Mapping between the source and target structure with conversions, if any.
Specify file: location of the source file
Of all the methods used for data migration like BDC, LSMW , Call Transaction which one is used most of the time?
How is the decision made which method should be followed? What is the procedure followed for this analysis?
All the 3 methods are used to migrate data. Selection of these methods depends on the scenario, amount of data need to transfer. LSMW is a ready tool provided by SAP and you have to follow some 17 steps to migrate master data. While in BDCs Session method is the better choice because of some advantages over call transaction. But call transaction is also very useful to do immediate updation of small amout of data. (In call transaction developer has to handle errors).
SO Bottom line is make choice of these methods based of real time requirements.
These methods are chosen completely based on situation you are in. Direct input method is not available for all scenario, else, they are the simplest ones. In batch input method ,you need to do recording for the transaction concerned. Similarly, IDoc, and BAPI are there, and use of these need to be decided based on the requirement.
Try to go through the some material on these four methods, and implement them. You will then have a fair idea about when to use which
You can create lsmw for data migration as follows (using session method):
Example for xk01 (create vendor)
Initially there will be 20 steps but after processing 1 step it will reduced to 14 for session method.
1. TCode : LSMW.
2. Enter Project name, sub project name and object name.
Execute.
3. Maintain object attributes.
Execute
select Batch Input recording
goto->Recording overview
create
recording name.
enter transaction code.
start recording
do recording as per ur choice.
save + back.
enter recording name in lsmw screen.
save + back
Now there will be 14 steps.
2. MAINTAIN SOURCE STRUCTURES.
Here you have to enter the name of internal table.
display change
create
save + back
3. MAINTAIN SOURCE FIELDS.
display change
select structure
source_fields->copy fields.
a dialogue window will come .
select -> from data file
apply source fields
enter No. of fields
length of fields
attach file
save + back
4. MAINTAIN STRUCTURE RELATIONS
display change
save + back
5. MAINTAN FIELD MAPPING & CONVERSION RULE
display change
click on source field, select exact field from structue and enter
repeat these steps for all fields.
save+back
6. MAINTAIN FIXED VALUES, TRANSACTION, USER DEFINED
execute
save + back
7. SPECIFY FILES.
display change
click on legacy data
attah flat file
give description
select tabulatore
enter
save + back
8. ASSIGN FILE
execute
display change
save + back
9. IMPORT DATA.
execute
display change
save + back
10. DISPLAY IMPORTED DATA
enter ok, it willl show records only.
back
11. CONVERT DATA
execute
display change
save + back
12. DISPLAY CONVERTED DATA
execute
display change
save + back
13. CREATE BATCH INPUT SESSION
tick keep batch input folder
F8
back
14. RUN BATCH INPUT SESSION.
sm35 will come
Object name will be shown here
select object & process
Regards
Pavan -
Getting run time error in organizer Photoshop Elements 5.0??
How do I fix run time error for Adobe PhotoShop Elements
5.0 when I pull up organizer?What operating system?
-
I have a Power PC G5 computer that I will soon be replacing with a current i5 or i7 Mini. How do I transfer the Time Machine files from the internal hard drive on the G5 to an external drive that I will later use with the Mini?
Hi, likely the easiest is to just poll the drive & get something like this...
Get MacScan...
http://www.apple.com/downloads/macosx/networking_security/macscan.html
http://eshop.macsales.com/item/NewerTech/U3NVSPATA/
But if you have a good external drive already, just clone it.
Get carbon copy cloner to make an exact copy of your old HD to the New one...
http://www.bombich.com/software/ccc.html
Or SuperDuper...
http://www.shirt-pocket.com/SuperDuper/ -
I want to copy email from my mac to my pc. Forwarding one at a time via email works well, but when I try to forward several of them at a time I receive one large email. I want to receive the emails individually on my pc. Any suggestions?
Don't know any 'automatic' way - but, i have "Fetch Headers only" set on each of my 'secondary accounts'.
With varying internet service, manual "Get Messages" is probably the "Best Practice" because you will know how good your service is before you even try.
maybe set "Check for new messages every 'n' minutes" to different times
(3 minutes, 6 minutes, etc.) on each 'secondary' account. -
Can't delete more than 5 podcasts at a time via Smart Playlists
Can't delete more than 5 podcasts at a time via Smart Playlists, using the Shift+Delete keys to force deleting the source podcast.
Becomes VERY tedious to get rid of old podcasts with certain "smart playlist" filters.
Advice? Bug?I should add that I face the same problem with Safari and Google Chrome.
-
Need Help in Customization of OTL Time Keeper Layout for Projects.
Hi All,
Need help in customization of OTL Time Keeper.
Requirement:
Required to change the Project Layout Template as Payroll Layout Template.
In Payroll Layout Template the days consits of start and end time and total time per day.
Similary need to reproduce the same content Layout as it is in Payroll.
Can Anybody suggest the procedure to achive this task
Thanks and Regards,
Chaitanya.Hi,
Can someone please Help me on this ...
Regards,
Tarun
Maybe you are looking for
-
What do i do when my ipod is recognized by windows but wont be recognized by itunes
my ipod is recognized in windows but not itunes
-
Domain Controller going down after IDM implemented
Hi, We have implemented IDM 7.1 and are using the PSS (Password Self Service), Password Syncronization functionality for 2 AD and 6 ABAP systems. This PSS is implemented to support our company ESS which is on the internet so that users can reset thei
-
Help installing Cs2 On New Computer, please.
I have what is, for me, a serious issue. I am a long time user and my needs are very basic. I upgraded to CS2 years ago and found this level of product more than sufficient to my needs. I now want to install it on a newer computer. Cs2 is an upgrade
-
Hi Friends, I am getting one error in ABAP application program related to Controlling module error coming is as follows The current ABAP program "SAPLSVIM" had to be terminated because it has come across a statement that unfortunately cannot b
-
I want to message skype community
Hai sir i bought 3month package but one month after no topup my order no [removed for privacy] date of purchase Jan 12, 2013 pls topup my account