Skip to Content
author's profile photo
Former Member

BOM upload through WDA

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

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    Posted on May 04, 2011 at 11:57 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on May 04, 2011 at 04:03 AM

    Hi,

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

    Regards

    Shaira

    Add comment
    10|10000 characters needed characters exceeded

  • Posted on May 04, 2011 at 04:48 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded