Application Development and Automation 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: 
Read only

control after MESSAGE E

hubert_heitzer
Contributor
1,265

Hi,

need to use function MD_PEGGING_NODIALOG in my program.

Unfortunately this function calls form REQUIREMENTS_4_RECEIPT in line 109.

I was really suprised, when i saw that REQUIREMENTS_4_RECEIPT uses an error dialog with

MESSAGE E527(61) RAISING ORDER_NOT_FOUND.

As I my program can handle this situation I want to get back control flow to my program.

Are their any possibilities?

Thanks in advance,

Hubert

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,157

I believe you are not catching the exceptions of FM MD_PEGGING_NODIALOG which are shown when using FM pattern.

CALL FUNCTION 'MD_PEGGING_NODIALOG'
EXCEPTIONS
    ERROR                       = 1
    NO_REQUIREMENTS_FOUND       = 2
    ORDER_NOT_FOUND             = 3
    OTHERS                      = 4.

5 REPLIES 5
Read only

Former Member
0 Likes
1,158

I believe you are not catching the exceptions of FM MD_PEGGING_NODIALOG which are shown when using FM pattern.

CALL FUNCTION 'MD_PEGGING_NODIALOG'
EXCEPTIONS
    ERROR                       = 1
    NO_REQUIREMENTS_FOUND       = 2
    ORDER_NOT_FOUND             = 3
    OTHERS                      = 4.

Read only

RaymondGiuseppi
Active Contributor
0 Likes
1,157

Why were you surprised, you did not look at FM signature (Exceptions tab) ?

CALL FUNCTION 'MD_PEGGING_NODIALOG'
   EXPORTING
     edelkz                      = edelkz
     edelnr                      = edelnr
     ematnr                      = ematnr
     ewerks                      = ewerks
   TABLES
     imdrqx                      = imdrqx
  EXCEPTIONS
    ERROR                       = 1
    NO_REQUIREMENTS_FOUND       = 2
    ORDER_NOT_FOUND             = 3
    ERROR_MESSAGE               = 4
    OTHERS                      = 5.

Regards,

Raymond

Read only

0 Likes
1,157

I'm not ABAPer, but I'd like to know:

regarding 61 527, is there a way to set the message to W. thank you in advance

Can modifying BAPi be implemented

Read only

0 Likes
1,157

AFAIK there is no such options in this FM

  • It uses statements that force error message and not FM such as CUSTOMIZED_MESSAGE or READ_CUSTOMIZED_MESSAGE that read the Customizing of Error Message (table T100C)
Read only

Former Member
0 Likes
1,157

Have you enabled the exceptions section of your Function Module?