Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

want to avoid pop up message in runtime

former_member198900
Participant
0 Kudos

I have a program where it as calling standard Function module. but this function module sometimes showing a information message which is pop up message in run time. i am calling this fm in a loop. so in runtime this pop up is always coming and i have to click Enter every time. so i want to ignore this pop up in runtime. is there any process to do that.

the Standard FM is: K_KKB_ITEMIZATION

2 REPLIES 2

Clemenss
Active Contributor
0 Kudos

Hi Atiul Ehsan,

- you may have told us what you are going to achieve.

- you may have told us which message is coming (message ID & Number)

You can always use an implicit enhancement do circumvent the message. In the enhancement you may check if it is your custom program (SY-CPROG) that calls the function. That ensures standard behavior in oher cases.

If it is

message i000 with 'No_further_itemization_possible'.

then the enhancement should be at start of FUNCTION K_KKB_ITEMIZATION:

Enhancement code:

if d_subroutine_pools >= D_maximal_subroutine_pools and sy-cprog = '<Yourcalling program>'.
     if not i_container is initial .
*        message i000 with 'No_further_itemization_possible'.
        exit.
     endif.
endif.

Regards,

Clemens

former_member199126
Participant
0 Kudos

insted of using the FM , try to do it with the subroutine .

itab like BDCMSGCOLL. --> place where all ur popup message gets stored.

msg type string.

perform <formname> using <parameters> messages into itab.

endform.

now use

loop at itab.

CALL FUNCTION 'FORMAT_MESSAGE'

EXPORTING

id = itab-msgid

lang = itab-msgspra

no = itab-msgnr

v1 = itab-msgv1

v2 = itab-msgv2

IMPORTING

msg = msg

EXCEPTIONS

OTHERS = 0.

endloop.

don t write string anywhere. tat s it .