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: 

SAP-BDC

Former Member
0 Kudos

1........Table is used for BDC?

2.what is the effect of on-change request command in Flowlogic?

3.what will happen if the flow logic has been changed while executing transaction code?

Plz clarify these questions.

3 REPLIES 3

Former Member
0 Kudos

1.BDC table is used a a internal table which holds the data for one transaction.The contents are then passed from the BDC asa queue file.You should declare the BDC table as an internal table with the ABAP/4 dictionary

of structure BDCDATA.

2. on chain-request: executes the module only when the user enters a new value in that field.

Former Member
0 Kudos

Hi internal table is used to hold data, which is to be passed on to the transaction in BDC. You can loop thru internal table and use new field,screen field in between, this will update the data in the DB table which is called by the transaction when you process the session in SM35

On-change request is conditional clause you use it especially when looping through internal table and you want to take some action when the value changes.

Former Member
0 Kudos

Hello Srinivasa,

Declare the following Internal Tables with refrence to the following ABAP Dictionary Tables <b>BDCDATA</b> (to hold the transaction data) and <b>BDCMSGCOLL</b> (to hold the error messages)

Data : t_bdc_data     TYPE bdcdata OCCURS 0 WITH HEADER LINE,
t_messages     TYPE bdcmsgcoll OCCURS 0 WITH HEADER LINE.

Then call the transaction passing these internal tables,

CALL TRANSACTION  ia06  "transactio
               USING    t_bdc_data
               MODE          " Mode (A/E/N)
               UPDATE        " A/S
               MESSAGES INTO t_messages.

On-change is triggered whenever a new entry for the field refrenced is detected in a Loop. You can take the corresponding action on detecting the change.

LOOP AT t_mara INTO wa_mara.
          "some processing
  ON  CHANGE OF wa_mara-matnr.  "At every new matnr
           "some processing
  ENDON.
ENDLOOP. 

It depends on the Batch Input Method and the Transaction you are calling.

<b>Call transaction</b> : Error situations should be handled explicitly.

<b>Session Method</b> : An Error log is created at the end of Batch input session.

Cheers,

Arun Sambargi.

Message was edited by: Arun Sambargi