2009 Jan 12 5:47 PM
Hi all,
I want to capture a BDC for the transaction code CO11n.In which while determining the goods movement
if there is any shortage quantity in the child part numbers(261 mvmt),it should be displayed as message in my BDC.
But the error is not getting captured in BDC.
Kindly suggest me what to do.
Regards,
Vidhya
2009 Jan 13 8:39 AM
through BDC you can not capture the standard messages, for this you can use BAPI or FM so that you can capture the error messages...
check this 'BAPI_PRODORDCONF_CREATE_TT'
Hi all,
I want to capture a BDC for the transaction code CO11n.In which while determining the goods movement
if there is any shortage quantity in the child part numbers(261 mvmt),it should be displayed as message in my BDC.
But the error is not getting captured in BDC.
Kindly suggest me what to do.
Regards,
Vidhya
2009 Jan 12 6:00 PM
2009 Jan 13 4:36 AM
Hi,
Check this code, it might be useful
Internal table for storing the BDC messages
it_messtab TYPE TABLE OF bdcmsgcoll,
wa_messtab TYPE bdcmsgcoll,
Internal table for storing the BDC data
it_bdctab TYPE TABLE OF bdcdata,
wa_bdctab TYPE bdcdata,
REFRESH: it_bdctab, it_messtab.
PERFORM f_bdc_dynpro USING 'SAPMC29C' '0100'.
PERFORM f_bdc_field USING 'BDC_CURSOR' 'RC29A-AEPRO'.
PERFORM f_bdc_field USING 'BDC_OKCODE' '/00'.
PERFORM f_bdc_field USING 'RAD_BUT_ECNTYP-NORM' 'X'.
PERFORM f_bdc_field USING 'RC29A-AEPRO' 'Z1'.
PERFORM f_bdc_dynpro USING 'SAPMC29C' '0010'.
PERFORM f_bdc_field USING 'BDC_OKCODE' 'UEOB'.
PERFORM f_bdc_field USING 'RC29A-AETXT' wa_mapl_result-plnnr.
PERFORM f_bdc_field USING 'BDC_CURSOR' 'RC29A-AENST'.
PERFORM f_bdc_field USING 'RC29A-DATUV' v_date.
PERFORM f_bdc_field USING 'RC29A-AEGRU' 'Routing Change'.
PERFORM f_bdc_field USING 'RC29A-AENST' '1'.
PERFORM f_bdc_dynpro USING 'SAPMC29C' '2000'.
PERFORM f_bdc_field USING 'BDC_OKCODE' '=FCBU'.
PERFORM f_bdc_field USING 'BDC_CURSOR' 'RC29A-OITXT(01)'.
PERFORM f_bdc_field USING 'RC29A-PLNTY(01)' 'N'.
PERFORM f_bdc_field USING 'RC29A-PLNNR(01)' wa_mapl_result-plnnr.
PERFORM f_bdc_field USING 'RC29A-OITXT(01)' 'Routing Change'.
CALL TRANSACTION c_cc01 USING it_bdctab
MODE c_mode
UPDATE c_update
MESSAGES INTO it_messtab.
IF sy-subrc = 0.
COMMIT WORK.
READ TABLE it_messtab INTO wa_messtab WITH KEY msgid = c_msgid
msgnr = c_001.
v_ecn = wa_messtab-msgv1.
2009 Jan 13 4:59 AM
Hi
While Recording you cannot record the error messages! Also while transferring the data using session method the error records will be captured in the batch input session monitor and in case of call transaction technique the error log table specified in the statement.
Regards,
Abdul Hakim
2009 Jan 13 5:41 AM
It is not possible to capture error in during BDC process...U can check b4 passing those values to BDC u can control and move those datas to Error Itab..
Regs,
Saty
2009 Jan 13 8:39 AM
through BDC you can not capture the standard messages, for this you can use BAPI or FM so that you can capture the error messages...
check this 'BAPI_PRODORDCONF_CREATE_TT'
2009 Oct 07 5:21 AM
2009 Oct 07 5:21 AM
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |