04-10-2006 10:53 PM
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
04-11-2006 1:08 AM
Hi Frank,
Have you looked at FM <b>MD_MRP_SINGLE_MAT_REPLAN</b>?
Hope this will help.
Regards,
Ferry Lianto
04-11-2006 4:30 AM
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.
04-11-2006 4:37 AM
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
04-11-2006 6:05 AM
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
04-11-2006 12:50 PM
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.