cancel
Showing results for 
Search instead for 
Did you mean: 

BOM upload through WDA

Former Member
0 Kudos

Hi experts,

I need to upload BOM entries. I have done done BDC recording for the same with 15 records and generated funtion module for that. The user have to upload large no (more than 500)

of BOM entries to upload their data. Now can i use this funtion module in a wda program and run this in a loop to upload BOM.

Thanks & Regards,

Monishankar C

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Technically you can do what you describe, but if you do such a large number form WDA you will likely experience a timeout. For a large data load, why would you use a WDA? Why wouldn't you instead write this as a background job? You could perhaps upload the file via WDA and use the WDA to submit the background job, but I wouldn't recommend trying to do that large a batch of updates in WDA.

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

You can use FM in WD and loops as well. Check below example code, it is working fine.

DATA : HUKEY TYPE BAPIHUKEY-HU_EXID,

wa_hukey TYPE BAPIHUKEY-HU_EXID.

loop at lt_pack_mat into ls_pack_mat.

wa_hukey = ls_pack_mat-HANDLING_UNIT.

MOVE wa_hukey TO hukey.

endloop.

CALL FUNCTION 'BAPI_HU_DELETE_FROM_DEL'

EXPORTING

DELIVERY = del

HUKEY = HUKEY

TABLES

RETURN = Return1.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT' .

Cheers,

Kris.

former_member389677
Active Participant
0 Kudos

Hi,

I think there is no issues in using function modules and loop in WDA as in normal ABAP Programs.

Regards

Shaira