Skip to Content
author's profile photo Former Member
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 a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

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 a 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 a 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 a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.