BDC for the Infotype 0585 in HR Module
Hi ,
Iam facing problem in Uploading the Data into the Infotype 0585 ( Section 80 Deductions - Proposals ).
Can i get any BDC to upload the Infotype 0585-Proposals.
Points will be Surely Rewarded.
Regards,
N.L.Narayana
*& Report Z_HR_UPLOAD_INFOTYPE_0585
report z_hr_upload_infotype_0585.
tables:pa0585.
data:begin of it_585 occurs 0 ,
pernr type rp50g-pernr, "Personnel no
begda type pa0585-begda, "Begin Date
endda type pa0585-endda, "End data
sbs01 type pa0585-sbs01, "Sub section code
sbd01 type pa0585-sbd01, "Sub section division number
pcn01(12) type c, "Proposed contribution
sbs02 type pa0585-sbs02, "Sub section code
sbd02 type pa0585-sbd02, "Sub section division number
pcn02(12) type c, "Proposed contribution
sbs03 type pa0585-sbs03, "Sub section code
sbd03 type pa0585-sbd03, "Sub section division number
pcn03(12) type c, "Proposed contribution
sbs04 type pa0585-sbs04, "Sub section code
sbd04 type pa0585-sbd04, "Sub section division number
pcn04(12) type c, "Proposed contribution
sbs05 type pa0585-sbs05, "Sub section code
sbd05 type pa0585-sbd05, "Sub section division number
pcn05(12) type c, "Proposed contribution
sbs06 type pa0585-sbs06, "Sub section code
sbd06 type pa0585-sbd06, "Sub section division number
pcn06(12) type c, "Proposed contribution
sbs07 type pa0585-sbs07, "Sub section code
sbd07 type pa0585-sbd07, "Sub section division number
pcn07(12) type c, "Proposed contribution
sbs08 type pa0585-sbs08, "Sub section code
sbd08 type pa0585-sbd08, "Sub section division number
pcn08(12) type c, "Proposed contribution
sbs09 type pa0585-sbs09, "Sub section code
sbd09 type pa0585-sbd09, "Sub section division number
pcn09(12) type c, "Proposed contribution
sbs10 type pa0585-sbs10, "Sub section code
sbd10 type pa0585-sbd10, "Sub section division number
pcn10(12) type c, "Proposed contribution
sbs11 type pa0585-sbs11, "Sub section code
sbd11 type pa0585-sbd12, "Sub section division number
pcn11(12) type c, "Proposed contribution
sbs12 type pa0585-sbs12, "Sub section code
sbd12 type pa0585-sbd12, "Sub section division number
pcn12(12) type c, "Proposed contribution
sbs13 type pa0585-sbs13, "Sub section code
sbd13 type pa0585-sbd13, "Sub section division number
pcn13(12) type c, "Proposed contribution
sbs14 type pa0585-sbs14, "Sub section code
sbd14 type pa0585-sbd14, "Sub section division number
pcn14(12) type c, "Proposed contribution
sbs15 type pa0585-sbs15, "Sub section code
sbd15 type pa0585-sbd15, "Sub section division number
pcn15(12) type c, "Proposed contribution
end of it_585.
data:wa_585a like it_585.
*--selection Screen--
selection-screen: begin of block blk1 with frame title text-000.
parameters: p_file type rlgrap-filename obligatory.
selection-screen: end of block blk1.
at selection-screen on value-request for p_file.
*-to locate file in a directory (on value request)
call function 'KD_GET_FILENAME_ON_F4'
exporting
static = 'X'
changing
file_name = p_file
exceptions
mask_too_long = 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.
START-OF-SELECTION *
start-of-selection.
perform get_data.
perform emp_invt.
*& Form GET_DATA
text
--> p1 text
<-- p2 text
form get_data.
READ FILE INTO INTERNAL TABLE.
data: lv_fname type string.
lv_fname = p_file.
call function 'GUI_UPLOAD'
exporting
filename = lv_fname
filetype = 'ASC'
has_field_separator = '#'
tables
data_tab = it_585[]
exceptions
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
others = 17.
if not sy-subrc is initial.
MESSAGE e000(ZHRMSG) WITH lv_fname.
endif.
endform. " GET_DATA
*& Form EMP_INVT
text
--> p1 text
<-- p2 text
form emp_invt.
data : wa_0585 type p0585,
it_return type bapireturn1 occurs 0 with header line,
it_05851 type p0585 occurs 0,
it_pa0585 type standard table of pa0585 with header line .
loop at it_585 into wa_585a.
move-corresponding wa_585a to wa_0585.
wa_0585-infty = '0585'.
append wa_0585 to it_05851.
clear:wa_0585 ,
wa_585a.
endloop.
sort it_05851 by pernr.
select * from pa0585 into table it_pa0585
for all entries in it_05851
where pernr = it_05851-pernr.
loop at it_05851 into wa_0585.
Convert START Date into internal format (ex: 10/06/04 -> 20040610
call function 'CONVERSION_EXIT_DATEX_INPUT'
exporting
input = wa_0585-begda
importing
output = wa_0585-begda.
Convert END Date into internal format (ex: 10/06/04 -> 20040610 )
call function 'CONVERSION_EXIT_DATEX_INPUT'
exporting
input = wa_0585-endda
importing
output = wa_0585-endda.
*******Function module to lock personnel no
call function 'BAPI_EMPLOYEE_ENQUEUE'
exporting
number = wa_0585-pernr.
IMPORTING
return = WA_RETURN.
read table it_pa0585 with key pernr = wa_0585-pernr
begda = wa_0585-begda
endda = wa_0585-endda.
if sy-subrc is initial.
call function 'HR_INFOTYPE_OPERATION'
exporting
infty = '0585'
number = wa_0585-pernr
SUBTYPE =
OBJECTID =
LOCKINDICATOR =
validityend = wa_0585-endda
validitybegin = wa_0585-begda
RECORDNUMBER =
record = wa_0585
operation = 'MOD'
tclas = 'A'
dialog_mode = '1'
nocommit = ''.
VIEW_IDENTIFIER =
SECONDARY_RECORD =
IMPORTING
RETURN = IT_RETURN[].
KEY =
else.
call function 'HR_INFOTYPE_OPERATION'
exporting
infty = '0585'
number = wa_0585-pernr
SUBTYPE =
OBJECTID =
LOCKINDICATOR =
validityend = wa_0585-endda
validitybegin = wa_0585-begda
RECORDNUMBER =
record = wa_0585
operation = 'INS'
tclas = 'A'
dialog_mode = '1'
nocommit = ''.
VIEW_IDENTIFIER =
SECONDARY_RECORD =
IMPORTING
RETURN = IT_RETURN[].
KEY =
endif.
Function module to unlock the personnel no
call function 'BAPI_EMPLOYEE_DEQUEUE'
exporting
number = wa_0585-pernr.
clear wa_0585.
endloop.
endform. " EMP_INVT
Similar Messages
-
Error while running a BDC for the Transaction F-02
Hi,
I'm getting an error <b><i>"Parking not possible during Batch Input"</i></b> while running a BDC for the transaction F-02.
When i click on the error message it displays the message [b<i>]"In Customizing, you can control whether an error message is issued."</b></i>
How to solve this issue?.
Waiting for ur replies.........
Regards
N.SenthilHi,
When you are doing the recording in SHDB, and in the same screen where the TCODE to be recorded is given, there are options that you can choose called "Recording Parameters"...Select the checkbox which says "Not a Batch Input Session", this will set the sy-binpt variable to " "(in a recording by default it is "X")...and you will not get this error...
Also make sure while writing the BDC program to make use of the "bdc options" parameter which has this property to switch of sy-binpt...
Refer below theard for sample bdc code for f-02.
https://forums.sdn.sap.com/click.jspa?searchID=5126766&messageID=1538409
Regards -
Issue with pa30 transaction for the infotype 15
Hi All,
I am creating additional payments for the infotype 15 in PA30 transaction.
i followed following steps: wage type
amount
date of origin
assignment number
then i clicked Maintain cost assignment button there i entered cost center 1027 . anybody can tell me where this cost center will save i need that table name.
thanks,
maheedharHi Soumya,
it is saving in ASSOB table that fine. but my question is how to get particular cost center for the personal number.
thanks,
maheedhar -
When i am running the RBDMDOC it will not genarated the idoc for the infotype 0105
Hi experts,
I am run a pa40 action and change the record of 0105 infotype, in bd64 as part of data filtering I am also mentioned 0105 . but when I am run the RBDMIDOC the idoc is not generated of the infotype 0105 .
Thanks in Advance .
Venkateswara Rao.Hi Venkat Narayan,
Thank for giving such a help,
1. I am created record for the infotypes i.e :0,1,2,6,105.
2 In bd64 I done a data filtering for above infotypes , its fine , but when I am running the bd21 Tcode the idoc is generated for 0,1, 2,6,. it is not generated for p0105.
please find the following screen shorts.
Thanks.
venkat -
I'm trying to create a BDC for the t-code ZTASK but the release status option wont let put it as REL it automatically makes it UDEV. Can anone tell me how to change this so that it works
Try out BAPI method!
Regards,
Lalit Mohan Gupta. -
Please tell me the BDC for the VA01
Hi,
I have faced problem writing in BDC for standard transaction code VA01. For one sales order creation two or more line items will be there. Then how to write code for the BDC for the VA01. Please help me.
regards
Mohan.imp. the foll. code to handle the multiple line items in sales order.
declare 2 variables:
data: lv_text(100) type c,
lv_cnt(02) type n.
loop at header .
perofrm BDC...
lv_cnt = lv_cnt + 1.
loop at item where vbeln = header-vbeln.
i am giving an ex. for one of the item field, menge i.e, quantity..
u can use same for req. item fields
CONCATENATE 'RV45A-KWMENG' '(' cnt ')' INTO lv_text.
PERFORM bdc_field USING lv_text ' 100'.
here the lv_text contains 'RV45A-KWMENG(01)'.
CLEAR lv_text.
cnt = cnt + 1.
CONCATENATE 'RV45A-KWMENG' '(' cnt ')' INTO lv_text.
PERFORM bdc_field USING lv_text ' 200'.
here lv_text contains 'RV45A-KWMENG(02)'
u can like this upto 99 line items...
clear: lv_text, lv_cnt.
endloop.
call transaction VA02..........using...
endloop.
hope it willbe helpful for u... -
Related BAPIs for the Infotypes
Dear Friends ,
I have got an issue to post the following details to external system Can anyone please provide me the related BAPIs for the following Infotypes.
Infotype 02 - Personel details
Infotype 06 - Adress details
Infotype 09 - Bank details
Infotype 33 - Statistics
Infotype 21 - Family details
Infotype 08 - Basic Pay
Infotype 28 - Internal Medical Service
Infotype 22 - Education details
Regards,
Gopi.Hi,
System can work even if target system not always online. The IDoc will be created and sendingcontinue once the system has coneected to other system
System can work that target system always online and active then only it interacts both system use bapi. It will be disadvantage of bapi
The tabe TBDBA stores the relavant message type, IDOC type, OUtbound function module,inbound module that are generated as part of the ALE BAPI interface for a particular Business object method
Edited by: sekharch on Jan 9, 2011 4:17 PM -
Creating the bussiness roles for the bussiness partner using Function modul
Hi
How to create the business roles using the function modules for the Business partner.You can also assign the role at the time of creation of the business partner itself. Use the function module BAPI_BUPA_FS_CREATE_FROM_DATA to achieve the same.
If your business partner is already there then you can use the function module BAPI_BUPA_ROLE_ADD.
<b>Reward points if it helps.</b> -
Subtype ctreation for the Infotype 0185
Hi,
I am trying to create a subtype for the standard infotype 0185. I have followed below mentioned steps for that:
1) I have created an entry using v_t591a in SM31 and saved it.
2) In PM01, created a Customer Include under Enhancement of Single Screen and added some fields to it. Activated it also.
3) Even then I was not able to find the subtype in pa30, so have changed the technical attributes related to subtypes.
Please give me any suggestion regarding this.
Thanks,
SreeHi,
Please check the below thread for the procedure to create a subtype for the standard infotype...
/message/4304842#4304842 [original link is broken]
Check the below thread regarding a subtype issue for infotype 0185
No subtypes for Infotype 0185
Check this thread for further information if necessary
Check field Identity Number Infotype 0185 Subtype 02
Hope this would help you.
Good luck
Narin -
Events triggered for the infotypes
Good day everybody,
I would like to know which events are triggered for the following infotypes:
1. PA0105.
2. PA0000.
3. PA0002.
4. PA0001.
5. PA0185.
Or can you please advice as to where to look or how to look for it
Thanks in advance,
ThembaHi...
1) place a break point in FM "BF_FUNCTIONS_READ".
2) excute your infotypes so that execution stops at this FM and gave the event triggered.
Regards,
Lokeswari. -
Is there a new extractor for the new EHP3 Dispute management module?
Hello all,
Our R/3 colleagues have been installing the EHP3 on their system, to gain access (among other functionalities) to a new Dispute Management module.
Now we want to extract this data to the Business Warehouse and consider the use of a generic extractor. Before developing it, we would like to make sure there is no standard extractor for this.
Does anyone know if SAP provided a corresponding extractor?
Thanks in advance for the answers.
Best Regards
Manuel SCHAFFCalendars which have been moved to MobileMe (and which therefore can be viewed by other devices logged in there) cannot be published to a Web Page URL as was possible before.
Calendars under 'On My Mac' can be published as before, but will not sync to MobileMe.
MobileMe Calendars can shared with other selected MobileMe users, with writing privileges if so chosen; and can be made available publicly in read-only form but can only be viewed in a CalDAV reader such as iCal itself or Google Calendar. Details here:
http://docs.info.apple.com/article.html?path=MobileMe/Help/en/mm6b1a9479.html -
Getting the data for the infotype 0006 and Subtype 4 in HR ABAP
Hi All,
I need to get the data from the info type 0006 and the subtype 4 , only i need to fetch the data in communications . Could you any one tell me best way to fetch that data.
Thanks,
SAP SAR.Write a select single on PA0006 for the given pernr begin and end dates and for subtype 4 ...
select single * from PA0006
where pernr = p_pernr
and SUBTY = '0004'
and ENDDA >= s_date-low
and BEGDA <= s_date-high. -
BDC for CM25 tcode or a function module to dispatch planned orders
Please suggest a way for BDC of CM25 tcode as the selection of planned/process order in the tcode is not captured in recording.
or provide FM/BAPI for dispatch of planned orders.
Moderator message - Cross post locked
Edited by: Rob Burbank on Oct 23, 2009 11:27 AMreposting it
-
Read authorisation for the Infotypes
Hi All,
I want to provide Read authorisation for few Master data Infotypes for a particular USER.
How do i do it?..Kindly help.
ElizHi,
Goto tcode
PFCG
1.Create a Role and click the Third Tab Authorizations once you create the role
click the change icon.
2.EDIT->Insert Authorization->selection criteria
search for human resources and add..
3.in the tree navigate to HR master Data -->authorization Level as R
M (read with entry helps)
R (read),
S (write locked record; unlock if the last person to change the record is not the current user),
E (write locked record),
D (change lock indicator),
W (write data records)
(all operations).
Note:Use /nAuth to change the menu tree for authorization in left hand side .
If you have IDES copy the profile HR940_RESTRICTED to Z profile and modify accordingly.
Regards,
Nachy -
Hi,
Advance thanks for ur reply......
Is there any module function or class or standard report which gives the no of employees under a specific client based on country group and also gives percentage of employees belong to the client?
Regards,
selwin.Hi,
According to your requirement, you can prepare report through S_PH0_48000513 - Ad Hoc Query , you can get percentage from IT0007 in Ad Hoc query. first decide how many fields you want and then choose in selection criteria and generate the report.
Thanks,
Nirali P.
Maybe you are looking for
-
How to send a picture to excel using active X with Labview
I would like to create a report in excel that would have a picture and various information about each picture, but I don't see a property for sending a picture to excel. Is it possible?
-
GeoKettle: Error running javac.exe compiler
Hi, I am trying to use GeoKettle exactly as mentioned at http://209.85.229.132/search?q=cache:JHfrxCo7y0YJ:forge.osor.eu/docman/view.php/143/250/Kettle_Devel_guide_v0.odt+geokettle+spoon+java+api&cd=2&hl=en&ct=clnk&client=firefox-a But when I try to
-
SCCM 2012 R2 - WindowsUpdate.log showing error 0x80240037
Hi, Setup details: 1) OS: Windows 2012 R2 2) SCCM version: SCCM 2012 R2 with SUP role (WSUS v6.3.9600.16384) 3) SQL: SQL 2012 All the above resides on a single machine. Error description: Windows 2012 R2 Server clients are not reporting back to the s
-
I HAVE NO AIRPORT SYMBOL. HOW DO I GET IT PLEASE ?
why havent i got the symbol by the volume button. can anyone tell me how to get it
-
TS4403 I can't see my photos from Photo Stream on Windows, help please!
In my PC, on the Photo Stream folder appears no pictures, I've sync a lot of times the iPad to iTunes and the pictures doesn't appear. I have no longer space on my iPad and I need to have my PhotoStream on my laptop! Thanks