SCN: Message List - Make A Test Before Saving Data To An Infotype ...
Có thể bạn quan tâm
- Login
- Account
- Sign Up
- Home
- About Us
- Catalog
- Search
- Register RSS
- Embed RSS
- FAQ
- Get Embed Code
- Example: Default CSS
- Example: Custom CSS
- Example: Custom CSS per Embedding
- Super RSS
- Usage
- View Latest
- Create
- Contact Us
- Technical Support
- Guest Posts/Articles
- Report Violations
- Google Warnings
- Article Removal Requests
- Channel Removal Requests
- General Questions
- DMCA Takedown Notice
- SAP>>
- Collections:
- RSSing
- EDA
- Intel
- Mesothelioma
- SAP
- SEO
- Latest
- Articles
- Channels
- Popular
- Articles
- Pages
- Channels
- Trending
- Articles
- Pages
- Channels
- Title: SCN: Message List - Make a Test before Saving data to an Infotype ( HR_INFOTYPE_OPERATION )
- Channel Number: 15202693
- Language: English
- Registered On: June 9, 2013, 9:16 pm
- Number of Articles: 8
- Latest Snapshot: September 19, 2014, 7:24 pm
- RSS URL: http://scn.sap.com/community/feeds/messages?thread=3371278
- Publisher: http://scn.sap.com/community/abap?view=discussions
- Description: Most recent forum messages
- Catalog: //infotype6.rssing.com/catalog.php?indx=15202693
Hello,
I have a problem saving data to infotype 2007
Step 1.
First I would make a test before saving data, after that I would Know If there are some errors. I use HR_INFOTYPE_OPERATION function , with NOCOMMIT = 'X' and ROLLBACK WORK .... (It does not SAVE ANYTHING)
Step 2.
If there are not errors ( in step 1 ) . I should save, I use the same function ( HR_INFOTYPE_OPERATION) but when I save ( COMMIT WORK AND WAIT )
SAP save two rows in infotype 2007 ( one for each step )
I would like to know if it exists some Function to make a test or how can i use HR_INFOTYPE_OPERATION, for making a test an after that Save just one row
Thanks
↧ Search RSSing.com $ 0 0See if FM HR_PSBUFFER_INITIALIZE can be used.
It is in same function group as HR_INFOTYPE_OPERATION.
During simulation, people also use statement SET UPDATE TASK LOCAL.
↧ ↧ $ 0 0Hi,
Are you saying that no_commit = 'X' is working or you want to find out how to do that in test mode?
↧ $ 0 0Check these Notes:
Note 635072 - Function module HR_PSBUFFER_INITIALIZE
Note 589887 - Long runtime of BAPIs for HR infotypes
Note 615511 - Long runtimes with 'HR_MAINTAIN_MASTERDATA' for HR infotypes
Regard's
Smruti
↧ $ 0 0Test Mode. "no_commit = 'X'" --> it does not work out.
↧ ↧ $ 0 0It should work as suggested by Manish Kumar by using Function module HR_PSBUFFER_INITIALIZE but commit work might is an issue with this FM. It's not reliable in many scenarios.
Try HR_MAINTAIN_MASTERDATA and use the commit from there.
↧ $ 0 0As per your Step #2 what value you send in "NO_COMMIT" ??
Debug your Code you can easily find where is your problem, my suggest don't pass any value in "NO_COMMIT" Parameter also don't use "COMMIT WORK AND WAIT" after FM .
Reason : If you See above FM Source Code , where "NO_COMMIT" = Initial mean blank , then LUW_MODE = '1' 
Now See where this LUW_MODE is Pass into "HR_MAINTAIN_MASTERDATA" inside above FM i.e. "HR_INFOTYPE_OPERATION" .

then check inside "HR_MAINTAIN_MASTERDATA" FM Source Code where and how this parameter work LUW_MODE ='1' .
Now Check from Line Number : 244 to 321 in ""HR_MAINTAIN_MASTERDATA" FM Source Code Logic .
here you see if LUW_MODE = '1' , or NO_COMMIT Is Initial then FM automatically call below Statement i.e. "COMMIT WORK"

Note : Debug your existing Code you can easily find why two row is save , during your STEP#2 .
or Hide NO_COMMIT Line and don't call again COMMIT WORK after STEP#2 .
Regard's
Smruti
↧ $ 0 0Hi,
Check this link. It is using classes for updating in simulation mode.
http://scn.sap.com/docs/DOC-40711
↧ Search RSSing.com Remove ADS Viewing latest articles Browse all 8 Browse latest View live Search RSSing.com- SAP>>
- Latest
- Popular
- Trending
Từ khóa » Hr_infotype_operation No Commit
-
No Commit Perameter In Hr_infotype_operation - SAP Community
-
HR_INFOTYPE_OPERATION To Update SAP Hr Infotypes - Function ...
-
HR_INFOTYPE_OPERATION To Update SAP Hr Infotypes - ABAP
-
SAP FM (Function Module): HR_INFOTYPE_OPERATION
-
HR_INFOTYPE_OPERATION - SAP Help And Wiki Pages, Answers ...
-
HR_INFOTYPE_OPERATION SAP ABAP Function Module - SE80
-
Hr_infotype_operation Does Not Update
-
Problem With HR_INFOTYPE_OPERATION - Enterprise Software
-
ITXEX Field Cleared When HR_INFOTYPE_OPERATION Is Called
-
Create New HR Infotype Record ABAP Code - SE80
-
HR_INFOTYPE_OPERATION To Update SAP Hr Infotypes - ABAP
-
ABAP – Function Module HR_INFOTYPE_OPERATION
-
FM HR_INFOTYPE_OPERATION - The SAP Fan Club Forums
-
SAP开发笔记HR_INFOTYPE_OPERATION - 百度文库