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: 

Regarding BDC

Former Member
0 Kudos

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

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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'

7 REPLIES 7

Former Member
0 Kudos

Total Questions: 18 (18 unresolved)

Former Member
0 Kudos

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.

abdul_hakim
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

Former Member
0 Kudos

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'

Former Member
0 Kudos

closed

Former Member
0 Kudos

closed