Whether any bapi is available or not for infotype 0019(monitoring of dates)
Dear abapers,
can u plz guide me whether any bapi is available or not for infotype 0019(monitoring of dates)
i need to upload data from the text file to sap with the following fields.
*Pers No. *
*Task Type *
*Date Type *
*Processing Indicator *
*Reminder date *
*Lead/follow-up time *
*Lead/follow-up time *
Comments
regards,
manoj
Hi,
Use this FM HR_INFOTYPE_OPERATION
Regards,
Shan
Similar Messages
-
How to search whether a seat is available or not?
Hi,
I am developing a form in admin module for a call centre where there is a requirement to check whether a seat is available or not? The form contains a search window which the user enters the date in Location,catergory,From_date,to_date,time_from,time_to fields.
For example if he enters time_from as 06:00and time_from as 14:00 .That means the seat is occupied for 8 hours but is available for the remaining 16 hours. So the search result should show this seat also in the availability list. Every seat hava a unique seat_id.
another situation is a seat can be allocated between 22:00 and 06:00.That means it is crossing the day.That means that means in a day the seat is allocated from 00:00 - 06:00 and 22:00-23:59. How to search for this?
The seat can be allocated for any number of hours in a day. It can be 2 hours .3 hours or 4 hours....means there is no particular time slot system.
Can this be done using a sql query or plsql procedure?
can anybody help me in this regard
Thanking you,
DeekshitHi
U can use the following query in function.
SELECT CASE dumm
WHEN 'X'
THEN 'OK'
END
FROM (SELECT NVL (dummy, 'Y') dumm
FROM DUAL
WHERE TO_DATE (new_date_entered in varchar format, 'hh24:mi:ss') BETWEEN TO_DATE
(date_from in varchar format,
'hh24:mi:ss'
AND TO_DATE
(date_to in varchar format,
'hh24:mi:ss'
But need to b careful when the dates r changing. U can check dat by comparing time_from nd time_to values...in case of date change time_from value will be greater than time_to value(assumption==> seat can't be blocked for more than 12 hours). U can actually use the same query by reversing the conditions.. hope this will solve the problem
Message was edited by:
Arpit -
HR-ABAP Any BAPI or Function module to update infotypes 167 & 170
Hi,
Can anyone let me know is there any BAPI or Function module to update infotypes 167(Health Plans) & 170(Flexible Spending Accounts).
Thanks,
SandeepHi,
U can use HR_BEN_CREATE_PLANS internally it calls HR infotype operation as specified by suresh.
Suresh : If there are approximately 3000 records to be updated on regular basis do u think is it better to use BAPI's or BDC
regards
Vick -
Maintain texts for Infotype 0019 via ABAP.
Hi,
The issue is related to maintaining texts for Infotype 0019. I have a program below. The main problem is I am facing is for some records it inserts text in Infotype (0019) but for some it does not. Can anyone suggest why so or a way to resolve this problem ???
REPORT ytbctest009.
TABLES: pernr, pcl1.
INFOTYPES: 0019.
DATA: key LIKE pskey.
DATA: BEGIN OF ptext OCCURS 200.
DATA: line(72).
DATA: END OF ptext.
SELECTION-SCREEN BEGIN OF BLOCK abc WITH FRAME TITLE text-001.
PARAMETERS: p_pernr LIKE pernr-pernr.
SELECTION-SCREEN END OF BLOCK abc.
ptext-line = 'TEST 1'.
APPEND ptext.
ptext-line = 'Test 2'.
APPEND ptext.
ptext-line = 'Test 3'.
APPEND ptext.
rp-read-infotype p_pernr 0019 0019 '18000101' '99991231'.
SORT p0019 DESCENDING.
READ TABLE p0019 INDEX 1.
p0019-itxex = 'X'.
MOVE-CORRESPONDING p0019 TO key .
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
infty = '0019'
number = p_pernr
validityend = p0019-endda
validitybegin = p0019-begda
record = p0019
operation = 'MOD'.
EXPORT ptext TO DATABASE pcl1(tx) ID key.
Thanks in advance.Hi Rajashree,
I hope , below code will solve the problem.
<b>Main Code</b>
FUNCTION zhr_mustus_update_it0019.
*"*"Local interface:
*" IMPORTING
*" VALUE(IM_PERNR) TYPE P0019-PERNR OPTIONAL
*" VALUE(IM_USRID) TYPE PA0105-USRID OPTIONAL
*" VALUE(IM_SUBTY) TYPE P0019-SUBTY
*" VALUE(IM_TERMN) TYPE P0019-TERMN OPTIONAL
*" VALUE(IM_MNDAT) TYPE P0019-MNDAT OPTIONAL
*" VALUE(IM_BVMRK) TYPE P0019-BVMRK OPTIONAL
*" VALUE(IM_TEXT) TYPE CHAR30 OPTIONAL
*" EXPORTING
*" VALUE(EX_RETURN_MESSAGE) TYPE STRING
*" VALUE(EX_MESSAGE_ID) TYPE ARBGB
*" VALUE(EX_MESSAGE_NUMBER) TYPE MSGNR
*" EXCEPTIONS
*" SYSTEM_FAILURE
*" COMMUNICATION_FAILURE
REFRESH bdcdata.
REFRESH it_bdc_message.
* Validations
PERFORM validations USING im_usrid im_subty im_mndat
CHANGING im_pernr
g_task_date
g_rem_date.
* Return message
MOVE:
g_message TO ex_return_message,
'ZMSGHR' TO ex_message_id,
g_msgno TO ex_message_number.
* If there any error don't process
CHECK ex_return_message IS INITIAL.
* If reminder date is missing then its creation
IF im_mndat IS INITIAL.
* Fill BDC for PA30 Creation
PERFORM fill_bdc_for_creation USING im_pernr
im_subty
im_text
g_task_date
g_rem_date.
ELSE.
* Its a change, Fill BDC for PA30 change
PERFORM fill_bdc_for_change USING im_pernr
im_subty
im_termn
im_bvmrk
im_text.
ENDIF.
* Call transaction PA30
PERFORM bdc_call_transaction.
* Return message
MOVE:
g_message TO ex_return_message,
g_msgid TO ex_message_id,
g_msgno TO ex_message_number.
ENDFUNCTION.
<b>All Above Subroutines,</b>
*& Form Validations
* Validations for MUS/TUS
* -->U_USRID User id for TUS
* -->U_SUBTY Subtype 10 - MUS, 11 - TUS
* -->U_MNDAT Reminder date
* <--PERNR Person for MUS
* <--U_TASK_DATE Task date
* <--U_REM_DATE Reminder date
FORM validations USING u_usrid LIKE pa0105-usrid
u_subty LIKE p0019-subty
u_mndat LIKE p0019-mndat
CHANGING u_pernr LIKE p0019-pernr
u_task_date LIKE sy-datum
u_rem_date LIKE sy-datum.
DATA:
BEGIN OF it_tmp_0019 OCCURS 0,
termn LIKE pa0019-termn,
END OF it_tmp_0019.
CLEAR g_message.
* Validations for MUS
IF u_subty EQ c_subty_10.
MOVE sy-datum TO u_task_date.
IF u_pernr IS INITIAL.
* Person number is missing
MOVE:
text-001 TO g_message,
'003' TO g_msgno.
ELSEIF u_mndat IS INITIAL.
* Its creation, check if there is already a open item
SELECT pernr
FROM pa0019
INTO u_pernr
WHERE pernr EQ u_pernr
AND subty EQ u_subty
AND bvmrk NE '2'.
EXIT.
ENDSELECT.
IF sy-subrc EQ 0.
* Throw an error if there is already a open item
MOVE:
text-006 TO g_message,
'004' TO g_msgno.
ENDIF.
ENDIF.
ENDIF.
* Validations for TUS
IF u_subty EQ c_subty_11.
IF u_usrid IS INITIAL
AND u_pernr IS INITIAL.
* User/Person number is missing
MOVE:
text-002 TO g_message,
'005' TO g_msgno.
ELSEIF NOT u_usrid IS INITIAL.
SELECT pernr
FROM pa0105
INTO u_pernr
WHERE usrid EQ u_usrid.
ENDSELECT.
IF u_pernr IS INITIAL.
* Person number is missing
MOVE:
text-001 TO g_message,
'006' TO g_msgno.
ENDIF.
ENDIF.
IF g_message IS INITIAL.
SELECT termn
FROM pa0019
INTO TABLE it_tmp_0019
WHERE pernr EQ u_pernr
AND subty EQ u_subty
AND bvmrk NE '2'.
READ TABLE it_tmp_0019 WITH KEY termn = sy-datum.
* There is no open task for today
IF sy-subrc NE 0.
MOVE sy-datum TO u_task_date.
ELSE.
* There is a open task for today, new task should be created next
* available date and reminder date is yesterday's date
SORT it_tmp_0019 DESCENDING.
READ TABLE it_tmp_0019 INDEX 1.
u_task_date = it_tmp_0019-termn + 1.
u_rem_date = sy-datum - 1.
ENDIF.
ENDIF.
ENDIF.
ENDFORM. "VALIDATIONS
*& Form Fill_bdc_for_creation
* BDC data for creation , Transaction PA30
* -->U_PERNR Person
* -->U_SUBTY Subty MUS - 10, TUS - 11
* -->U_TEXT Text
* -->U_TASK_DATE Task date
* -->U_REM_DATE Task date
FORM fill_bdc_for_creation USING u_pernr LIKE p0019-pernr
u_subty LIKE p0019-subty
u_text TYPE char30
u_task_date LIKE sy-datum
u_rem_date LIKE sy-datum.
* Scree1
DATA:
l_task_date(10),
l_rem_date(10).
* Use system date as Task date
WRITE:
u_task_date TO l_task_date,
u_rem_date TO l_rem_date.
PERFORM bdc_dynpro USING 'SAPMP50A' '1000'.
PERFORM bdc_field USING 'RP50G-PERNR'
u_pernr.
PERFORM bdc_field USING 'RP50G-CHOIC'
'0019'.
PERFORM bdc_field USING 'RP50G-SUBTY'
u_subty.
PERFORM bdc_field USING 'BDC_OKCODE'
'=INS'.
* Screen2
PERFORM bdc_dynpro USING 'MP001900' '2000'.
PERFORM bdc_field USING 'P0019-TMART'
u_subty.
PERFORM bdc_field USING 'P0019-TERMN'
l_task_date.
IF NOT u_rem_date IS INITIAL.
PERFORM bdc_field USING 'P0019-MNDAT'
l_rem_date.
ENDIF.
PERFORM bdc_field USING 'RP50M-TEXT1'
u_text.
PERFORM bdc_field USING 'BDC_OKCODE'
'/00'.
PERFORM bdc_dynpro USING 'MP001900' '2000'.
PERFORM bdc_field USING 'P0019-TMART'
u_subty.
PERFORM bdc_field USING 'P0019-TERMN'
l_task_date.
IF NOT u_rem_date IS INITIAL.
PERFORM bdc_field USING 'P0019-MNDAT'
l_rem_date.
ENDIF.
PERFORM bdc_field USING 'RP50M-TEXT1'
u_text.
PERFORM bdc_field USING 'BDC_OKCODE'
'=UPD'.
ENDFORM. "fill_bdc_for_creation
*& Form fill_bdc_for_change
* BDC data for change , Transaction PA30
* -->U_PERNR Person
* -->U_SUBTY subtype MUS - 10 , TUS - 11
* -->U_MNDAT Reminder date
* -->U_BVMRK Status
* -->U_TEXT Text
FORM fill_bdc_for_change USING u_pernr LIKE p0019-pernr
u_subty LIKE p0019-subty
u_termn LIKE p0019-termn
u_bvmrk LIKE p0019-bvmrk
u_text TYPE char30.
* Scree1
DATA l_termn_date(10).
WRITE u_termn TO l_termn_date.
PERFORM bdc_dynpro USING 'SAPMP50A' '1000'.
PERFORM bdc_field USING 'RP50G-PERNR'
u_pernr.
PERFORM bdc_field USING 'RP50G-CHOIC'
'0019'.
PERFORM bdc_field USING 'RP50G-SUBTY'
u_subty.
PERFORM bdc_field USING 'RP50G-BEGDA'
l_termn_date.
PERFORM bdc_field USING 'RP50G-ENDDA'
l_termn_date.
PERFORM bdc_field USING 'BDC_OKCODE'
'=MOD'.
* Screen2
PERFORM bdc_dynpro USING 'MP001900' '2000'.
PERFORM bdc_field USING 'P0019-TMART'
u_subty.
PERFORM bdc_field USING 'P0019-TERMN'
l_termn_date.
PERFORM bdc_field USING 'RP50M-TEXT1'
u_text.
PERFORM bdc_field USING 'P0019-BVMRK'
u_bvmrk.
PERFORM bdc_field USING 'BDC_OKCODE'
'=UPD'.
ENDFORM. "fill_bdc_for_change
FORM bdc_call_transaction.
DATA:
l_mode(1) TYPE c VALUE 'N',
l_lines TYPE i,
l_msgvar1 LIKE balm-msgv1,
l_msgvar2 LIKE balm-msgv2,
l_msgvar3 LIKE balm-msgv3,
l_msgvar4 LIKE balm-msgv4.
CALL TRANSACTION 'PA30' USING bdcdata MODE l_mode
MESSAGES INTO it_bdc_message.
* Get last message
DESCRIBE TABLE it_bdc_message LINES l_lines.
READ TABLE it_bdc_message INDEX l_lines.
MOVE:
it_bdc_message-msgid TO g_msgid,
it_bdc_message-msgnr TO g_msgno,
it_bdc_message-msgv1 TO l_msgvar1,
it_bdc_message-msgv2 TO l_msgvar2,
it_bdc_message-msgv3 TO l_msgvar3,
it_bdc_message-msgv4 TO l_msgvar4.
* Prepare message
CALL FUNCTION 'MESSAGE_PREPARE'
EXPORTING
language = sy-langu
msg_id = g_msgid
msg_no = g_msgno
msg_var1 = l_msgvar1
msg_var2 = l_msgvar2
msg_var3 = l_msgvar3
msg_var4 = l_msgvar4
IMPORTING
msg_text = g_message
EXCEPTIONS
function_not_completed = 1
message_not_found = 2
OTHERS = 3.
IF sy-subrc <> 0.
MOVE text-005 TO g_message.
ENDIF.
ENDFORM. "BDC_FIELD
* Start new screen *
FORM bdc_dynpro USING program dynpro.
CLEAR bdcdata.
bdcdata-program = program.
bdcdata-dynpro = dynpro.
bdcdata-dynbegin = 'X'.
APPEND bdcdata.
ENDFORM. "BDC_DYNPRO
* Insert field *
FORM bdc_field USING fnam fval.
CLEAR bdcdata.
bdcdata-fnam = fnam.
bdcdata-fval = fval.
APPEND bdcdata.
ENDFORM. "BDC_FIELD
Cheers.
Santosh. -
How to check whether ESBAgentListener listener is started or not for ESBSys
Hi,
I am working on Oracle ESB 10g, I want to know how to check whether the ESBAgentListener listener is started or not for particular ESB system. I know we can verify the logs but I want to know is it possible from database or any other sources.
Thanks in advance.
RameshHi Jogdand ,
You can get the PO total value change form the PO business Object BUS2201 attribute POTotalValueIncreased .
Below code sample decribes how to get the BO attribute values
1. INCLUDE <swfcntn01>.
2. Create an instance of the BO by calling the macro and passing the three parameter.
swf_create_object <po bor object> <BUS2201> <po_guid>
3. Get the PO attribute by calling macro
swf_get_property <po BOR object> < 'POTotalValueIncreased' > < lv_pototalvalueincreased>
OR
You can query the table BBP_PDHGP and get the original Value of the PO and call the FM BBP_PD_PO_GETDETAIL to get the new Value of the PO. Check the difference and if there is any difference then the PO value is changed.
I hope this will be very useful.
Regards,
Surender -
Any BAPI/ FM available to update workcenter in tasklist operation
Hi,
I need to update the workcenter details in the General/Equipment/Funtional location tasklist.
Please suggest me any BAPI/Function module available in SAP to do the same.
The transactions are
General - IA06
Equipment - IA02
Floc - IA12
Thanks,
Best regards,
Ajithgave up on this one
-
Can anyone tell me if there will be such an update soon, and possible when we can expect this?
Thanks!Yes, it's Java update 16 for Mac OS 10.6 that broke lots of stuff. The 51 comes from it updating Java to 1.6_51. There is an update to the update for 10.7 and up posted, but is there one for 10.6?
UPDATE: Never mind. If you go to the download page for Java update 16, it appears that it has been silently updated. Although there isn't any indication of the fact that it has been fixed, the build number is different (20.51-b01-457 instead of -456). -
Any BAPI to retreive sales area for the given BP Number in CRM
HI, I am looking for a BAPI which can retreive sales area for the given BP number.
I appreciate for the quick response and points are awarded.
Thanks,
Kumar.
Edited by: Kumar on Jun 5, 2008 6:40 PMHi Kumar,
This is not exactly a Bapi but you can use the following 2 functions.
The function below will get a list of sales areas assigned to the BP.
call function 'CRM_BUPA_FRG0010_GET_LIST'
exporting
iv_partner_guid = lv_partner_guid
importing
et_sales_areas = lt_areas.
You can then use CRM_BUPA_FRG0030_GET_DETAIL to get the detail of the sales area.
Hope it helps.
Johan -
Any BAPI to retreive salease area for the given BP Number in CRM
Hi, I am looking for a BAPI to retreive sales area information for the given BP number in CRM.
I appreicate for quick response and points are awarded.
Thanks,
KumarHi Kumar,
This is not exactly a Bapi but you can use the following 2 functions.
The function below will get a list of sales areas assigned to the BP.
call function 'CRM_BUPA_FRG0010_GET_LIST'
exporting
iv_partner_guid = lv_partner_guid
importing
et_sales_areas = lt_areas.
You can then use CRM_BUPA_FRG0030_GET_DETAIL to get the detail of the sales area.
Hope it helps.
Johan -
OS X Server: available or not for new Mac owners
I have a new Macbook Pro — less than a month old. Am I entitled to a free copy of OS X Server? Apple Software Update Progrma are just offering me copies of software I already have installed on my Mac (i.e. Numbers, Pages and Keynote), I have no option to ask about OS X Server, though other pages suggest this should be available.
OS X server is not a free item. Buy it from the Mac App Store.
-
Is there any way to create custom resolutions for my external monitor?
I am currently trying to set-up a external monitor at its native resolution (1440x900@60Hz)
Any ideas how I could do that?See the last paragraph of this support article.
-
Standard Workflow for Infotype 0019
is there any SAP standard WF for monitoring of task IT 0019
Hi,
There is no standard flow for the down payment request generally in many projects down payment requests are rarely created process starts with Down payment request F-47 then Down payments F-48
then clearing of Down Payment f-54
Down PAyment request is just a template.If you want to use then use then u can skip this step.
regards
Deepa -
Any BAPIs to post Service entery details
Hi SAP Gurus,
I need to create an interface program to upload Service entry details received from the different system to sap.
Details:
Service Entry Sheet will be posted manually for the accepted services in case of Maintenance, Repair and Licensing. A batch job will be created to post the Service Entry Sheet from the file extracted out of the EPM system, based on the number of actual hours worked by each Contractor on a Project.
Kindly inform whether any BAPI is available to post this data or I need to go for BDC method only.
Regards
Harihi,
chk out these BAPI's
BAPI_SERVICENOTIFICAT_GETLIST Select service notifications according to customer or contact person
BAPI_SERVICENOTIFICAT_CREATE Create service notification
BAPI_SERVNOT_ADD_DATA Added Items, Causes, Activities, Tasks, Partners of the service notif.
BAPI_SERVNOT_CHANGEUSRSTAT Change the user status of a service notification
BAPI_SERVNOT_CLOSE Complete service notification
BAPI_SERVNOT_CREATE Create service notification
BAPI_SERVNOT_DEL_DATA Delete Items, Causes, Activities, Tasks, Partners of the service notif.
BAPI_SERVNOT_GET_DETAIL Get details about a service notification
BAPI_SERVNOT_MODIFY_DATA Modify a service notification or associated subdata
BAPI_SERVNOT_POSTPONE Postpone service notification
BAPI_SERVNOT_PUTINPROGRESS Put in process a service notification
BAPI_PROC_CHAR_GET_HELPVALUES Read allowed values for a process characteristic
BAPI_PROC_CHAR_GET_LIST Read process characteristics, incl. detail data
BASB Service Master Record: BAPIs
BAPI_SERVICE_GET_DETAIL Read Detailed Data for a Service Master Record
BAPI_SERVICE_GET_LIST List Display for Service Master Records
BAPI_SERVICE_GET_DETAIL Read Detailed Data for a Service Master Record
BAPI_SERVICENOTIFICAT_CREATE Create service notification
BAPI_SERVICENOTIFICAT_GETLIST Select service notifications according to customer or contact person
Regards,
Arunsri -
BAPI for updating infotype 0019 - Date Monitoring
Hi,
Does anyone know if there a BAPI for creating/updating infotype 0019 - Monitoring of Dates?
Many thanks,
PaulHi Paul,
1. HR_INFOTYPE_OPERATION
This is the FM (for all infotypes, even 0019)
2. If u want something like BAPI (RFC Enabled),
what u can do is that
create a new Z Fm,
and call the FM
HR_INFOTYPE_OPERATION
in this.
regards,
amit m. -
Any bapi available for Create Employee Trip
hi ,
please tell me for Create Employee Trip any bapi is available.
if it is there means please tell me.Check this one -
BAPI_TRIP_CREATE_FROM_DATA
Regards,
Amit
Maybe you are looking for
-
Single spool for multiple smartforms
Hi, I am using Function modules SSF_open and ssf_close for creating single spool for multiple smartforms but when i try to run the program in background then the job is getting cancelled...........and if i run the program in foreground then the progr
-
Rebate settlements should not hit the VAT account
Hello everyone, There is a question on Rebate Settlement. There is a customer who is entitled to a 15% BPR rebate. We are accruing for this rebate successfully The issue we are having is that the materials that this customer buy from us attract 20% V
-
What's new on 2.4 MacBook Pro?
The 2.4 MacBook Pro is listed as new in the Apple online store. I do not notice any difference between whats listed and what I received a few weeks ago other than possibly hard drive options. In the description page of the Macbook Pro online is liste
-
Ethernet cable used to connect BT Infinity router ...
Any help appreciated on the following. I'm moving the BT Infinity router (HH3) 10 metres from the Openreach modem and I require a longer Ethernet cable Do I require a crossover cable? Should I choose CAT5e or Cat 6 And is a shielded cable recommended
-
All, I have a report like showing ProjectName, ManagerName. When I click any ProjectName it should drill to show the Project name, ManagerName , Project members name and other details . My requirement is provide a prompt for ProjectName and the Proje