Application Development 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: 

Quantity field in Bapi BAPI_PO_CREATE

Former Member
0 Kudos

Hi ,

What is the filed name to pass the QUANTITY in the lineitems table*(PO_ITEMS) for the Bapi BAPI_PO_CREATE.

I have to use BAPI_PO_CREATE and not BAPI_PO_CREATE1 beacuse i have to pass multiple DELIVERY SCHEDULES and BAPI_PO_CREATE1 will not suit for multiple delivery schedules

FIleld name DISP_QUAN is not accepting the Quantity and showing the error as ENTER QUANTITY

when BAPI is executed.

Regards

Ajay

1 ACCEPTED SOLUTION

abapdeveloper20
Contributor
0 Kudos

BAPIMEPOITEM-QUANTITY can be used for that.

it will be there @ POITEM-QUANTITY

g_bapimepoitem-po_item = it_itab-po_item.
      g_bapimepoitem-short_text = it_itab-short_text.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
           EXPORTING
                input  = it_itab-material
           IMPORTING
                output = it_itab-material.
      g_bapimepoitem-material = it_itab-material.
      g_bapimepoitem-plant = it_itab-plant.
      *g_bapimepoitem-quantity = it_itab-quantity.*
      APPEND g_bapimepoitem.

Reward if useful.

1 REPLY 1

abapdeveloper20
Contributor
0 Kudos

BAPIMEPOITEM-QUANTITY can be used for that.

it will be there @ POITEM-QUANTITY

g_bapimepoitem-po_item = it_itab-po_item.
      g_bapimepoitem-short_text = it_itab-short_text.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
           EXPORTING
                input  = it_itab-material
           IMPORTING
                output = it_itab-material.
      g_bapimepoitem-material = it_itab-material.
      g_bapimepoitem-plant = it_itab-plant.
      *g_bapimepoitem-quantity = it_itab-quantity.*
      APPEND g_bapimepoitem.

Reward if useful.