Application Development 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: 

CALL TRANSACTION 'MD03'

Former Member
0 Kudos

Hi,

I am using CALL TRANSACTION 'MD03' USING i_bdcdata MODE 'N' MESSAGES INTO i_bdcmsgcoll.

But I am not getting any message in my table i_bdcmsgcoll.

I have one doubt, like shall I use Call Transaction for MD03 ? Please give me suggession.

Thanks & regards

Frank

5 REPLIES 5

ferry_lianto
Active Contributor
0 Kudos

Hi Frank,

Have you looked at FM <b>MD_MRP_SINGLE_MAT_REPLAN</b>?

Hope this will help.

Regards,

Ferry Lianto

Former Member
0 Kudos

Hi Frank,

You can definitely use CALL TRANSACTION but there are methods also which can be used. Look for any BAPI for the same functionality.

Regards,

Joseph.

Former Member
0 Kudos

Hi

Yes,you can use the call transaction in MD03.When your call transaction having some kind of errors at that time it stores the error in the structure bdcmsgcoll.

Try to create some kind of errors and check wheather the structure bdcmsgcoll storing it or not.

Thanks

Mrutyunjaya Tripathy

vinod_gunaware2
Active Contributor
0 Kudos

CALL TRANSACTION 'MD03' USING i_bdcdata MODE <b>'A'</b> MESSAGES INTO i_bdcmsgcoll.

Change mode 'N' to 'A'.

check below code

  • Set the parameters for Call Transaction

CLEAR WA_CTU_PARAMS.

WA_CTU_PARAMS-DISMODE = 'N'.

WA_CTU_PARAMS-UPDMODE = 'S'.

WA_CTU_PARAMS-NOBINPT = 'X'.

WA_CTU_PARAMS-NOBIEND = 'X'.

WA_CTU_PARAMS-DEFSIZE = 'X'.

  • Call Transaction MM01

IF W_FLAG NE 'X'.

CALL TRANSACTION 'MM01' USING T_BDCDATA OPTIONS FROM WA_CTU_PARAMS

MESSAGES INTO T_BDCMSGCOLL.

COMMIT WORK AND WAIT.

DESCRIBE TABLE T_BDCMSGCOLL LINES N.

IF N <> 0.

LOOP AT T_BDCMSGCOLL INTO WA_BDCMSGCOLL.

CLEAR ERR_LOG.

W_MSGNO = WA_BDCMSGCOLL-MSGNR.

CALL FUNCTION 'WRITE_MESSAGE'

EXPORTING

MSGID = WA_BDCMSGCOLL-MSGID

MSGNO = W_MSGNO

MSGTY = WA_BDCMSGCOLL-MSGTYP

IMPORTING

MESSG = ERR_LOG.

  • Error that occurs during transactoon

IF ERR_LOG-MSGTY = 'E'.

MOVE-CORRESPONDING T_UPLOAD TO T_DOWNLOAD.

MOVE ERR_LOG-MSGTX TO T_DOWNLOAD-MSG.

APPEND T_DOWNLOAD.

ENDIF.

ENDLOOP.

ENDIF.

ENDIF.

regards

vinod

Former Member
0 Kudos

Hi Frank,

You can use BAPI if any BAPI is available for that MD03 transsaction ,

Other wise use call transaction like this (chech with some errore in this)

CALL TRANSACTION 'MD03' USING i_bdcdata

MODE 'A'

UPDATE 'S' (or) 'A'

MESSAGES INTO i_bdcmsgcoll.

Regards,

vasantha.