Skip to Content
avatar image
Former Member

Vendor List Mass Upload

Hi Gurus,

We developed a BDC program for the mass uploading of vendor list.

Seems that there is no "Page Down" function in BBPAVLMAINT.

Since we need to upload more than 22 vendors then we need a functionality to go to the next page. Unfortunately, page down is not working.

Also, I have tried using BBP_PD_AVL_CREATE, BBP_PD_AVL_UPDATE and BBP_PD_AVL_SAVE function modules and did COMMIT WORK AND WAIT, but nothing happened.

Please guide me on how to make this work.

Regards,

Kezia

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • avatar image
    Former Member
    Jun 27, 2011 at 08:37 AM

    Mass Upload Vendor List using BBPAVLMAINT almost impossible because the "Page Down' button not available.

    To make this possible, just simply modify BBPAVLMAINT to add the control button (Top, PgUp, PgDn, End).

    To do this, follow this step-by-step:

    - TCode SE80

    - Function Group: BBP_AVL_ITS

    - Go to screen 220

    - Go to Layout

    - Add control button (Top, PgUp, PgDn, End)

    - Add code in PBO :

    LOOP AT gs_maint_items

    WITH CONTROL ctrl_maint_i

    CURSOR ctrl_maint_i-current_line.

    MODULE modify_screen.

    *{ INSERT 1

    module ctrl_maint_i_get_lines. "<<<<<<<<<

    *} INSERT

    ENDLOOP.

    - Add code in PAI:

    PROCESS AFTER INPUT.

    • items

    LOOP AT gs_maint_items.

    ...

    ...

    ENDLOOP.

    *{ INSERT 1

    module ctrl_maint_i_user_command. "<<<<<<<<<<

    *} INSERT

    *=======================================================================

    PROCESS ON VALUE-REQUEST.

    ...

    ...

    *----


    data: ok_code like sy-ucomm,

    g_ctrl_maint_i_lines like sy-loopc.

    *OUTPUT MODULE FOR TC. GET LINES OF TABLECONTROL

    module ctrl_maint_i_get_lines output.

    g_ctrl_maint_i_lines = sy-loopc.

    endmodule. "CTRL_MAINT_I_GET_LINES OUTPUT

    *----


    module ctrl_maint_i_user_command input.

    ok_code = sy-ucomm.

    perform user_ok_tc using 'CTRL_MAINT_I'

    'GS_MAINT_ITEMS'

    'VENDOR_NO'

    changing ok_code.

    sy-ucomm = ok_code.

    endmodule. "CTRL_MAINT_I_USER_COMMAND INPUT

    *----


    Edited by: Jack4ever on Jun 27, 2011 10:37 AM

    Add comment
    10|10000 characters needed characters exceeded