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

call -Two Bdc

Former Member
0 Likes
473

Hi ,

Want to update two transcation through same excel file.Moving like this .Is this correct way

FORM run_bdc .

LOOP AT g_t_intab INTO g_t_record .

PERFORM bdc_dynpro USING 'SAPLKPP0' '1000'.

perform bdc_transaction using 'KP06' .

Second bdc.........

perform bdc_dynpro1 using 'SAPLKPP0' '1000'.

perform bdc_field1 using 'KPP0B-VALUE(06)'

g_t_record-profit_center_06_007.

perform bdc_field1 using 'KPP0B-VALUE(08)'

g_t_record-Account_No_08_008.

perform bdc_field1 using 'KPP0B-VALUE(09)'

g_t_record-Account_no_to_09_009.

perform bdc_transaction1 using '7KE1'.

endloop

regards

IVneet

Hi ,

Want to update two transcation through same excel file.Moving like this .Is this correct way

FORM run_bdc .

LOOP AT g_t_intab INTO g_t_record .

PERFORM bdc_dynpro USING 'SAPLKPP0' '1000'.

perform bdc_transaction using 'KP06' .

Second bdc.........

perform bdc_dynpro1 using 'SAPLKPP0' '1000'.

perform bdc_field1 using 'KPP0B-VALUE(06)'

g_t_record-profit_center_06_007.

perform bdc_field1 using 'KPP0B-VALUE(08)'

g_t_record-Account_No_08_008.

perform bdc_field1 using 'KPP0B-VALUE(09)'

g_t_record-Account_no_to_09_009.

perform bdc_transaction1 using '7KE1'.

endloop

regards

IVneet

2 REPLIES 2
Read only

Former Member
0 Likes
438

Following looks more cleaner than the one you are trying to do.

loop at itab

Update transaction 1

endloop

loop at itab

update transaction 2

endloop.

Thanks,

Arun

Read only

Former Member
0 Likes
438

Hi,

I think you can do like that.

Regards,

chris