Skip to Content
avatar image
Former Member

Module Pool Program Issue

Hi Experts,

In module program I have to screens fields viz., Release and Reference(IO Field). I have coded such a way that, If I enter some some values in Release, same will be displayed in Reference. To achieve this, when I give some values in Release field and Press Enter, in PAI I passed the same value to Reference. My issue is, If I again enter new value to Reference field and press Enter again its taking the Release Fields Value. But I need the newly entered value. How can I achieve this? Thanks in Advance.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Sep 12, 2014 at 05:29 AM

    Hi, Sivag!

    If I got you right, you need to overwrite the value in Reference field only if the value in Release field has been changed.

    To achive this you can try something like that in your screen logic:

    FIELD Release MODULE release ON REQUEST.

    MODULE release INPUT.

      Reference = Release.

    ENDMODULE.

    Addition ON REQUEST will trigger the module only in case user has input something in Release field.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 12, 2014 at 05:28 AM

    Hi Sivag,

    do this..

    have a new variable release_1.

    if release_1 <> release(screen field variable).

    Reference = Release.

    release_1 = release.

    endif.

    Regards

    Sreekanth

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Sep 12, 2014 at 05:55 AM

    Hi,

    based on your requirement, you can follow any of the steps below

    1. In PAI use can use the field statement as mentioned by Nikolay

         FIELD Release MODULE assign ON REQUEST or

         FIELD Release MODULE assign ON INPUT.



    2. In PBO or PAI you can use the below code

         on change of Release.

         reference = release

         endon



    3.In PBO or PAI You can assign to reference when it is empty


    if reference is initial and release is not initial.

    reference = release

    endif.


    Regards

    Anand



    Add comment
    10|10000 characters needed characters exceeded