SCN: Message List - Make A Test Before Saving Data To An Infotype ...

  • 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
Switch Editions? Cancel Sharing: Title: URL: Copy Share URL English RSSing.com SAP>> Latest Popular Trending Channel: SCN: Message List - Make a Test before Saving data to an Infotype ( HR_INFOTYPE_OPERATION ) NSFW? Claim 0 X Mark channel Not-Safe-For-Work? cancel confirm NSFW Votes: (0 votes) X Are you the publisher? Claim or contact us about this channel. X 0 Showing 8 articles in the latest snapshot of channel 15202693 Channel Details:
  • 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
Remove ADS Viewing latest articles Browse all 8 Browse latest View live ↧ $ 0 0

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 0

See 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 0

Hi,

 

Are you saying that no_commit = 'X' is working or you want to find out how to do that in test mode?

↧ $ 0 0

Check 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 0

Test Mode.   "no_commit = 'X'"  --> it does not work out.

↧ ↧ $ 0 0

It 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 0

As 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' hr1.png

 

Now See where this LUW_MODE is Pass into "HR_MAINTAIN_MASTERDATA"  inside above FM i.e. "HR_INFOTYPE_OPERATION" .

 

 

hr2.png

 

 

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"

 

hr3.png

 

 

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 0

Hi,

 

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
© 2025 //www.rssing.com <script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>

Từ khóa » Hr_infotype_operation No Commit