Using HR_INFOTYPE_OPERATION in external subroutine for Dynamic Actions

Hi,
I am calling an external subroutine in the Dynamic Actions of an Infotype. In this external subroutine, I am using HR_INFOTYPE_OPERATION to modify OTHER records of the same Infotype number.
However, when I tried to trigger the Dynamic Actions in PA30, the other infotypes get modified as intended. But when I refreshed the PA30 screen, the changes were reversed back as if the HR_INFOTYPE_OPERATION were not carried out at all. I have COMMIT WORK after the HR_INFOTYPE_OPERATION, refreshed the buffer. But it doesn't seem to work.
My question is: Can i use HR_INFOTYPE_OPERATION in an external subroutine which is called during dynamic actions? As I have some complicated logic, I do not want to embed the coding in the Dynamic Actions. Is there a way for HR_INFOTYPE_OPERATION to work in the external subroutine with the changes being committed to the database?
Thank you.

Hi,
I remember the same problem being faced by some of the forum members.
Suresh Datti had replied that "Call the subroutine in a nother program using a SUBMIT statement. This will create two sessions and will update the DB". This was working fine for the users.
Hope you can try this.
Just call a program using SUBMIT statement and code your form routine inside that.
Hope this helps you.
Regards,
Subbu.

Similar Messages

  • Custom program for Dynamic Actions

    Iam using BDC’s for Actions and Org.Assignment infotypes. The dynamic actions are planned to be carried out by using separate function modules.
    My query is, On the plausibility check conditions lots of structures are referred (eg: PSPAR,RP50D etc). How do i perform this condition check in the custom program (for dynamic actions) as these structures do not have any data?
    Thanks
    Message was edited by: SShenoy

    1. PSAVE-FIELDNAME will use the old values in the FIELD. It will be used in cases when we have to do plausibility checks on the basis of new as well as old value, eg, we want to use dynamic action for employees whose status changes from 'inactive' to 'active'
    2. Sequence no represents sequence no. If for a particular Infotype and FCode, we have to specify which step has to be performed first. Sequence no tells the system exactly this thing.
    Regards
    Lincoln

  • Script external subroutine for multiple fileds display

    Hi,
    can anybody tell
    how to write external subroutine in script.
    i want to display multiple fields data in script by using external subroutine.
    Regards,
    Kumar.

    HI,
    You can use the PERFORM command to call an ABAP subroutine (form) from any program, subject to the normal ABAP runtime authorization checking. You can use such calls to subroutines for carrying out calculations, for obtaining data from the database that is needed at display or print time, for formatting data, and so on.
    PERFORM commands, like all control commands, are executed when a document is formatted for display or printing. Communication between a subroutine that you call and the document is by way of symbols whose values are set in the subroutine.
    Syntax in a form window:
    /: PERFORM <form> IN PROGRAM <prog>
    /: USING &INVAR1&
    /: USING &INVAR2&
    /: CHANGING &OUTVAR1&
    /: CHANGING &OUTVAR2&
    /: ENDPERFORM
    INVAR1 and INVAR2 are variable symbols and may be of any of the four SAPscript symbol types.
    OUTVAR1 and OUTVAR2 are local text symbols and must therefore be character strings.
    The ABAP subroutine called via the command line stated above must be defined in the ABAP report prog as follows:
    FORM <form> TABLES IN_TAB STRUCTURE ITCSY
    OUT_TAB STRUCTURE ITCSY.
    ENDFORM.
    Definition in the SAPscript form:
    /: PERFORM GET_BARCODE IN PROGRAM QCJPERFO
    /: USING &PAGE&
    /: USING &NEXTPAGE&
    /: CHANGING &BARCODE&
    /: ENDPERFORM

  • Can the iMac be used as an external monitor for a MacBook?

    Can the iMac be used as an external monitor for a MacBook?

    What iMac is this ?
    If it is a 2009 or 2010 27" iMac than this http://support.apple.com/kb/ht3924 could apply.
    Stefan

  • Latest Error Handling for Dynamic Actions

    Is there any documentation on the Latest Error Handling for Dynamic Actions?

    BillC,
    Interesting that I was looking around for the same thing after seeing a Foreign Key violation in my application.
    I found this article by Patrick Wolf:
    APEX 4.1 – Error Handling Improvements – Part 1
    http://www.inside-oracle-apex.com/apex-4-1-error-handling-improvements-part-1/
    I believe you need to be on 4.1 or later though.
    Thanks,
    Joe

  • I cannot install ODX Yosemite over OSX Mavericks as my Mac Book Pro (early 2011) advises that the disc "Mackintosh HD" is used for Time Machine back ups. This is not the case however as I use a separate external HD for this purpose, help please ?!  T

    I cannot install ODX Yosemite over OSX Mavericks as my Mac Book Pro (early 2011) advises that the disc "Mackintosh HD" is used for Time Machine back ups. This is not the case however as I use a separate external HD for this purpose, help please ?!
    Thanks

    Check this link out...
    OS X: Cannot install on a volume used by Time Machine for backups
    I was apart of this thread and it helped the OP...
    Re: System installer thinks my main drive is my time Machine backup and won't install.
    KOT

  • RAID1 Partitions disappeared when one of the mirrored HDD is used as an external drive for data rescue.

    Hi, I have mirrored build of two identical 1TB HDD in my Xserve Late 2006 (RAID 1) in Bay 2 and Bay3. When I took one HDD out and connected it as an external drive to my MacBook Pro, only the first partition appeared. That is, for instance, I have RAID partition A1, A2, A3 in Xserve but only A1 appears when the drive is connected to MacBook Pro as an external drive. Is there any way to let partition A2, A3 appear too? Thanks.

    Oh, I didn't realise you were using the hardware RAID card for this. In that case, yes, that makes sense, you won't see the other partitions because they're handled by the RAID card. I admit I'd never tried it with a RAID 1 mirror where you might expect to - I've only used RAID 5 on the hardware cards where there's no expectation, of course, to pull a drive to relocate the data.
    So you may ask why not just use a single partition for my RAID1 design. The reason is that I prefer to partition HDD because it is good for HDD lifespan. I don't like to design my parition schema to be just a single big parition with 1T Hard Drive since all data are going to be stored scattered and hence, taking longer for spindle reading.
    I don't agree with most of this statement. I've not seen anything that indicates partitioning improves lifespan - for any given data, the disk spins the exact same number of times, and the heads move the same number of times, regardless of the partitioning - partitioning is only a logical, not a physical, construct.
    As for the data being scattered and spindle latency, that's nowhere near the problem it used to be in the past thanks to faster spindles and larger caches. In addition, Mac OS X uses a dynamic reallocation/fragmentation system that automatically (re)allocates files as they're used, meaning you don't have the level of fragmentation that you used to have.
    The primary benefit of partitioning is to restrict file system sizes so that you don't get a runaway proceess filling up the entire disk. Even that is less of a problem - when an 8GB drive was large it didn't take much to fill it, but you'd have to have a pretty rampant process to fill up a 1TB drive before alarms started ringing.

  • Theme 11, live scope for dynamic action not working in IE

    Hello all,
    I use theme 11, and I have a dynamic action on page 0 that fixes a region width, because it is too long to match the page width. I set the Event Scope to "live" because the region is a report and it has many rows and pagination is needed. When I have to go to page 16-30 from 1-15 and if there is a record which is longer than the current 15, page is partially refreshed and the width is changed, but that works for Mozilla and Chrome. In IE the dynamic action from page 0 is not triggered, in spite of the live event scope and I don't know why. Is there a way I can fix that problem?
    Thanks in advance!

    Hi Ivan,
    Thanks for the information, this is indeed an interesting case. I'm assuming you have 'Enable Partial Page Refresh' in the report attributes set to 'Yes'. Please let me know if this is not the case.
    I don't think an event of 'Page Load' with a scope of 'live' is correct. The 'live' event is a way of saying, attach some behaviour to something on a page (eg a delete icon in a report row is clicked), and keep that behaviour 'alive' even if that part of the page is updated (eg the report paginates with PPR to the next set or results, and clicking on the delete icon in the report still works). However here, when the event is page load, I don't think specifying 'live' will do what you want.
    What I think you're really interested in is indeed when the page first loads, but then when the report is refreshed via PPR. Therefore, I would try the following:
    1) Change the dynamic action event to 'After Refresh'.
    2) Select the report region from the 'When > Selection' attributes (ensuring your report template contains a id="REGION_STATIC_ID" attribute, otherwise the DA won't work).
    3) In your 'Actions', ensure the 'Fire on Page Load' checkbox is checked.
    So this says do the action when the page loads, then always after the report is refreshed via PPR. This will fire after pagination, sorting or a dynamic action refresh.
    Interestingly (at least in my mind!), you can actually set the event scope back to 'bind' here. This is because as part of the DA framework, we purposefully attach the event handlers for report handling to an element that is not updated during PPR for pagination or sorting, it's higher up in the DOM tree. This gives slightly better performance than having to use 'live', which is more expensive computationally and yet still keeps the registered behaviours.
    Also something else which may help, you can check if the DA is firing when expected by using a JavaScript console (eg in Chrome native Developer tools, Firebug with Firefox), with application debugging enabled (Application Properties) and switched on (via developer toolbar). Load the JS console, and you'll be able to see when the DA fires.
    As far as the actual IE specific logic goes, I haven't looked into that too much yet, because I felt it was more important to get the DA firing correctly first, then see where we're at.
    Regards,
    Anthony.
    Edited by: Anthony Rayner on Nov 14, 2011 11:06 PM

  • Using tv as external display for MacBook Air?

    Does anyone know how to use a 21.5" Samsung LED TV with 1920x1080 resolution as the external display for a MacBook Air A1369 running OS X 10.6.8 (broken screen)?

    I guess you have to buy a Belkin HDMI routing cable. From Thunderbolt/Display port to HDMI.
    Then plug it in to your macbook and into your tv. Then press CMD+F1 and voila.
    If you still have any problems, i like to hear from you.

  • Problem using Aperture as external editor for Photoshop CS5...

    I am having trouble using Aperture as my external editor for Photoshop - if, for example, I select twenty photos and choose "edit in photoshop CS5," for some reason or another, only ten or twelve photos will show up. Some photos are always missing, and there seems to be no rhyme or reason to it. Has anyone else noticed this? It is really frustrating and slowing my workflow down immensely. Any words of advice would be greatly appreciated!

    Hi Casey.
    First lets make sure we have the flow going the correct way.  You are using Aperture, and use PSCS5 as your external editor (external to Aperture).  Right?
    Second, what size are your Masters?  When you use PS directly (not calling it from Aperture) do you regularly open twenty files at a time?
    My Masters are about 25 MPix each.  PS sizes them in the 140 MB range.  Opening twenty of them at once -- for me that's about 3 GB of data -- will probably bog things down.  Does the problem occur if you open just, say, five at a time?  What's your hardware?  How do you have PS set-up?
    And -- my top suggestion for improving your work rate: do in Aperture as much of the work as you can, and send out to PS as little as possible.  You don't say what kind of work you are doing, but Aperture, for many, suffices for almost all of there photograph processing needs.
    Message was edited by: Kirby Krieger -- some minor changes.

  • HT3924 Using iMac as external display for PC.  Question re: Cables

    I have a PC laptop with an HDMI output, but not a mini displayport.  I have a 27" iMac with a mini displayport jack.  If I want to use the iMac as an external monitor for the PC laptop, can I use a mini displayport to HDMI cable?  Or does my laptop need to have a mini displayport jack as well?
    Thanks

    This approach will only work if the OP has a 2009 or 2010 27" iMac. It will not work on any other iMacs. What he is attempting to do is called Target Display Mode, TDM is addressed in these two Apple articles:
    http://support.apple.com/kb/HT3924
    and
    http://support.apple.com/kb/TS3775

  • Using imac as external display for my MacBook

    Can I use the new iMac as an external display for my MacBook?

    Here's the >New iMac Spec's and there is only Mini-DVI output port and "NO" input port.

  • Can the B520 be used as an external monitor for a macbook via the HDMI in?

    Hi,
    I'm very happy with the Lenovo, but it looks like our family will be acquiring a macbook in the near future.  Can I use HDMI in on the Lenovo B520 so that it becomes an external display for an apple computer?
    Thanks for the help.

    Thank you very much for the help. Now if I could only figure out why the Lenovo B520 doesn't see my apple airport extreme network anymore. I guess I'll have to post separately for that one. It was incredibly fast and now it doesn't connect at all. Thanks for the help on this. I need a mac for access to iBooks Author. Silly (and expensive), but true. Thanks again!

  • Custom program for dynamic actions in BDC

    Hi all,
    Did anyone work on dynamic actions in BDC. I got a method of doing, but looking out for a simpler one.
    Thanks..

    Hi,
    Any updates that happen via dynamic actions in online mode must be explicitly included in the BDC session since dynamic actions are turned off during the execution of batch input sessions.this is a standard behavior.
    Regards,
    Manoj.

  • Logic for Dynamic Actions

    Can any one tell me the logic for implementing Dynamic Actions.
    Regards
    vamsi.

    What are dynamic actions and how to configure it?
    Ans) Dynamic actions are performed automatically by the system, depending on certain conditions. If maintaining one infotype has an effect on another infotype, the system automatically displays the second infotype for processing.
    Dynamic actions can run in the background i.e. the user does not see the run on the screen.
    A change in one field of an infotype might require, that certain other infotype be updated at the same time. The details can be specified as a dynamic event. It is automatically triggered by the system.
    *Examples: *
    The Personal Data infotype is newly created, and the Number of children field is filled. Once the record is saved, the system automatically displays the Family/Related Person (0021) infotype and the Child subtype (2) for processing. An employee is hired, and the probationary period is entered in infotype Contract Elements. Once this information is saved, the system automatically displays a record from the Monitoring of Dates (0019) infotype and the subtype Expiry of probation (1) for processing.

Maybe you are looking for

  • How I can create a XML file from java Aplication

    How I can create a XML file from java Aplication whith have a the following structure <users> <user> <login>anyName</login>      <password>xxxx</password> </user> </users> the password label must be encripted accept any suggestion

  • My disk0s2 cannot be repaired.  Is there a way to recover files on my computer?

    My computer had a spinning wheel yesterday that would not go away, so I forced a shutdown (had done it before with no problems).  However, now my computer goes straight to the diagnostic tool, and when I try to repair disk0s2, it cannot be repaired. 

  • Replacing MacBook Pro Screen with higher resolution screen?

    I bought a MacBook Pro 15" today which has the lower end screen resolution.  I originally wanted the higher resolution screen but the guys in the shop said they didn't sell them in the shops, only online, but since I wanted one before I headed off to

  • New iMac 24" 2.4GHz

    I received my new iMac this past Monday and all is running wonderful! I am still installing software, but this machine is a dream.

  • Multiple photo albums after synch

    Hi, I have synchronized a lot of photo albums to the iPhone 4S (iOS 7.1) from my Win7 PC. After a while I see a lot of copies of the albums in the photo app (e.g. 100 instead of only 30 I have synchronized), but they do not contain the original photo