Skip to Content
author's profile photo
Former Member

Call Transaction

Hello All,

I am facing some problem some problem while using the Call Transation method.

It's returning Success message after calling the transaction but failing to update the data.

Please let me know where I need to check for this.

Thanks,

Sarada

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • author's profile photo
    Former Member
    Posted on Aug 22, 2007 at 07:17 PM

    Hello

    would you post the call transaction code please?

    Gabriel

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Sarada...

      Try to Trace the Errors and Display them like this..

      Here you are using Update 'S' i.e Synchronous . In this case only when the Data is Updated in Database the SY-SUBRC will be returned.

      CALL TRANSACTION 'AS02' USING bdcdata MODE 'N' UPDATE 'S'

      MESSAGES INTO it_msg.

      If sy-subrc ne 0.

      Loop at it_msg into wa_msg WHERE MSGTYP = 'E' OR MSGTYP = 'A'.

      CALL FUNCTION 'FORMAT_MESSAGE'

      EXPORTING

      MSGID = WA_MSG-MSGID

      MSGNO = WA_MSG-MSGNR

      MSGTY = WA_MSG-MSGTYP

      MSGV1 = WA_MSG-MSGV1

      MSGV2 = WA_MSG-MSGV2

      MSGV3 = WA_MSG-MSGV3

      MSGV4 = WA_MSG-MSGV4

      IMPORTING

      MESSAGE = V_MESSAGE "String field .

      Write:/ Message.

      endloop.

      Execute this code in both ur QA and PROD.

      <b>Reward if Helpful</b>