Skip to Content
0

BAPI_SALEORDER_CREATEFROMDAT2+MV45AFZZ

Sep 07, 2017 at 02:05 AM

36

avatar image
Former Member

Hi all,

I have done user exit in save_document_prepare in mv45afzz,

Message xxxx type S display like 'E'.Leave to screen sy-dynnr.

Problem is, when i use BAPI , this message in not showing in RETURN table of BAPI,

if use type 'E' sure it will be ,but for type E in va01 screen are getting greyed out ..

How to achieve this .

thanks

Krish

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Raymond Giuseppi
Sep 07, 2017 at 07:47 AM
1

In the Include you should look at the Abap stack to distinguish between transaction execution (can be BDC) and BAPI execution, when called by BAPI use msgtyp = 'E' else 'S' with display like.

  CALL FUNCTION 'SYSTEM_CALLSTACK'
    IMPORTING
      et_callstack = lt_callstack.
  LOOP AT lt_callstack TRANSPORTING NO FIELDS WHERE eventname CS 'BAPI'.
    MOVE 'E' to msgtyp.
    EXIT.
  ENDLOOP.  
Share
10 |10000 characters needed characters left characters exceeded
Gagan Narendra Sep 07, 2017 at 07:33 AM
-2

Hi,

Try this,

After Message ...............keyword use

CALL TRANSACTION va01. keyword. So that it will again call the same t-code which you require.

Hope it might help you.

Share
10 |10000 characters needed characters left characters exceeded