2011 Dec 31 4:49 AM
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
2011 Dec 31 4:34 PM
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
2012 Jan 02 1:02 PM
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 .