Standard programs to update infotypes
Please provide updates for this question:
What are the standard SAP programs to update infotypes ( Ex: 001 / 002 / 003 ) .
I will be uploading data from legacy system ( Excel / Text file ) and would like to use standard programs
before going ahead with BDC .
Thanks
Rohan
Hi,
I checked out the program you stating.......
In that program itself if you check the documentation its given how to add in fields.......
You can use report RPUSTD00 to transfer master data from your old HR system.
The dataset to be transferred must be stored in a sequential file. The file is stored under the name specified in the "logical file name" field (for more information on logical file names, read the IMG section entitled Additional client-dependent file name maintenance).
The report reads this dataset and creates a batch input session for transaction PA30.
The data description of your old record is defined according to the structure HRDATASET. If this structure does not meet your requirements, create the structure CI_HRDATAS in the ABAP Dictionary. In this structure, you can store the infotype fields to which data should be transferred. Make the necessary changes in RPUSTD00.
Example
If the include CI_HRADATAS contains the field F1 which is to be assigned to the infotype nnnn, add the following ABAP statements to FORM Dnnnn:
CLEAR BDCDATA.
BDCDATA-FNAM = 'Pnnnn-F1'.
BDCDATA-FVAL = SATZ-F1.
APPEND BDCDATA.
If the FORM Dnnnn does not exist for your infotype nnnn, copy FORM D0008 to FORM Dnnnn. Replace the 0008 by your infotype number:
FORM Dnnnn.
CLEAR BDCDATA.
BDCDATA-PROGRAM = 'MPnnnn00'.
BDCDATA-DYNPRO = '2000'.
BDCDATA-DYNBEGIN = 'X'.
APPEND BDCDATA.
CLEAR BDCDATA.
BDCDATA-FNAM = 'Pnnnn-F1'
BDCDATA-FVAL = SATZ-F1
APPEND BDCDATA.
CLEAR BDCDATA.
BDCDATA-FNAM = 'BDC_OKCODE'.
BDCDATA-FVAL = '=UPD'.
APPEND BDCDATA.
ENDFORM.
The FORM Dnnnn is called directly after FORM D0008; see the ABAP statement indicated as "<------ INSERT in the following (starting at line 1730 in the standard system):
LOOP AT INFTAB.
CASE INFTAB.
Include all infotypes in your action *
WHEN '0002'. PERFORM D0002.
WHEN '0001'. PERFORM D0001.
WHEN '0006'. PERFORM D0006.
WHEN '0007'. PERFORM D0007.
WHEN '0008'. PERFORM D0008.
WHEN 'nnnn'. PERFORM Dnnnn. "<------ INSERT
WHEN OTHERS. WRITE: / 'Infotype not included:' (008), INFTAB.
STOP.
ENDCASE.
ENDLOOP.
Parameter DSLOGNAM
Logical file name
Parameter MAPNAME
Session name
Definition
Enter any name for the session to be created.
Similar Messages
-
Standard report to update infotypes
Hi, is there any standard report or program that updates the following any of the infotypes below;
1. 0000
2. 0001
3. 0008
4. 0041
I like to copy the ways how SAP update these infotypes and error handling.You can use HR_MAINTAIN_MASTERDATA to update all the infotypes in one go.. Also, these function modules mimic a BDC ie all the screen field checks are taken care of.. But you should be aware that both the function odules cannot handle large volumes of data..
~Suresh -
SAP standard program to delimits infotypes
Hi folks,
Is there any SAP standard program to <u><b>delimits</b></u> the records in HR? I mean for PA/PD infotype. Or I need to write one? I have to delimits some of the IT`s Like 194 and 185...
I found the following program to <b>delimit</b>
RPU204M0 IT 204: delimit report for FA customers
RPU510J1 Utility program to delimit P0008 after pay sclae re-creation
ThanksHi Saquib
There is one standard report called RHGRENZ2 which will delimt PD infotypes...
The report only delimits infotypes with time constraint 2 and 3. Infotypes with time constraint 0 and 1 must be delimited using the report Delimit Objects (RHGRENZ0).
Hi I don't see any Standard SAP program to delimit the infotypes that were specified in your message. I believe you may need to write small BDC program to delimit....
Thanks
Thanks
Suresh B Mannem
Message was edited by: Suresh Babu Mannem -
Standard program that update bsis
Hi Experts,
How would i know which standard program update bsis table. i had hard time linking zuonr in bsis table.
Thanks and regards,
Aashtahi astha,
standard program for bsis table is SAPLSETB .
reply back for further queries
Thanks
Gaurav -
Standard programs to upload / update infotypes
Please provide updates for this question:
What are the standard SAP programs to update infotypes ( Ex: 001 / 002 / 003 ) .
I will be uploading data from legacy system ( Excel / Text file ) and would like to use standard programs
before going ahead with BDC .
Thanks
RohanPlease provide updates for this question:
What are the standard SAP programs to update infotypes ( Ex: 001 / 002 / 003 ) .
I will be uploading data from legacy system ( Excel / Text file ) and would like to use standard programs
before going ahead with BDC .
Thanks
Rohan
Hi Rohan ,
you can update you infotype using 'HR_INFOTYPE_OPERATION' function module .
1) transfer all your excel data into internal table .
2) loop at internal table
3) fill all the required field of that infotype .
4) lock table
5) call that functuion module .
6) unlock table
for this fallow the below code...
DATA: it_p0169 TYPE STANDARD TABLE OF pa0169 WITH HEADER LINE. (make internal table according to your requirment)
DATA: wa_p0169 TYPE p0169.
LOOP AT it_file
v_eeamt = it_file-pct_gross.
*Pre-Tax Contribution Percentage
v_eepct = v_eeamt / 10.
v_begda = it_file-datchngd .
*Appending into header (these all are the required filed in my case )
it_p0169-eeamt = v_eeamt.
it_p0169-begda = v_begda.
it_p0169-eepct = v_eepct.
it_p0169-bplan = v_bplan .
CLEAR wa_p0169.
MOVE-CORRESPONDING it_p0169 TO wa_p0169.
wa_p0169-INFTY = '0169'. (not forget to pass infotype no in the header )
CONSTANTS: c_action_ins TYPE pspar-actio VALUE 'MOD', (it can be also COP for Copy , DEL for Delete , DIS for Display , MOD to Change , LIS9 to Delimit , INS to Create )
c_infty_0169 TYPE prelp-infty VALUE '0169'.
DATA: it_return TYPE bapireturn1. (as it is )
DATA: it_return TYPE bapireturn1.
CALL FUNCTION 'BAPI_EMPLOYEE_ENQUEUE'
EXPORTING
number = p_pernr
EXCEPTIONS
OTHERS = 1.
IF sy-subrc <> 0.
RAISE enqueue_FAILED.
ENDIF.
CALL FUNCTION 'HR_INFOTYPE_OPERATION'
EXPORTING
infty = c_infty_0169
number = p_wa_0169-pernr
SUBTYPE = '401K'
OBJECTID =
LOCKINDICATOR =
validityend = p_wa_0169-endda
validitybegin = v_begda1
RECORDNUMBER =
record = p_wa_0169
operation = c_action_ins
TCLAS = 'A'
DIALOG_MODE = '0'
NOCOMMIT =
VIEW_IDENTIFIER =
SECONDARY_RECORD =
IMPORTING
return = it_return.
if it_return-MESSAGE is not initial .
delete it_file .
endif.
commit work .
CALL FUNCTION 'BAPI_EMPLOYEE_DEQUEUE'
EXPORTING
number = p_pernr
EXCEPTIONS
OTHERS = 1.
IF sy-subrc <> 0.
RAISE DEQUEUE_FAILED.
ENDIF.
Enjoy
Priyank -
Hi,
I need to do a program to update infotype 7407(Career Goal).
However, I have difficulties in updating fields COMMENT_CLASS and COMMENT_ID.
These 2 fields are the fields that will be updated if I edit the Career Goal from the portal with notes.
How do I update notes to this infotype 7407?
ThanksI found the solution for this.
Use class cl_hrtmc_ac_career_goals to update Career goals.
To modify the text, use method modify_comment
At last, to save the infotype, call method SAVE from class cl_hrtmc_ac_tb -
Standard program for leave updation
HI all,
Is there any standard program for auto updation of leave quota.
Regards
janhavisee
after udateing infotypes 2001 and 2006
u need to run the above programmes to leave updatation
the response was given by snatosh and vinod -
How and where does SAP standard programs update the master tables...
Hello there,
How and where does SAP standard programs update the master tables...
to be precise.. if a (any) transaction occurs the programs behind it holds the data in temporary structures.
where and when does it get updated in the master table.
can anyone tell me how it happens?
I Know that from the where used list one can find the corresponding table but most of the time it wont suffice
I am expecting a proper answer.
Santosh BHello Santosh,
you need to do some self-reading on the following topic
Updates in the SAP System (BC-CST-UP)
http://help.sap.com/saphelp_47x200/helpdata/en/e5/de86e135cd11d3acb00000e83539c3/frameset.htm
Regards,
Siddhesh -
Standard Program Name for updating the System-Variables everyday in BACKGRO
Hi All,
Can anybody tell me the Standard Program Name for updating the System-Variables everyday in BACKGROUND job?Hello matt,
I have a program with variant.
This VARIANT input values will store in TVARVC table every day night background job.
i want the program name -
Updating Infotype 0077 for the New Race and Ethnicity Codes
Hi,
I would like to ask for a help or any ideas on below case:
There are new race and ethnicity codes required by the US EEO Law. I've already maintained them in table T505R. My problem now is on how infotype 0077 records of the employees will be updated showing the new race and ethnicity codes. Program RPURACU0 is use to update the records in infotype 0077. In this program, I first map the old ethnic origin to the new race and ethnicity codes. But after I've run and execute the program, infotype 0077 records of the employees still shows the old ethnic origin codes. It does not show the new race and ethnicity codes which should be based on the mapping I've done.
Another problem is that in infotype 0077 in the field "Ethnic Origin", upon clicking on the drop down list, it shows all of the entries I've entered in table T505R. I think that ethnicity and race categories should be two different fields and thus, there should be another field for the race categories. May I know on how to add such field?
To summarized, I need help in the following:
-how to update infotype 0077 showing the new race and ethnicity codes
- how to create field "Race" in infotype 0077 to display the new race categories
Thanks in advance for your help!Mary,
We have applied the relevant note, updated MP007700 (as below) and executed program RPURACU0 with the required mapping. However, the Race field check boxes are not visible on IT0077 because as you can see the relevant field is not listed below.
Module Pool MP007700 Variable key 10
Standard screen 2000 Feature
Alternative screen 2010
Next screen 2010
001 P0077-RACKY Ethnic origin
002 P0077-MILSA Military status
003 P0077-ETHEN Ethnicity
004 P0077-SURVY Survey answered
005 P0077-DISAB Disability
006 FRAME_2 Veteran Status
007 P0077-MEDIC Benefit Indicator for Medicare
008 P0077-DISDT Date of Determination of Disabil
009 P0077-DISLE Date Employer Learned of Disabil
011 P0077-EEOEX EEO Exempt Indicator
012 Q0077-VETS2 Veteran status
013 Q0077-VETS3 Veteran status
014 Q0077-VETS4 Veteran status
015 Q0077-VETS5 Veteran status
016 Q0077-VETS6 Veteran status
017 Q0077-VETS7 Veteran status
018 IT_ITAB-MARK
019 Q0077-VETS1 Veteran status
021 FRAME_1 Additional Personal Data
023 FRAME_3 Disability
Thanks!
Edited by: Victoria Nate on Sep 23, 2008 6:35 PM -
How to find out if ENQUEUE_ESRDIRE is used inside a standard program!
Hi All,
I have run VFX3 to rellease billing document using VF02 BDC that is called inside VFX3.
I used debugging to find out in ENQUEUE_ESRDIRE, or ENQUEUE_E_TRDIR is used anywhere in the process.
I also used System Debugging and Break-point at statement functions. But I have not ben stopped at these function modules.
However, I checked using ST05 with enqueue trace enabled, and I found the below entries.
255 ESRDIRE ENQUEUE 1 0 Excl(***) TRDIR GP3VOFY4EM1BE5DHB1155DUU8H
37 ESRDIRE DEQUEUE 1 0 Excl(***) TRDIR GP3VOFY4EM1BE5DHB1155DUU8H
My query is how can we debug to a point where these lock objects are used or Do these lock objects are not identified in debug mode but are logged while enqueue trace used i.e., SAP uses internally?
Please help me as this helps me in resolving an issue where locking issue is there that fails to update VFX3 becuase for one user
in SQL trace it is logged as VF02 TRDIR Lock > 6 hours VF02 TRDIR
and for another job "UPD 42 050 BATCHFIN GZZ K > Obj: ESRDIRE # enxxhead7727" is logged in ST05.
Regards,
PratyushaHi Clemens,
I was unable to trigger the exact point from where this lock object has triggered.
But I am sure that it is a standard SAP process which is locking while releasing the billing documents.
Now my query is why SAP why SAP'S standard program VF02 that is internally called by VFX3 (RVFAKSPE) and that can be submitted in background mode will use ESRDIRE lock whil each time it releases the block?
The problem I am facing is - there are different BATCH jobs and all are for VFX3 with different variant so that no billing document is processed by two different jobs at same time. However the lock entries ENQUEUE_ESRDIRE is creating problem as it is creating locking issue and hence the jobs are processed longer than expected. This is evident from ENQUEUE trace of ST05.
Is VFX3 ( In version 4.5B) is meant for running 1 background job of VFX3 at a time?
Regards,
Pratyusha -
Unable to Update infotype 586 and 585 through BDC or LSMW
Dear Sir/ Madam,
I am in process of updating actual investment by employee in info type 0586 and 585.
I have already inputed the projected investments in 586 & 585 and as per tax tax is computed.
Also I have written a LSMW to update in the actual Tick.
But the problem is now I want to update actual investemnet using BDC, But my ABAper is unbale to do so as the records has been sorted on the projected investmnet ( ascending order),.
As this is to be updated for nearly 2500 records which vary ..
IKinldy suggest any standard program availble or in BDC can I use the investvent codes in Table T7INI3
Regards
Deepak GadekarHi,
Recording of psv2 and psv1 are complex.
I have done it using BDC since i need to do certain validations.
Go with BDC rather than LSMW.
Kindly mention the fields u need to update.Based on it u can decide on BDC or LSMW?
Edited by: Thyagu on Jun 15, 2009 11:51 AM -
Upload data into SAP through standard program
hi!
why don't we prefer to upload data into sap through standard program like RFBIKR00 to upload for vendor master or other standard programs to upload durectly without using BDC or LSMW and how do we upload data into SAP through BAPI.
pls help me with a sample program.
regards
AmitIt totally depends upon the requierment which fields your want to update in transaction if it works with program then use program else go for bdc .
If there is some any screen enhancement with z fields then program will not solve the problem.
For BAPI you check these links:
http://www.sap-img.com/abap/bapi-step-by-step-guidance.htm
http://sap-img.com/bapi.htm
Edited by: shilpi agarwal on Aug 22, 2008 7:28 AM -
Need a help to Update Infotype.....
Hi Experts,
*am developing HR-ABAP Report inthat, i have data in 2 internal tables, through these (itabs) i want to*
*insert the data into 2 Ztables(Respective tables) and then i want to Update one Custom Infotype.*
how can i procedure for this? is there any FM to update Infotype....
Thanks in Advance,
sudeer.The best way is to use HR_INFOTYPE_OPERATION function module in your program.
Sample code:
call function 'HR_INFOTYPE_OPERATION'
exporting
infty = p0082-infty
number = p0082-pernr
subtype = p0082-subty
validityend = p0082-endda
validitybegin = p0082-begda
record = p0082
operation = 'INS'
tclas = 'A'
dialog_mode = '0'
importing
return = return
key = key.
capture error messages
if return-type = 'E'.
concatenate 'Sub Type:' p0082-infty into messtab-tcode.
move return-message to messtab-param.
append messtab. clear messtab.
endif.
You can use it for modifying the record also. -
Program To Update BDC Session Status in SM35
Existing Process : Currently we create orders using a function module which internally uses BDC Session method for transaction VA01. If the session ran successfully then we check the status and use SAVE_TEXT to upload the long text for the order. But in some cases the order fails. Then the session will be errored out in SM35 and user runs the session manually and fixes the problem and post order. So the text cannot be uploaded now as the user ran the session manually. So I wrote a Z program to run the session using program RSBDCCTU which the runs the session in forground and get the text from memory which I exported to memory while initial transaction and upload it using SAVE_TEXT after the session ran successfully. This program works fine.
Problem : After running my Z program the order is posted and text is uploaded but the session is still in error status in SM35. The standard program RSBDCCTU just runs the session in foreground but does not update the status.
Is there any other way we can do this or any other standard programs available to update the status of the session.
Any help will be appreciated.How are you importing text in the z program, which is exported in the function module? they are totally unrelated internal sessions.
You can as well import text and use SAVE_TEXT using user exit USEREXIT_SAVE_DOCUMENT_PREPARE in include MV45AFZZ after executing the error session in SM35, you don't need a Z program.
Use condition SY-BINPT = 'X' and T180-TRTYP = 'H' in the user exit to process SAVE_TEXT.
Regards
Sridhar
Maybe you are looking for
-
Printing barcodes on 10g server running on Solaris OS
Hi, We are using Reports 10g (10.1.2) on Solaris Operating System (SPARC 32-bit). We wanted to print barcodes using Java bean method. It prints fine in windows, but giving below error when run on web using rwservlet. Actually we are using virtual dis
-
I have a iMac Intel Core Duo 2,66 GHz, 500 GB HD (left 98 GB). The iMac has less then 1 year. In the last weeks, the start up is really slow: when you turn it on, it takes 1,5 minute (with the apple) and other 4,5 minute with a blue screen. Only afte
-
Broadcast titles in Photoshop?
I am creating titles for a dv source documentary edited in FCP which need to be broadcast quality. The film will be shown on television, DVD, theatrically on video and quite possibly theatrically on film (after transfer). I have LiveType and Motion b
-
ITunes automatically disconnects after updating
Hi I just got a 60GB video iPod and before I had it set to not update any videos and so it would update all my songs and then just stay connected. It would say "iPod update is complete" or whatever the message is, and on the desktop I could still see
-
Urgent ...Someone kindly help!
Hello.. please can someone kindly help me fil out these commented lines I am trying to connect to an oracle database from a java applet. Also let me know the type of driver needed to connect to an oracle database and where it can be found and how i c