Skip to Content
avatar image
Former Member

BAPI_SALEORDER_CREATEFROMDAT2+MV45AFZZ

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Sep 07, 2017 at 07:47 AM

    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.  
    Add comment
    10|10000 characters needed characters exceeded

  • 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.

    Add comment
    10|10000 characters needed characters exceeded