Dynamic actions: ins when new, mod when existing?

Hello,
I want to create a dynamic action in infotype 2 that creates or modifies a record in infotype 21 when the marital status is changed.
So when there is no spouse yet in infotype 21, the record should be created. But when there is an existing spouse, it should be modified instead.
How exactly can I do this in dynamic actions? Ins when new, mod when existing? Is there a special keyword for that?

0002              FAMST     06     11     P     P0002-FAMST='1'
0002              FAMST     06     12     I     INS,0021,1,,(P0002-FAMDT),(P0002-ENDDA)

Similar Messages

  • IRR dynamic action filter does not work when condition set.

    Hi All
    I've set up a filter on an Interactive report using a dynamic action. The fiilter is used to display records that expire within a term ( example 30,60,90 days.) The dynamic action is set to fire On Change. This all works fine as long as I do not set the report condition to only display when P1_DAYS is not null.
    I am using a report template that includes #REGION_STATIC_ID# as referenced in this post -
    http://anthonyrayner.blogspot.com/2010/07/report-filtering-with-apex-40-dynamic.html
    I hoped not to display a blank report region .. wait until after the user selects the "term" before displaying the results. Any workaround suggestions would be appreciated.
    Version -
    Application Express 4.0.1.00.03
    Thanks
    MO

    Kindly check the following link for reference.
    sample configuration link
    http://www.cisco.com/c/en/us/td/docs/wireless/controller/5700/software/release/3se/security/configuration_guide/b_sec_3se_5700_cg/b_sec_1501_3850_cg_chapter_01110.html
    http://www.cisco.com/c/en/us/td/docs/wireless/controller/7-0/configuration/guide/c70/c70intf.html
    Trouble shooting link
    http://www.cisco.com/c/en/us/support/docs/security/secure-access-control-system/113485-acs5x-tshoot.html

  • When-Mouse-Click does not fire if When-new-item-instance exists

    We are using Forms 6i Patch 12.
    The When-Mouse-Click trigger (at block level) is not getting fired when a When-new-item-instance trigger exists on a given item on which mouse is clicked.
    We need to synchronize keyboard and mouse events such that if the validation on certain key items fails, the cursor should go to one of the specified items as per the validation rules.
    The validation rules are different on leaving from different items. Complex validation rules require cursor to go to a different item than the current item on which the validation fires.
    Since go_item cannot be used in when-validate-item, we are using a combination of key-next-item and when-mouse-click.
    But, this strategy seems to fail if mouse is clicked over an item having a when-new-item-instance trigger.
    Also, we need the When-mouse-click trigger to fire before When-new-item-instance.
    Any pointers to solving the firing of trigger or strategy will be appreciated!
    Regards,
    Sanjiv

    This solution we have tried and it works also.
    However, we end up in another problem in the form. For overall picture, please see my latest post for "Forms Valid status" at Forms Valid status
    Regards,
    Sanjiv

  • 'find my ipad' enabled I cannot access the ipad as the use account originally set when new no longer exists, please help, now in DFU mode but still needs passcode!

    I have deleted my Apple ID from the apple store but had it previously associated with my Ipad, that I set 'to find' my ipad. but since i've deleted the orginal account I cannot access my ipad! The ipad is currently in DFU mode but still asks for a password, please help!

    Your Apple ID still exists with the most recent password that you used.  You can use it to erase your iPad. Read this.

  • HR_INFOTYPE_OPERATION not working when called from Dynamic action

    Hi ,
           Senario  : I would like to execute a form from dynamic action which
    creates a record in 0015 (Additional payment IT) .
           I have writen the code as shown below am using FM HR_INFOTYPE_OPERATION
    . When i execute the program from se38 it is creating a record, however it is
    not created when it is called from dynamic action..when i debugged the code in
    inside the FM HR_INFOTYPE_OPERATION there is a FM HR_MAINTAIN_MASTERDATA where
    they are using call dialog (statement) and
    sy-oncom = 'N'   when called from Dynamic action and
    sy-oncom = 'S'   when called executed directly.
    I tried to change the sy-oncom to S while run from Dynamic action it created
    the record.
    So Can anyone explain me abt sy-oncom and how can i resolve the issue..
    code..
    REPORT ZHRPYENH01 .
    perFORM TERMIATION_9000.
    INCLUDE DBPNPMAC.
          FORM Termiation_9000                                          *
    FORM TERMIATION_9000.
    INFOTYPES : 0015.
    *data : i .
    *i ='c'.
    *break-point.
    *message i000(000) with i.
      TABLES : PRELP.
      DATA : P9000 TYPE PA9000." with header line.
      DATA : P0000 TYPE STANDARD TABLE OF  P0000 WITH HEADER LINE.
    DATA : P0015 TYPE STANDARD TABLE OF  P0015 WITH HEADER LINE.
      DATA : HIRE_DATE  LIKE SY-DATUM,
             TERM_DATE  LIKE SY-DATUM.
      DATA : MOLGA LIKE T500L-MOLGA VALUE '25',
             SEQNR LIKE PC261-SEQNR.
      DATA : RGDIR TYPE STANDARD TABLE OF PC261 WITH HEADER LINE.
      DATA : ACTUAL_PERIOD LIKE PA9000-RETENTION.
      DATA : PNP-SW-FOUND TYPE SY-SUBRC ,
             PNP-SY-TABIX TYPE SY-TABIX.
      DATA : TER_PERNR LIKE PA0001-PERNR.
      DATA : REF_PERNR LIKE PA0001-PERNR.
      data : key type BAPIPAKEY.
      data : payed_amount type p0015-BETRG.
    data : future_payment_amount type p0015-BETRG.
    data : p0002 like pa0002.
      types : begin of t_deduction ,
              deducation_date like p0015-begda,
              future_payment_amount type p0015-BETRG.
      types : end of t_deduction.
    data :  future_deduction type standard table of t_deduction with
    *header line.
      data :  future_deduction type  t_deduction .
    data : RETURN type  BAPIRETURN1.
    *data : deduction_p0015 like standard table of p0015 with header line.
    data : deduction_p0015 like p0015 .
    xxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxx
    ****Prepare 0015 data for deduction
    *deduction for payed amount
    clear deduction_p0015.
    *refresh deduction_p0015.
    deduction_p0015-pernr = REF_PERNR.
    *deduction_p0015-pernr = TER_PERNR.
    deduction_p0015-lgart = 'M120'.
    deduction_p0015-begda = sy-datum + 1 .
    deduction_p0015-endda = sy-datum + 1 .
    deduction_p0015-BETRG = payed_amount.
    deduction_p0015-WAERS = 'SGD'.
    deduction_p0015-ZUORD =  TER_PERNR.
    *append deduction_p0015.
    **deduction for future payment amount
    *loop at future_deduction.
    *clear deduction_p0015.
    *deduction_p0015-pernr = REF_PERNR.
    **deduction_p0015-pernr = TER_PERNR.
    *deduction_p0015-lgart = 'M120'.
    *deduction_p0015-begda = FUTURE_DEDUCTION-DEDUCATION_DATE.
    *deduction_p0015-endda = FUTURE_DEDUCTION-DEDUCATION_DATE.
    *deduction_p0015-BETRG = future_deduction-future_payment_amount.
    *deduction_p0015-WAERS = 'SGD'.
    *deduction_p0015-ZUORD =  TER_PERNR.
    *append deduction_p0015.
    *endloop.
    Create a deduction wage type in 0015 for the employee
    break-point.
    CLEAR RETURN.
    CALL FUNCTION 'BAPI_EMPLOYEET_ENQUEUE'
      EXPORTING
        NUMBER              = REF_PERNR
        VALIDITYBEGIN       = '18000101'
    IMPORTING
       RETURN              = return
    if not return is initial.
    message E000(000) with
    'Referred Employee could not be locked for referal  payment deducation,
    please try after some time'.
    endif.
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
      EXPORTING
        INFTY                  = '0015'
        NUMBER                 = REF_PERNR
       SUBTYPE                = 'M120'
      OBJECTID               =
      LOCKINDICATOR          =
       VALIDITYEND            = SY-DATUM
       VALIDITYBEGIN          = SY-DATUM
      RECORDNUMBER           =
        RECORD                 = deduction_p0015
        OPERATION              = 'COPY'
      TCLAS                  = 'A'
       DIALOG_MODE            = '2'
      NOCOMMIT               =
      VIEW_IDENTIFIER        =
      SECONDARY_RECORD       =
    IMPORTING
       RETURN                 = return
       KEY                    = key
    break-point.
    COMMIT WORK.
    if not return is initial.
    *return-TYPE
    *ID
    *NUMBER
    *MESSAGE
    message I000(000) with return-MESSAGE.
    endif.
    CALL FUNCTION 'BAPI_EMPLOYEET_DEQUEUE'
      EXPORTING
        NUMBER              = REF_PERNR
        VALIDITYBEGIN       = '18000101'
    IMPORTING
       RETURN              = return
    xxxxxxxxxxxxxxxxxxxx
    xxxxxxxxxxxxxxxxx
    Thanks and regards
    -Senthil Bala
    Message was edited by: senthil bala

    Hi Senthil
    Why at all U want a subroutine to create a record in IT0015 through Dynamic action.There are some standard codes available to update infotypes.
    Let me give U an example
    14     9CON     BETRG     4     2     I     INS,0015 This will create a record in IT0015 when IT0014 is updated with Wagetype 9CON
    14     9CON     BETRG     4     3     W     P0015-LGART='5400' Set wagetype for IT0015(Here U can use a subroutine call to set the wagetype)
    14     9CON     BETRG     4     4     W     P0015-BETRG=P0014-BETRG set amount for IT0015(Here U can use a subroutine call to get the amount)
    14     9CON     BETRG     4     5     W     P0015-BEGDA=P0014-ENDDA set the dates(Here U can use a subroutine call to set the dates)
    Hope this will help U.
    Please award points if helpful

  • How to abort tasks in a Dynamic Action when apex.confirm = Cancel

    I have a text field that has a Dynamic Action attached to it. When the field is changed, the Dynamic Action fires. There are 6 separate tasks in that Dynamic Action.
    The very first task is a call to apex.confirm. I want to make sure that the user understand the implications of changing the value in this field. So, up pops the dialog, the user reads the information, and decides to click OK or Cancel.
    If OK is clicked, I want to continue through the rest of the tasks in the Dynamic Action. If CANCEL is clicked, I want to just abort out of the Dynamic Action.
    Is that possible?
    Apex 4.1.1.00.23
    Edited by: Mark T. on Mar 1, 2012 9:49 AM

    Yes, I do see a different behavior.
    I've set up an app on apex.oracle.com, #60312. Workspace is mavericksolutions. Login pwolf. Password A1B2C3 change on first login.
    The first field is tied to a dynamic action. The first task in the DA is an apex.confirm. Type something into the first field then click TAB to bring up the dialog box. Whether I click OK or click CANCEL, the 2nd task is still occurring. It appears that the only difference is that if I click OK, I also get a submit of the page.
    What I want, in fact, is twofold:
    1. If I click CANCEL, then STOP the execution of the remainder of the tasks in the Dynamic Action.
    2. If I click OK, go ahead and process the rest of the tasks in the Dynamic Action, but DO NOT SUBMIT.
    Basically, I want to ask the user if it's OK to go ahead and make the on-screen changes, but I do NOT want to do an auto-save. I want the user to look at the results on the screen and click the actual SAVE (or CREATE) button after ensuring their accuracy. Right now, it appears that the apex.confirm is firing a page submit when I click OK (the fields get cleared out). I don't want that page submit.
    I THINK I can accomplish goal #1 with a workaround, by splitting the DA into two pieces. Piece #1 would have only the confirmation dialog. Piece #2 would be fired from the same field change, would have a sequence number AFTER piece #1, and would be conditional on the value of the expression returned by the apex.confirm. So if the apex.confirm returned 'DOTHIS' when I click OK, I would look to see if Expression = DOTHIS for piece #2. If not, then piece #2 wouldn't fire.
    The remaining trouble, then, is that if I click OK to fire piece #2, the page submit will subsequently fire following the completion of piece #2. And no matter what, I definitely do NOT want a page submit. Is there a function similar to apex.confirm that does not do a page submit?
    Anyway, take a look at the app. It's not performing the way that I anticipated, which is the same behavior that you described. I expected that it would do exactly what you said. Alas...

  • User Exit/Dynamic Actions when saving Business Event

    Hi,
    In Training & Event Management, is there such a thing as a user exit/dynamic actions that will be invoked when saving a Business Event?
    Thank you.
    Regards,

    Hi
    Please check out the following Business Add in
    RHPV0001
    HRTEM00MASTERDATA 
    HRTEM00NET_ACTIVITY
    HRTEM_HANDLE_BOOKING
    Reward points, if helpful.
    regards
    waz

  • Calling earliest record in a dynamic action

    Hi all,
    I am using dynamic actions to call infotype 0016 when user creates a new record in infotype 19. I am opening this infotype 0016 in change mode.
    Now,  I want that the earliest record of infotype 0016 should come in the change mode and not the latest one.
    Please suggest what to do for that?
    Thanks
    Ribhu

    Hi Do in this way..
    Call a routine...
    There is a structure RP50D which is accessible in dynamic action...
    Structure is : 
    FIELD1
    DATE1
    DATE2
    FLAG1
    .INCLUDE  CI_INCLUDE
    in side that routine find out the record for ur particular date..
    and pass BEGDA and ENNDA for that record to RP50D-DATE1 and RP50D-DATE2.
    and in dynamic action call :
    COP,0016,,,(RP50D-DATE1),(RP50D-DATE2)
    if u want more fields then u can include in CI include..
    Hope it will work
    reward if helpful
    Regards
    Prax

  • Quick Picks and Dynamic Actions not working

    I have a page item that includes Quick Pick values. This item also includes a dynamic action to update another item when triggered by a change event. The problem is, quick picks do not trigger change events. Has anyone else seen this and come up with a solution? Thanks.

    Hi,
    the JavaScript code generated for the Quick Picks is using $s which triggers the change event for the target page item.
    I just tried that out and it worked fine for me.
    1) I have defined a text field with a few quick pick values.
    2) Declared a dynamic action which fires on "Change". No condition set
    3) The action is defined as "Alert"
    The alert always shows when I pick a value with a quick pick.
    Can you put an example on apex.oracle.com so that I can have a look.
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf

  • Dynamic actions and PA-PD integration a problem

    Are you aware of an update problem with MSS and PA-PD integration?  This information was made available in a presentation to us last year.  Was this issue resolved in mySAP ERP 2004?
    Dynamic actions and PA-PD integration a problem
    Dynamic actions and PA-PD integration are not
    processed on updates made from the web (but in the
    background through a batch or call transaction session)
    That’s why most standard PCRs require HR to process
    the transaction using the SAP GUI in the foreground
    This normally affects changes to infotypes 0000 &
    0001
    Then the next slide states:
    Workaround for dynamic actions
    Review dynamic actions in table T588Z (use SE16 to
    display) and document the infotypes and values that
    trigger dynamic actions
    Incorporate those infotypes into your background
    processing and web forms (if necessary)
    Workaround for PA-PD integration
    Include the integration steps for these infotypes in your
    background processing (just as in conversions)

    Hi John,
    Not sure if it is fixed.. or can be fixed.. we are still in 47  & Use custom code to account for Dynamic Actions.. the PCR processes use the function module HR_MAINTAIN_MASTERDATA to update the infotypes. This function mimics a BDC & hence cannot handle Dynamic Actions... Basically, the issue is not with MSS but it is the way Dynamic Actions work.. to quote SAP  "Dynamic actions are not correctly processed in batch input sessions since in batch input the sequence of the screens needs to be predefined correctly. To be able to process dynamic actions in batch input, the checks of the dynamic actions need to be programmed when creating the batch input session. To avoid errors when programming and running the session, the static actions  only are processed in batch input. Calls of infotypes that are triggered by dynamic actions should be realized by separate Transaction calls.
    Please take a look at OSS Note #386027 for additional info about Dynamic Actions.
    Regards,
    Suresh Datti

  • About creating an AJAX page with DML procedures  using dynamic actions

    About creating an AJAX page with DML procedures in APEX using dynamic actions. Help with limitations.
    I want to share my experience, creating AJAX procedures in APEX 4.0.
    LIMITATIONS
    •     How Can I Hide UPDATE button while I press NEW button. ??
    •     How Can I Hide CREATE button while I’m UPDATING A RECORD. ??
    •     How can I avoid multiple Inserts or Updates. ??
    Here are the steps to create an AJAX Updatable Form using the sample table DEPTS. You can see the demo here: [http://apex.oracle.com/pls/apex/f?p=15488:1]
    1)     Create a blank page
    2)     Add a Report Region for departments (It shows the columns deptno, dname and loc).
    3)     Add an HTML Region and create the elements to edit a Department.
    a.     P1_DEPTNO (Hidden to store PK)
    b.     P1_DNAME (Text Field)
    c.     P1_LOC (Text Field)
    4)     You also have to create a hidden element called P1_ACTION. This will help to trigger dynamic actions to perform DMLs.
    5)     Open Page Attributes and in the HTML Header Section include the following code.
    <script>
         function doSelect(pId){
              $x_Value(‘P1_DEPTNO’,pId);
              $x_Value(‘P1_ACTION’,’SELECT’);
    </script>
    6)     Modify the column DEPTNO in the report, to add column link. In the link text you can use #DEPTNO# , in target you must select ‘URL ‘ and in the URL field write javascript:doSelect(#DEPTNO#);
    7)     Create the following Buttons in the Form Region.
    CANCEL     Redirects to URL: javascript:$x_Value(‘P150_ACTION’,’CANCEL’);
    NEW          Redirects to URL: javascript:$x_Value(‘P150_ACTION’,’NEW’);
    SAVE          Redirects to URL: javascript:$x_Value(‘P150_ACTION’,’UPDATE’);
    CREATE          Redirects to URL: javascript:$x_Value(‘P150_ACTION’,’CREATE’);
    8)     Create the following Dynamic Action to Select a Department
    Name:     Select Dept
    Event:     Change
    Selection Type:     Item(s)
    Item(s):     P1_ACTION
    Condition:     equal to
    Value:     SELECT
    Action:     Execute PL/SQL Code
    PL/SQL Code:     
    SELECT dname, loc
    INTO :P1_DNAME, :P1_LOC
    FROM dept
    WHERE deptno = :P1_DEPTNO;
    Page Items to Submit:     P1_DEPTNO, P1_DNAME, P1_LOC     
    Don’t include any false action and create the Dynamic Action.
    The first limitation, the value of page elements don’t do refresh so I added the following true actions to the dynamic action AFTER Execute PL/SQL Code.
    Action:     Set Value
    Unmark *‘Fire on page load’* and *‘Stop execution on error’*
    Set Type:     PL/SQL Expression
    PL/SQL Expression:     :P1_DNAME
    Page Items to submit:     (none) (leave it blank)
    Affected Elements: Item P1_DNAME
    Action:     Set Value
    Unmark *‘Fire on page load’* and *‘Stop execution on error’*
    Set Type:     PL/SQL Expression
    PL/SQL Expression:     :P1_LOC
    Page Items to submit:     (none) (leave it blank)
    Affected Elements: Item P1_LOC
    These actions allow refresh the items display value.
    9)     Create the following Dynamic Action to Update a Department
    Name:     Update Dept
    Event:     Change
    Selection Type:     Item(s)
    Item(s):     P1_ACTION
    Condition:     equal to
    Value:     CREATE
    Action:     Execute PL/SQL Code
    PL/SQL Code:     
    UPDATE dept SET
    dname = :P1_DNAME,
    loc = :P1_LOC
    WHERE deptno = :P1_DEPTNO;
    Page Items to Submit:     P1_DEPTNO, P1_DNAME, P1_LOC     
    Don’t include any false action and create the Dynamic Action.
    Include the following True Actions BEFORE the Execute PL/SQL Code true Action.
    Action:     Set Value
    Unmark ‘Fire on page load’ and ‘Stop execution on error’
    Set Type:     PL/SQL Expression
    PL/SQL Expression:     :P1_DNAME
    Page Items to submit:     P1_DNAME
    Affected Elements: Item P1_DNAME
    Action:     Set Value
    Unmark *‘Fire on page load’* and *‘Stop execution on error’*
    Set Type:     PL/SQL Expression
    PL/SQL Expression:     :P1_LOC
    Page Items to submit:     P1_LOC
    Affected Elements: Item P1_LOC
    These actions allow refresh the items display value.
    Finally to refresh the Departments report, add the following true action at the end
    Action:     Refresh
    Affected Elements: Region Departments
    10)     Create the following Dynamic Action to Create a Department
    Name:     Create Dept
    Event:     Change
    Selection Type:     Item(s)
    Item(s):     P1_ACTION
    Condition:     equal to
    Value:     CREATE
    Action:     Execute PL/SQL Code
    PL/SQL Code:     
    INSERT INTO dept(deptno,dname,loc)
    VALUES (:P1_DEPTNO,:P1_DNAME,:P1_LOC);
    Page Items to Submit:     P1_DEPTNO, P1_DNAME, P1_LOC     
    Don’t include any false action and create the Dynamic Action.
    Include the following True Actions BEFORE the Execute PL/SQL Code true Action.
    Action:     Set Value
    Unmark *‘Fire on page load’* and *‘Stop execution on error’*
    Set Type:     PL/SQL Function Body
    PL/SQL Function Body:     
    DECLARE
    v_pk NUMBER;
    BEGIN
    SELECT DEPT_SEQ.nextval INTO v_pk FROM DUAL;; -- or any other existing sequence
    RETURN v_pk;
    END;
    Page Items to submit:     P1_DEPTNO
    Affected Elements: Item P1_DEPTNO
    Action:     Set Value
    Unmark *‘Fire on page load’* and *‘Stop execution on error’*
    Set Type:     PL/SQL Expression
    PL/SQL Expression:     :P1_DNAME
    Page Items to submit:     P1_DNAME
    Affected Elements: Item P1_DNAME
    Action:     Set Value
    Unmark ‘Fire on page load’ and ‘Stop execution on error’
    Set Type:     PL/SQL Expression
    PL/SQL Expression:     :P1_LOC
    Page Items to submit:     P1_LOC
    Affected Elements: Item P1_LOC
    These actions allow refresh the items display value.
    Finally to refresh the Departments report, add the following true action at the end
    Action:     Refresh
    Affected Elements: Region Departments
    11)     Create the following Dynamic Action to delete a department
    Name:     Delete Dept
    Event:     Change
    Selection Type:     Item(s)
    Item(s):     P1_ACTION
    Condition:     equal to
    Value:     DELETE
    Action:     Execute PL/SQL Code
    PL/SQL Code:     
    DELETE dept
    WHERE deptno = :P1_DEPTNO;
    Page Items to Submit:     P1_DEPTNO
    Don’t include any false action and create the Dynamic Action.
    Include the following True Actions AFTER the Execute PL/SQL Code true Action.
    Action:     Refresh
    Affected Elements: Region Departments
    Action:     Clear
    Unmark ‘Fire on page load’
    Affected Elements: Items P1_DEPTNO, P1_DNAME, P1_LOC
    12)     Finally Create the following Dynamic Action for the NEW event
    Name:     New Dept
    Event:     Change
    Selection Type:     Item(s)
    Item(s):     P1_ACTION
    Condition:     equal to
    Value:     NEW
    Action:     Clear
    Unmark *‘Fire on page load’*
    Affected Elements: Items P1_DEPTNO, P1_DNAME, P1_LOC

    I need some help to solve this issues
    •     How Can I Hide UPDATE button while I press NEW button. ??
    •     How Can I Hide CREATE button while I’m UPDATING A RECORD. ??
    •     How can I avoid multiple Inserts or Updates. ??

  • Dynamic actions in sequence

    Hi all,
            I have 5 dynamic actions in a page.
                I want to know whether there is any way to execute these dynamic actions in order ( i.e when the 1'st action is completed then only the 2'nd and 3'rd should be processed)..
    waiting for ur replies
    with regards
    BalaG

    If the dynamic actions need to work in sequence, then you can put them as "TRUE" actions in one and the same dynamic action.
    Regards,
    Vincent
    http://vincentdeelen.blogspot.com

  • APEX Dynamic Actions?

    Hello i'm trying to figure how how to have a dynamic action populate text fields.
    When the create button is hit, it will insert the record in the DB like normal.
    I had a search box doing a dynamic action when a record_number is entered and the selection changes
    It populates the remaining text boxes with the results of the record_number.
    I used a "SET_VALUE" true action on each individual ITEM
    For each individual item i have different SQL Statement populating that item.
    Ex. To populate Last_Name/ P2_LAST_NAME item i do the following
    Select LAST_NAME from patient_Demographics
    where record_id = :P2_RECORD_ID
    Affected Elements:
    P2_LAST_NAME
    So i have about 8 of these true statements, so i'm hitting the DB 8 times to get the individual items.
    Is there a way to hit the DB once and set the items using one PL/SQL statement?
    I tried using a PL/sql function body, i'll admit, it didnt know what i was doing, it didnt work

    Hi,
    So as you've found out, support for setting multiple affected elements in 4.0 is very limited. Are you definitely trying this out on 4.0? The reason I ask, is because we only introduced the 'Page Items to Return' attribute in 4.1.
    In 4.0, I would suggest falling back to a combination of a dynamic action, some JavaScript and a page level AJAX callback, as described here:
    Dynamic Action - setting the the value of multiple Affected Elements
    I think this should work better for you than trying to manipulate the 'Execute PL/SQL Code' action in 4.0 to do this.
    Hope that helps.
    Anthony.

  • Triggering Dynamic actions when updating an Infotype using a FM

    Hi all,
    This is the scenario.
    I am trying to run a Transfer action, (80), which updates the Infotype 0000 and Infotype 0001. When the entry in the Infotype 0001 is saved, a dynamic action is triggered and a custom infotype is updated automatically. I need to find a FM that takes care of any dynamic actins associated to an Infotype.
    I tried using a BDC, but I was not successful. While using the FM HR_INFOTYPE_OPERATION, I am able to update the data into the infotyes 0000 and 0001 but the dnamic action is not triggered. Can someone please suggest a solution.
    Thanks,
    Amar

    Hi,
       Thanks for you r reply. Well I am new to dynamic actions, but this is the Dynamic action that has been written.
    GET_DU(ZHRDUDYNCALL)
    COP,9009,,,(P0001-BEGDA),(P0001-ENDDA)/D
    ----P9009-SEQNR=P0001-SEQNR ---***
    P9009-AEDTM=P0001-AEDTM
    P9009-UNAME=P0001-UNAME
    P9009-DU_CD=RP50D-FIELD1
    --END OF ENTRY IN TABLE PA9009--
    --CREATE ENTRY IN TABLE PA9009----
    SY-DATUM=SY-DATUM
    GET_DU(ZHRDUDYNCALL)
    DEL,9009,,,(P0001-BEGDA),(P0001-ENDDA)/D
    P9009-DU_CD=RP50D-FIELD1
    --END OF ENTRY IN TABLE PA9009--
    The FM that I am using goes like this:
    CALL FUNCTION 'HR_INFOTYPE_OPERATION'
      EXPORTING
        infty                  =  '0001'
        number                 =  lv_pernr
      SUBTYPE                =   wa_0000-MASSN
      OBJECTID               =
      LOCKINDICATOR          =
       VALIDITYEND            = lc_endda
       VALIDITYBEGIN          = wa_source_data-begda
      RECORDNUMBER           = 1
        record                 =  wa_0001
        operation              = 'COP'
       TCLAS                  = 'A'
       DIALOG_MODE            = '0'
      NOCOMMIT               =
      VIEW_IDENTIFIER        =
       SECONDARY_RECORD       = proposed_values0001
    IMPORTING
      RETURN                 = return
      KEY                    =
    Please let me know if there is anything more I need to do?
    Thanks,
    Amar

  • How to create a new excel file using Excel Destination when Destination file not exists.

    how to create a new excel file using Excel Destination when Destination file not exists.

    Just need to set an expression for excel connectionstring and set delay validation to true and it will create it on the fly.
    The expression should return the full path with dynamic filename in each case.
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

Maybe you are looking for

  • Thinkpad T61 reports in-correct EDID data to Xorg

    Thinkpad T61 with Quadro NVS 140M reports in-correct EDID data . Primary issues is that I want to switch to "1024x768" resolution which is well supported for LCD projectors. But currently with default setting nvidia driver it gives only the following

  • Problem during Auto PO Creation

    Hi    Im using a user exit for Auto PO functinality ..    I have following conditions for creation of Auto PO    1) For PR with source of supply as Info record will not be converted in PO automatiocally as Info record contains historical prices..   

  • What is the best way to reduce a .mov file size

    I had a music DVD that I converted to a .mov so that I could cut and paste in QT pro which i have done. Now I have a .mov file that is 46 gigabits in size and I want to reduce it considerably without ruining the quality of sound or visual. Whats the

  • My itunes store disappeared

    (see screenshot)  My itunes store is mssing. I've tried pulling up the store through a song, rebooting my computer, but my itunes store just won't come up. My internet connection is fine and I can download podcasts (through the podcast library, but n

  • Getting text from DBMS_OUTPUT.PUT_LINE to OCI application

    Hi. Does anyone know of a way to get data written by DBMS_OUTPUT.PUT_LINE into a C OCI application? Thanks, bLanark