Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9238

Re: How can I check if a field content already exists?

$
0
0

Hi Johnny,

 

You can use T-code:SE54 to find the screen number in the generated objects.

 

Then you can add your code in the PAI part of the suitable screen number.

 

the code should be something like:

LOOP AT TC.

    MODULE LISTE_INIT_WORKAREA.

    CHAIN.

     FIELD STRUC-XXX .

     FIELD STRUC-XXX .

     FIELD STRUC-XXX.

     FIELD STRUC-XXX .

     MODULE SET_UPDATE_FLAG ON CHAIN-REQUEST.

    ENDCHAIN.

    FIELD VIM_MARKED MODULE LISTE_MARK_CHECKBOX.

    CHAIN.

     FIELD STRUC-XXX .

     MODULE LISTE_UPDATE_LISTE.

    ENDCHAIN.

* your check logic can be added begin

    FIELD STRUC-XXXMODULE FRM_CHECK_FIELDON REQUEST.

* your check logic can be added end

  ENDLOOP.


Then you can do the check in that routine and deliver the error message properly.


Thanks,

Sam


Viewing all articles
Browse latest Browse all 9238

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>