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

XK01 Update using BDC

Former Member
0 Likes
572

Hi,

I am updating xk01 . I have one problem .My Vendor is having 3 bank accounts in three different states .when I am up dating it is taking only one row of the flat file and when it comes to second row vendor number will be same but bank details will be different .How can i do this .

Thanks in advance

Hi,

I am updating xk01 . I have one problem .My Vendor is having 3 bank accounts in three different states .when I am up dating it is taking only one row of the flat file and when it comes to second row vendor number will be same but bank details will be different .How can i do this .

Thanks in advance

3 REPLIES 3
Read only

Former Member
0 Likes
510

HI,

Click the below links, it is having sample programs

http://www.sap-img.com/abap/bdc-example-using-table-control-in-bdc.htm

Regards

Sudheer

Read only

Former Member
0 Likes
510

Hi,

You can have a LOOP ENDLOOP and within this you can update the bank details for a vendor, so that he can have multiple entries in here.

So while filling BDC data for screen 130 of program SAPMF02K , before building bdcdata for ok code part, use loop / endloop.

Rgds,

HR

Read only

andreas_mann3
Active Contributor
0 Likes
510

Hi,

you must keep in mind, that's a table control-

try:

                
  CONCATENATE 'KNBK-BANKS(' zei ')' INTO hfnam. "cursor
  PERFORM bdc_field       USING 'BDC_CURSOR' hfnam.
  PERFORM bdc_field_loop USING zei 'KNBK-BANKS' kbkwa-country_cd.
  PERFORM bdc_field_loop USING zei 'KNBK-BANKL' kbkwa-bank_routing_cd.
  PERFORM bdc_field_loop USING zei 'KNBK-BANKN' kbkwa-bank_account_no.
  PERFORM bdc_field_loop USING zei 'KNBK-KOINH' kbkwa-account_holder.

Message was edited by: Andreas Mann