How to UPDATE MASTER DATA RECORD PA0377 using FM HR_INFOTYPE_OPERATION
How to UPDATE MASTER DATA RECORD IN INFOTYPE 0377 DIRECTLY using function module HR_INFOTYPE_OPERATION ? When i use operation = 'MOD' im getting an ERROR as NO DATA STORED FOR 0377 IN SELECTION PERIOD.
Can anyone please help me how to use HR_INFOTYPE_OPERATION to UPDATE MASTER DATA RECORD.
Thanks,
Karthi.
Hi,
please check this code
it is very useful
infotypes: 0105.
parameters: p_pernr type p0105-pernr,
p_subty type p0105-subty,
p_begda type p0105-begda,
p_endda type p0105-endda,
p_opera type pspar-actio,
p_usrid type p0105-usrid,
p_commt as checkbox. "Useful only when NO_COMMIT is 'X'
data: w_return type bapireturn1, "Error handling data
w_key type bapipakey, "If record has been created or changed the created/ changed
"record's key (PSKEY) will be populated
v_message type string. "For printing returned messages
call function 'BAPI_EMPLOYEE_ENQUEUE'
exporting
number = p_pernr
importing
return = w_return.
if w_return is initial. "Employee is not locked
p0105-pernr = p_pernr.
p0105-subty =
p0105-usrty = p_subty.
p0105-begda = p_begda.
p0105-endda = p_endda.
p0105-usrid = p_usrid.
*Calls Internally HR_MAINTAIN_MASTERDATA
call function 'HR_INFOTYPE_OPERATION'
exporting
infty = '0105'
number = p_pernr
subtype = p_subty
validityend = p_endda
validitybegin = p_begda
record = p0105
operation = p_opera
dialog_mode = '0'
nocommit = 'X'
importing
return = w_return
key = w_key.
endif.
if w_return is not initial.
message id w_return-id type w_return-type number w_return-number
with w_return-message_v1 w_return-message_v2 w_return-message_v3
w_return-message_v4 into v_message.
case w_return-type.
when 'A' or 'E'.
format color col_negative. write:/ v_message.
when others.
format color col_heading. write:/ v_message.
endcase.
call function 'BAPI_EMPLOYEE_DEQUEUE'
exporting
number = p_pernr.
else.
format color col_positive. write:/ 'Record Updated Successfully.'.
if w_key is not initial.
write:/ 'Key contains',
/ 'Personnel Number:', w_key-employeeno,
/ 'Subtype (absence type):', w_key-subtype,
/ 'Start date of Absence:', w_key-validbegin,
/ 'End date of Absence:', w_key-validend.
endif.
commit work.
endif.
Thanks and regards
durga.K
Similar Messages
-
How to get master data records that do not have transaction data in a query
Hi,
How to get master data records that do not have transaction data in a query output. Can we create a query or any other way to get the master data records that do not have transaction data?Hi,
Create a multiprovider which includes transactional data target and master data info object. Make sure that identification for this master data info object is ticked on both the provider.
Create report on this multiprovider , keep the master data info object in rows , and now you should able to see all the values which are there in master data info object irrespective of transaction happened or not .
Next you may create condition showing only zero keyfigure values , ie. master data without any transaction.
Hope that helps.
Regards
Mr Kapadia -
How to check the master data records in using SE16 transaction?
Hi,
Can you please help me to check the master data records using SE16 transaction?
Loaded master data for Characteristic and want to check the records in the master data tables.
Thank you for your help!
LakshmiHi!
Welcome to SDN.
you have to check the master data tables.
soo in Se16 you have to select the appropriate master data table and view the data.
following thread explains about masterdata tables
MasterData table?
regards
mohan
Message was edited by:
Mohan Krishna -
Hi,
I have to upload records into BW Master Data info objects. When uploading there might be multiple versions of the same record. The latest verison needs to overwrite the existing versions.
For Example when loading data into Instrument Info object:
Instrument Source: Instsrc 1
Instrument Id : Instid 1
Version # : Version 1
This is the first record in the database.
Instrument Source : Instrsrc 1
Instrument Id : Instid 1
Version #: : Version 2
This is the second record in the database.
When uploading data using an infpoackage, second record should overwrite first record. Version # cannot be part of the Instrument infoobject in BW
How do I achive this? Any help deeply appreciated.
RegardsHi,
We need to load only the latest version into BW . We don't want to store the older versions at all. Is there a setting which we can turn on or a place in BW where we could write the code to update existing records before the data updates the Master data info object.
Regards
arvind -
How to Update Master Data from R/3
Hi,
In the R/3 source system, there a few new company code.
I have run an infopackage to full update Datasource 0COMP_CODE_ATTR. But when I display data, the new company code is not there.
I also run rsattr, and selected all the infoObject list. But i still can't see the new company code.
May I know how to extract the new company code from R/3 to BI?
What are the steps?
Thank you.Hello
Check if the DTPs ran and the monitor turns green. The monitor in DTP also tells you how many records are processed.
After that run the Attribute change Run.
In general the steps to load master data from R/3 are:
1. Execute InfoPackage
2. Run DTP
3. Run Attribute Change Run
If the company code still does not show check the tables (P & M tables) to see if the data is there and in active version.
Hope this helps -
How to update the data in sqlserver table using procedure in biztalkserver
Hi,
Please can any one answer this below question
how to update the data in sqlserver table using procedure in biztalkserver
while am using executescalar,typedprocedure getting some warning
Warning:The adapter failed to transmit message going to send port "SendtoSql1" with URL "mssql://nal126//MU_Stage2?". It will be retransmitted after the retry interval specified for this Send Port. Details
Please send me asap....
Thanks...Hi Messip,
A detailed error would have helped us to answer you more appropriately but
You can follow the post which has step by step instructions, to understand how to use Stored Procedure:
http://tech-findings.blogspot.in/2013/07/insert-records-in-sql-server-using-wcf.html
Maheshkumar
S Tiwari|User
Page|Blog|BizTalk
2013: Inserting RawXML (Whole Incoming XML Message) in SQL database -
Identifing duplicate master data records using the MDM Import Manager
hi all
I read the Topis "How to identify duplicate master data records using the MDM Import Manager</b>"
i tried to create import maps and to set rules. but when i import them it creates the new vendor records for each rule with rest of the fields blank.
when i import vendor data all the three fields i.e Match rate , match type and match group are blank.
My Question is :
I am getting vendor data from SAP R/3.
In which source (in lookup xml file or data xml file) do i have to include these above three fields and how all the rules will be reflected in repository?Hi Sheetal
Here we go when do you Import any data (vendor master) please follow the following steps;
1. First of all apply the map to the source data
2. In the Match Record tab there are 3 possiblities
a.[Remote Key] : Checks the current source rec with
repository along with all the fields - This is
default
b.Remove [Remote key] - by double click the same; and
choose any single fields like Vendor Number or
name - Then the current record will be matched
with the repository based on the field.
c.Instead of single field you can choose combination
also.
3. Based on the Match results, match class will be set
automatically;
a. None
b. Single
c. Multiple
4. Then Match Type
a.Exact-All the individual value matches are Equal.
b.Partial-At least one value match is Equal and at least one Undefined; no value matches are Not Equal.
c.Conflict-At least one value match is Equal and at least one value match is Not Equal.
5. then chek the Import status and Execute the import.
Hope this helps you.
cheers
Alexander
Note: Pls dont forget reward points. -
IDOC:Master Data Records are not going to be updated after posting the IDOC
I need to create employee Master data records in R/3 .I am using the IDOC HRMD_A07, though the IDOC posting is successful no tables, corresponding to employee master Data are getting updated,
Can anybody plz Let me know the possible reasons and solutions for this?
Thanks in Advance,
Sandhyahi i hecked the job log entries in SM37 in source system, the idocs were returned with '0' records. i took the Idoc number and checked in BD87 it displays some logs in that one node shows the red status with the detail as follow IDoc entries in tRFC queue 3383
the next one is green Data passed to port OK 1
i selected the red staus node and clicked 'process' button but it displays as
The operation cannot be carried out with this node type
wht should i do now, wht may be the reason for the datasource not pulling the data from R/3 to BI? -
Is LSMW tool only used to update master data??
Hi experts,
Is LSMW tool only used to update master data??i.e for updating material master,customer master etc.,
or it can be used to updated configuration tables also.i.e when we do configuration a CTS is to be created.then how the CTS generation is handled.
Can anyone plesae explain me in detail?
Thanks in advance,
Regards,
N.SreelathaHi
LSMW is used to transfer Legacy data from one system to another system.
Obvioulsy Configuration objects should be transported through CTS only and not with LSMW .
Cheers,
Hakim -
How To... Update Master Data during upload of transaction data
Can anybody let me know how this can be achieved.
I have datasource (Legacy not R3) where I am getting both master data and text for number of infoobjects.
I dont want separate datasources.
The datasource is actually transactional datasource.
I dont need text in the cubes or DSO I need the text tables of the infoobjects to be updated.
I could find this on SDN but do anyone have document based on the below link.I was not able to find it.
How To... Update Master Data during upload of transaction data
Thanks.Dear Praveen
I guess yr req is demanding the knowledge of Data Unification and Synchronization whose scope is a bit outer the area of BW.( its MDM actually )
In BW we could very well fetch data out of different data sources (even across the different system) with no issues so why not u trying that. if there is any issue implementing that then please specify what kind of trouble you are interfacing...
I got the below link which may be helpful
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e7bd6389-0a01-0010-eb95-d45835d446a8 -
Exit to be used for hr to update master data
Hi,
Can anyone tell me which exit shud be used to update master data in HR module.
My extraction structure is HRMS_BW_IS_ATTENDANCE.
i have to append 'ndays' n to fill this field which exit shud be used.
Thnx,
Regards,
Nishu GuptaHi,
Transaction Data:
EXIT_SAPLRSAP_001
Master Data:
Attribute: EXIT_SAPLRSAP_002
Text: EXIT_SAPLRSAP_003
Hierarchy : EXIT_SAPLRSAP_004
Happy Tony -
How to update transaction data automatically into MySQL database using PI
Dear All,
With reference to subject matter I want a sincere advice regarding how to update transaction data automatically into MySQL database using PI. Is there any link available where I can get step-by-step process.
Ex: I have a MYSQL database in my organization. Whenever a delivery created in SAP some fields like DO Number, DO quantity, SO/STO number should get updated in MYSQL database automatically.
This scenario is related to updation of transactional data into MYSQL DB and I want your suggestions pertaining to same issue.
Thanks and Regards,
Chandra SekharHi .
Develop a sceanrio between SAP to Database system,When the data updates in SAP Tables read the data and update it in DATA Base using JDBC adapter,but there will be some delay in updating data in MySQL.
serach in sdn for IDOC-TOJDBC sceannario,many documents available for the same.
Regards,
Raja Sekhar -
How to transpose the data records (rows) to column(lists) using apd
Hi,
how to transpose the data records (rows) to column (lists) using apd in sap bw.
I do not want to use abap routine.only use the transpose rows to list transformation .
Pls provide the step by step procedure .
thanks,
NimaiSave youe file to transpose as a csv and in the header row of your file for the columns you want to transpose you need to put some soer of a tag before the column name (ie your colum header was for a period budget will be something lie 2011001:ZFIBDD)
1. You will need to create a new apd process (rsanwb)
2. Insert a "Read from Data File" data source object and map it file (,csv)
3. insert a transpose object into your apd process (middle row 4th one over in the transformations section)
4. under the definition tab in the transformation object select all the columns that are to be transposed into rows and move them to the transformed area, the grouping fields section should contain the rows that you want to now be columns
5.under the transformation tab enter in the seperator you selected under the Field Name/Infoobject area (ie. ZFIBDD)
6. under the details tab you need to enter in all the fields to be transformed and tner the transposition field (ie ZFIBDD)
7. Then you can insert a set of transformations and a DSO and link the newly transposed fields into that.
hope that helps -
How much of my data does Genius use updating my library ?
I have say 100gb of music in my Itunes library and I would like to know how much of my data usage Genius uses when it first updates?
Welcome to AD!
I doubt any of us other users will be able to answer that. The algorithms for that genius feature are like a trade secret, aren't they?
All I can say for certain is that a library of around 100 tracks won't provide any genius mixes. -
Insert new Master Data Record for an InfoObject using a Function Module
Hi @ all,
is there any Function Module for creating a new master data record for an InfoObject? Implementing a FM for inserting a master data record into a master data table is done quickly. I think there will be problems with inconsistency implementing a FM using a simple "Insert" Statement. Isn´t it?
I know it is possible to maintain an InfoObject in RSA1 (Master data IO> right click>Maintain Master data>execute(F8)> ...) but I have another requirement for using a FM.
Thanks!
Regards,
Johannesuse this
RSNDI_MD_ATTRIBUTES_UPDATE
Maybe you are looking for
-
Report for forecast, currenct stock, sales orders, confirmed production
Follwing is the mail from user. Please confirm what are the report should I refer to to fulfill user requirement. I don't want to download the data from the tables directly. Can I please request for a report to be compiled and extracted from SAP show
-
Iphone won't send texts to non-iphone users
I woke up this morning and my iphone 4s will no longer send texts to non-iphone users. I checked my SMS settings and they are fine. I reset my network settings. I restarted my phone. Nothing is working. I don't know how to fix this. I can send
-
TYPELIM and DIMLIST properties cannot be used in business rules
Hello All, We are implementing BPC V5.1. We are facing a problem while using properties such as TYPELIM or DIMLIST in "Automatic Adjustments detail" business rules. According to the documentation, there are 4 colums where we can use account propertie
-
I want to click the grey card photo in ACR 7.3. of Elements, an then apply it to multiple Photos there. Is that possible in Elemements or only in Photoshop's ACR?
-
Can SSH locally but not remotely
I have seen many thread on this and I cannot understand why it is not working for me. I had SSH server working yesterday and today it stopped working. /etc/hosts.allow # /etc/hosts.allow sshd: ALL # End of file ~ /etc/hosts.deny # /etc/hosts.deny ALL