Application Development and Automation 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: 
Read only

BDC CALL TRANSACTION OR SESSION METHOD

Former Member
0 Likes
498

Hi Experts,

While Uploading a flat file through BDC Call Transaction suddenly system crashed .How do u know that how many records have been updated and how u will do such type of suitations occured?And total 1000 records r there and u uploaded 500 records how do u know that 500 uploaded and from first onwards u will again upload or from 500 records on words u will upload?pls explain it clearly.

Edited by: nagisethi chalapathi on Feb 19, 2008 8:28 AM

3 REPLIES 3
Read only

Former Member
0 Likes
472

hi ,

When you use

'Synchronous' and the power goes off the records will rollback. the records will not updated means the updation has to b fully completed or fully rollback.

In 'Asynchronous' if the records have been updated partially like out of 100 some records say 80 updated and power goes off then when you start next time it will start updation from 81st record .

Read only

Former Member
0 Likes
472

Hi,

Use call transaction with the following syntax

CALL TRANSACTION 'PA30' USING it_bdcdata MODE c_mode                        MESSAGES INTO it_messages.



  LOOP AT it_messages INTO wa_l_msg WHERE msgtyp EQ c_error OR msgtyp EQ c_abort.
    CLEAR v_l_text.

    MESSAGE ID wa_l_msg-msgid TYPE wa_l_msg-msgtyp NUMBER wa_l_msg-msgnr
    WITH wa_l_msg-msgv1 wa_l_msg-msgv2 wa_l_msg-msgv3 wa_l_msg-msgv4
    INTO v_l_text.

    CONCATENATE p_wa_l_record-row_id v_l_text INTO v_l_msgtxt.

    wa_l_error-message    = v_l_msgtxt. " message
    wa_l_error-type       = wa_l_msg-msgtyp.
    wa_l_error-id         = wa_l_msg-msgid .
    wa_l_error-number     = wa_l_msg-msgnr.
    wa_l_error-message_v1 = wa_l_msg-msgv1 .
    wa_l_error-message_v2 = wa_l_msg-msgv2.
    wa_l_error-message_v3 = wa_l_msg-msgv3.
    wa_l_error-message_v4 = wa_l_msg-msgv4.
    APPEND wa_l_error TO it_errormsg .
    CLEAR wa_l_msg.
  ENDLOOP.

REWARD POINTS IF USEFUL

Read only

Former Member
0 Likes
472

It is based upon in which mode you have run your transaction.i.e. either in Synchronous or Asynchronous.

If synchoronous, then it wont be transferred any records.

Regards,

K.Tharani.